From e376e66e07a3a5f204cde9a74293f63fc2e942d9 Mon Sep 17 00:00:00 2001 From: Brandon Greenwood Date: Wed, 2 Sep 2020 21:28:05 -0700 Subject: [PATCH 01/19] Update clients for Microsoft.Sql and update tests for ImportExport --- ...kupShortTermRetentionPoliciesOperations.cs | 8 +- .../src/Generated/CapabilitiesOperations.cs | 9 +- .../CapabilitiesOperationsExtensions.cs | 10 +- .../src/Generated/DatabasesOperations.cs | 853 +++--------- .../DatabasesOperationsExtensions.cs | 344 +---- ...dDatabaseBlobAuditingPoliciesOperations.cs | 377 ++++++ ...lobAuditingPoliciesOperationsExtensions.cs | 82 ++ ...dedServerBlobAuditingPoliciesOperations.cs | 368 +++++ ...lobAuditingPoliciesOperationsExtensions.cs | 76 ++ .../src/Generated/ICapabilitiesOperations.cs | 5 +- .../src/Generated/IDatabasesOperations.cs | 206 +-- ...dDatabaseBlobAuditingPoliciesOperations.cs | 52 + ...dedServerBlobAuditingPoliciesOperations.cs | 49 + .../src/Generated/IImportExportOperations.cs | 93 ++ .../ILongTermRetentionBackupsOperations.cs | 12 +- ...tentionManagedInstanceBackupsOperations.cs | 12 +- ...ManagedDatabaseRestoreDetailsOperations.cs | 4 +- .../Generated/IManagedDatabasesOperations.cs | 87 +- .../Generated/IManagedInstancesOperations.cs | 82 +- .../Generated/IReplicationLinksOperations.cs | 68 + .../src/Generated/IServersOperations.cs | 60 + .../src/Generated/ISqlManagementClient.cs | 79 +- .../IWorkloadClassifiersOperations.cs | 268 ++++ .../Generated/IWorkloadGroupsOperations.cs | 244 ++++ .../src/Generated/ImportExportOperations.cs | 305 +++++ .../ImportExportOperationsExtensions.cs | 133 ++ .../LongTermRetentionBackupsOperations.cs | 24 +- ...ermRetentionBackupsOperationsExtensions.cs | 24 +- ...tentionManagedInstanceBackupsOperations.cs | 24 +- ...agedInstanceBackupsOperationsExtensions.cs | 24 +- ...ManagedDatabaseRestoreDetailsOperations.cs | 20 +- ...abaseRestoreDetailsOperationsExtensions.cs | 6 +- .../Generated/ManagedDatabasesOperations.cs | 556 +++++++- .../ManagedDatabasesOperationsExtensions.cs | 134 +- .../Generated/ManagedInstancesOperations.cs | 676 +++++----- .../ManagedInstancesOperationsExtensions.cs | 156 +-- .../Models/AutoPauseDelayTimeRange.cs | 97 ++ .../Models/BackupShortTermRetentionPolicy.cs | 16 +- .../src/Generated/Models/CapabilityGroup.cs | 96 +- .../Models/CapabilityGroupConverter.cs | 53 + .../Generated/Models/CatalogCollationType.cs | 89 +- .../Models/CatalogCollationTypeConverter.cs | 53 + .../Models/CheckNameAvailabilityRequest.cs | 5 - .../Models/CheckNameAvailabilityResponse.cs | 47 +- .../src/Generated/Models/CreateMode.cs | 113 +- .../Generated/Models/CreateModeConverter.cs | 53 + .../src/Generated/Models/Database.cs | 22 +- .../Models/DatabaseBlobAuditingPolicy.cs | 31 +- .../Generated/Models/DatabaseLicenseType.cs | 89 +- .../Models/DatabaseLicenseTypeConverter.cs | 53 + .../src/Generated/Models/DatabaseOperation.cs | 4 +- .../src/Generated/Models/DatabaseReadScale.cs | 89 +- .../Models/DatabaseReadScaleConverter.cs | 53 + .../src/Generated/Models/DatabaseState1.cs | 92 +- .../Models/DatabaseState1Converter.cs | 53 + .../src/Generated/Models/DatabaseState2.cs | 92 +- .../Models/DatabaseState2Converter.cs | 53 + .../src/Generated/Models/DatabaseState3.cs | 92 +- .../Models/DatabaseState3Converter.cs | 53 + .../src/Generated/Models/DatabaseState4.cs | 92 +- .../Models/DatabaseState4Converter.cs | 53 + .../src/Generated/Models/DatabaseState5.cs | 92 +- .../Models/DatabaseState5Converter.cs | 53 + .../src/Generated/Models/DatabaseState6.cs | 92 +- .../Models/DatabaseState6Converter.cs | 53 + .../src/Generated/Models/DatabaseStatus.cs | 146 +- .../Models/DatabaseStatusConverter.cs | 53 + .../src/Generated/Models/DatabaseUpdate.cs | 22 +- .../Models/DatabaseVulnerabilityAssessment.cs | 12 +- .../src/Generated/Models/EditionCapability.cs | 20 +- .../src/Generated/Models/ElasticPool.cs | 6 +- .../Generated/Models/ElasticPoolEdition.cs | 98 +- .../Models/ElasticPoolEditionConverter.cs | 53 + .../Models/ElasticPoolLicenseType.cs | 89 +- .../Models/ElasticPoolLicenseTypeConverter.cs | 53 + ...erDatabaseMaxPerformanceLevelCapability.cs | 4 +- ...erDatabaseMinPerformanceLevelCapability.cs | 4 +- .../ElasticPoolPerformanceLevelCapability.cs | 12 +- .../src/Generated/Models/ElasticPoolState.cs | 92 +- .../Models/ElasticPoolStateConverter.cs | 53 + .../src/Generated/Models/ElasticPoolUpdate.cs | 4 +- .../Generated/Models/EncryptionProtector.cs | 8 +- .../Models/ExportDatabaseDefinition.cs | 131 ++ .../ExtendedDatabaseBlobAuditingPolicy.cs | 31 +- .../ExtendedServerBlobAuditingPolicy.cs | 31 +- .../src/Generated/Models/FailoverGroup.cs | 4 +- .../Models/FailoverGroupReadOnlyEndpoint.cs | 4 +- .../Models/FailoverGroupReadWriteEndpoint.cs | 11 +- .../Models/FailoverGroupReplicationRole.cs | 89 +- .../FailoverGroupReplicationRoleConverter.cs | 55 + .../src/Generated/Models/IdentityType.cs | 86 +- .../Generated/Models/IdentityTypeConverter.cs | 53 + .../ImportExistingDatabaseDefinition.cs | 133 ++ .../Models/ImportExportOperationResult.cs | 135 ++ .../Models/ImportNewDatabaseDefinition.cs | 167 +++ .../Generated/Models/InstanceFailoverGroup.cs | 4 +- .../InstanceFailoverGroupReadOnlyEndpoint.cs | 4 +- .../InstanceFailoverGroupReadWriteEndpoint.cs | 11 +- .../InstanceFailoverGroupReplicationRole.cs | 94 +- ...ceFailoverGroupReplicationRoleConverter.cs | 55 + .../src/Generated/Models/InstancePool.cs | 8 +- .../Models/InstancePoolEditionCapability.cs | 82 ++ .../Models/InstancePoolFamilyCapability.cs | 92 ++ .../Models/InstancePoolLicenseType.cs | 89 +- .../InstancePoolLicenseTypeConverter.cs | 53 + .../Models/InstancePoolVcoresCapability.cs | 88 ++ .../src/Generated/Models/JobAgent.cs | 4 +- .../src/Generated/Models/JobAgentState.cs | 98 +- .../Models/JobAgentStateConverter.cs | 53 + .../src/Generated/Models/JobExecution.cs | 6 +- .../Generated/Models/JobExecutionLifecycle.cs | 113 +- .../Models/JobExecutionLifecycleConverter.cs | 53 + .../Generated/Models/JobExecutionTarget.cs | 4 +- .../src/Generated/Models/JobStepAction.cs | 6 +- .../Generated/Models/JobStepActionSource.cs | 86 +- .../Models/JobStepActionSourceConverter.cs | 53 + .../src/Generated/Models/JobStepActionType.cs | 86 +- .../Models/JobStepActionTypeConverter.cs | 53 + .../src/Generated/Models/JobStepOutput.cs | 4 +- .../src/Generated/Models/JobStepOutputType.cs | 86 +- .../Models/JobStepOutputTypeConverter.cs | 53 + .../src/Generated/Models/JobTarget.cs | 11 +- .../src/Generated/Models/JobTargetType.cs | 98 +- .../Models/JobTargetTypeConverter.cs | 53 + .../src/Generated/Models/LogSizeCapability.cs | 4 +- .../src/Generated/Models/LogSizeUnit.cs | 98 +- .../Generated/Models/LogSizeUnitConverter.cs | 53 + .../Models/LongTermRetentionDatabaseState.cs | 94 +- ...LongTermRetentionDatabaseStateConverter.cs | 55 + .../src/Generated/Models/ManagedDatabase.cs | 8 +- .../Models/ManagedDatabaseCreateMode.cs | 98 +- .../ManagedDatabaseCreateModeConverter.cs | 54 + .../Generated/Models/ManagedDatabaseStatus.cs | 104 +- .../Models/ManagedDatabaseStatusConverter.cs | 53 + .../Generated/Models/ManagedDatabaseUpdate.cs | 8 +- .../src/Generated/Models/ManagedInstance.cs | 20 +- .../ManagedInstanceEncryptionProtector.cs | 8 +- .../Models/ManagedInstanceFamilyCapability.cs | 18 +- .../Generated/Models/ManagedInstanceKey.cs | 8 +- .../Models/ManagedInstanceLicenseType.cs | 89 +- .../ManagedInstanceLicenseTypeConverter.cs | 55 + .../Models/ManagedInstanceOperation.cs | 4 +- ...ivateLinkServiceConnectionStateProperty.cs | 87 ++ .../Models/ManagedInstanceProxyOverride.cs | 92 +- .../ManagedInstanceProxyOverrideConverter.cs | 55 + .../Generated/Models/ManagedInstanceUpdate.cs | 20 +- .../Models/ManagedInstanceVcoresCapability.cs | 40 +- .../ManagedInstanceVersionCapability.cs | 11 +- .../ManagedInstanceVulnerabilityAssessment.cs | 12 +- .../Models/ManagedServerCreateMode.cs | 89 +- .../ManagedServerCreateModeConverter.cs | 53 + .../Models/ManagementOperationState.cs | 101 +- .../ManagementOperationStateConverter.cs | 54 + .../src/Generated/Models/MaxSizeCapability.cs | 4 +- .../src/Generated/Models/MaxSizeUnit.cs | 95 +- .../Generated/Models/MaxSizeUnitConverter.cs | 53 + .../src/Generated/Models/Metric.cs | 4 +- .../src/Generated/Models/MetricDefinition.cs | 6 +- .../Generated/Models/MinCapacityCapability.cs | 70 + .../Models/NetworkIsolationSettings.cs | 72 + .../src/Generated/Models/Operation.cs | 4 +- .../src/Generated/Models/OperationOrigin.cs | 89 +- .../Models/OperationOriginConverter.cs | 53 + .../src/Generated/Models/PartnerInfo.cs | 4 +- .../src/Generated/Models/PartnerRegionInfo.cs | 4 +- .../Generated/Models/PauseDelayTimeUnit.cs | 103 ++ .../Models/PauseDelayTimeUnitConverter.cs | 53 + .../Models/PerformanceLevelCapability.cs | 4 +- .../Generated/Models/PerformanceLevelUnit.cs | 89 +- .../Models/PerformanceLevelUnitConverter.cs | 53 + .../Models/PrimaryAggregationType.cs | 101 +- .../Models/PrimaryAggregationTypeConverter.cs | 53 + .../Models/PrivateEndpointConnection.cs | 4 +- .../PrivateEndpointConnectionProperties.cs | 4 +- .../PrivateEndpointConnectionRequestStatus.cs | 72 + .../PrivateEndpointProvisioningState.cs | 100 +- ...ivateEndpointProvisioningStateConverter.cs | 55 + ...inkServiceConnectionStateActionsRequire.cs | 95 +- ...eConnectionStateActionsRequireConverter.cs | 55 + ...ivateLinkServiceConnectionStateProperty.cs | 10 +- ...PrivateLinkServiceConnectionStateStatus.cs | 101 +- ...nkServiceConnectionStateStatusConverter.cs | 55 + .../src/Generated/Models/ProvisioningState.cs | 98 +- .../Models/ProvisioningStateConverter.cs | 53 + .../Models/ReadOnlyEndpointFailoverPolicy.cs | 91 +- ...ReadOnlyEndpointFailoverPolicyConverter.cs | 55 + .../Generated/Models/ReadScaleCapability.cs | 71 + .../Models/ReadWriteEndpointFailoverPolicy.cs | 91 +- ...eadWriteEndpointFailoverPolicyConverter.cs | 55 + .../Models/RecommendedElasticPool.cs | 4 +- .../src/Generated/Models/ReplicaType.cs | 89 +- .../Generated/Models/ReplicaTypeConverter.cs | 53 + .../src/Generated/Models/ReplicationLink.cs | 4 +- .../src/Generated/Models/ReplicationState.cs | 95 +- .../Models/ReplicationStateConverter.cs | 53 + .../src/Generated/Models/ResourceIdentity.cs | 4 +- .../src/Generated/Models/SampleName.cs | 92 +- .../Generated/Models/SampleNameConverter.cs | 53 + .../src/Generated/Models/Server.cs | 4 +- .../Models/ServerBlobAuditingPolicy.cs | 31 +- .../src/Generated/Models/ServerKey.cs | 8 +- .../src/Generated/Models/ServerKeyType.cs | 89 +- .../Models/ServerKeyTypeConverter.cs | 53 + .../Models/ServerPublicNetworkAccess.cs | 89 +- .../ServerPublicNetworkAccessConverter.cs | 54 + .../src/Generated/Models/ServerUpdate.cs | 4 +- .../Models/ServerVulnerabilityAssessment.cs | 12 +- .../Models/ServiceObjectiveCapability.cs | 38 +- .../Generated/Models/ServiceObjectiveName.cs | 278 +++- .../Models/ServiceObjectiveNameConverter.cs | 53 + .../src/Generated/Models/SloUsageMetric.cs | 4 +- .../Generated/Models/StorageAccountType.cs | 92 +- .../Models/StorageAccountTypeConverter.cs | 53 + .../src/Generated/Models/StorageKeyType.cs | 109 +- .../Models/StorageKeyTypeConverter.cs | 53 + .../src/Generated/Models/SyncAgent.cs | 4 +- .../Models/SyncAgentLinkedDatabase.cs | 4 +- .../src/Generated/Models/SyncAgentState.cs | 92 +- .../Models/SyncAgentStateConverter.cs | 53 + .../Models/SyncConflictResolutionPolicy.cs | 89 +- .../SyncConflictResolutionPolicyConverter.cs | 55 + .../src/Generated/Models/SyncDirection.cs | 92 +- .../Models/SyncDirectionConverter.cs | 53 + .../src/Generated/Models/SyncGroup.cs | 6 +- .../Models/SyncGroupLogProperties.cs | 4 +- .../src/Generated/Models/SyncGroupLogType.cs | 95 +- .../Models/SyncGroupLogTypeConverter.cs | 53 + .../src/Generated/Models/SyncGroupState.cs | 98 +- .../Models/SyncGroupStateConverter.cs | 53 + .../src/Generated/Models/SyncMember.cs | 8 +- .../src/Generated/Models/SyncMemberDbType.cs | 89 +- .../Models/SyncMemberDbTypeConverter.cs | 53 + .../src/Generated/Models/SyncMemberState.cs | 137 +- .../Models/SyncMemberStateConverter.cs | 53 + .../TransparentDataEncryptionActivity.cs | 4 +- ...TransparentDataEncryptionActivityStatus.cs | 95 +- ...ntDataEncryptionActivityStatusConverter.cs | 55 + .../Generated/Models/UnitDefinitionType.cs | 101 +- .../Models/UnitDefinitionTypeConverter.cs | 53 + .../src/Generated/Models/UnitType.cs | 101 +- .../src/Generated/Models/UnitTypeConverter.cs | 53 + .../src/Generated/Models/UnlinkParameters.cs | 53 + .../Generated/Models/VirtualNetworkRule.cs | 4 +- .../Models/VirtualNetworkRuleState.cs | 98 +- .../VirtualNetworkRuleStateConverter.cs | 53 + .../VulnerabilityAssessmentScanRecord.cs | 6 +- .../VulnerabilityAssessmentScanState.cs | 97 +- ...lnerabilityAssessmentScanStateConverter.cs | 55 + .../VulnerabilityAssessmentScanTriggerType.cs | 95 +- ...ilityAssessmentScanTriggerTypeConverter.cs | 55 + .../Generated/Models/WorkloadClassifier.cs | 115 ++ .../src/Generated/Models/WorkloadGroup.cs | 114 ++ .../Generated/ReplicationLinksOperations.cs | 238 ++++ .../ReplicationLinksOperationsExtensions.cs | 114 ++ .../Generated/SdkInfo_SqlManagementClient.cs | 66 +- .../src/Generated/ServersOperations.cs | 239 ++++ .../Generated/ServersOperationsExtensions.cs | 96 ++ .../src/Generated/SqlManagementClient.cs | 44 +- .../src/Generated/SyncGroupsOperations.cs | 22 +- .../src/Generated/SyncMembersOperations.cs | 14 +- .../WorkloadClassifiersOperations.cs | 1188 +++++++++++++++++ ...WorkloadClassifiersOperationsExtensions.cs | 419 ++++++ .../src/Generated/WorkloadGroupsOperations.cs | 1146 ++++++++++++++++ .../WorkloadGroupsOperationsExtensions.cs | 383 ++++++ .../tests/ElasticJobAgentScenarioTests.cs | 2 +- .../tests/ImportExportScenarioTests.cs | 12 +- .../ManagedInstanceLongTermRetentionTests.cs | 4 +- .../Utilities/TestEnvironmentUtilities.cs | 3 +- 268 files changed, 19151 insertions(+), 2554 deletions(-) create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IImportExportOperations.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IWorkloadClassifiersOperations.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IWorkloadGroupsOperations.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ImportExportOperations.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ImportExportOperationsExtensions.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/AutoPauseDelayTimeRange.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/CapabilityGroupConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/CatalogCollationTypeConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/CreateModeConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseLicenseTypeConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseReadScaleConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState1Converter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState2Converter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState3Converter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState4Converter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState5Converter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState6Converter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseStatusConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolEditionConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolLicenseTypeConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolStateConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ExportDatabaseDefinition.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/FailoverGroupReplicationRoleConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/IdentityTypeConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ImportExistingDatabaseDefinition.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ImportExportOperationResult.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ImportNewDatabaseDefinition.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstanceFailoverGroupReplicationRoleConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstancePoolEditionCapability.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstancePoolFamilyCapability.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstancePoolLicenseTypeConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstancePoolVcoresCapability.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobAgentStateConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobExecutionLifecycleConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobStepActionSourceConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobStepActionTypeConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobStepOutputTypeConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobTargetTypeConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/LogSizeUnitConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/LongTermRetentionDatabaseStateConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedDatabaseCreateModeConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedDatabaseStatusConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceLicenseTypeConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstancePrivateLinkServiceConnectionStateProperty.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceProxyOverrideConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedServerCreateModeConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagementOperationStateConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/MaxSizeUnitConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/MinCapacityCapability.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/NetworkIsolationSettings.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/OperationOriginConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PauseDelayTimeUnit.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PauseDelayTimeUnitConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PerformanceLevelUnitConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrimaryAggregationTypeConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateEndpointConnectionRequestStatus.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateEndpointProvisioningStateConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateLinkServiceConnectionStateActionsRequireConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateLinkServiceConnectionStateStatusConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ProvisioningStateConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReadOnlyEndpointFailoverPolicyConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReadScaleCapability.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReadWriteEndpointFailoverPolicyConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReplicaTypeConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReplicationStateConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SampleNameConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServerKeyTypeConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServerPublicNetworkAccessConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServiceObjectiveNameConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/StorageAccountTypeConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/StorageKeyTypeConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncAgentStateConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncConflictResolutionPolicyConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncDirectionConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncGroupLogTypeConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncGroupStateConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncMemberDbTypeConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncMemberStateConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/TransparentDataEncryptionActivityStatusConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/UnitDefinitionTypeConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/UnitTypeConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/UnlinkParameters.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/VirtualNetworkRuleStateConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/VulnerabilityAssessmentScanStateConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/VulnerabilityAssessmentScanTriggerTypeConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/WorkloadClassifier.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/WorkloadGroup.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/WorkloadClassifiersOperations.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/WorkloadClassifiersOperationsExtensions.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/WorkloadGroupsOperations.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/WorkloadGroupsOperationsExtensions.cs diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/BackupShortTermRetentionPoliciesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/BackupShortTermRetentionPoliciesOperations.cs index b4519b7cbb98..e8c45d68f435 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/BackupShortTermRetentionPoliciesOperations.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/BackupShortTermRetentionPoliciesOperations.cs @@ -103,7 +103,7 @@ internal BackupShortTermRetentionPoliciesOperations(SqlManagementClient client) throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } string policyName = "default"; - string apiVersion = "2017-10-01-preview"; + string apiVersion = "2020-02-02-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -367,7 +367,7 @@ internal BackupShortTermRetentionPoliciesOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2017-10-01-preview"; + string apiVersion = "2020-02-02-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -579,7 +579,7 @@ internal BackupShortTermRetentionPoliciesOperations(SqlManagementClient client) throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } string policyName = "default"; - string apiVersion = "2017-10-01-preview"; + string apiVersion = "2020-02-02-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -800,7 +800,7 @@ internal BackupShortTermRetentionPoliciesOperations(SqlManagementClient client) throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } string policyName = "default"; - string apiVersion = "2017-10-01-preview"; + string apiVersion = "2020-02-02-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/CapabilitiesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/CapabilitiesOperations.cs index 9613b5960ba5..12c1138eaeb8 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/CapabilitiesOperations.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/CapabilitiesOperations.cs @@ -59,7 +59,8 @@ internal CapabilitiesOperations(SqlManagementClient client) /// /// If specified, restricts the response to only include the selected item. /// Possible values include: 'supportedEditions', - /// 'supportedElasticPoolEditions', 'supportedManagedInstanceVersions' + /// 'supportedElasticPoolEditions', 'supportedManagedInstanceVersions', + /// 'supportedInstancePoolEditions', 'supportedManagedInstanceEditions' /// /// /// Headers that will be added to request. @@ -82,7 +83,7 @@ internal CapabilitiesOperations(SqlManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> ListByLocationWithHttpMessagesAsync(string locationName, string include = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> ListByLocationWithHttpMessagesAsync(string locationName, CapabilityGroup? include = default(CapabilityGroup?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (locationName == null) { @@ -92,7 +93,7 @@ internal CapabilitiesOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2017-10-01-preview"; + string apiVersion = "2018-06-01-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -114,7 +115,7 @@ internal CapabilitiesOperations(SqlManagementClient client) List _queryParameters = new List(); if (include != null) { - _queryParameters.Add(string.Format("include={0}", System.Uri.EscapeDataString(include))); + _queryParameters.Add(string.Format("include={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(include, Client.SerializationSettings).Trim('"')))); } if (apiVersion != null) { diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/CapabilitiesOperationsExtensions.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/CapabilitiesOperationsExtensions.cs index f3aa65d865c3..70b9d5389404 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/CapabilitiesOperationsExtensions.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/CapabilitiesOperationsExtensions.cs @@ -33,9 +33,10 @@ public static partial class CapabilitiesOperationsExtensions /// /// If specified, restricts the response to only include the selected item. /// Possible values include: 'supportedEditions', - /// 'supportedElasticPoolEditions', 'supportedManagedInstanceVersions' + /// 'supportedElasticPoolEditions', 'supportedManagedInstanceVersions', + /// 'supportedInstancePoolEditions', 'supportedManagedInstanceEditions' /// - public static LocationCapabilities ListByLocation(this ICapabilitiesOperations operations, string locationName, string include = default(string)) + public static LocationCapabilities ListByLocation(this ICapabilitiesOperations operations, string locationName, CapabilityGroup? include = default(CapabilityGroup?)) { return operations.ListByLocationAsync(locationName, include).GetAwaiter().GetResult(); } @@ -52,12 +53,13 @@ public static partial class CapabilitiesOperationsExtensions /// /// If specified, restricts the response to only include the selected item. /// Possible values include: 'supportedEditions', - /// 'supportedElasticPoolEditions', 'supportedManagedInstanceVersions' + /// 'supportedElasticPoolEditions', 'supportedManagedInstanceVersions', + /// 'supportedInstancePoolEditions', 'supportedManagedInstanceEditions' /// /// /// The cancellation token. /// - public static async Task ListByLocationAsync(this ICapabilitiesOperations operations, string locationName, string include = default(string), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task ListByLocationAsync(this ICapabilitiesOperations operations, string locationName, CapabilityGroup? include = default(CapabilityGroup?), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByLocationWithHttpMessagesAsync(locationName, include, null, cancellationToken).ConfigureAwait(false)) { diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/DatabasesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/DatabasesOperations.cs index eb242f117df0..fcdff102849a 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/DatabasesOperations.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/DatabasesOperations.cs @@ -50,91 +50,6 @@ internal DatabasesOperations(SqlManagementClient client) /// public SqlManagementClient Client { get; private set; } - /// - /// Imports a bacpac into a new database. - /// - /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. - /// - /// - /// The name of the server. - /// - /// - /// The required parameters for importing a Bacpac into a database. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - public async Task> ImportWithHttpMessagesAsync(string resourceGroupName, string serverName, ImportRequest parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Send request - AzureOperationResponse _response = await BeginImportWithHttpMessagesAsync(resourceGroupName, serverName, parameters, customHeaders, cancellationToken).ConfigureAwait(false); - return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); - } - - /// - /// Creates an import operation that imports a bacpac into an existing - /// database. The existing database must be empty. - /// - /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. - /// - /// - /// The name of the server. - /// - /// - /// The name of the database to import into - /// - /// - /// The required parameters for importing a Bacpac into a database. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - public async Task> CreateImportOperationWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, ImportExtensionRequest parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Send Request - AzureOperationResponse _response = await BeginCreateImportOperationWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, parameters, customHeaders, cancellationToken).ConfigureAwait(false); - return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); - } - - /// - /// Exports a database to a bacpac. - /// - /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. - /// - /// - /// The name of the server. - /// - /// - /// The name of the database to be exported. - /// - /// - /// The required parameters for exporting a database. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - public async Task> ExportWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, ExportRequest parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Send request - AzureOperationResponse _response = await BeginExportWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, parameters, customHeaders, cancellationToken).ConfigureAwait(false); - return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); - } - /// /// Returns database metrics. /// @@ -1544,7 +1459,7 @@ internal DatabasesOperations(SqlManagementClient client) /// /// The cancellation token. /// - public async Task FailoverWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string replicaType = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task FailoverWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, ReplicaType? replicaType = default(ReplicaType?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { // Send request AzureOperationResponse _response = await BeginFailoverWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, replicaType, customHeaders, cancellationToken).ConfigureAwait(false); @@ -1552,7 +1467,36 @@ internal DatabasesOperations(SqlManagementClient client) } /// - /// Imports a bacpac into a new database. + /// Exports a database. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database. + /// + /// + /// The database export request parameters. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> ExportWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, ExportDatabaseDefinition parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginExportWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, parameters, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Creates a new database or updates an existing database. /// /// /// The name of the resource group that contains the resource. You can obtain @@ -1561,8 +1505,11 @@ internal DatabasesOperations(SqlManagementClient client) /// /// The name of the server. /// + /// + /// The name of the database. + /// /// - /// The required parameters for importing a Bacpac into a database. + /// The requested database resource state. /// /// /// Headers that will be added to request. @@ -1585,12 +1532,8 @@ internal DatabasesOperations(SqlManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> BeginImportWithHttpMessagesAsync(string resourceGroupName, string serverName, ImportRequest parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, Database parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.SubscriptionId == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); - } if (resourceGroupName == null) { throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); @@ -1599,6 +1542,10 @@ internal DatabasesOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "serverName"); } + if (databaseName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "databaseName"); + } if (parameters == null) { throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); @@ -1607,7 +1554,11 @@ internal DatabasesOperations(SqlManagementClient client) { parameters.Validate(); } - string apiVersion = "2014-04-01"; + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + string apiVersion = "2017-10-01-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1615,19 +1566,21 @@ internal DatabasesOperations(SqlManagementClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("apiVersion", apiVersion); tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("serverName", serverName); + tracingParameters.Add("databaseName", databaseName); tracingParameters.Add("parameters", parameters); + tracingParameters.Add("apiVersion", apiVersion); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "BeginImport", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "BeginCreateOrUpdate", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/import").ToString(); - _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}").ToString(); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); + _url = _url.Replace("{databaseName}", System.Uri.EscapeDataString(databaseName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); List _queryParameters = new List(); if (apiVersion != null) { @@ -1640,7 +1593,7 @@ internal DatabasesOperations(SqlManagementClient client) // Create HTTP transport objects var _httpRequest = new HttpRequestMessage(); HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.Method = new HttpMethod("PUT"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) @@ -1697,7 +1650,7 @@ internal DatabasesOperations(SqlManagementClient client) HttpStatusCode _statusCode = _httpResponse.StatusCode; cancellationToken.ThrowIfCancellationRequested(); string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 202) + if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) { var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try @@ -1732,7 +1685,7 @@ internal DatabasesOperations(SqlManagementClient client) throw ex; } // Create Result - var _result = new AzureOperationResponse(); + var _result = new AzureOperationResponse(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) @@ -1745,7 +1698,25 @@ internal DatabasesOperations(SqlManagementClient client) _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + // Deserialize Response + if ((int)_statusCode == 201) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); } catch (JsonException ex) { @@ -1765,8 +1736,7 @@ internal DatabasesOperations(SqlManagementClient client) } /// - /// Creates an import operation that imports a bacpac into an existing - /// database. The existing database must be empty. + /// Deletes the database. /// /// /// The name of the resource group that contains the resource. You can obtain @@ -1776,10 +1746,7 @@ internal DatabasesOperations(SqlManagementClient client) /// The name of the server. /// /// - /// The name of the database to import into - /// - /// - /// The required parameters for importing a Bacpac into a database. + /// The name of the database. /// /// /// Headers that will be added to request. @@ -1790,9 +1757,6 @@ internal DatabasesOperations(SqlManagementClient client) /// /// Thrown when the operation returned an invalid status code /// - /// - /// Thrown when unable to deserialize the response - /// /// /// Thrown when a required parameter is null /// @@ -1802,12 +1766,8 @@ internal DatabasesOperations(SqlManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> BeginCreateImportOperationWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, ImportExtensionRequest parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.SubscriptionId == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); - } if (resourceGroupName == null) { throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); @@ -1820,16 +1780,11 @@ internal DatabasesOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "databaseName"); } - if (parameters == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); - } - if (parameters != null) + if (Client.SubscriptionId == null) { - parameters.Validate(); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2014-04-01"; - string extensionName = "import"; + string apiVersion = "2017-10-01-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1837,23 +1792,20 @@ internal DatabasesOperations(SqlManagementClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("apiVersion", apiVersion); tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("serverName", serverName); tracingParameters.Add("databaseName", databaseName); - tracingParameters.Add("extensionName", extensionName); - tracingParameters.Add("parameters", parameters); + tracingParameters.Add("apiVersion", apiVersion); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "BeginCreateImportOperation", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "BeginDelete", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/extensions/{extensionName}").ToString(); - _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}").ToString(); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); _url = _url.Replace("{databaseName}", System.Uri.EscapeDataString(databaseName)); - _url = _url.Replace("{extensionName}", System.Uri.EscapeDataString(extensionName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); List _queryParameters = new List(); if (apiVersion != null) { @@ -1866,7 +1818,7 @@ internal DatabasesOperations(SqlManagementClient client) // Create HTTP transport objects var _httpRequest = new HttpRequestMessage(); HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PUT"); + _httpRequest.Method = new HttpMethod("DELETE"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) @@ -1897,12 +1849,6 @@ internal DatabasesOperations(SqlManagementClient client) // Serialize Request string _requestContent = null; - if(parameters != null) - { - _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, Client.SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } // Set Credentials if (Client.Credentials != null) { @@ -1923,7 +1869,7 @@ internal DatabasesOperations(SqlManagementClient client) HttpStatusCode _statusCode = _httpResponse.StatusCode; cancellationToken.ThrowIfCancellationRequested(); string _responseContent = null; - if ((int)_statusCode != 201 && (int)_statusCode != 202) + if ((int)_statusCode != 200 && (int)_statusCode != 202 && (int)_statusCode != 204) { var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try @@ -1958,31 +1904,13 @@ internal DatabasesOperations(SqlManagementClient client) throw ex; } // Create Result - var _result = new AzureOperationResponse(); + var _result = new AzureOperationResponse(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) { _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); } - // Deserialize Response - if ((int)_statusCode == 201) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } if (_shouldTrace) { ServiceClientTracing.Exit(_invocationId, _result); @@ -1991,7 +1919,7 @@ internal DatabasesOperations(SqlManagementClient client) } /// - /// Exports a database to a bacpac. + /// Updates an existing database. /// /// /// The name of the resource group that contains the resource. You can obtain @@ -2001,10 +1929,10 @@ internal DatabasesOperations(SqlManagementClient client) /// The name of the server. /// /// - /// The name of the database to be exported. + /// The name of the database. /// /// - /// The required parameters for exporting a database. + /// The requested database resource state. /// /// /// Headers that will be added to request. @@ -2027,12 +1955,8 @@ internal DatabasesOperations(SqlManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> BeginExportWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, ExportRequest parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, DatabaseUpdate parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.SubscriptionId == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); - } if (resourceGroupName == null) { throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); @@ -2049,11 +1973,11 @@ internal DatabasesOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); } - if (parameters != null) + if (Client.SubscriptionId == null) { - parameters.Validate(); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2014-04-01"; + string apiVersion = "2017-10-01-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2061,21 +1985,21 @@ internal DatabasesOperations(SqlManagementClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("apiVersion", apiVersion); tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("serverName", serverName); tracingParameters.Add("databaseName", databaseName); tracingParameters.Add("parameters", parameters); + tracingParameters.Add("apiVersion", apiVersion); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "BeginExport", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "BeginUpdate", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/export").ToString(); - _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}").ToString(); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); _url = _url.Replace("{databaseName}", System.Uri.EscapeDataString(databaseName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); List _queryParameters = new List(); if (apiVersion != null) { @@ -2088,7 +2012,7 @@ internal DatabasesOperations(SqlManagementClient client) // Create HTTP transport objects var _httpRequest = new HttpRequestMessage(); HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.Method = new HttpMethod("PATCH"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) @@ -2180,7 +2104,7 @@ internal DatabasesOperations(SqlManagementClient client) throw ex; } // Create Result - var _result = new AzureOperationResponse(); + var _result = new AzureOperationResponse(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) @@ -2193,7 +2117,7 @@ internal DatabasesOperations(SqlManagementClient client) _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); } catch (JsonException ex) { @@ -2213,7 +2137,7 @@ internal DatabasesOperations(SqlManagementClient client) } /// - /// Creates a new database or updates an existing database. + /// Pauses a database. /// /// /// The name of the resource group that contains the resource. You can obtain @@ -2223,10 +2147,7 @@ internal DatabasesOperations(SqlManagementClient client) /// The name of the server. /// /// - /// The name of the database. - /// - /// - /// The requested database resource state. + /// The name of the database to be paused. /// /// /// Headers that will be added to request. @@ -2249,7 +2170,7 @@ internal DatabasesOperations(SqlManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, Database parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> BeginPauseWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (resourceGroupName == null) { @@ -2263,14 +2184,6 @@ internal DatabasesOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "databaseName"); } - if (parameters == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); - } - if (parameters != null) - { - parameters.Validate(); - } if (Client.SubscriptionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); @@ -2286,14 +2199,13 @@ internal DatabasesOperations(SqlManagementClient client) tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("serverName", serverName); tracingParameters.Add("databaseName", databaseName); - tracingParameters.Add("parameters", parameters); tracingParameters.Add("apiVersion", apiVersion); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "BeginCreateOrUpdate", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "BeginPause", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/pause").ToString(); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); _url = _url.Replace("{databaseName}", System.Uri.EscapeDataString(databaseName)); @@ -2310,7 +2222,7 @@ internal DatabasesOperations(SqlManagementClient client) // Create HTTP transport objects var _httpRequest = new HttpRequestMessage(); HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PUT"); + _httpRequest.Method = new HttpMethod("POST"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) @@ -2341,433 +2253,8 @@ internal DatabasesOperations(SqlManagementClient client) // Serialize Request string _requestContent = null; - if(parameters != null) - { - _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, Client.SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Client.Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - try - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); - if (_errorBody != null) - { - ex = new CloudException(_errorBody.Message); - ex.Body = _errorBody; - } - } - catch (JsonException) - { - // Ignore the exception - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = new AzureOperationResponse(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - // Deserialize Response - if ((int)_statusCode == 201) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// Deletes the database. - /// - /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. - /// - /// - /// The name of the server. - /// - /// - /// The name of the database. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (resourceGroupName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); - } - if (serverName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "serverName"); - } - if (databaseName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "databaseName"); - } - if (Client.SubscriptionId == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); - } - string apiVersion = "2017-10-01-preview"; - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); - tracingParameters.Add("serverName", serverName); - tracingParameters.Add("databaseName", databaseName); - tracingParameters.Add("apiVersion", apiVersion); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "BeginDelete", tracingParameters); - } - // Construct URL - var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}").ToString(); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); - _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); - _url = _url.Replace("{databaseName}", System.Uri.EscapeDataString(databaseName)); - _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); - List _queryParameters = new List(); - if (apiVersion != null) - { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); - } - if (_queryParameters.Count > 0) - { - _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); - _httpRequest.RequestUri = new System.Uri(_url); - // Set Headers - if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) - { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); - } - if (Client.AcceptLanguage != null) - { - if (_httpRequest.Headers.Contains("accept-language")) - { - _httpRequest.Headers.Remove("accept-language"); - } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); - } - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - if (_httpRequest.Headers.Contains(_header.Key)) - { - _httpRequest.Headers.Remove(_header.Key); - } - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Client.Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 202 && (int)_statusCode != 204) - { - var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - try - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); - if (_errorBody != null) - { - ex = new CloudException(_errorBody.Message); - ex.Body = _errorBody; - } - } - catch (JsonException) - { - // Ignore the exception - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = new AzureOperationResponse(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// Updates an existing database. - /// - /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. - /// - /// - /// The name of the server. - /// - /// - /// The name of the database. - /// - /// - /// The requested database resource state. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, DatabaseUpdate parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (resourceGroupName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); - } - if (serverName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "serverName"); - } - if (databaseName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "databaseName"); - } - if (parameters == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); - } - if (Client.SubscriptionId == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); - } - string apiVersion = "2017-10-01-preview"; - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); - tracingParameters.Add("serverName", serverName); - tracingParameters.Add("databaseName", databaseName); - tracingParameters.Add("parameters", parameters); - tracingParameters.Add("apiVersion", apiVersion); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "BeginUpdate", tracingParameters); - } - // Construct URL - var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}").ToString(); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); - _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); - _url = _url.Replace("{databaseName}", System.Uri.EscapeDataString(databaseName)); - _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); - List _queryParameters = new List(); - if (apiVersion != null) - { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); - } - if (_queryParameters.Count > 0) - { - _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PATCH"); - _httpRequest.RequestUri = new System.Uri(_url); - // Set Headers - if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) - { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); - } - if (Client.AcceptLanguage != null) - { - if (_httpRequest.Headers.Contains("accept-language")) - { - _httpRequest.Headers.Remove("accept-language"); - } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); - } - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - if (_httpRequest.Headers.Contains(_header.Key)) - { - _httpRequest.Headers.Remove(_header.Key); - } - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(parameters != null) - { - _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, Client.SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Client.Credentials != null) + // Set Credentials + if (Client.Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); @@ -2854,7 +2341,7 @@ internal DatabasesOperations(SqlManagementClient client) } /// - /// Pauses a database. + /// Resumes a database. /// /// /// The name of the resource group that contains the resource. You can obtain @@ -2864,7 +2351,7 @@ internal DatabasesOperations(SqlManagementClient client) /// The name of the server. /// /// - /// The name of the database to be paused. + /// The name of the database to be resumed. /// /// /// Headers that will be added to request. @@ -2887,7 +2374,7 @@ internal DatabasesOperations(SqlManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> BeginPauseWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> BeginResumeWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (resourceGroupName == null) { @@ -2918,11 +2405,11 @@ internal DatabasesOperations(SqlManagementClient client) tracingParameters.Add("databaseName", databaseName); tracingParameters.Add("apiVersion", apiVersion); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "BeginPause", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "BeginResume", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/pause").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/resume").ToString(); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); _url = _url.Replace("{databaseName}", System.Uri.EscapeDataString(databaseName)); @@ -3058,7 +2545,7 @@ internal DatabasesOperations(SqlManagementClient client) } /// - /// Resumes a database. + /// Upgrades a data warehouse. /// /// /// The name of the resource group that contains the resource. You can obtain @@ -3068,7 +2555,7 @@ internal DatabasesOperations(SqlManagementClient client) /// The name of the server. /// /// - /// The name of the database to be resumed. + /// The name of the database to be upgraded. /// /// /// Headers that will be added to request. @@ -3079,9 +2566,6 @@ internal DatabasesOperations(SqlManagementClient client) /// /// Thrown when the operation returned an invalid status code /// - /// - /// Thrown when unable to deserialize the response - /// /// /// Thrown when a required parameter is null /// @@ -3091,7 +2575,7 @@ internal DatabasesOperations(SqlManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> BeginResumeWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task BeginUpgradeDataWarehouseWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (resourceGroupName == null) { @@ -3122,11 +2606,11 @@ internal DatabasesOperations(SqlManagementClient client) tracingParameters.Add("databaseName", databaseName); tracingParameters.Add("apiVersion", apiVersion); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "BeginResume", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "BeginUpgradeDataWarehouse", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/resume").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/upgradeDataWarehouse").ToString(); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); _url = _url.Replace("{databaseName}", System.Uri.EscapeDataString(databaseName)); @@ -3229,31 +2713,13 @@ internal DatabasesOperations(SqlManagementClient client) throw ex; } // Create Result - var _result = new AzureOperationResponse(); + var _result = new AzureOperationResponse(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) { _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); } - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } if (_shouldTrace) { ServiceClientTracing.Exit(_invocationId, _result); @@ -3262,7 +2728,7 @@ internal DatabasesOperations(SqlManagementClient client) } /// - /// Upgrades a data warehouse. + /// Failovers a database. /// /// /// The name of the resource group that contains the resource. You can obtain @@ -3272,7 +2738,11 @@ internal DatabasesOperations(SqlManagementClient client) /// The name of the server. /// /// - /// The name of the database to be upgraded. + /// The name of the database to failover. + /// + /// + /// The type of replica to be failed over. Possible values include: 'Primary', + /// 'ReadableSecondary' /// /// /// Headers that will be added to request. @@ -3292,7 +2762,7 @@ internal DatabasesOperations(SqlManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task BeginUpgradeDataWarehouseWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task BeginFailoverWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, ReplicaType? replicaType = default(ReplicaType?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (resourceGroupName == null) { @@ -3310,7 +2780,7 @@ internal DatabasesOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2017-10-01-preview"; + string apiVersion = "2018-06-01-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -3321,18 +2791,23 @@ internal DatabasesOperations(SqlManagementClient client) tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("serverName", serverName); tracingParameters.Add("databaseName", databaseName); + tracingParameters.Add("replicaType", replicaType); tracingParameters.Add("apiVersion", apiVersion); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "BeginUpgradeDataWarehouse", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "BeginFailover", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/upgradeDataWarehouse").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/failover").ToString(); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); _url = _url.Replace("{databaseName}", System.Uri.EscapeDataString(databaseName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); List _queryParameters = new List(); + if (replicaType != null) + { + _queryParameters.Add(string.Format("replicaType={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(replicaType, Client.SerializationSettings).Trim('"')))); + } if (apiVersion != null) { _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); @@ -3445,7 +2920,7 @@ internal DatabasesOperations(SqlManagementClient client) } /// - /// Failovers a database. + /// Exports a database. /// /// /// The name of the resource group that contains the resource. You can obtain @@ -3455,11 +2930,10 @@ internal DatabasesOperations(SqlManagementClient client) /// The name of the server. /// /// - /// The name of the database to failover. + /// The name of the database. /// - /// - /// The type of replica to be failed over. Possible values include: 'Primary', - /// 'ReadableSecondary' + /// + /// The database export request parameters. /// /// /// Headers that will be added to request. @@ -3470,6 +2944,9 @@ internal DatabasesOperations(SqlManagementClient client) /// /// Thrown when the operation returned an invalid status code /// + /// + /// Thrown when unable to deserialize the response + /// /// /// Thrown when a required parameter is null /// @@ -3479,7 +2956,7 @@ internal DatabasesOperations(SqlManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task BeginFailoverWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string replicaType = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> BeginExportWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, ExportDatabaseDefinition parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (resourceGroupName == null) { @@ -3493,11 +2970,19 @@ internal DatabasesOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "databaseName"); } + if (parameters == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); + } + if (parameters != null) + { + parameters.Validate(); + } if (Client.SubscriptionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2018-06-01-preview"; + string apiVersion = "2020-02-02-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -3508,23 +2993,19 @@ internal DatabasesOperations(SqlManagementClient client) tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("serverName", serverName); tracingParameters.Add("databaseName", databaseName); - tracingParameters.Add("replicaType", replicaType); + tracingParameters.Add("parameters", parameters); tracingParameters.Add("apiVersion", apiVersion); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "BeginFailover", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "BeginExport", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/failover").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/export").ToString(); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); _url = _url.Replace("{databaseName}", System.Uri.EscapeDataString(databaseName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); List _queryParameters = new List(); - if (replicaType != null) - { - _queryParameters.Add(string.Format("replicaType={0}", System.Uri.EscapeDataString(replicaType))); - } if (apiVersion != null) { _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); @@ -3567,6 +3048,12 @@ internal DatabasesOperations(SqlManagementClient client) // Serialize Request string _requestContent = null; + if(parameters != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } // Set Credentials if (Client.Credentials != null) { @@ -3622,13 +3109,31 @@ internal DatabasesOperations(SqlManagementClient client) throw ex; } // Create Result - var _result = new AzureOperationResponse(); + var _result = new AzureOperationResponse(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) { _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } if (_shouldTrace) { ServiceClientTracing.Exit(_invocationId, _result); diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/DatabasesOperationsExtensions.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/DatabasesOperationsExtensions.cs index b4ff8dbd583f..dbaf2023d0e7 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/DatabasesOperationsExtensions.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/DatabasesOperationsExtensions.cs @@ -23,164 +23,6 @@ namespace Microsoft.Azure.Management.Sql /// public static partial class DatabasesOperationsExtensions { - /// - /// Imports a bacpac into a new database. - /// - /// - /// The operations group for this extension method. - /// - /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. - /// - /// - /// The name of the server. - /// - /// - /// The required parameters for importing a Bacpac into a database. - /// - public static ImportExportResponse Import(this IDatabasesOperations operations, string resourceGroupName, string serverName, ImportRequest parameters) - { - return operations.ImportAsync(resourceGroupName, serverName, parameters).GetAwaiter().GetResult(); - } - - /// - /// Imports a bacpac into a new database. - /// - /// - /// The operations group for this extension method. - /// - /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. - /// - /// - /// The name of the server. - /// - /// - /// The required parameters for importing a Bacpac into a database. - /// - /// - /// The cancellation token. - /// - public static async Task ImportAsync(this IDatabasesOperations operations, string resourceGroupName, string serverName, ImportRequest parameters, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ImportWithHttpMessagesAsync(resourceGroupName, serverName, parameters, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// Creates an import operation that imports a bacpac into an existing - /// database. The existing database must be empty. - /// - /// - /// The operations group for this extension method. - /// - /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. - /// - /// - /// The name of the server. - /// - /// - /// The name of the database to import into - /// - /// - /// The required parameters for importing a Bacpac into a database. - /// - public static ImportExportResponse CreateImportOperation(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName, ImportExtensionRequest parameters) - { - return operations.CreateImportOperationAsync(resourceGroupName, serverName, databaseName, parameters).GetAwaiter().GetResult(); - } - - /// - /// Creates an import operation that imports a bacpac into an existing - /// database. The existing database must be empty. - /// - /// - /// The operations group for this extension method. - /// - /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. - /// - /// - /// The name of the server. - /// - /// - /// The name of the database to import into - /// - /// - /// The required parameters for importing a Bacpac into a database. - /// - /// - /// The cancellation token. - /// - public static async Task CreateImportOperationAsync(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName, ImportExtensionRequest parameters, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateImportOperationWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, parameters, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// Exports a database to a bacpac. - /// - /// - /// The operations group for this extension method. - /// - /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. - /// - /// - /// The name of the server. - /// - /// - /// The name of the database to be exported. - /// - /// - /// The required parameters for exporting a database. - /// - public static ImportExportResponse Export(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName, ExportRequest parameters) - { - return operations.ExportAsync(resourceGroupName, serverName, databaseName, parameters).GetAwaiter().GetResult(); - } - - /// - /// Exports a database to a bacpac. - /// - /// - /// The operations group for this extension method. - /// - /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. - /// - /// - /// The name of the server. - /// - /// - /// The name of the database to be exported. - /// - /// - /// The required parameters for exporting a database. - /// - /// - /// The cancellation token. - /// - public static async Task ExportAsync(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName, ExportRequest parameters, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ExportWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, parameters, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - /// /// Returns database metrics. /// @@ -786,7 +628,7 @@ public static void Rename(this IDatabasesOperations operations, string resourceG /// The type of replica to be failed over. Possible values include: 'Primary', /// 'ReadableSecondary' /// - public static void Failover(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName, string replicaType = default(string)) + public static void Failover(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName, ReplicaType? replicaType = default(ReplicaType?)) { operations.FailoverAsync(resourceGroupName, serverName, databaseName, replicaType).GetAwaiter().GetResult(); } @@ -814,117 +656,13 @@ public static void Rename(this IDatabasesOperations operations, string resourceG /// /// The cancellation token. /// - public static async Task FailoverAsync(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName, string replicaType = default(string), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task FailoverAsync(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName, ReplicaType? replicaType = default(ReplicaType?), CancellationToken cancellationToken = default(CancellationToken)) { (await operations.FailoverWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, replicaType, null, cancellationToken).ConfigureAwait(false)).Dispose(); } /// - /// Imports a bacpac into a new database. - /// - /// - /// The operations group for this extension method. - /// - /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. - /// - /// - /// The name of the server. - /// - /// - /// The required parameters for importing a Bacpac into a database. - /// - public static ImportExportResponse BeginImport(this IDatabasesOperations operations, string resourceGroupName, string serverName, ImportRequest parameters) - { - return operations.BeginImportAsync(resourceGroupName, serverName, parameters).GetAwaiter().GetResult(); - } - - /// - /// Imports a bacpac into a new database. - /// - /// - /// The operations group for this extension method. - /// - /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. - /// - /// - /// The name of the server. - /// - /// - /// The required parameters for importing a Bacpac into a database. - /// - /// - /// The cancellation token. - /// - public static async Task BeginImportAsync(this IDatabasesOperations operations, string resourceGroupName, string serverName, ImportRequest parameters, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.BeginImportWithHttpMessagesAsync(resourceGroupName, serverName, parameters, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// Creates an import operation that imports a bacpac into an existing - /// database. The existing database must be empty. - /// - /// - /// The operations group for this extension method. - /// - /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. - /// - /// - /// The name of the server. - /// - /// - /// The name of the database to import into - /// - /// - /// The required parameters for importing a Bacpac into a database. - /// - public static ImportExportResponse BeginCreateImportOperation(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName, ImportExtensionRequest parameters) - { - return operations.BeginCreateImportOperationAsync(resourceGroupName, serverName, databaseName, parameters).GetAwaiter().GetResult(); - } - - /// - /// Creates an import operation that imports a bacpac into an existing - /// database. The existing database must be empty. - /// - /// - /// The operations group for this extension method. - /// - /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. - /// - /// - /// The name of the server. - /// - /// - /// The name of the database to import into - /// - /// - /// The required parameters for importing a Bacpac into a database. - /// - /// - /// The cancellation token. - /// - public static async Task BeginCreateImportOperationAsync(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName, ImportExtensionRequest parameters, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.BeginCreateImportOperationWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, parameters, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// Exports a database to a bacpac. + /// Exports a database. /// /// /// The operations group for this extension method. @@ -937,18 +675,18 @@ public static ImportExportResponse BeginCreateImportOperation(this IDatabasesOpe /// The name of the server. /// /// - /// The name of the database to be exported. + /// The name of the database. /// /// - /// The required parameters for exporting a database. + /// The database export request parameters. /// - public static ImportExportResponse BeginExport(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName, ExportRequest parameters) + public static ImportExportOperationResult Export(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName, ExportDatabaseDefinition parameters) { - return operations.BeginExportAsync(resourceGroupName, serverName, databaseName, parameters).GetAwaiter().GetResult(); + return operations.ExportAsync(resourceGroupName, serverName, databaseName, parameters).GetAwaiter().GetResult(); } /// - /// Exports a database to a bacpac. + /// Exports a database. /// /// /// The operations group for this extension method. @@ -961,17 +699,17 @@ public static ImportExportResponse BeginExport(this IDatabasesOperations operati /// The name of the server. /// /// - /// The name of the database to be exported. + /// The name of the database. /// /// - /// The required parameters for exporting a database. + /// The database export request parameters. /// /// /// The cancellation token. /// - public static async Task BeginExportAsync(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName, ExportRequest parameters, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task ExportAsync(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName, ExportDatabaseDefinition parameters, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.BeginExportWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, parameters, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ExportWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, parameters, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -1291,7 +1029,7 @@ public static void BeginUpgradeDataWarehouse(this IDatabasesOperations operation /// The type of replica to be failed over. Possible values include: 'Primary', /// 'ReadableSecondary' /// - public static void BeginFailover(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName, string replicaType = default(string)) + public static void BeginFailover(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName, ReplicaType? replicaType = default(ReplicaType?)) { operations.BeginFailoverAsync(resourceGroupName, serverName, databaseName, replicaType).GetAwaiter().GetResult(); } @@ -1319,11 +1057,65 @@ public static void BeginUpgradeDataWarehouse(this IDatabasesOperations operation /// /// The cancellation token. /// - public static async Task BeginFailoverAsync(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName, string replicaType = default(string), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task BeginFailoverAsync(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName, ReplicaType? replicaType = default(ReplicaType?), CancellationToken cancellationToken = default(CancellationToken)) { (await operations.BeginFailoverWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, replicaType, null, cancellationToken).ConfigureAwait(false)).Dispose(); } + /// + /// Exports a database. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database. + /// + /// + /// The database export request parameters. + /// + public static ImportExportOperationResult BeginExport(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName, ExportDatabaseDefinition parameters) + { + return operations.BeginExportAsync(resourceGroupName, serverName, databaseName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Exports a database. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database. + /// + /// + /// The database export request parameters. + /// + /// + /// The cancellation token. + /// + public static async Task BeginExportAsync(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName, ExportDatabaseDefinition parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginExportWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + /// /// Gets a list of databases. /// diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ExtendedDatabaseBlobAuditingPoliciesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ExtendedDatabaseBlobAuditingPoliciesOperations.cs index 1c5ac942cb1f..31b9feff5f68 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ExtendedDatabaseBlobAuditingPoliciesOperations.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ExtendedDatabaseBlobAuditingPoliciesOperations.cs @@ -500,5 +500,382 @@ internal ExtendedDatabaseBlobAuditingPoliciesOperations(SqlManagementClient clie return _result; } + /// + /// Lists extended auditing settings of a database. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListByDatabaseWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (serverName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "serverName"); + } + if (databaseName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "databaseName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + string apiVersion = "2017-03-01-preview"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("serverName", serverName); + tracingParameters.Add("databaseName", databaseName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListByDatabase", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/extendedAuditingSettings").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); + _url = _url.Replace("{databaseName}", System.Uri.EscapeDataString(databaseName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Lists extended auditing settings of a database. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListByDatabaseNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (nextPageLink == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("nextPageLink", nextPageLink); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListByDatabaseNext", tracingParameters); + } + // Construct URL + string _url = "{nextLink}"; + _url = _url.Replace("{nextLink}", nextPageLink); + List _queryParameters = new List(); + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ExtendedDatabaseBlobAuditingPoliciesOperationsExtensions.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ExtendedDatabaseBlobAuditingPoliciesOperationsExtensions.cs index f07be7a5cf22..58645764ac82 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ExtendedDatabaseBlobAuditingPoliciesOperationsExtensions.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ExtendedDatabaseBlobAuditingPoliciesOperationsExtensions.cs @@ -123,5 +123,87 @@ public static ExtendedDatabaseBlobAuditingPolicy CreateOrUpdate(this IExtendedDa } } + /// + /// Lists extended auditing settings of a database. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database. + /// + public static IPage ListByDatabase(this IExtendedDatabaseBlobAuditingPoliciesOperations operations, string resourceGroupName, string serverName, string databaseName) + { + return operations.ListByDatabaseAsync(resourceGroupName, serverName, databaseName).GetAwaiter().GetResult(); + } + + /// + /// Lists extended auditing settings of a database. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByDatabaseAsync(this IExtendedDatabaseBlobAuditingPoliciesOperations operations, string resourceGroupName, string serverName, string databaseName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByDatabaseWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Lists extended auditing settings of a database. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListByDatabaseNext(this IExtendedDatabaseBlobAuditingPoliciesOperations operations, string nextPageLink) + { + return operations.ListByDatabaseNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Lists extended auditing settings of a database. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByDatabaseNextAsync(this IExtendedDatabaseBlobAuditingPoliciesOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByDatabaseNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ExtendedServerBlobAuditingPoliciesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ExtendedServerBlobAuditingPoliciesOperations.cs index 8828d0005573..f82314c69e2e 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ExtendedServerBlobAuditingPoliciesOperations.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ExtendedServerBlobAuditingPoliciesOperations.cs @@ -274,6 +274,201 @@ internal ExtendedServerBlobAuditingPoliciesOperations(SqlManagementClient client return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); } + /// + /// Lists extended auditing settings of a server. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListByServerWithHttpMessagesAsync(string resourceGroupName, string serverName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (serverName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "serverName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + string apiVersion = "2017-03-01-preview"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("serverName", serverName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListByServer", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/extendedAuditingSettings").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + /// /// Creates or updates an extended server's blob auditing policy. /// @@ -490,5 +685,178 @@ internal ExtendedServerBlobAuditingPoliciesOperations(SqlManagementClient client return _result; } + /// + /// Lists extended auditing settings of a server. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListByServerNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (nextPageLink == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("nextPageLink", nextPageLink); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListByServerNext", tracingParameters); + } + // Construct URL + string _url = "{nextLink}"; + _url = _url.Replace("{nextLink}", nextPageLink); + List _queryParameters = new List(); + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ExtendedServerBlobAuditingPoliciesOperationsExtensions.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ExtendedServerBlobAuditingPoliciesOperationsExtensions.cs index 257fcb968361..3d6509c3d1a1 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ExtendedServerBlobAuditingPoliciesOperationsExtensions.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ExtendedServerBlobAuditingPoliciesOperationsExtensions.cs @@ -111,6 +111,48 @@ public static ExtendedServerBlobAuditingPolicy CreateOrUpdate(this IExtendedServ } } + /// + /// Lists extended auditing settings of a server. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + public static IPage ListByServer(this IExtendedServerBlobAuditingPoliciesOperations operations, string resourceGroupName, string serverName) + { + return operations.ListByServerAsync(resourceGroupName, serverName).GetAwaiter().GetResult(); + } + + /// + /// Lists extended auditing settings of a server. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByServerAsync(this IExtendedServerBlobAuditingPoliciesOperations operations, string resourceGroupName, string serverName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByServerWithHttpMessagesAsync(resourceGroupName, serverName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + /// /// Creates or updates an extended server's blob auditing policy. /// @@ -159,5 +201,39 @@ public static ExtendedServerBlobAuditingPolicy BeginCreateOrUpdate(this IExtende } } + /// + /// Lists extended auditing settings of a server. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListByServerNext(this IExtendedServerBlobAuditingPoliciesOperations operations, string nextPageLink) + { + return operations.ListByServerNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Lists extended auditing settings of a server. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByServerNextAsync(this IExtendedServerBlobAuditingPoliciesOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByServerNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ICapabilitiesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ICapabilitiesOperations.cs index 645eee3314c0..ff5ce0000f3f 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ICapabilitiesOperations.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ICapabilitiesOperations.cs @@ -33,7 +33,8 @@ public partial interface ICapabilitiesOperations /// /// If specified, restricts the response to only include the selected /// item. Possible values include: 'supportedEditions', - /// 'supportedElasticPoolEditions', 'supportedManagedInstanceVersions' + /// 'supportedElasticPoolEditions', 'supportedManagedInstanceVersions', + /// 'supportedInstancePoolEditions', 'supportedManagedInstanceEditions' /// /// /// The headers that will be added to request. @@ -50,6 +51,6 @@ public partial interface ICapabilitiesOperations /// /// Thrown when a required parameter is null /// - Task> ListByLocationWithHttpMessagesAsync(string locationName, string include = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> ListByLocationWithHttpMessagesAsync(string locationName, CapabilityGroup? include = default(CapabilityGroup?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IDatabasesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IDatabasesOperations.cs index 289c62ebab5c..e235228400bc 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IDatabasesOperations.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IDatabasesOperations.cs @@ -23,103 +23,6 @@ namespace Microsoft.Azure.Management.Sql /// public partial interface IDatabasesOperations { - /// - /// Imports a bacpac into a new database. - /// - /// - /// The name of the resource group that contains the resource. You can - /// obtain this value from the Azure Resource Manager API or the - /// portal. - /// - /// - /// The name of the server. - /// - /// - /// The required parameters for importing a Bacpac into a database. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - Task> ImportWithHttpMessagesAsync(string resourceGroupName, string serverName, ImportRequest parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - /// - /// Creates an import operation that imports a bacpac into an existing - /// database. The existing database must be empty. - /// - /// - /// The name of the resource group that contains the resource. You can - /// obtain this value from the Azure Resource Manager API or the - /// portal. - /// - /// - /// The name of the server. - /// - /// - /// The name of the database to import into - /// - /// - /// The required parameters for importing a Bacpac into a database. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - Task> CreateImportOperationWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, ImportExtensionRequest parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - /// - /// Exports a database to a bacpac. - /// - /// - /// The name of the resource group that contains the resource. You can - /// obtain this value from the Azure Resource Manager API or the - /// portal. - /// - /// - /// The name of the server. - /// - /// - /// The name of the database to be exported. - /// - /// - /// The required parameters for exporting a database. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - Task> ExportWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, ExportRequest parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Returns database metrics. /// @@ -511,73 +414,9 @@ public partial interface IDatabasesOperations /// /// Thrown when a required parameter is null /// - Task FailoverWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string replicaType = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - /// - /// Imports a bacpac into a new database. - /// - /// - /// The name of the resource group that contains the resource. You can - /// obtain this value from the Azure Resource Manager API or the - /// portal. - /// - /// - /// The name of the server. - /// - /// - /// The required parameters for importing a Bacpac into a database. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - Task> BeginImportWithHttpMessagesAsync(string resourceGroupName, string serverName, ImportRequest parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - /// - /// Creates an import operation that imports a bacpac into an existing - /// database. The existing database must be empty. - /// - /// - /// The name of the resource group that contains the resource. You can - /// obtain this value from the Azure Resource Manager API or the - /// portal. - /// - /// - /// The name of the server. - /// - /// - /// The name of the database to import into - /// - /// - /// The required parameters for importing a Bacpac into a database. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - Task> BeginCreateImportOperationWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, ImportExtensionRequest parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task FailoverWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, ReplicaType? replicaType = default(ReplicaType?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Exports a database to a bacpac. + /// Exports a database. /// /// /// The name of the resource group that contains the resource. You can @@ -588,10 +427,10 @@ public partial interface IDatabasesOperations /// The name of the server. /// /// - /// The name of the database to be exported. + /// The name of the database. /// /// - /// The required parameters for exporting a database. + /// The database export request parameters. /// /// /// The headers that will be added to request. @@ -608,7 +447,7 @@ public partial interface IDatabasesOperations /// /// Thrown when a required parameter is null /// - Task> BeginExportWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, ExportRequest parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> ExportWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, ExportDatabaseDefinition parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Creates a new database or updates an existing database. /// @@ -819,7 +658,40 @@ public partial interface IDatabasesOperations /// /// Thrown when a required parameter is null /// - Task BeginFailoverWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string replicaType = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task BeginFailoverWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, ReplicaType? replicaType = default(ReplicaType?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Exports a database. + /// + /// + /// The name of the resource group that contains the resource. You can + /// obtain this value from the Azure Resource Manager API or the + /// portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database. + /// + /// + /// The database export request parameters. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> BeginExportWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, ExportDatabaseDefinition parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Gets a list of databases. /// diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IExtendedDatabaseBlobAuditingPoliciesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IExtendedDatabaseBlobAuditingPoliciesOperations.cs index 5517ca93c9a7..a98f84875167 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IExtendedDatabaseBlobAuditingPoliciesOperations.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IExtendedDatabaseBlobAuditingPoliciesOperations.cs @@ -86,5 +86,57 @@ public partial interface IExtendedDatabaseBlobAuditingPoliciesOperations /// Thrown when a required parameter is null /// Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, ExtendedDatabaseBlobAuditingPolicy parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Lists extended auditing settings of a database. + /// + /// + /// The name of the resource group that contains the resource. You can + /// obtain this value from the Azure Resource Manager API or the + /// portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListByDatabaseWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Lists extended auditing settings of a database. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListByDatabaseNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IExtendedServerBlobAuditingPoliciesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IExtendedServerBlobAuditingPoliciesOperations.cs index c2117ff6d9f3..5be793c26674 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IExtendedServerBlobAuditingPoliciesOperations.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IExtendedServerBlobAuditingPoliciesOperations.cs @@ -81,6 +81,33 @@ public partial interface IExtendedServerBlobAuditingPoliciesOperations /// Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string serverName, ExtendedServerBlobAuditingPolicy parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// + /// Lists extended auditing settings of a server. + /// + /// + /// The name of the resource group that contains the resource. You can + /// obtain this value from the Azure Resource Manager API or the + /// portal. + /// + /// + /// The name of the server. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListByServerWithHttpMessagesAsync(string resourceGroupName, string serverName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// /// Creates or updates an extended server's blob auditing policy. /// /// @@ -110,5 +137,27 @@ public partial interface IExtendedServerBlobAuditingPoliciesOperations /// Thrown when a required parameter is null /// Task> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string serverName, ExtendedServerBlobAuditingPolicy parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Lists extended auditing settings of a server. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListByServerNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IImportExportOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IImportExportOperations.cs new file mode 100644 index 000000000000..7fe33a73c74d --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IImportExportOperations.cs @@ -0,0 +1,93 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// ImportExportOperations operations. + /// + public partial interface IImportExportOperations + { + /// + /// Imports a bacpac into a new database. + /// + /// + /// The name of the resource group that contains the resource. You can + /// obtain this value from the Azure Resource Manager API or the + /// portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database. + /// + /// + /// The database import request parameters. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> ImportWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, ImportExistingDatabaseDefinition parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Imports a bacpac into a new database. + /// + /// + /// The name of the resource group that contains the resource. You can + /// obtain this value from the Azure Resource Manager API or the + /// portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database. + /// + /// + /// The database import request parameters. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> BeginImportWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, ImportExistingDatabaseDefinition parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ILongTermRetentionBackupsOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ILongTermRetentionBackupsOperations.cs index 8a567523d58e..9b3dfddd5625 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ILongTermRetentionBackupsOperations.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ILongTermRetentionBackupsOperations.cs @@ -132,7 +132,7 @@ public partial interface ILongTermRetentionBackupsOperations /// /// Thrown when a required parameter is null /// - Task>> ListByResourceGroupDatabaseWithHttpMessagesAsync(string resourceGroupName, string locationName, string longTermRetentionServerName, string longTermRetentionDatabaseName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListByResourceGroupDatabaseWithHttpMessagesAsync(string resourceGroupName, string locationName, string longTermRetentionServerName, string longTermRetentionDatabaseName, bool? onlyLatestPerDatabase = default(bool?), LongTermRetentionDatabaseState? databaseState = default(LongTermRetentionDatabaseState?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Lists the long term retention backups for a given location. /// @@ -167,7 +167,7 @@ public partial interface ILongTermRetentionBackupsOperations /// /// Thrown when a required parameter is null /// - Task>> ListByResourceGroupLocationWithHttpMessagesAsync(string resourceGroupName, string locationName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListByResourceGroupLocationWithHttpMessagesAsync(string resourceGroupName, string locationName, bool? onlyLatestPerDatabase = default(bool?), LongTermRetentionDatabaseState? databaseState = default(LongTermRetentionDatabaseState?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Lists the long term retention backups for a given server. /// @@ -205,7 +205,7 @@ public partial interface ILongTermRetentionBackupsOperations /// /// Thrown when a required parameter is null /// - Task>> ListByResourceGroupServerWithHttpMessagesAsync(string resourceGroupName, string locationName, string longTermRetentionServerName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListByResourceGroupServerWithHttpMessagesAsync(string resourceGroupName, string locationName, string longTermRetentionServerName, bool? onlyLatestPerDatabase = default(bool?), LongTermRetentionDatabaseState? databaseState = default(LongTermRetentionDatabaseState?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Gets a long term retention backup. /// @@ -300,7 +300,7 @@ public partial interface ILongTermRetentionBackupsOperations /// /// Thrown when a required parameter is null /// - Task>> ListByDatabaseWithHttpMessagesAsync(string locationName, string longTermRetentionServerName, string longTermRetentionDatabaseName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListByDatabaseWithHttpMessagesAsync(string locationName, string longTermRetentionServerName, string longTermRetentionDatabaseName, bool? onlyLatestPerDatabase = default(bool?), LongTermRetentionDatabaseState? databaseState = default(LongTermRetentionDatabaseState?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Lists the long term retention backups for a given location. /// @@ -330,7 +330,7 @@ public partial interface ILongTermRetentionBackupsOperations /// /// Thrown when a required parameter is null /// - Task>> ListByLocationWithHttpMessagesAsync(string locationName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListByLocationWithHttpMessagesAsync(string locationName, bool? onlyLatestPerDatabase = default(bool?), LongTermRetentionDatabaseState? databaseState = default(LongTermRetentionDatabaseState?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Lists the long term retention backups for a given server. /// @@ -363,7 +363,7 @@ public partial interface ILongTermRetentionBackupsOperations /// /// Thrown when a required parameter is null /// - Task>> ListByServerWithHttpMessagesAsync(string locationName, string longTermRetentionServerName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListByServerWithHttpMessagesAsync(string locationName, string longTermRetentionServerName, bool? onlyLatestPerDatabase = default(bool?), LongTermRetentionDatabaseState? databaseState = default(LongTermRetentionDatabaseState?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Deletes a long term retention backup. /// diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ILongTermRetentionManagedInstanceBackupsOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ILongTermRetentionManagedInstanceBackupsOperations.cs index 624ead6cd7af..fbd553d5d1f0 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ILongTermRetentionManagedInstanceBackupsOperations.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ILongTermRetentionManagedInstanceBackupsOperations.cs @@ -117,7 +117,7 @@ public partial interface ILongTermRetentionManagedInstanceBackupsOperations /// /// Thrown when a required parameter is null /// - Task>> ListByDatabaseWithHttpMessagesAsync(string locationName, string managedInstanceName, string databaseName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListByDatabaseWithHttpMessagesAsync(string locationName, string managedInstanceName, string databaseName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState1? databaseState = default(DatabaseState1?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Lists the long term retention backups for a given managed instance. /// @@ -150,7 +150,7 @@ public partial interface ILongTermRetentionManagedInstanceBackupsOperations /// /// Thrown when a required parameter is null /// - Task>> ListByInstanceWithHttpMessagesAsync(string locationName, string managedInstanceName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListByInstanceWithHttpMessagesAsync(string locationName, string managedInstanceName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState2? databaseState = default(DatabaseState2?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Lists the long term retention backups for managed databases in a /// given location. @@ -181,7 +181,7 @@ public partial interface ILongTermRetentionManagedInstanceBackupsOperations /// /// Thrown when a required parameter is null /// - Task>> ListByLocationWithHttpMessagesAsync(string locationName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListByLocationWithHttpMessagesAsync(string locationName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState3? databaseState = default(DatabaseState3?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Gets a long term retention backup for a managed database. /// @@ -291,7 +291,7 @@ public partial interface ILongTermRetentionManagedInstanceBackupsOperations /// /// Thrown when a required parameter is null /// - Task>> ListByResourceGroupDatabaseWithHttpMessagesAsync(string resourceGroupName, string locationName, string managedInstanceName, string databaseName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListByResourceGroupDatabaseWithHttpMessagesAsync(string resourceGroupName, string locationName, string managedInstanceName, string databaseName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState4? databaseState = default(DatabaseState4?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Lists the long term retention backups for a given managed instance. /// @@ -329,7 +329,7 @@ public partial interface ILongTermRetentionManagedInstanceBackupsOperations /// /// Thrown when a required parameter is null /// - Task>> ListByResourceGroupInstanceWithHttpMessagesAsync(string resourceGroupName, string locationName, string managedInstanceName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListByResourceGroupInstanceWithHttpMessagesAsync(string resourceGroupName, string locationName, string managedInstanceName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState5? databaseState = default(DatabaseState5?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Lists the long term retention backups for managed databases in a /// given location. @@ -365,7 +365,7 @@ public partial interface ILongTermRetentionManagedInstanceBackupsOperations /// /// Thrown when a required parameter is null /// - Task>> ListByResourceGroupLocationWithHttpMessagesAsync(string resourceGroupName, string locationName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListByResourceGroupLocationWithHttpMessagesAsync(string resourceGroupName, string locationName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState6? databaseState = default(DatabaseState6?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Deletes a long term retention backup. /// diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IManagedDatabaseRestoreDetailsOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IManagedDatabaseRestoreDetailsOperations.cs index 3c30a767bee9..ae49842a72f4 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IManagedDatabaseRestoreDetailsOperations.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IManagedDatabaseRestoreDetailsOperations.cs @@ -27,9 +27,7 @@ public partial interface IManagedDatabaseRestoreDetailsOperations /// Gets managed database restore details. /// /// - /// The name of the resource group that contains the resource. You can - /// obtain this value from the Azure Resource Manager API or the - /// portal. + /// The name of the resource group. The name is case insensitive. /// /// /// The name of the managed instance. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IManagedDatabasesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IManagedDatabasesOperations.cs index 1acfed0f05df..29537446582d 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IManagedDatabasesOperations.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IManagedDatabasesOperations.cs @@ -27,9 +27,7 @@ public partial interface IManagedDatabasesOperations /// Gets a list of managed databases. /// /// - /// The name of the resource group that contains the resource. You can - /// obtain this value from the Azure Resource Manager API or the - /// portal. + /// The name of the resource group. The name is case insensitive. /// /// /// The name of the managed instance. @@ -54,9 +52,7 @@ public partial interface IManagedDatabasesOperations /// Gets a managed database. /// /// - /// The name of the resource group that contains the resource. You can - /// obtain this value from the Azure Resource Manager API or the - /// portal. + /// The name of the resource group. The name is case insensitive. /// /// /// The name of the managed instance. @@ -84,9 +80,7 @@ public partial interface IManagedDatabasesOperations /// Creates a new database or updates an existing database. /// /// - /// The name of the resource group that contains the resource. You can - /// obtain this value from the Azure Resource Manager API or the - /// portal. + /// The name of the resource group. The name is case insensitive. /// /// /// The name of the managed instance. @@ -117,9 +111,7 @@ public partial interface IManagedDatabasesOperations /// Deletes a managed database. /// /// - /// The name of the resource group that contains the resource. You can - /// obtain this value from the Azure Resource Manager API or the - /// portal. + /// The name of the resource group. The name is case insensitive. /// /// /// The name of the managed instance. @@ -144,9 +136,7 @@ public partial interface IManagedDatabasesOperations /// Updates an existing database. /// /// - /// The name of the resource group that contains the resource. You can - /// obtain this value from the Azure Resource Manager API or the - /// portal. + /// The name of the resource group. The name is case insensitive. /// /// /// The name of the managed instance. @@ -174,12 +164,35 @@ public partial interface IManagedDatabasesOperations /// Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, string databaseName, ManagedDatabaseUpdate parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// + /// Gets a list of inaccessible managed databases in a managed instance + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the managed instance. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListInaccessibleByInstanceWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// /// Completes the restore operation on a managed database. /// /// - /// The name of the resource group that contains the resource. You can - /// obtain this value from the Azure Resource Manager API or the - /// portal. + /// The name of the resource group. The name is case insensitive. /// /// /// The name of the managed instance. @@ -207,9 +220,7 @@ public partial interface IManagedDatabasesOperations /// Creates a new database or updates an existing database. /// /// - /// The name of the resource group that contains the resource. You can - /// obtain this value from the Azure Resource Manager API or the - /// portal. + /// The name of the resource group. The name is case insensitive. /// /// /// The name of the managed instance. @@ -240,9 +251,7 @@ public partial interface IManagedDatabasesOperations /// Deletes a managed database. /// /// - /// The name of the resource group that contains the resource. You can - /// obtain this value from the Azure Resource Manager API or the - /// portal. + /// The name of the resource group. The name is case insensitive. /// /// /// The name of the managed instance. @@ -267,9 +276,7 @@ public partial interface IManagedDatabasesOperations /// Updates an existing database. /// /// - /// The name of the resource group that contains the resource. You can - /// obtain this value from the Azure Resource Manager API or the - /// portal. + /// The name of the resource group. The name is case insensitive. /// /// /// The name of the managed instance. @@ -300,9 +307,7 @@ public partial interface IManagedDatabasesOperations /// Completes the restore operation on a managed database. /// /// - /// The name of the resource group that contains the resource. You can - /// obtain this value from the Azure Resource Manager API or the - /// portal. + /// The name of the resource group. The name is case insensitive. /// /// /// The name of the managed instance. @@ -348,5 +353,27 @@ public partial interface IManagedDatabasesOperations /// Thrown when a required parameter is null /// Task>> ListByInstanceNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets a list of inaccessible managed databases in a managed instance + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListInaccessibleByInstanceNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IManagedInstancesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IManagedInstancesOperations.cs index 7b27b7f78d56..f427b0e42b81 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IManagedInstancesOperations.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IManagedInstancesOperations.cs @@ -24,15 +24,17 @@ namespace Microsoft.Azure.Management.Sql public partial interface IManagedInstancesOperations { /// - /// Gets a list of all managed instances in an instance pool. + /// Failovers a managed instance. /// /// - /// The name of the resource group that contains the resource. You can - /// obtain this value from the Azure Resource Manager API or the - /// portal. + /// The name of the resource group. The name is case insensitive. /// - /// - /// The instance pool name. + /// + /// The name of the managed instance. + /// + /// + /// The type of replica to be failed over. Possible values include: + /// 'Primary', 'ReadableSecondary' /// /// /// The headers that will be added to request. @@ -43,13 +45,10 @@ public partial interface IManagedInstancesOperations /// /// Thrown when the operation returned an invalid status code /// - /// - /// Thrown when unable to deserialize the response - /// /// /// Thrown when a required parameter is null /// - Task>> ListByInstancePoolWithHttpMessagesAsync(string resourceGroupName, string instancePoolName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task FailoverWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, ReplicaType? replicaType = default(ReplicaType?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Gets a list of managed instances in a resource group. /// @@ -186,6 +185,33 @@ public partial interface IManagedInstancesOperations /// Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, ManagedInstanceUpdate parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// + /// Gets a list of all managed instances in an instance pool. + /// + /// + /// The name of the resource group that contains the resource. You can + /// obtain this value from the Azure Resource Manager API or the + /// portal. + /// + /// + /// The instance pool name. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListByInstancePoolWithHttpMessagesAsync(string resourceGroupName, string instancePoolName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// /// Gets a list of all managed instances in the subscription. /// /// @@ -229,7 +255,7 @@ public partial interface IManagedInstancesOperations /// /// Thrown when a required parameter is null /// - Task FailoverWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, string replicaType = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task BeginFailoverWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, ReplicaType? replicaType = default(ReplicaType?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Creates or updates a managed instance. /// @@ -314,34 +340,8 @@ public partial interface IManagedInstancesOperations /// Thrown when a required parameter is null /// Task> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, ManagedInstanceUpdate parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - /// - /// Failovers a managed instance. - /// - /// - /// The name of the resource group. The name is case insensitive. - /// - /// - /// The name of the managed instance. - /// - /// - /// The type of replica to be failed over. Possible values include: - /// 'Primary', 'ReadableSecondary' - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when a required parameter is null - /// - Task BeginFailoverWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, string replicaType = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Gets a list of all managed instances in an instance pool. + /// Gets a list of managed instances in a resource group. /// /// /// The NextLink from the previous successful call to List operation. @@ -361,9 +361,9 @@ public partial interface IManagedInstancesOperations /// /// Thrown when a required parameter is null /// - Task>> ListByInstancePoolNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListByResourceGroupNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Gets a list of managed instances in a resource group. + /// Gets a list of all managed instances in an instance pool. /// /// /// The NextLink from the previous successful call to List operation. @@ -383,7 +383,7 @@ public partial interface IManagedInstancesOperations /// /// Thrown when a required parameter is null /// - Task>> ListByResourceGroupNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListByInstancePoolNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Gets a list of all managed instances in the subscription. /// diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IReplicationLinksOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IReplicationLinksOperations.cs index 7d12e91bed9b..7948b2f9f559 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IReplicationLinksOperations.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IReplicationLinksOperations.cs @@ -154,6 +154,40 @@ public partial interface IReplicationLinksOperations /// Task FailoverAllowDataLossWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string linkId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// + /// Deletes a database replication link in forced or friendly way. + /// + /// + /// The name of the resource group that contains the resource. You can + /// obtain this value from the Azure Resource Manager API or the + /// portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database that has the replication link to be failed + /// over. + /// + /// + /// The ID of the replication link to be failed over. + /// + /// + /// The required parameters for unlinking replication link. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + Task UnlinkWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string linkId, UnlinkParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// /// Lists a database's replication links. /// /// @@ -248,5 +282,39 @@ public partial interface IReplicationLinksOperations /// Thrown when a required parameter is null /// Task BeginFailoverAllowDataLossWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string linkId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deletes a database replication link in forced or friendly way. + /// + /// + /// The name of the resource group that contains the resource. You can + /// obtain this value from the Azure Resource Manager API or the + /// portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database that has the replication link to be failed + /// over. + /// + /// + /// The ID of the replication link to be failed over. + /// + /// + /// The required parameters for unlinking replication link. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + Task BeginUnlinkWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string linkId, UnlinkParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IServersOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IServersOperations.cs index 8d91a80b7962..591f10e968ab 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IServersOperations.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IServersOperations.cs @@ -201,6 +201,36 @@ public partial interface IServersOperations /// Task> CheckNameAvailabilityWithHttpMessagesAsync(CheckNameAvailabilityRequest parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// + /// Imports a bacpac into a new database. + /// + /// + /// The name of the resource group that contains the resource. You can + /// obtain this value from the Azure Resource Manager API or the + /// portal. + /// + /// + /// The name of the server. + /// + /// + /// The database import request parameters. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> ImportDatabaseWithHttpMessagesAsync(string resourceGroupName, string serverName, ImportNewDatabaseDefinition parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// /// Creates or updates a server. /// /// @@ -285,6 +315,36 @@ public partial interface IServersOperations /// Task> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string serverName, ServerUpdate parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// + /// Imports a bacpac into a new database. + /// + /// + /// The name of the resource group that contains the resource. You can + /// obtain this value from the Azure Resource Manager API or the + /// portal. + /// + /// + /// The name of the server. + /// + /// + /// The database import request parameters. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> BeginImportDatabaseWithHttpMessagesAsync(string resourceGroupName, string serverName, ImportNewDatabaseDefinition parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// /// Gets a list of servers in a resource groups. /// /// diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ISqlManagementClient.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ISqlManagementClient.cs index 5eb4da34edc5..07d6c9907662 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ISqlManagementClient.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ISqlManagementClient.cs @@ -49,20 +49,19 @@ public partial interface ISqlManagementClient : System.IDisposable string SubscriptionId { get; set; } /// - /// The preferred language for the response. + /// Gets or sets the preferred language for the response. /// string AcceptLanguage { get; set; } /// - /// The retry timeout in seconds for Long Running Operations. Default - /// value is 30. + /// Gets or sets the retry timeout in seconds for Long Running + /// Operations. Default value is 30. /// int? LongRunningOperationRetryTimeout { get; set; } /// - /// Whether a unique x-ms-client-request-id should be generated. When - /// set to true a unique x-ms-client-request-id value is generated and - /// included in each request. Default is true. + /// When set to true a unique x-ms-client-request-id value is generated + /// and included in each request. Default is true. /// bool? GenerateClientRequestId { get; set; } @@ -202,16 +201,6 @@ public partial interface ISqlManagementClient : System.IDisposable /// ISyncAgentsOperations SyncAgents { get; } - /// - /// Gets the ISyncGroupsOperations. - /// - ISyncGroupsOperations SyncGroups { get; } - - /// - /// Gets the ISyncMembersOperations. - /// - ISyncMembersOperations SyncMembers { get; } - /// /// Gets the ISubscriptionUsagesOperations. /// @@ -402,11 +391,6 @@ public partial interface ISqlManagementClient : System.IDisposable /// IInstanceFailoverGroupsOperations InstanceFailoverGroups { get; } - /// - /// Gets the IBackupShortTermRetentionPoliciesOperations. - /// - IBackupShortTermRetentionPoliciesOperations BackupShortTermRetentionPolicies { get; } - /// /// Gets the ITdeCertificatesOperations. /// @@ -457,11 +441,6 @@ public partial interface ISqlManagementClient : System.IDisposable /// IUsagesOperations Usages { get; } - /// - /// Gets the IManagedInstancesOperations. - /// - IManagedInstancesOperations ManagedInstances { get; } - /// /// Gets the IPrivateEndpointConnectionsOperations. /// @@ -492,6 +471,46 @@ public partial interface ISqlManagementClient : System.IDisposable /// IManagedInstanceLongTermRetentionPoliciesOperations ManagedInstanceLongTermRetentionPolicies { get; } + /// + /// Gets the IWorkloadGroupsOperations. + /// + IWorkloadGroupsOperations WorkloadGroups { get; } + + /// + /// Gets the IWorkloadClassifiersOperations. + /// + IWorkloadClassifiersOperations WorkloadClassifiers { get; } + + /// + /// Gets the IManagedInstanceOperations. + /// + IManagedInstanceOperations ManagedInstanceOperations { get; } + + /// + /// Gets the IServerAzureADAdministratorsOperations. + /// + IServerAzureADAdministratorsOperations ServerAzureADAdministrators { get; } + + /// + /// Gets the ISyncGroupsOperations. + /// + ISyncGroupsOperations SyncGroups { get; } + + /// + /// Gets the ISyncMembersOperations. + /// + ISyncMembersOperations SyncMembers { get; } + + /// + /// Gets the IManagedInstancesOperations. + /// + IManagedInstancesOperations ManagedInstances { get; } + + /// + /// Gets the IBackupShortTermRetentionPoliciesOperations. + /// + IBackupShortTermRetentionPoliciesOperations BackupShortTermRetentionPolicies { get; } + /// /// Gets the IManagedDatabaseRestoreDetailsOperations. /// @@ -503,14 +522,14 @@ public partial interface ISqlManagementClient : System.IDisposable IManagedDatabasesOperations ManagedDatabases { get; } /// - /// Gets the IServerAzureADAdministratorsOperations. + /// Gets the IServerAzureADOnlyAuthenticationsOperations. /// - IServerAzureADAdministratorsOperations ServerAzureADAdministrators { get; } + IServerAzureADOnlyAuthenticationsOperations ServerAzureADOnlyAuthentications { get; } /// - /// Gets the IManagedInstanceOperations. + /// Gets the IImportExportOperations. /// - IManagedInstanceOperations ManagedInstanceOperations { get; } + IImportExportOperations ImportExport { get; } /// /// Gets the IManagedInstanceAzureADOnlyAuthenticationsOperations. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IWorkloadClassifiersOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IWorkloadClassifiersOperations.cs new file mode 100644 index 000000000000..c0e39d85d163 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IWorkloadClassifiersOperations.cs @@ -0,0 +1,268 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// WorkloadClassifiersOperations operations. + /// + public partial interface IWorkloadClassifiersOperations + { + /// + /// Gets a workload classifier + /// + /// + /// The name of the resource group that contains the resource. You can + /// obtain this value from the Azure Resource Manager API or the + /// portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database. + /// + /// + /// The name of the workload group from which to receive the classifier + /// from. + /// + /// + /// The name of the workload classifier. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> GetWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string workloadGroupName, string workloadClassifierName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Creates or updates a workload classifier. + /// + /// + /// The name of the resource group that contains the resource. You can + /// obtain this value from the Azure Resource Manager API or the + /// portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database. + /// + /// + /// The name of the workload group from which to receive the classifier + /// from. + /// + /// + /// The name of the workload classifier to create/update. + /// + /// + /// The properties of the workload classifier. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string workloadGroupName, string workloadClassifierName, WorkloadClassifier parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deletes a workload classifier. + /// + /// + /// The name of the resource group that contains the resource. You can + /// obtain this value from the Azure Resource Manager API or the + /// portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database. + /// + /// + /// The name of the workload group from which to receive the classifier + /// from. + /// + /// + /// The name of the workload classifier to delete. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + Task DeleteWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string workloadGroupName, string workloadClassifierName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets the list of workload classifiers for a workload group + /// + /// + /// The name of the resource group that contains the resource. You can + /// obtain this value from the Azure Resource Manager API or the + /// portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database. + /// + /// + /// The name of the workload group from which to receive the + /// classifiers from. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListByWorkloadGroupWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string workloadGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Creates or updates a workload classifier. + /// + /// + /// The name of the resource group that contains the resource. You can + /// obtain this value from the Azure Resource Manager API or the + /// portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database. + /// + /// + /// The name of the workload group from which to receive the classifier + /// from. + /// + /// + /// The name of the workload classifier to create/update. + /// + /// + /// The properties of the workload classifier. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string workloadGroupName, string workloadClassifierName, WorkloadClassifier parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deletes a workload classifier. + /// + /// + /// The name of the resource group that contains the resource. You can + /// obtain this value from the Azure Resource Manager API or the + /// portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database. + /// + /// + /// The name of the workload group from which to receive the classifier + /// from. + /// + /// + /// The name of the workload classifier to delete. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string workloadGroupName, string workloadClassifierName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets the list of workload classifiers for a workload group + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListByWorkloadGroupNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IWorkloadGroupsOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IWorkloadGroupsOperations.cs new file mode 100644 index 000000000000..9c2dbda017d9 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IWorkloadGroupsOperations.cs @@ -0,0 +1,244 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// WorkloadGroupsOperations operations. + /// + public partial interface IWorkloadGroupsOperations + { + /// + /// Gets a workload group + /// + /// + /// The name of the resource group that contains the resource. You can + /// obtain this value from the Azure Resource Manager API or the + /// portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database. + /// + /// + /// The name of the workload group. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> GetWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string workloadGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Creates or updates a workload group. + /// + /// + /// The name of the resource group that contains the resource. You can + /// obtain this value from the Azure Resource Manager API or the + /// portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database. + /// + /// + /// The name of the workload group. + /// + /// + /// The requested workload group state. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string workloadGroupName, WorkloadGroup parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deletes a workload group. + /// + /// + /// The name of the resource group that contains the resource. You can + /// obtain this value from the Azure Resource Manager API or the + /// portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database. + /// + /// + /// The name of the workload group to delete. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + Task DeleteWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string workloadGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets the list of workload groups + /// + /// + /// The name of the resource group that contains the resource. You can + /// obtain this value from the Azure Resource Manager API or the + /// portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListByDatabaseWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Creates or updates a workload group. + /// + /// + /// The name of the resource group that contains the resource. You can + /// obtain this value from the Azure Resource Manager API or the + /// portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database. + /// + /// + /// The name of the workload group. + /// + /// + /// The requested workload group state. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string workloadGroupName, WorkloadGroup parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deletes a workload group. + /// + /// + /// The name of the resource group that contains the resource. You can + /// obtain this value from the Azure Resource Manager API or the + /// portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database. + /// + /// + /// The name of the workload group to delete. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string workloadGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets the list of workload groups + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListByDatabaseNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ImportExportOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ImportExportOperations.cs new file mode 100644 index 000000000000..669d67e32d6b --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ImportExportOperations.cs @@ -0,0 +1,305 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + using System.Net; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + + /// + /// ImportExportOperations operations. + /// + internal partial class ImportExportOperations : IServiceOperations, IImportExportOperations + { + /// + /// Initializes a new instance of the ImportExportOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal ImportExportOperations(SqlManagementClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the SqlManagementClient + /// + public SqlManagementClient Client { get; private set; } + + /// + /// Imports a bacpac into a new database. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database. + /// + /// + /// The database import request parameters. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> ImportWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, ImportExistingDatabaseDefinition parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginImportWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, parameters, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Imports a bacpac into a new database. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database. + /// + /// + /// The database import request parameters. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> BeginImportWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, ImportExistingDatabaseDefinition parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (serverName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "serverName"); + } + if (databaseName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "databaseName"); + } + if (parameters == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); + } + if (parameters != null) + { + parameters.Validate(); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + string apiVersion = "2020-02-02-preview"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("serverName", serverName); + tracingParameters.Add("databaseName", databaseName); + tracingParameters.Add("parameters", parameters); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginImport", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/import").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); + _url = _url.Replace("{databaseName}", System.Uri.EscapeDataString(databaseName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(parameters != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 202) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ImportExportOperationsExtensions.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ImportExportOperationsExtensions.cs new file mode 100644 index 000000000000..256cedb55dd0 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ImportExportOperationsExtensions.cs @@ -0,0 +1,133 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for ImportExportOperations. + /// + public static partial class ImportExportOperationsExtensions + { + /// + /// Imports a bacpac into a new database. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database. + /// + /// + /// The database import request parameters. + /// + public static ImportExportOperationResult Import(this IImportExportOperations operations, string resourceGroupName, string serverName, string databaseName, ImportExistingDatabaseDefinition parameters) + { + return operations.ImportAsync(resourceGroupName, serverName, databaseName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Imports a bacpac into a new database. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database. + /// + /// + /// The database import request parameters. + /// + /// + /// The cancellation token. + /// + public static async Task ImportAsync(this IImportExportOperations operations, string resourceGroupName, string serverName, string databaseName, ImportExistingDatabaseDefinition parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ImportWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Imports a bacpac into a new database. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database. + /// + /// + /// The database import request parameters. + /// + public static ImportExportOperationResult BeginImport(this IImportExportOperations operations, string resourceGroupName, string serverName, string databaseName, ImportExistingDatabaseDefinition parameters) + { + return operations.BeginImportAsync(resourceGroupName, serverName, databaseName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Imports a bacpac into a new database. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database. + /// + /// + /// The database import request parameters. + /// + /// + /// The cancellation token. + /// + public static async Task BeginImportAsync(this IImportExportOperations operations, string resourceGroupName, string serverName, string databaseName, ImportExistingDatabaseDefinition parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginImportWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/LongTermRetentionBackupsOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/LongTermRetentionBackupsOperations.cs index d96ccd6e161b..6a14d4def090 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/LongTermRetentionBackupsOperations.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/LongTermRetentionBackupsOperations.cs @@ -348,7 +348,7 @@ internal LongTermRetentionBackupsOperations(SqlManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListByResourceGroupDatabaseWithHttpMessagesAsync(string resourceGroupName, string locationName, string longTermRetentionServerName, string longTermRetentionDatabaseName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByResourceGroupDatabaseWithHttpMessagesAsync(string resourceGroupName, string locationName, string longTermRetentionServerName, string longTermRetentionDatabaseName, bool? onlyLatestPerDatabase = default(bool?), LongTermRetentionDatabaseState? databaseState = default(LongTermRetentionDatabaseState?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (resourceGroupName == null) { @@ -403,7 +403,7 @@ internal LongTermRetentionBackupsOperations(SqlManagementClient client) } if (databaseState != null) { - _queryParameters.Add(string.Format("databaseState={0}", System.Uri.EscapeDataString(databaseState))); + _queryParameters.Add(string.Format("databaseState={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(databaseState, Client.SerializationSettings).Trim('"')))); } if (apiVersion != null) { @@ -572,7 +572,7 @@ internal LongTermRetentionBackupsOperations(SqlManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListByResourceGroupLocationWithHttpMessagesAsync(string resourceGroupName, string locationName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByResourceGroupLocationWithHttpMessagesAsync(string resourceGroupName, string locationName, bool? onlyLatestPerDatabase = default(bool?), LongTermRetentionDatabaseState? databaseState = default(LongTermRetentionDatabaseState?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (resourceGroupName == null) { @@ -615,7 +615,7 @@ internal LongTermRetentionBackupsOperations(SqlManagementClient client) } if (databaseState != null) { - _queryParameters.Add(string.Format("databaseState={0}", System.Uri.EscapeDataString(databaseState))); + _queryParameters.Add(string.Format("databaseState={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(databaseState, Client.SerializationSettings).Trim('"')))); } if (apiVersion != null) { @@ -787,7 +787,7 @@ internal LongTermRetentionBackupsOperations(SqlManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListByResourceGroupServerWithHttpMessagesAsync(string resourceGroupName, string locationName, string longTermRetentionServerName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByResourceGroupServerWithHttpMessagesAsync(string resourceGroupName, string locationName, string longTermRetentionServerName, bool? onlyLatestPerDatabase = default(bool?), LongTermRetentionDatabaseState? databaseState = default(LongTermRetentionDatabaseState?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (resourceGroupName == null) { @@ -836,7 +836,7 @@ internal LongTermRetentionBackupsOperations(SqlManagementClient client) } if (databaseState != null) { - _queryParameters.Add(string.Format("databaseState={0}", System.Uri.EscapeDataString(databaseState))); + _queryParameters.Add(string.Format("databaseState={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(databaseState, Client.SerializationSettings).Trim('"')))); } if (apiVersion != null) { @@ -1247,7 +1247,7 @@ internal LongTermRetentionBackupsOperations(SqlManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListByDatabaseWithHttpMessagesAsync(string locationName, string longTermRetentionServerName, string longTermRetentionDatabaseName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByDatabaseWithHttpMessagesAsync(string locationName, string longTermRetentionServerName, string longTermRetentionDatabaseName, bool? onlyLatestPerDatabase = default(bool?), LongTermRetentionDatabaseState? databaseState = default(LongTermRetentionDatabaseState?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (locationName == null) { @@ -1296,7 +1296,7 @@ internal LongTermRetentionBackupsOperations(SqlManagementClient client) } if (databaseState != null) { - _queryParameters.Add(string.Format("databaseState={0}", System.Uri.EscapeDataString(databaseState))); + _queryParameters.Add(string.Format("databaseState={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(databaseState, Client.SerializationSettings).Trim('"')))); } if (apiVersion != null) { @@ -1461,7 +1461,7 @@ internal LongTermRetentionBackupsOperations(SqlManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListByLocationWithHttpMessagesAsync(string locationName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByLocationWithHttpMessagesAsync(string locationName, bool? onlyLatestPerDatabase = default(bool?), LongTermRetentionDatabaseState? databaseState = default(LongTermRetentionDatabaseState?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (locationName == null) { @@ -1498,7 +1498,7 @@ internal LongTermRetentionBackupsOperations(SqlManagementClient client) } if (databaseState != null) { - _queryParameters.Add(string.Format("databaseState={0}", System.Uri.EscapeDataString(databaseState))); + _queryParameters.Add(string.Format("databaseState={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(databaseState, Client.SerializationSettings).Trim('"')))); } if (apiVersion != null) { @@ -1666,7 +1666,7 @@ internal LongTermRetentionBackupsOperations(SqlManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListByServerWithHttpMessagesAsync(string locationName, string longTermRetentionServerName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByServerWithHttpMessagesAsync(string locationName, string longTermRetentionServerName, bool? onlyLatestPerDatabase = default(bool?), LongTermRetentionDatabaseState? databaseState = default(LongTermRetentionDatabaseState?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (locationName == null) { @@ -1709,7 +1709,7 @@ internal LongTermRetentionBackupsOperations(SqlManagementClient client) } if (databaseState != null) { - _queryParameters.Add(string.Format("databaseState={0}", System.Uri.EscapeDataString(databaseState))); + _queryParameters.Add(string.Format("databaseState={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(databaseState, Client.SerializationSettings).Trim('"')))); } if (apiVersion != null) { diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/LongTermRetentionBackupsOperationsExtensions.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/LongTermRetentionBackupsOperationsExtensions.cs index 5e6f4a0dda2b..31c5a25eade6 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/LongTermRetentionBackupsOperationsExtensions.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/LongTermRetentionBackupsOperationsExtensions.cs @@ -164,7 +164,7 @@ public static void DeleteByResourceGroup(this ILongTermRetentionBackupsOperation /// Whether to query against just live databases, just deleted databases, or /// all databases. Possible values include: 'All', 'Live', 'Deleted' /// - public static IPage ListByResourceGroupDatabase(this ILongTermRetentionBackupsOperations operations, string resourceGroupName, string locationName, string longTermRetentionServerName, string longTermRetentionDatabaseName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string)) + public static IPage ListByResourceGroupDatabase(this ILongTermRetentionBackupsOperations operations, string resourceGroupName, string locationName, string longTermRetentionServerName, string longTermRetentionDatabaseName, bool? onlyLatestPerDatabase = default(bool?), LongTermRetentionDatabaseState? databaseState = default(LongTermRetentionDatabaseState?)) { return operations.ListByResourceGroupDatabaseAsync(resourceGroupName, locationName, longTermRetentionServerName, longTermRetentionDatabaseName, onlyLatestPerDatabase, databaseState).GetAwaiter().GetResult(); } @@ -198,7 +198,7 @@ public static void DeleteByResourceGroup(this ILongTermRetentionBackupsOperation /// /// The cancellation token. /// - public static async Task> ListByResourceGroupDatabaseAsync(this ILongTermRetentionBackupsOperations operations, string resourceGroupName, string locationName, string longTermRetentionServerName, string longTermRetentionDatabaseName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListByResourceGroupDatabaseAsync(this ILongTermRetentionBackupsOperations operations, string resourceGroupName, string locationName, string longTermRetentionServerName, string longTermRetentionDatabaseName, bool? onlyLatestPerDatabase = default(bool?), LongTermRetentionDatabaseState? databaseState = default(LongTermRetentionDatabaseState?), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByResourceGroupDatabaseWithHttpMessagesAsync(resourceGroupName, locationName, longTermRetentionServerName, longTermRetentionDatabaseName, onlyLatestPerDatabase, databaseState, null, cancellationToken).ConfigureAwait(false)) { @@ -226,7 +226,7 @@ public static void DeleteByResourceGroup(this ILongTermRetentionBackupsOperation /// Whether to query against just live databases, just deleted databases, or /// all databases. Possible values include: 'All', 'Live', 'Deleted' /// - public static IPage ListByResourceGroupLocation(this ILongTermRetentionBackupsOperations operations, string resourceGroupName, string locationName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string)) + public static IPage ListByResourceGroupLocation(this ILongTermRetentionBackupsOperations operations, string resourceGroupName, string locationName, bool? onlyLatestPerDatabase = default(bool?), LongTermRetentionDatabaseState? databaseState = default(LongTermRetentionDatabaseState?)) { return operations.ListByResourceGroupLocationAsync(resourceGroupName, locationName, onlyLatestPerDatabase, databaseState).GetAwaiter().GetResult(); } @@ -254,7 +254,7 @@ public static void DeleteByResourceGroup(this ILongTermRetentionBackupsOperation /// /// The cancellation token. /// - public static async Task> ListByResourceGroupLocationAsync(this ILongTermRetentionBackupsOperations operations, string resourceGroupName, string locationName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListByResourceGroupLocationAsync(this ILongTermRetentionBackupsOperations operations, string resourceGroupName, string locationName, bool? onlyLatestPerDatabase = default(bool?), LongTermRetentionDatabaseState? databaseState = default(LongTermRetentionDatabaseState?), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByResourceGroupLocationWithHttpMessagesAsync(resourceGroupName, locationName, onlyLatestPerDatabase, databaseState, null, cancellationToken).ConfigureAwait(false)) { @@ -285,7 +285,7 @@ public static void DeleteByResourceGroup(this ILongTermRetentionBackupsOperation /// Whether to query against just live databases, just deleted databases, or /// all databases. Possible values include: 'All', 'Live', 'Deleted' /// - public static IPage ListByResourceGroupServer(this ILongTermRetentionBackupsOperations operations, string resourceGroupName, string locationName, string longTermRetentionServerName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string)) + public static IPage ListByResourceGroupServer(this ILongTermRetentionBackupsOperations operations, string resourceGroupName, string locationName, string longTermRetentionServerName, bool? onlyLatestPerDatabase = default(bool?), LongTermRetentionDatabaseState? databaseState = default(LongTermRetentionDatabaseState?)) { return operations.ListByResourceGroupServerAsync(resourceGroupName, locationName, longTermRetentionServerName, onlyLatestPerDatabase, databaseState).GetAwaiter().GetResult(); } @@ -316,7 +316,7 @@ public static void DeleteByResourceGroup(this ILongTermRetentionBackupsOperation /// /// The cancellation token. /// - public static async Task> ListByResourceGroupServerAsync(this ILongTermRetentionBackupsOperations operations, string resourceGroupName, string locationName, string longTermRetentionServerName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListByResourceGroupServerAsync(this ILongTermRetentionBackupsOperations operations, string resourceGroupName, string locationName, string longTermRetentionServerName, bool? onlyLatestPerDatabase = default(bool?), LongTermRetentionDatabaseState? databaseState = default(LongTermRetentionDatabaseState?), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByResourceGroupServerWithHttpMessagesAsync(resourceGroupName, locationName, longTermRetentionServerName, onlyLatestPerDatabase, databaseState, null, cancellationToken).ConfigureAwait(false)) { @@ -447,7 +447,7 @@ public static void Delete(this ILongTermRetentionBackupsOperations operations, s /// Whether to query against just live databases, just deleted databases, or /// all databases. Possible values include: 'All', 'Live', 'Deleted' /// - public static IPage ListByDatabase(this ILongTermRetentionBackupsOperations operations, string locationName, string longTermRetentionServerName, string longTermRetentionDatabaseName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string)) + public static IPage ListByDatabase(this ILongTermRetentionBackupsOperations operations, string locationName, string longTermRetentionServerName, string longTermRetentionDatabaseName, bool? onlyLatestPerDatabase = default(bool?), LongTermRetentionDatabaseState? databaseState = default(LongTermRetentionDatabaseState?)) { return operations.ListByDatabaseAsync(locationName, longTermRetentionServerName, longTermRetentionDatabaseName, onlyLatestPerDatabase, databaseState).GetAwaiter().GetResult(); } @@ -477,7 +477,7 @@ public static void Delete(this ILongTermRetentionBackupsOperations operations, s /// /// The cancellation token. /// - public static async Task> ListByDatabaseAsync(this ILongTermRetentionBackupsOperations operations, string locationName, string longTermRetentionServerName, string longTermRetentionDatabaseName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListByDatabaseAsync(this ILongTermRetentionBackupsOperations operations, string locationName, string longTermRetentionServerName, string longTermRetentionDatabaseName, bool? onlyLatestPerDatabase = default(bool?), LongTermRetentionDatabaseState? databaseState = default(LongTermRetentionDatabaseState?), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByDatabaseWithHttpMessagesAsync(locationName, longTermRetentionServerName, longTermRetentionDatabaseName, onlyLatestPerDatabase, databaseState, null, cancellationToken).ConfigureAwait(false)) { @@ -501,7 +501,7 @@ public static void Delete(this ILongTermRetentionBackupsOperations operations, s /// Whether to query against just live databases, just deleted databases, or /// all databases. Possible values include: 'All', 'Live', 'Deleted' /// - public static IPage ListByLocation(this ILongTermRetentionBackupsOperations operations, string locationName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string)) + public static IPage ListByLocation(this ILongTermRetentionBackupsOperations operations, string locationName, bool? onlyLatestPerDatabase = default(bool?), LongTermRetentionDatabaseState? databaseState = default(LongTermRetentionDatabaseState?)) { return operations.ListByLocationAsync(locationName, onlyLatestPerDatabase, databaseState).GetAwaiter().GetResult(); } @@ -525,7 +525,7 @@ public static void Delete(this ILongTermRetentionBackupsOperations operations, s /// /// The cancellation token. /// - public static async Task> ListByLocationAsync(this ILongTermRetentionBackupsOperations operations, string locationName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListByLocationAsync(this ILongTermRetentionBackupsOperations operations, string locationName, bool? onlyLatestPerDatabase = default(bool?), LongTermRetentionDatabaseState? databaseState = default(LongTermRetentionDatabaseState?), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByLocationWithHttpMessagesAsync(locationName, onlyLatestPerDatabase, databaseState, null, cancellationToken).ConfigureAwait(false)) { @@ -552,7 +552,7 @@ public static void Delete(this ILongTermRetentionBackupsOperations operations, s /// Whether to query against just live databases, just deleted databases, or /// all databases. Possible values include: 'All', 'Live', 'Deleted' /// - public static IPage ListByServer(this ILongTermRetentionBackupsOperations operations, string locationName, string longTermRetentionServerName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string)) + public static IPage ListByServer(this ILongTermRetentionBackupsOperations operations, string locationName, string longTermRetentionServerName, bool? onlyLatestPerDatabase = default(bool?), LongTermRetentionDatabaseState? databaseState = default(LongTermRetentionDatabaseState?)) { return operations.ListByServerAsync(locationName, longTermRetentionServerName, onlyLatestPerDatabase, databaseState).GetAwaiter().GetResult(); } @@ -579,7 +579,7 @@ public static void Delete(this ILongTermRetentionBackupsOperations operations, s /// /// The cancellation token. /// - public static async Task> ListByServerAsync(this ILongTermRetentionBackupsOperations operations, string locationName, string longTermRetentionServerName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListByServerAsync(this ILongTermRetentionBackupsOperations operations, string locationName, string longTermRetentionServerName, bool? onlyLatestPerDatabase = default(bool?), LongTermRetentionDatabaseState? databaseState = default(LongTermRetentionDatabaseState?), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByServerWithHttpMessagesAsync(locationName, longTermRetentionServerName, onlyLatestPerDatabase, databaseState, null, cancellationToken).ConfigureAwait(false)) { diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/LongTermRetentionManagedInstanceBackupsOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/LongTermRetentionManagedInstanceBackupsOperations.cs index 67eb9ce02161..a43b49f3968c 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/LongTermRetentionManagedInstanceBackupsOperations.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/LongTermRetentionManagedInstanceBackupsOperations.cs @@ -330,7 +330,7 @@ internal LongTermRetentionManagedInstanceBackupsOperations(SqlManagementClient c /// /// A response object containing the response body and response headers. /// - public async Task>> ListByDatabaseWithHttpMessagesAsync(string locationName, string managedInstanceName, string databaseName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByDatabaseWithHttpMessagesAsync(string locationName, string managedInstanceName, string databaseName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState1? databaseState = default(DatabaseState1?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (locationName == null) { @@ -379,7 +379,7 @@ internal LongTermRetentionManagedInstanceBackupsOperations(SqlManagementClient c } if (databaseState != null) { - _queryParameters.Add(string.Format("databaseState={0}", System.Uri.EscapeDataString(databaseState))); + _queryParameters.Add(string.Format("databaseState={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(databaseState, Client.SerializationSettings).Trim('"')))); } if (apiVersion != null) { @@ -547,7 +547,7 @@ internal LongTermRetentionManagedInstanceBackupsOperations(SqlManagementClient c /// /// A response object containing the response body and response headers. /// - public async Task>> ListByInstanceWithHttpMessagesAsync(string locationName, string managedInstanceName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByInstanceWithHttpMessagesAsync(string locationName, string managedInstanceName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState2? databaseState = default(DatabaseState2?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (locationName == null) { @@ -590,7 +590,7 @@ internal LongTermRetentionManagedInstanceBackupsOperations(SqlManagementClient c } if (databaseState != null) { - _queryParameters.Add(string.Format("databaseState={0}", System.Uri.EscapeDataString(databaseState))); + _queryParameters.Add(string.Format("databaseState={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(databaseState, Client.SerializationSettings).Trim('"')))); } if (apiVersion != null) { @@ -756,7 +756,7 @@ internal LongTermRetentionManagedInstanceBackupsOperations(SqlManagementClient c /// /// A response object containing the response body and response headers. /// - public async Task>> ListByLocationWithHttpMessagesAsync(string locationName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByLocationWithHttpMessagesAsync(string locationName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState3? databaseState = default(DatabaseState3?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (locationName == null) { @@ -793,7 +793,7 @@ internal LongTermRetentionManagedInstanceBackupsOperations(SqlManagementClient c } if (databaseState != null) { - _queryParameters.Add(string.Format("databaseState={0}", System.Uri.EscapeDataString(databaseState))); + _queryParameters.Add(string.Format("databaseState={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(databaseState, Client.SerializationSettings).Trim('"')))); } if (apiVersion != null) { @@ -1222,7 +1222,7 @@ internal LongTermRetentionManagedInstanceBackupsOperations(SqlManagementClient c /// /// A response object containing the response body and response headers. /// - public async Task>> ListByResourceGroupDatabaseWithHttpMessagesAsync(string resourceGroupName, string locationName, string managedInstanceName, string databaseName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByResourceGroupDatabaseWithHttpMessagesAsync(string resourceGroupName, string locationName, string managedInstanceName, string databaseName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState4? databaseState = default(DatabaseState4?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (resourceGroupName == null) { @@ -1277,7 +1277,7 @@ internal LongTermRetentionManagedInstanceBackupsOperations(SqlManagementClient c } if (databaseState != null) { - _queryParameters.Add(string.Format("databaseState={0}", System.Uri.EscapeDataString(databaseState))); + _queryParameters.Add(string.Format("databaseState={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(databaseState, Client.SerializationSettings).Trim('"')))); } if (apiVersion != null) { @@ -1449,7 +1449,7 @@ internal LongTermRetentionManagedInstanceBackupsOperations(SqlManagementClient c /// /// A response object containing the response body and response headers. /// - public async Task>> ListByResourceGroupInstanceWithHttpMessagesAsync(string resourceGroupName, string locationName, string managedInstanceName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByResourceGroupInstanceWithHttpMessagesAsync(string resourceGroupName, string locationName, string managedInstanceName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState5? databaseState = default(DatabaseState5?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (resourceGroupName == null) { @@ -1498,7 +1498,7 @@ internal LongTermRetentionManagedInstanceBackupsOperations(SqlManagementClient c } if (databaseState != null) { - _queryParameters.Add(string.Format("databaseState={0}", System.Uri.EscapeDataString(databaseState))); + _queryParameters.Add(string.Format("databaseState={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(databaseState, Client.SerializationSettings).Trim('"')))); } if (apiVersion != null) { @@ -1668,7 +1668,7 @@ internal LongTermRetentionManagedInstanceBackupsOperations(SqlManagementClient c /// /// A response object containing the response body and response headers. /// - public async Task>> ListByResourceGroupLocationWithHttpMessagesAsync(string resourceGroupName, string locationName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByResourceGroupLocationWithHttpMessagesAsync(string resourceGroupName, string locationName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState6? databaseState = default(DatabaseState6?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (resourceGroupName == null) { @@ -1711,7 +1711,7 @@ internal LongTermRetentionManagedInstanceBackupsOperations(SqlManagementClient c } if (databaseState != null) { - _queryParameters.Add(string.Format("databaseState={0}", System.Uri.EscapeDataString(databaseState))); + _queryParameters.Add(string.Format("databaseState={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(databaseState, Client.SerializationSettings).Trim('"')))); } if (apiVersion != null) { diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/LongTermRetentionManagedInstanceBackupsOperationsExtensions.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/LongTermRetentionManagedInstanceBackupsOperationsExtensions.cs index ff1fd78f3bfb..53fb4295a4d8 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/LongTermRetentionManagedInstanceBackupsOperationsExtensions.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/LongTermRetentionManagedInstanceBackupsOperationsExtensions.cs @@ -144,7 +144,7 @@ public static void Delete(this ILongTermRetentionManagedInstanceBackupsOperation /// Whether to query against just live databases, just deleted databases, or /// all databases. Possible values include: 'All', 'Live', 'Deleted' /// - public static IPage ListByDatabase(this ILongTermRetentionManagedInstanceBackupsOperations operations, string locationName, string managedInstanceName, string databaseName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string)) + public static IPage ListByDatabase(this ILongTermRetentionManagedInstanceBackupsOperations operations, string locationName, string managedInstanceName, string databaseName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState1? databaseState = default(DatabaseState1?)) { return operations.ListByDatabaseAsync(locationName, managedInstanceName, databaseName, onlyLatestPerDatabase, databaseState).GetAwaiter().GetResult(); } @@ -174,7 +174,7 @@ public static void Delete(this ILongTermRetentionManagedInstanceBackupsOperation /// /// The cancellation token. /// - public static async Task> ListByDatabaseAsync(this ILongTermRetentionManagedInstanceBackupsOperations operations, string locationName, string managedInstanceName, string databaseName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListByDatabaseAsync(this ILongTermRetentionManagedInstanceBackupsOperations operations, string locationName, string managedInstanceName, string databaseName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState1? databaseState = default(DatabaseState1?), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByDatabaseWithHttpMessagesAsync(locationName, managedInstanceName, databaseName, onlyLatestPerDatabase, databaseState, null, cancellationToken).ConfigureAwait(false)) { @@ -201,7 +201,7 @@ public static void Delete(this ILongTermRetentionManagedInstanceBackupsOperation /// Whether to query against just live databases, just deleted databases, or /// all databases. Possible values include: 'All', 'Live', 'Deleted' /// - public static IPage ListByInstance(this ILongTermRetentionManagedInstanceBackupsOperations operations, string locationName, string managedInstanceName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string)) + public static IPage ListByInstance(this ILongTermRetentionManagedInstanceBackupsOperations operations, string locationName, string managedInstanceName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState2? databaseState = default(DatabaseState2?)) { return operations.ListByInstanceAsync(locationName, managedInstanceName, onlyLatestPerDatabase, databaseState).GetAwaiter().GetResult(); } @@ -228,7 +228,7 @@ public static void Delete(this ILongTermRetentionManagedInstanceBackupsOperation /// /// The cancellation token. /// - public static async Task> ListByInstanceAsync(this ILongTermRetentionManagedInstanceBackupsOperations operations, string locationName, string managedInstanceName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListByInstanceAsync(this ILongTermRetentionManagedInstanceBackupsOperations operations, string locationName, string managedInstanceName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState2? databaseState = default(DatabaseState2?), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByInstanceWithHttpMessagesAsync(locationName, managedInstanceName, onlyLatestPerDatabase, databaseState, null, cancellationToken).ConfigureAwait(false)) { @@ -253,7 +253,7 @@ public static void Delete(this ILongTermRetentionManagedInstanceBackupsOperation /// Whether to query against just live databases, just deleted databases, or /// all databases. Possible values include: 'All', 'Live', 'Deleted' /// - public static IPage ListByLocation(this ILongTermRetentionManagedInstanceBackupsOperations operations, string locationName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string)) + public static IPage ListByLocation(this ILongTermRetentionManagedInstanceBackupsOperations operations, string locationName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState3? databaseState = default(DatabaseState3?)) { return operations.ListByLocationAsync(locationName, onlyLatestPerDatabase, databaseState).GetAwaiter().GetResult(); } @@ -278,7 +278,7 @@ public static void Delete(this ILongTermRetentionManagedInstanceBackupsOperation /// /// The cancellation token. /// - public static async Task> ListByLocationAsync(this ILongTermRetentionManagedInstanceBackupsOperations operations, string locationName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListByLocationAsync(this ILongTermRetentionManagedInstanceBackupsOperations operations, string locationName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState3? databaseState = default(DatabaseState3?), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByLocationWithHttpMessagesAsync(locationName, onlyLatestPerDatabase, databaseState, null, cancellationToken).ConfigureAwait(false)) { @@ -429,7 +429,7 @@ public static void DeleteByResourceGroup(this ILongTermRetentionManagedInstanceB /// Whether to query against just live databases, just deleted databases, or /// all databases. Possible values include: 'All', 'Live', 'Deleted' /// - public static IPage ListByResourceGroupDatabase(this ILongTermRetentionManagedInstanceBackupsOperations operations, string resourceGroupName, string locationName, string managedInstanceName, string databaseName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string)) + public static IPage ListByResourceGroupDatabase(this ILongTermRetentionManagedInstanceBackupsOperations operations, string resourceGroupName, string locationName, string managedInstanceName, string databaseName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState4? databaseState = default(DatabaseState4?)) { return operations.ListByResourceGroupDatabaseAsync(resourceGroupName, locationName, managedInstanceName, databaseName, onlyLatestPerDatabase, databaseState).GetAwaiter().GetResult(); } @@ -463,7 +463,7 @@ public static void DeleteByResourceGroup(this ILongTermRetentionManagedInstanceB /// /// The cancellation token. /// - public static async Task> ListByResourceGroupDatabaseAsync(this ILongTermRetentionManagedInstanceBackupsOperations operations, string resourceGroupName, string locationName, string managedInstanceName, string databaseName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListByResourceGroupDatabaseAsync(this ILongTermRetentionManagedInstanceBackupsOperations operations, string resourceGroupName, string locationName, string managedInstanceName, string databaseName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState4? databaseState = default(DatabaseState4?), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByResourceGroupDatabaseWithHttpMessagesAsync(resourceGroupName, locationName, managedInstanceName, databaseName, onlyLatestPerDatabase, databaseState, null, cancellationToken).ConfigureAwait(false)) { @@ -494,7 +494,7 @@ public static void DeleteByResourceGroup(this ILongTermRetentionManagedInstanceB /// Whether to query against just live databases, just deleted databases, or /// all databases. Possible values include: 'All', 'Live', 'Deleted' /// - public static IPage ListByResourceGroupInstance(this ILongTermRetentionManagedInstanceBackupsOperations operations, string resourceGroupName, string locationName, string managedInstanceName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string)) + public static IPage ListByResourceGroupInstance(this ILongTermRetentionManagedInstanceBackupsOperations operations, string resourceGroupName, string locationName, string managedInstanceName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState5? databaseState = default(DatabaseState5?)) { return operations.ListByResourceGroupInstanceAsync(resourceGroupName, locationName, managedInstanceName, onlyLatestPerDatabase, databaseState).GetAwaiter().GetResult(); } @@ -525,7 +525,7 @@ public static void DeleteByResourceGroup(this ILongTermRetentionManagedInstanceB /// /// The cancellation token. /// - public static async Task> ListByResourceGroupInstanceAsync(this ILongTermRetentionManagedInstanceBackupsOperations operations, string resourceGroupName, string locationName, string managedInstanceName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListByResourceGroupInstanceAsync(this ILongTermRetentionManagedInstanceBackupsOperations operations, string resourceGroupName, string locationName, string managedInstanceName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState5? databaseState = default(DatabaseState5?), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByResourceGroupInstanceWithHttpMessagesAsync(resourceGroupName, locationName, managedInstanceName, onlyLatestPerDatabase, databaseState, null, cancellationToken).ConfigureAwait(false)) { @@ -554,7 +554,7 @@ public static void DeleteByResourceGroup(this ILongTermRetentionManagedInstanceB /// Whether to query against just live databases, just deleted databases, or /// all databases. Possible values include: 'All', 'Live', 'Deleted' /// - public static IPage ListByResourceGroupLocation(this ILongTermRetentionManagedInstanceBackupsOperations operations, string resourceGroupName, string locationName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string)) + public static IPage ListByResourceGroupLocation(this ILongTermRetentionManagedInstanceBackupsOperations operations, string resourceGroupName, string locationName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState6? databaseState = default(DatabaseState6?)) { return operations.ListByResourceGroupLocationAsync(resourceGroupName, locationName, onlyLatestPerDatabase, databaseState).GetAwaiter().GetResult(); } @@ -583,7 +583,7 @@ public static void DeleteByResourceGroup(this ILongTermRetentionManagedInstanceB /// /// The cancellation token. /// - public static async Task> ListByResourceGroupLocationAsync(this ILongTermRetentionManagedInstanceBackupsOperations operations, string resourceGroupName, string locationName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListByResourceGroupLocationAsync(this ILongTermRetentionManagedInstanceBackupsOperations operations, string resourceGroupName, string locationName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState6? databaseState = default(DatabaseState6?), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByResourceGroupLocationWithHttpMessagesAsync(resourceGroupName, locationName, onlyLatestPerDatabase, databaseState, null, cancellationToken).ConfigureAwait(false)) { diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedDatabaseRestoreDetailsOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedDatabaseRestoreDetailsOperations.cs index fef323df26d5..d71aeb23cbce 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedDatabaseRestoreDetailsOperations.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedDatabaseRestoreDetailsOperations.cs @@ -54,8 +54,7 @@ internal ManagedDatabaseRestoreDetailsOperations(SqlManagementClient client) /// Gets managed database restore details. /// /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. + /// The name of the resource group. The name is case insensitive. /// /// /// The name of the managed instance. @@ -90,6 +89,21 @@ internal ManagedDatabaseRestoreDetailsOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } if (managedInstanceName == null) { throw new ValidationException(ValidationRules.CannotBeNull, "managedInstanceName"); @@ -103,7 +117,7 @@ internal ManagedDatabaseRestoreDetailsOperations(SqlManagementClient client) throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } string restoreDetailsName = "Default"; - string apiVersion = "2019-06-01-preview"; + string apiVersion = "2020-02-02-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedDatabaseRestoreDetailsOperationsExtensions.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedDatabaseRestoreDetailsOperationsExtensions.cs index 238d1ba21e7a..f2278f12424e 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedDatabaseRestoreDetailsOperationsExtensions.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedDatabaseRestoreDetailsOperationsExtensions.cs @@ -28,8 +28,7 @@ public static partial class ManagedDatabaseRestoreDetailsOperationsExtensions /// The operations group for this extension method. /// /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. + /// The name of the resource group. The name is case insensitive. /// /// /// The name of the managed instance. @@ -49,8 +48,7 @@ public static ManagedDatabaseRestoreDetailsResult Get(this IManagedDatabaseResto /// The operations group for this extension method. /// /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. + /// The name of the resource group. The name is case insensitive. /// /// /// The name of the managed instance. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedDatabasesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedDatabasesOperations.cs index ecc653d66f3f..6497306dd8b8 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedDatabasesOperations.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedDatabasesOperations.cs @@ -54,8 +54,7 @@ internal ManagedDatabasesOperations(SqlManagementClient client) /// Gets a list of managed databases. /// /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. + /// The name of the resource group. The name is case insensitive. /// /// /// The name of the managed instance. @@ -87,6 +86,21 @@ internal ManagedDatabasesOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } if (managedInstanceName == null) { throw new ValidationException(ValidationRules.CannotBeNull, "managedInstanceName"); @@ -95,7 +109,7 @@ internal ManagedDatabasesOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01-preview"; + string apiVersion = "2020-02-02-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -146,7 +160,7 @@ internal ManagedDatabasesOperations(SqlManagementClient client) if (customHeaders != null) { - foreach (var _header in customHeaders) + foreach(var _header in customHeaders) { if (_httpRequest.Headers.Contains(_header.Key)) { @@ -184,7 +198,7 @@ internal ManagedDatabasesOperations(SqlManagementClient client) try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { ex = new CloudException(_errorBody.Message); @@ -249,8 +263,7 @@ internal ManagedDatabasesOperations(SqlManagementClient client) /// Gets a managed database. /// /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. + /// The name of the resource group. The name is case insensitive. /// /// /// The name of the managed instance. @@ -285,6 +298,21 @@ internal ManagedDatabasesOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } if (managedInstanceName == null) { throw new ValidationException(ValidationRules.CannotBeNull, "managedInstanceName"); @@ -297,7 +325,7 @@ internal ManagedDatabasesOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01-preview"; + string apiVersion = "2020-02-02-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -350,7 +378,7 @@ internal ManagedDatabasesOperations(SqlManagementClient client) if (customHeaders != null) { - foreach (var _header in customHeaders) + foreach(var _header in customHeaders) { if (_httpRequest.Headers.Contains(_header.Key)) { @@ -388,7 +416,7 @@ internal ManagedDatabasesOperations(SqlManagementClient client) try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { ex = new CloudException(_errorBody.Message); @@ -453,8 +481,7 @@ internal ManagedDatabasesOperations(SqlManagementClient client) /// Creates a new database or updates an existing database. /// /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. + /// The name of the resource group. The name is case insensitive. /// /// /// The name of the managed instance. @@ -482,8 +509,7 @@ internal ManagedDatabasesOperations(SqlManagementClient client) /// Deletes a managed database. /// /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. + /// The name of the resource group. The name is case insensitive. /// /// /// The name of the managed instance. @@ -508,8 +534,7 @@ internal ManagedDatabasesOperations(SqlManagementClient client) /// Updates an existing database. /// /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. + /// The name of the resource group. The name is case insensitive. /// /// /// The name of the managed instance. @@ -533,12 +558,220 @@ internal ManagedDatabasesOperations(SqlManagementClient client) return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); } + /// + /// Gets a list of inaccessible managed databases in a managed instance + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the managed instance. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListInaccessibleByInstanceWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (managedInstanceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "managedInstanceName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + string apiVersion = "2020-02-02-preview"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("managedInstanceName", managedInstanceName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListInaccessibleByInstance", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/inaccessibleManagedDatabases").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{managedInstanceName}", System.Uri.EscapeDataString(managedInstanceName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + /// /// Completes the restore operation on a managed database. /// /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. + /// The name of the resource group. The name is case insensitive. /// /// /// The name of the managed instance. @@ -566,8 +799,7 @@ internal ManagedDatabasesOperations(SqlManagementClient client) /// Creates a new database or updates an existing database. /// /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. + /// The name of the resource group. The name is case insensitive. /// /// /// The name of the managed instance. @@ -605,6 +837,21 @@ internal ManagedDatabasesOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } if (managedInstanceName == null) { throw new ValidationException(ValidationRules.CannotBeNull, "managedInstanceName"); @@ -625,7 +872,7 @@ internal ManagedDatabasesOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01-preview"; + string apiVersion = "2020-02-02-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -679,7 +926,7 @@ internal ManagedDatabasesOperations(SqlManagementClient client) if (customHeaders != null) { - foreach (var _header in customHeaders) + foreach(var _header in customHeaders) { if (_httpRequest.Headers.Contains(_header.Key)) { @@ -691,11 +938,11 @@ internal ManagedDatabasesOperations(SqlManagementClient client) // Serialize Request string _requestContent = null; - if (parameters != null) + if(parameters != null) { _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, Client.SerializationSettings); _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); } // Set Credentials if (Client.Credentials != null) @@ -723,7 +970,7 @@ internal ManagedDatabasesOperations(SqlManagementClient client) try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { ex = new CloudException(_errorBody.Message); @@ -806,8 +1053,7 @@ internal ManagedDatabasesOperations(SqlManagementClient client) /// Deletes a managed database. /// /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. + /// The name of the resource group. The name is case insensitive. /// /// /// The name of the managed instance. @@ -839,6 +1085,21 @@ internal ManagedDatabasesOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } if (managedInstanceName == null) { throw new ValidationException(ValidationRules.CannotBeNull, "managedInstanceName"); @@ -851,7 +1112,7 @@ internal ManagedDatabasesOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01-preview"; + string apiVersion = "2020-02-02-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -904,7 +1165,7 @@ internal ManagedDatabasesOperations(SqlManagementClient client) if (customHeaders != null) { - foreach (var _header in customHeaders) + foreach(var _header in customHeaders) { if (_httpRequest.Headers.Contains(_header.Key)) { @@ -942,7 +1203,7 @@ internal ManagedDatabasesOperations(SqlManagementClient client) try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { ex = new CloudException(_errorBody.Message); @@ -989,8 +1250,7 @@ internal ManagedDatabasesOperations(SqlManagementClient client) /// Updates an existing database. /// /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. + /// The name of the resource group. The name is case insensitive. /// /// /// The name of the managed instance. @@ -1028,6 +1288,21 @@ internal ManagedDatabasesOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } if (managedInstanceName == null) { throw new ValidationException(ValidationRules.CannotBeNull, "managedInstanceName"); @@ -1044,7 +1319,7 @@ internal ManagedDatabasesOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01-preview"; + string apiVersion = "2020-02-02-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1098,7 +1373,7 @@ internal ManagedDatabasesOperations(SqlManagementClient client) if (customHeaders != null) { - foreach (var _header in customHeaders) + foreach(var _header in customHeaders) { if (_httpRequest.Headers.Contains(_header.Key)) { @@ -1110,11 +1385,11 @@ internal ManagedDatabasesOperations(SqlManagementClient client) // Serialize Request string _requestContent = null; - if (parameters != null) + if(parameters != null) { _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, Client.SerializationSettings); _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); } // Set Credentials if (Client.Credentials != null) @@ -1142,7 +1417,7 @@ internal ManagedDatabasesOperations(SqlManagementClient client) try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { ex = new CloudException(_errorBody.Message); @@ -1207,8 +1482,7 @@ internal ManagedDatabasesOperations(SqlManagementClient client) /// Completes the restore operation on a managed database. /// /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. + /// The name of the resource group. The name is case insensitive. /// /// /// The name of the managed instance. @@ -1243,6 +1517,21 @@ internal ManagedDatabasesOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } if (managedInstanceName == null) { throw new ValidationException(ValidationRules.CannotBeNull, "managedInstanceName"); @@ -1263,7 +1552,7 @@ internal ManagedDatabasesOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01-preview"; + string apiVersion = "2020-02-02-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1317,7 +1606,7 @@ internal ManagedDatabasesOperations(SqlManagementClient client) if (customHeaders != null) { - foreach (var _header in customHeaders) + foreach(var _header in customHeaders) { if (_httpRequest.Headers.Contains(_header.Key)) { @@ -1329,11 +1618,11 @@ internal ManagedDatabasesOperations(SqlManagementClient client) // Serialize Request string _requestContent = null; - if (parameters != null) + if(parameters != null) { _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, Client.SerializationSettings); _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); } // Set Credentials if (Client.Credentials != null) @@ -1361,7 +1650,7 @@ internal ManagedDatabasesOperations(SqlManagementClient client) try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { ex = new CloudException(_errorBody.Message); @@ -1478,7 +1767,180 @@ internal ManagedDatabasesOperations(SqlManagementClient client) if (customHeaders != null) { - foreach (var _header in customHeaders) + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Gets a list of inaccessible managed databases in a managed instance + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListInaccessibleByInstanceNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (nextPageLink == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("nextPageLink", nextPageLink); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListInaccessibleByInstanceNext", tracingParameters); + } + // Construct URL + string _url = "{nextLink}"; + _url = _url.Replace("{nextLink}", nextPageLink); + List _queryParameters = new List(); + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) { if (_httpRequest.Headers.Contains(_header.Key)) { @@ -1516,7 +1978,7 @@ internal ManagedDatabasesOperations(SqlManagementClient client) try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { ex = new CloudException(_errorBody.Message); @@ -1578,4 +2040,4 @@ internal ManagedDatabasesOperations(SqlManagementClient client) } } -} \ No newline at end of file +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedDatabasesOperationsExtensions.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedDatabasesOperationsExtensions.cs index a4e4e4af9ac8..5dbeea1e0f01 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedDatabasesOperationsExtensions.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedDatabasesOperationsExtensions.cs @@ -28,8 +28,7 @@ public static partial class ManagedDatabasesOperationsExtensions /// The operations group for this extension method. /// /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. + /// The name of the resource group. The name is case insensitive. /// /// /// The name of the managed instance. @@ -46,8 +45,7 @@ public static IPage ListByInstance(this IManagedDatabasesOperat /// The operations group for this extension method. /// /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. + /// The name of the resource group. The name is case insensitive. /// /// /// The name of the managed instance. @@ -70,8 +68,7 @@ public static IPage ListByInstance(this IManagedDatabasesOperat /// The operations group for this extension method. /// /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. + /// The name of the resource group. The name is case insensitive. /// /// /// The name of the managed instance. @@ -91,8 +88,7 @@ public static ManagedDatabase Get(this IManagedDatabasesOperations operations, s /// The operations group for this extension method. /// /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. + /// The name of the resource group. The name is case insensitive. /// /// /// The name of the managed instance. @@ -118,8 +114,7 @@ public static ManagedDatabase Get(this IManagedDatabasesOperations operations, s /// The operations group for this extension method. /// /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. + /// The name of the resource group. The name is case insensitive. /// /// /// The name of the managed instance. @@ -142,8 +137,7 @@ public static ManagedDatabase CreateOrUpdate(this IManagedDatabasesOperations op /// The operations group for this extension method. /// /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. + /// The name of the resource group. The name is case insensitive. /// /// /// The name of the managed instance. @@ -172,8 +166,7 @@ public static ManagedDatabase CreateOrUpdate(this IManagedDatabasesOperations op /// The operations group for this extension method. /// /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. + /// The name of the resource group. The name is case insensitive. /// /// /// The name of the managed instance. @@ -193,8 +186,7 @@ public static void Delete(this IManagedDatabasesOperations operations, string re /// The operations group for this extension method. /// /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. + /// The name of the resource group. The name is case insensitive. /// /// /// The name of the managed instance. @@ -217,8 +209,7 @@ public static void Delete(this IManagedDatabasesOperations operations, string re /// The operations group for this extension method. /// /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. + /// The name of the resource group. The name is case insensitive. /// /// /// The name of the managed instance. @@ -241,8 +232,7 @@ public static ManagedDatabase Update(this IManagedDatabasesOperations operations /// The operations group for this extension method. /// /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. + /// The name of the resource group. The name is case insensitive. /// /// /// The name of the managed instance. @@ -264,6 +254,46 @@ public static ManagedDatabase Update(this IManagedDatabasesOperations operations } } + /// + /// Gets a list of inaccessible managed databases in a managed instance + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the managed instance. + /// + public static IPage ListInaccessibleByInstance(this IManagedDatabasesOperations operations, string resourceGroupName, string managedInstanceName) + { + return operations.ListInaccessibleByInstanceAsync(resourceGroupName, managedInstanceName).GetAwaiter().GetResult(); + } + + /// + /// Gets a list of inaccessible managed databases in a managed instance + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the managed instance. + /// + /// + /// The cancellation token. + /// + public static async Task> ListInaccessibleByInstanceAsync(this IManagedDatabasesOperations operations, string resourceGroupName, string managedInstanceName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListInaccessibleByInstanceWithHttpMessagesAsync(resourceGroupName, managedInstanceName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + /// /// Completes the restore operation on a managed database. /// @@ -271,8 +301,7 @@ public static ManagedDatabase Update(this IManagedDatabasesOperations operations /// The operations group for this extension method. /// /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. + /// The name of the resource group. The name is case insensitive. /// /// /// The name of the managed instance. @@ -295,8 +324,7 @@ public static void CompleteRestore(this IManagedDatabasesOperations operations, /// The operations group for this extension method. /// /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. + /// The name of the resource group. The name is case insensitive. /// /// /// The name of the managed instance. @@ -322,8 +350,7 @@ public static void CompleteRestore(this IManagedDatabasesOperations operations, /// The operations group for this extension method. /// /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. + /// The name of the resource group. The name is case insensitive. /// /// /// The name of the managed instance. @@ -346,8 +373,7 @@ public static ManagedDatabase BeginCreateOrUpdate(this IManagedDatabasesOperatio /// The operations group for this extension method. /// /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. + /// The name of the resource group. The name is case insensitive. /// /// /// The name of the managed instance. @@ -376,8 +402,7 @@ public static ManagedDatabase BeginCreateOrUpdate(this IManagedDatabasesOperatio /// The operations group for this extension method. /// /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. + /// The name of the resource group. The name is case insensitive. /// /// /// The name of the managed instance. @@ -397,8 +422,7 @@ public static void BeginDelete(this IManagedDatabasesOperations operations, stri /// The operations group for this extension method. /// /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. + /// The name of the resource group. The name is case insensitive. /// /// /// The name of the managed instance. @@ -421,8 +445,7 @@ public static void BeginDelete(this IManagedDatabasesOperations operations, stri /// The operations group for this extension method. /// /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. + /// The name of the resource group. The name is case insensitive. /// /// /// The name of the managed instance. @@ -445,8 +468,7 @@ public static ManagedDatabase BeginUpdate(this IManagedDatabasesOperations opera /// The operations group for this extension method. /// /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. + /// The name of the resource group. The name is case insensitive. /// /// /// The name of the managed instance. @@ -475,8 +497,7 @@ public static ManagedDatabase BeginUpdate(this IManagedDatabasesOperations opera /// The operations group for this extension method. /// /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. + /// The name of the resource group. The name is case insensitive. /// /// /// The name of the managed instance. @@ -499,8 +520,7 @@ public static void BeginCompleteRestore(this IManagedDatabasesOperations operati /// The operations group for this extension method. /// /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. + /// The name of the resource group. The name is case insensitive. /// /// /// The name of the managed instance. @@ -553,5 +573,39 @@ public static IPage ListByInstanceNext(this IManagedDatabasesOp } } + /// + /// Gets a list of inaccessible managed databases in a managed instance + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListInaccessibleByInstanceNext(this IManagedDatabasesOperations operations, string nextPageLink) + { + return operations.ListInaccessibleByInstanceNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Gets a list of inaccessible managed databases in a managed instance + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListInaccessibleByInstanceNextAsync(this IManagedDatabasesOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListInaccessibleByInstanceNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedInstancesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedInstancesOperations.cs index c29329ed913d..9dad29e0afce 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedInstancesOperations.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedInstancesOperations.cs @@ -51,15 +51,38 @@ internal ManagedInstancesOperations(SqlManagementClient client) public SqlManagementClient Client { get; private set; } /// - /// Gets a list of all managed instances in an instance pool. + /// Failovers a managed instance. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the managed instance. + /// + /// + /// The type of replica to be failed over. Possible values include: 'Primary', + /// 'ReadableSecondary' + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task FailoverWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, ReplicaType? replicaType = default(ReplicaType?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginFailoverWithHttpMessagesAsync(resourceGroupName, managedInstanceName, replicaType, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Gets a list of managed instances in a resource group. /// /// /// The name of the resource group that contains the resource. You can obtain /// this value from the Azure Resource Manager API or the portal. /// - /// - /// The instance pool name. - /// /// /// Headers that will be added to request. /// @@ -81,16 +104,12 @@ internal ManagedInstancesOperations(SqlManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListByInstancePoolWithHttpMessagesAsync(string resourceGroupName, string instancePoolName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByResourceGroupWithHttpMessagesAsync(string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (resourceGroupName == null) { throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); } - if (instancePoolName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "instancePoolName"); - } if (Client.SubscriptionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); @@ -104,16 +123,14 @@ internal ManagedInstancesOperations(SqlManagementClient client) _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("resourceGroupName", resourceGroupName); - tracingParameters.Add("instancePoolName", instancePoolName); tracingParameters.Add("apiVersion", apiVersion); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListByInstancePool", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "ListByResourceGroup", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/instancePools/{instancePoolName}/managedInstances").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances").ToString(); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); - _url = _url.Replace("{instancePoolName}", System.Uri.EscapeDataString(instancePoolName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); List _queryParameters = new List(); if (apiVersion != null) @@ -246,12 +263,15 @@ internal ManagedInstancesOperations(SqlManagementClient client) } /// - /// Gets a list of managed instances in a resource group. + /// Gets a managed instance. /// /// /// The name of the resource group that contains the resource. You can obtain /// this value from the Azure Resource Manager API or the portal. /// + /// + /// The name of the managed instance. + /// /// /// Headers that will be added to request. /// @@ -273,12 +293,16 @@ internal ManagedInstancesOperations(SqlManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListByResourceGroupWithHttpMessagesAsync(string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (resourceGroupName == null) { throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); } + if (managedInstanceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "managedInstanceName"); + } if (Client.SubscriptionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); @@ -292,14 +316,16 @@ internal ManagedInstancesOperations(SqlManagementClient client) _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("managedInstanceName", managedInstanceName); tracingParameters.Add("apiVersion", apiVersion); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListByResourceGroup", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}").ToString(); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{managedInstanceName}", System.Uri.EscapeDataString(managedInstanceName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); List _queryParameters = new List(); if (apiVersion != null) @@ -399,7 +425,7 @@ internal ManagedInstancesOperations(SqlManagementClient client) throw ex; } // Create Result - var _result = new AzureOperationResponse>(); + var _result = new AzureOperationResponse(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) @@ -412,7 +438,7 @@ internal ManagedInstancesOperations(SqlManagementClient client) _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); } catch (JsonException ex) { @@ -432,7 +458,7 @@ internal ManagedInstancesOperations(SqlManagementClient client) } /// - /// Gets a managed instance. + /// Creates or updates a managed instance. /// /// /// The name of the resource group that contains the resource. You can obtain @@ -441,6 +467,81 @@ internal ManagedInstancesOperations(SqlManagementClient client) /// /// The name of the managed instance. /// + /// + /// The requested managed instance resource state. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, ManagedInstance parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send Request + AzureOperationResponse _response = await BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, managedInstanceName, parameters, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Deletes a managed instance. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the managed instance. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task DeleteWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(resourceGroupName, managedInstanceName, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Updates a managed instance. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the managed instance. + /// + /// + /// The requested managed instance resource state. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, ManagedInstanceUpdate parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send Request + AzureOperationResponse _response = await BeginUpdateWithHttpMessagesAsync(resourceGroupName, managedInstanceName, parameters, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Gets a list of all managed instances in an instance pool. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The instance pool name. + /// /// /// Headers that will be added to request. /// @@ -462,15 +563,15 @@ internal ManagedInstancesOperations(SqlManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByInstancePoolWithHttpMessagesAsync(string resourceGroupName, string instancePoolName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (resourceGroupName == null) { throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); } - if (managedInstanceName == null) + if (instancePoolName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "managedInstanceName"); + throw new ValidationException(ValidationRules.CannotBeNull, "instancePoolName"); } if (Client.SubscriptionId == null) { @@ -485,16 +586,16 @@ internal ManagedInstancesOperations(SqlManagementClient client) _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("resourceGroupName", resourceGroupName); - tracingParameters.Add("managedInstanceName", managedInstanceName); + tracingParameters.Add("instancePoolName", instancePoolName); tracingParameters.Add("apiVersion", apiVersion); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "ListByInstancePool", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/instancePools/{instancePoolName}/managedInstances").ToString(); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); - _url = _url.Replace("{managedInstanceName}", System.Uri.EscapeDataString(managedInstanceName)); + _url = _url.Replace("{instancePoolName}", System.Uri.EscapeDataString(instancePoolName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); List _queryParameters = new List(); if (apiVersion != null) @@ -594,7 +695,7 @@ internal ManagedInstancesOperations(SqlManagementClient client) throw ex; } // Create Result - var _result = new AzureOperationResponse(); + var _result = new AzureOperationResponse>(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) @@ -607,7 +708,7 @@ internal ManagedInstancesOperations(SqlManagementClient client) _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); } catch (JsonException ex) { @@ -627,83 +728,194 @@ internal ManagedInstancesOperations(SqlManagementClient client) } /// - /// Creates or updates a managed instance. + /// Gets a list of all managed instances in the subscription. /// - /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. - /// - /// - /// The name of the managed instance. - /// - /// - /// The requested managed instance resource state. - /// /// - /// The headers that will be added to request. + /// Headers that will be added to request. /// /// /// The cancellation token. /// - public async Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, ManagedInstance parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - // Send Request - AzureOperationResponse _response = await BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, managedInstanceName, parameters, customHeaders, cancellationToken).ConfigureAwait(false); - return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); - } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + string apiVersion = "2020-02-02-preview"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.Sql/managedInstances").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } - /// - /// Deletes a managed instance. - /// - /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. - /// - /// - /// The name of the managed instance. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - public async Task DeleteWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Send request - AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(resourceGroupName, managedInstanceName, customHeaders, cancellationToken).ConfigureAwait(false); - return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; } /// - /// Updates a managed instance. + /// Failovers a managed instance. /// /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. + /// The name of the resource group. The name is case insensitive. /// /// /// The name of the managed instance. /// - /// - /// The requested managed instance resource state. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. + /// + /// The type of replica to be failed over. Possible values include: 'Primary', + /// 'ReadableSecondary' /// - public async Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, ManagedInstanceUpdate parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Send Request - AzureOperationResponse _response = await BeginUpdateWithHttpMessagesAsync(resourceGroupName, managedInstanceName, parameters, customHeaders, cancellationToken).ConfigureAwait(false); - return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); - } - - /// - /// Gets a list of all managed instances in the subscription. - /// /// /// Headers that will be added to request. /// @@ -713,9 +925,6 @@ internal ManagedInstancesOperations(SqlManagementClient client) /// /// Thrown when the operation returned an invalid status code /// - /// - /// Thrown when unable to deserialize the response - /// /// /// Thrown when a required parameter is null /// @@ -725,13 +934,36 @@ internal ManagedInstancesOperations(SqlManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task BeginFailoverWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, ReplicaType? replicaType = default(ReplicaType?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } if (Client.SubscriptionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2020-02-02-preview"; + if (managedInstanceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "managedInstanceName"); + } + string apiVersion = "2019-06-01-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -739,19 +971,28 @@ internal ManagedInstancesOperations(SqlManagementClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("managedInstanceName", managedInstanceName); + tracingParameters.Add("replicaType", replicaType); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "BeginFailover", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.Sql/managedInstances").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/failover").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{managedInstanceName}", System.Uri.EscapeDataString(managedInstanceName)); List _queryParameters = new List(); if (apiVersion != null) { _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); } + if (replicaType != null) + { + _queryParameters.Add(string.Format("replicaType={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(replicaType, Client.SerializationSettings).Trim('"')))); + } if (_queryParameters.Count > 0) { _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); @@ -759,7 +1000,7 @@ internal ManagedInstancesOperations(SqlManagementClient client) // Create HTTP transport objects var _httpRequest = new HttpRequestMessage(); HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.Method = new HttpMethod("POST"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) @@ -810,7 +1051,7 @@ internal ManagedInstancesOperations(SqlManagementClient client) HttpStatusCode _statusCode = _httpResponse.StatusCode; cancellationToken.ThrowIfCancellationRequested(); string _responseContent = null; - if ((int)_statusCode != 200) + if ((int)_statusCode != 200 && (int)_statusCode != 202) { var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try @@ -845,31 +1086,13 @@ internal ManagedInstancesOperations(SqlManagementClient client) throw ex; } // Create Result - var _result = new AzureOperationResponse>(); + var _result = new AzureOperationResponse(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) { _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); } - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } if (_shouldTrace) { ServiceClientTracing.Exit(_invocationId, _result); @@ -877,32 +1100,6 @@ internal ManagedInstancesOperations(SqlManagementClient client) return _result; } - /// - /// Failovers a managed instance. - /// - /// - /// The name of the resource group. The name is case insensitive. - /// - /// - /// The name of the managed instance. - /// - /// - /// The type of replica to be failed over. Possible values include: 'Primary', - /// 'ReadableSecondary' - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - public async Task FailoverWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, string replicaType = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Send request - AzureOperationResponse _response = await BeginFailoverWithHttpMessagesAsync(resourceGroupName, managedInstanceName, replicaType, customHeaders, cancellationToken).ConfigureAwait(false); - return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); - } - /// /// Creates or updates a managed instance. /// @@ -1518,190 +1715,7 @@ internal ManagedInstancesOperations(SqlManagementClient client) } /// - /// Failovers a managed instance. - /// - /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. - /// - /// - /// The name of the managed instance to failover. - /// - /// - /// The type of replica to be failed over. Possible values include: 'Primary', - /// 'ReadableSecondary' - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task BeginFailoverWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, string replicaType = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (resourceGroupName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); - } - if (managedInstanceName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "managedInstanceName"); - } - if (Client.SubscriptionId == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); - } - string apiVersion = "2019-06-01-preview"; - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); - tracingParameters.Add("managedInstanceName", managedInstanceName); - tracingParameters.Add("replicaType", replicaType); - tracingParameters.Add("apiVersion", apiVersion); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "BeginFailover", tracingParameters); - } - // Construct URL - var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/failover").ToString(); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); - _url = _url.Replace("{managedInstanceName}", System.Uri.EscapeDataString(managedInstanceName)); - _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); - List _queryParameters = new List(); - if (replicaType != null) - { - _queryParameters.Add(string.Format("replicaType={0}", System.Uri.EscapeDataString(replicaType))); - } - if (apiVersion != null) - { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); - } - if (_queryParameters.Count > 0) - { - _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("POST"); - _httpRequest.RequestUri = new System.Uri(_url); - // Set Headers - if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) - { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); - } - if (Client.AcceptLanguage != null) - { - if (_httpRequest.Headers.Contains("accept-language")) - { - _httpRequest.Headers.Remove("accept-language"); - } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); - } - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - if (_httpRequest.Headers.Contains(_header.Key)) - { - _httpRequest.Headers.Remove(_header.Key); - } - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Client.Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 202) - { - var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - try - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); - if (_errorBody != null) - { - ex = new CloudException(_errorBody.Message); - ex.Body = _errorBody; - } - } - catch (JsonException) - { - // Ignore the exception - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = new AzureOperationResponse(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// Gets a list of all managed instances in an instance pool. + /// Gets a list of managed instances in a resource group. /// /// /// The NextLink from the previous successful call to List operation. @@ -1727,7 +1741,7 @@ internal ManagedInstancesOperations(SqlManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListByInstancePoolNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByResourceGroupNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (nextPageLink == null) { @@ -1742,7 +1756,7 @@ internal ManagedInstancesOperations(SqlManagementClient client) Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("nextPageLink", nextPageLink); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListByInstancePoolNext", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "ListByResourceGroupNext", tracingParameters); } // Construct URL string _url = "{nextLink}"; @@ -1874,7 +1888,7 @@ internal ManagedInstancesOperations(SqlManagementClient client) } /// - /// Gets a list of managed instances in a resource group. + /// Gets a list of all managed instances in an instance pool. /// /// /// The NextLink from the previous successful call to List operation. @@ -1900,7 +1914,7 @@ internal ManagedInstancesOperations(SqlManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListByResourceGroupNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByInstancePoolNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (nextPageLink == null) { @@ -1915,7 +1929,7 @@ internal ManagedInstancesOperations(SqlManagementClient client) Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("nextPageLink", nextPageLink); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListByResourceGroupNext", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "ListByInstancePoolNext", tracingParameters); } // Construct URL string _url = "{nextLink}"; diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedInstancesOperationsExtensions.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedInstancesOperationsExtensions.cs index ab0f853584b4..7e596b5ca65f 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedInstancesOperationsExtensions.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedInstancesOperationsExtensions.cs @@ -22,45 +22,48 @@ namespace Microsoft.Azure.Management.Sql public static partial class ManagedInstancesOperationsExtensions { /// - /// Gets a list of all managed instances in an instance pool. + /// Failovers a managed instance. /// /// /// The operations group for this extension method. /// /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. + /// The name of the resource group. The name is case insensitive. /// - /// - /// The instance pool name. + /// + /// The name of the managed instance. /// - public static IPage ListByInstancePool(this IManagedInstancesOperations operations, string resourceGroupName, string instancePoolName) + /// + /// The type of replica to be failed over. Possible values include: 'Primary', + /// 'ReadableSecondary' + /// + public static void Failover(this IManagedInstancesOperations operations, string resourceGroupName, string managedInstanceName, ReplicaType? replicaType = default(ReplicaType?)) { - return operations.ListByInstancePoolAsync(resourceGroupName, instancePoolName).GetAwaiter().GetResult(); + operations.FailoverAsync(resourceGroupName, managedInstanceName, replicaType).GetAwaiter().GetResult(); } /// - /// Gets a list of all managed instances in an instance pool. + /// Failovers a managed instance. /// /// /// The operations group for this extension method. /// /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. + /// The name of the resource group. The name is case insensitive. /// - /// - /// The instance pool name. + /// + /// The name of the managed instance. + /// + /// + /// The type of replica to be failed over. Possible values include: 'Primary', + /// 'ReadableSecondary' /// /// /// The cancellation token. /// - public static async Task> ListByInstancePoolAsync(this IManagedInstancesOperations operations, string resourceGroupName, string instancePoolName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task FailoverAsync(this IManagedInstancesOperations operations, string resourceGroupName, string managedInstanceName, ReplicaType? replicaType = default(ReplicaType?), CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListByInstancePoolWithHttpMessagesAsync(resourceGroupName, instancePoolName, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } + (await operations.FailoverWithHttpMessagesAsync(resourceGroupName, managedInstanceName, replicaType, null, cancellationToken).ConfigureAwait(false)).Dispose(); } /// @@ -276,6 +279,48 @@ public static ManagedInstance Update(this IManagedInstancesOperations operations } } + /// + /// Gets a list of all managed instances in an instance pool. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The instance pool name. + /// + public static IPage ListByInstancePool(this IManagedInstancesOperations operations, string resourceGroupName, string instancePoolName) + { + return operations.ListByInstancePoolAsync(resourceGroupName, instancePoolName).GetAwaiter().GetResult(); + } + + /// + /// Gets a list of all managed instances in an instance pool. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The instance pool name. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByInstancePoolAsync(this IManagedInstancesOperations operations, string resourceGroupName, string instancePoolName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByInstancePoolWithHttpMessagesAsync(resourceGroupName, instancePoolName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + /// /// Gets a list of all managed instances in the subscription. /// @@ -320,9 +365,9 @@ public static IPage List(this IManagedInstancesOperations opera /// The type of replica to be failed over. Possible values include: 'Primary', /// 'ReadableSecondary' /// - public static void Failover(this IManagedInstancesOperations operations, string resourceGroupName, string managedInstanceName, string replicaType = default(string)) + public static void BeginFailover(this IManagedInstancesOperations operations, string resourceGroupName, string managedInstanceName, ReplicaType? replicaType = default(ReplicaType?)) { - operations.FailoverAsync(resourceGroupName, managedInstanceName, replicaType).GetAwaiter().GetResult(); + operations.BeginFailoverAsync(resourceGroupName, managedInstanceName, replicaType).GetAwaiter().GetResult(); } /// @@ -344,9 +389,9 @@ public static IPage List(this IManagedInstancesOperations opera /// /// The cancellation token. /// - public static async Task FailoverAsync(this IManagedInstancesOperations operations, string resourceGroupName, string managedInstanceName, string replicaType = default(string), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task BeginFailoverAsync(this IManagedInstancesOperations operations, string resourceGroupName, string managedInstanceName, ReplicaType? replicaType = default(ReplicaType?), CancellationToken cancellationToken = default(CancellationToken)) { - (await operations.FailoverWithHttpMessagesAsync(resourceGroupName, managedInstanceName, replicaType, null, cancellationToken).ConfigureAwait(false)).Dispose(); + (await operations.BeginFailoverWithHttpMessagesAsync(resourceGroupName, managedInstanceName, replicaType, null, cancellationToken).ConfigureAwait(false)).Dispose(); } /// @@ -485,52 +530,7 @@ public static ManagedInstance BeginUpdate(this IManagedInstancesOperations opera } /// - /// Failovers a managed instance. - /// - /// - /// The operations group for this extension method. - /// - /// - /// The name of the resource group. The name is case insensitive. - /// - /// - /// The name of the managed instance. - /// - /// - /// The type of replica to be failed over. Possible values include: 'Primary', - /// 'ReadableSecondary' - /// - public static void BeginFailover(this IManagedInstancesOperations operations, string resourceGroupName, string managedInstanceName, string replicaType = default(string)) - { - operations.BeginFailoverAsync(resourceGroupName, managedInstanceName, replicaType).GetAwaiter().GetResult(); - } - - /// - /// Failovers a managed instance. - /// - /// - /// The operations group for this extension method. - /// - /// - /// The name of the resource group. The name is case insensitive. - /// - /// - /// The name of the managed instance. - /// - /// - /// The type of replica to be failed over. Possible values include: 'Primary', - /// 'ReadableSecondary' - /// - /// - /// The cancellation token. - /// - public static async Task BeginFailoverAsync(this IManagedInstancesOperations operations, string resourceGroupName, string managedInstanceName, string replicaType = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - (await operations.BeginFailoverWithHttpMessagesAsync(resourceGroupName, managedInstanceName, replicaType, null, cancellationToken).ConfigureAwait(false)).Dispose(); - } - - /// - /// Gets a list of all managed instances in an instance pool. + /// Gets a list of managed instances in a resource group. /// /// /// The operations group for this extension method. @@ -538,13 +538,13 @@ public static ManagedInstance BeginUpdate(this IManagedInstancesOperations opera /// /// The NextLink from the previous successful call to List operation. /// - public static IPage ListByInstancePoolNext(this IManagedInstancesOperations operations, string nextPageLink) + public static IPage ListByResourceGroupNext(this IManagedInstancesOperations operations, string nextPageLink) { - return operations.ListByInstancePoolNextAsync(nextPageLink).GetAwaiter().GetResult(); + return operations.ListByResourceGroupNextAsync(nextPageLink).GetAwaiter().GetResult(); } /// - /// Gets a list of all managed instances in an instance pool. + /// Gets a list of managed instances in a resource group. /// /// /// The operations group for this extension method. @@ -555,16 +555,16 @@ public static IPage ListByInstancePoolNext(this IManagedInstanc /// /// The cancellation token. /// - public static async Task> ListByInstancePoolNextAsync(this IManagedInstancesOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListByResourceGroupNextAsync(this IManagedInstancesOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListByInstancePoolNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListByResourceGroupNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Gets a list of managed instances in a resource group. + /// Gets a list of all managed instances in an instance pool. /// /// /// The operations group for this extension method. @@ -572,13 +572,13 @@ public static IPage ListByInstancePoolNext(this IManagedInstanc /// /// The NextLink from the previous successful call to List operation. /// - public static IPage ListByResourceGroupNext(this IManagedInstancesOperations operations, string nextPageLink) + public static IPage ListByInstancePoolNext(this IManagedInstancesOperations operations, string nextPageLink) { - return operations.ListByResourceGroupNextAsync(nextPageLink).GetAwaiter().GetResult(); + return operations.ListByInstancePoolNextAsync(nextPageLink).GetAwaiter().GetResult(); } /// - /// Gets a list of managed instances in a resource group. + /// Gets a list of all managed instances in an instance pool. /// /// /// The operations group for this extension method. @@ -589,9 +589,9 @@ public static IPage ListByResourceGroupNext(this IManagedInstan /// /// The cancellation token. /// - public static async Task> ListByResourceGroupNextAsync(this IManagedInstancesOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListByInstancePoolNextAsync(this IManagedInstancesOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListByResourceGroupNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListByInstancePoolNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/AutoPauseDelayTimeRange.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/AutoPauseDelayTimeRange.cs new file mode 100644 index 000000000000..4aa00ee16aaf --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/AutoPauseDelayTimeRange.cs @@ -0,0 +1,97 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Supported auto pause delay time range + /// + public partial class AutoPauseDelayTimeRange + { + /// + /// Initializes a new instance of the AutoPauseDelayTimeRange class. + /// + public AutoPauseDelayTimeRange() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the AutoPauseDelayTimeRange class. + /// + /// Minimum value + /// Maximum value + /// Step value for discrete values between the + /// minimum value and the maximum value. + /// Default value is no value is + /// provided + /// Unit of time that delay is expressed in. + /// Possible values include: 'Minutes' + /// Value that is used to not pause + /// (infinite delay before pause) + public AutoPauseDelayTimeRange(int? minValue = default(int?), int? maxValue = default(int?), int? stepSize = default(int?), int? defaultProperty = default(int?), PauseDelayTimeUnit? unit = default(PauseDelayTimeUnit?), int? doNotPauseValue = default(int?)) + { + MinValue = minValue; + MaxValue = maxValue; + StepSize = stepSize; + DefaultProperty = defaultProperty; + Unit = unit; + DoNotPauseValue = doNotPauseValue; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets minimum value + /// + [JsonProperty(PropertyName = "minValue")] + public int? MinValue { get; private set; } + + /// + /// Gets maximum value + /// + [JsonProperty(PropertyName = "maxValue")] + public int? MaxValue { get; private set; } + + /// + /// Gets step value for discrete values between the minimum value and + /// the maximum value. + /// + [JsonProperty(PropertyName = "stepSize")] + public int? StepSize { get; private set; } + + /// + /// Gets default value is no value is provided + /// + [JsonProperty(PropertyName = "default")] + public int? DefaultProperty { get; private set; } + + /// + /// Gets unit of time that delay is expressed in. Possible values + /// include: 'Minutes' + /// + [JsonProperty(PropertyName = "unit")] + public PauseDelayTimeUnit? Unit { get; private set; } + + /// + /// Gets value that is used to not pause (infinite delay before pause) + /// + [JsonProperty(PropertyName = "doNotPauseValue")] + public int? DoNotPauseValue { get; private set; } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/BackupShortTermRetentionPolicy.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/BackupShortTermRetentionPolicy.cs index a3666f867d33..c1f8aa1f2397 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/BackupShortTermRetentionPolicy.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/BackupShortTermRetentionPolicy.cs @@ -40,10 +40,15 @@ public BackupShortTermRetentionPolicy() /// The backup retention period in days. /// This is how many days Point-in-Time Restore will be /// supported. - public BackupShortTermRetentionPolicy(string id = default(string), string name = default(string), string type = default(string), int? retentionDays = default(int?)) + /// The differential backup + /// interval in hours. This is how many interval hours between each + /// differential backup will be supported. This is only applicable to + /// live databases but not dropped databases. + public BackupShortTermRetentionPolicy(string id = default(string), string name = default(string), string type = default(string), int? retentionDays = default(int?), int? diffBackupIntervalInHours = default(int?)) : base(id, name, type) { RetentionDays = retentionDays; + DiffBackupIntervalInHours = diffBackupIntervalInHours; CustomInit(); } @@ -59,5 +64,14 @@ public BackupShortTermRetentionPolicy() [JsonProperty(PropertyName = "properties.retentionDays")] public int? RetentionDays { get; set; } + /// + /// Gets or sets the differential backup interval in hours. This is how + /// many interval hours between each differential backup will be + /// supported. This is only applicable to live databases but not + /// dropped databases. + /// + [JsonProperty(PropertyName = "properties.diffBackupIntervalInHours")] + public int? DiffBackupIntervalInHours { get; set; } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/CapabilityGroup.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/CapabilityGroup.cs index 17a2378a8184..70665148b823 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/CapabilityGroup.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/CapabilityGroup.cs @@ -10,14 +10,102 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for CapabilityGroup. /// - public static class CapabilityGroup + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(CapabilityGroupConverter))] + public struct CapabilityGroup : System.IEquatable { - public const string SupportedEditions = "supportedEditions"; - public const string SupportedElasticPoolEditions = "supportedElasticPoolEditions"; - public const string SupportedManagedInstanceVersions = "supportedManagedInstanceVersions"; + private CapabilityGroup(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly CapabilityGroup SupportedEditions = "supportedEditions"; + + public static readonly CapabilityGroup SupportedElasticPoolEditions = "supportedElasticPoolEditions"; + + public static readonly CapabilityGroup SupportedManagedInstanceVersions = "supportedManagedInstanceVersions"; + + public static readonly CapabilityGroup SupportedInstancePoolEditions = "supportedInstancePoolEditions"; + + public static readonly CapabilityGroup SupportedManagedInstanceEditions = "supportedManagedInstanceEditions"; + + + /// + /// Underlying value of enum CapabilityGroup + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for CapabilityGroup + /// + public override string ToString() + { + return UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type CapabilityGroup + /// + public bool Equals(CapabilityGroup e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to CapabilityGroup + /// + public static implicit operator CapabilityGroup(string value) + { + return new CapabilityGroup(value); + } + + /// + /// Implicit operator to convert CapabilityGroup to string + /// + public static implicit operator string(CapabilityGroup e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum CapabilityGroup + /// + public static bool operator == (CapabilityGroup e1, CapabilityGroup e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum CapabilityGroup + /// + public static bool operator != (CapabilityGroup e1, CapabilityGroup e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for CapabilityGroup + /// + public override bool Equals(object obj) + { + return obj is CapabilityGroup && Equals((CapabilityGroup)obj); + } + + /// + /// Returns for hashCode CapabilityGroup + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/CapabilityGroupConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/CapabilityGroupConverter.cs new file mode 100644 index 000000000000..b648ba1c90cf --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/CapabilityGroupConverter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for CapabilityGroup. + /// + public sealed class CapabilityGroupConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to CapabilityGroup by the + /// converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(CapabilityGroup).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to CapabilityGroup. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (CapabilityGroup)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for CapabilityGroup for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/CatalogCollationType.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/CatalogCollationType.cs index 9f424cc32d9b..f16f92de27e9 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/CatalogCollationType.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/CatalogCollationType.cs @@ -10,13 +10,96 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for CatalogCollationType. /// - public static class CatalogCollationType + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(CatalogCollationTypeConverter))] + public struct CatalogCollationType : System.IEquatable { - public const string DATABASEDEFAULT = "DATABASE_DEFAULT"; - public const string SQLLatin1GeneralCP1CIAS = "SQL_Latin1_General_CP1_CI_AS"; + private CatalogCollationType(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly CatalogCollationType DATABASEDEFAULT = "DATABASE_DEFAULT"; + + public static readonly CatalogCollationType SQLLatin1GeneralCP1CIAS = "SQL_Latin1_General_CP1_CI_AS"; + + + /// + /// Underlying value of enum CatalogCollationType + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for CatalogCollationType + /// + public override string ToString() + { + return UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type CatalogCollationType + /// + public bool Equals(CatalogCollationType e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to CatalogCollationType + /// + public static implicit operator CatalogCollationType(string value) + { + return new CatalogCollationType(value); + } + + /// + /// Implicit operator to convert CatalogCollationType to string + /// + public static implicit operator string(CatalogCollationType e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum CatalogCollationType + /// + public static bool operator == (CatalogCollationType e1, CatalogCollationType e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum CatalogCollationType + /// + public static bool operator != (CatalogCollationType e1, CatalogCollationType e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for CatalogCollationType + /// + public override bool Equals(object obj) + { + return obj is CatalogCollationType && Equals((CatalogCollationType)obj); + } + + /// + /// Returns for hashCode CatalogCollationType + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/CatalogCollationTypeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/CatalogCollationTypeConverter.cs new file mode 100644 index 000000000000..f605382139bd --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/CatalogCollationTypeConverter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for CatalogCollationType. + /// + public sealed class CatalogCollationTypeConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to CatalogCollationType by + /// the converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(CatalogCollationType).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to CatalogCollationType. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (CatalogCollationType)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for CatalogCollationType for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/CheckNameAvailabilityRequest.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/CheckNameAvailabilityRequest.cs index 707d7cce78c2..2a038d4fc11a 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/CheckNameAvailabilityRequest.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/CheckNameAvailabilityRequest.cs @@ -33,8 +33,6 @@ public CheckNameAvailabilityRequest() /// Initializes a new instance of the CheckNameAvailabilityRequest /// class. /// - /// The name whose availability is to be - /// checked. public CheckNameAvailabilityRequest(string name) { Name = name; @@ -54,14 +52,11 @@ static CheckNameAvailabilityRequest() partial void CustomInit(); /// - /// Gets or sets the name whose availability is to be checked. /// [JsonProperty(PropertyName = "name")] public string Name { get; set; } /// - /// The type of resource that is used as the scope of the availability - /// check. /// [JsonProperty(PropertyName = "type")] public static string Type { get; private set; } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/CheckNameAvailabilityResponse.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/CheckNameAvailabilityResponse.cs index 65a8c5fc01e9..ae612275b439 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/CheckNameAvailabilityResponse.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/CheckNameAvailabilityResponse.cs @@ -14,8 +14,7 @@ namespace Microsoft.Azure.Management.Sql.Models using System.Linq; /// - /// A response indicating whether the specified name for a resource is - /// available. + /// The result of a name availability check. /// public partial class CheckNameAvailabilityResponse { @@ -32,20 +31,20 @@ public CheckNameAvailabilityResponse() /// Initializes a new instance of the CheckNameAvailabilityResponse /// class. /// + /// The name whose availability was checked. /// True if the name is available, otherwise /// false. - /// A message explaining why the name is - /// unavailable. Will be null if the name is available. - /// The name whose availability was checked. /// The reason code explaining why the name is - /// unavailable. Will be null if the name is available. Possible values - /// include: 'Invalid', 'AlreadyExists' - public CheckNameAvailabilityResponse(bool? available = default(bool?), string message = default(string), string name = default(string), CheckNameAvailabilityReason? reason = default(CheckNameAvailabilityReason?)) + /// unavailable. Will be undefined if the name is available. Possible + /// values include: 'Invalid', 'AlreadyExists' + /// A message explaining why the name is + /// unavailable. Will be undefined if the name is available. + public CheckNameAvailabilityResponse(string name = default(string), bool? available = default(bool?), CheckNameAvailabilityReason? reason = default(CheckNameAvailabilityReason?), string message = default(string)) { - Available = available; - Message = message; Name = name; + Available = available; Reason = reason; + Message = message; CustomInit(); } @@ -54,32 +53,32 @@ public CheckNameAvailabilityResponse() /// partial void CustomInit(); - /// - /// Gets true if the name is available, otherwise false. - /// - [JsonProperty(PropertyName = "available")] - public bool? Available { get; private set; } - - /// - /// Gets a message explaining why the name is unavailable. Will be null - /// if the name is available. - /// - [JsonProperty(PropertyName = "message")] - public string Message { get; private set; } - /// /// Gets the name whose availability was checked. /// [JsonProperty(PropertyName = "name")] public string Name { get; private set; } + /// + /// Gets true if the name is available, otherwise false. + /// + [JsonProperty(PropertyName = "available")] + public bool? Available { get; private set; } + /// /// Gets the reason code explaining why the name is unavailable. Will - /// be null if the name is available. Possible values include: + /// be undefined if the name is available. Possible values include: /// 'Invalid', 'AlreadyExists' /// [JsonProperty(PropertyName = "reason")] public CheckNameAvailabilityReason? Reason { get; private set; } + /// + /// Gets a message explaining why the name is unavailable. Will be + /// undefined if the name is available. + /// + [JsonProperty(PropertyName = "message")] + public string Message { get; private set; } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/CreateMode.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/CreateMode.cs index e8415a7b5ea0..187d21aa3da5 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/CreateMode.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/CreateMode.cs @@ -10,21 +10,112 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for CreateMode. /// - public static class CreateMode + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(CreateModeConverter))] + public struct CreateMode : System.IEquatable { - public const string Default = "Default"; - public const string Copy = "Copy"; - public const string Secondary = "Secondary"; - public const string PointInTimeRestore = "PointInTimeRestore"; - public const string Restore = "Restore"; - public const string Recovery = "Recovery"; - public const string RestoreExternalBackup = "RestoreExternalBackup"; - public const string RestoreExternalBackupSecondary = "RestoreExternalBackupSecondary"; - public const string RestoreLongTermRetentionBackup = "RestoreLongTermRetentionBackup"; - public const string OnlineSecondary = "OnlineSecondary"; + private CreateMode(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly CreateMode Default = "Default"; + + public static readonly CreateMode Copy = "Copy"; + + public static readonly CreateMode Secondary = "Secondary"; + + public static readonly CreateMode PointInTimeRestore = "PointInTimeRestore"; + + public static readonly CreateMode Restore = "Restore"; + + public static readonly CreateMode Recovery = "Recovery"; + + public static readonly CreateMode RestoreExternalBackup = "RestoreExternalBackup"; + + public static readonly CreateMode RestoreExternalBackupSecondary = "RestoreExternalBackupSecondary"; + + public static readonly CreateMode RestoreLongTermRetentionBackup = "RestoreLongTermRetentionBackup"; + + public static readonly CreateMode OnlineSecondary = "OnlineSecondary"; + + + /// + /// Underlying value of enum CreateMode + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for CreateMode + /// + public override string ToString() + { + return UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type CreateMode + /// + public bool Equals(CreateMode e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to CreateMode + /// + public static implicit operator CreateMode(string value) + { + return new CreateMode(value); + } + + /// + /// Implicit operator to convert CreateMode to string + /// + public static implicit operator string(CreateMode e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum CreateMode + /// + public static bool operator == (CreateMode e1, CreateMode e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum CreateMode + /// + public static bool operator != (CreateMode e1, CreateMode e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for CreateMode + /// + public override bool Equals(object obj) + { + return obj is CreateMode && Equals((CreateMode)obj); + } + + /// + /// Returns for hashCode CreateMode + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/CreateModeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/CreateModeConverter.cs new file mode 100644 index 000000000000..b46c3e6cdda3 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/CreateModeConverter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for CreateMode. + /// + public sealed class CreateModeConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to CreateMode by the + /// converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(CreateMode).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to CreateMode. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (CreateMode)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for CreateMode for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/Database.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/Database.cs index e5d1cbad1171..d5355b4a44a6 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/Database.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/Database.cs @@ -152,7 +152,9 @@ public Database() /// redundant, which means the replicas of this database will be spread /// across multiple availability zones. /// The license type to apply for this - /// database. Possible values include: 'LicenseIncluded', + /// database. `LicenseIncluded` if you need a license, or `BasePrice` + /// if you have a license and are eligible for the Azure Hybrid + /// Benefit. Possible values include: 'LicenseIncluded', /// 'BasePrice' /// The max log size for this /// database. @@ -180,7 +182,7 @@ public Database() /// The date when database was resumed by /// user action or database login (ISO8601 format). Null if the /// database is paused. - public Database(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), Sku sku = default(Sku), string kind = default(string), string managedBy = default(string), string createMode = default(string), string collation = default(string), long? maxSizeBytes = default(long?), string sampleName = default(string), string elasticPoolId = default(string), string sourceDatabaseId = default(string), string status = default(string), System.Guid? databaseId = default(System.Guid?), System.DateTime? creationDate = default(System.DateTime?), string currentServiceObjectiveName = default(string), string requestedServiceObjectiveName = default(string), string defaultSecondaryLocation = default(string), string failoverGroupId = default(string), System.DateTime? restorePointInTime = default(System.DateTime?), System.DateTime? sourceDatabaseDeletionDate = default(System.DateTime?), string recoveryServicesRecoveryPointId = default(string), string longTermRetentionBackupResourceId = default(string), string recoverableDatabaseId = default(string), string restorableDroppedDatabaseId = default(string), string catalogCollation = default(string), bool? zoneRedundant = default(bool?), string licenseType = default(string), long? maxLogSizeBytes = default(long?), System.DateTime? earliestRestoreDate = default(System.DateTime?), string readScale = default(string), int? readReplicaCount = default(int?), Sku currentSku = default(Sku), int? autoPauseDelay = default(int?), double? minCapacity = default(double?), System.DateTime? pausedDate = default(System.DateTime?), System.DateTime? resumedDate = default(System.DateTime?)) + public Database(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), Sku sku = default(Sku), string kind = default(string), string managedBy = default(string), CreateMode? createMode = default(CreateMode?), string collation = default(string), long? maxSizeBytes = default(long?), SampleName? sampleName = default(SampleName?), string elasticPoolId = default(string), string sourceDatabaseId = default(string), DatabaseStatus? status = default(DatabaseStatus?), System.Guid? databaseId = default(System.Guid?), System.DateTime? creationDate = default(System.DateTime?), string currentServiceObjectiveName = default(string), string requestedServiceObjectiveName = default(string), string defaultSecondaryLocation = default(string), string failoverGroupId = default(string), System.DateTime? restorePointInTime = default(System.DateTime?), System.DateTime? sourceDatabaseDeletionDate = default(System.DateTime?), string recoveryServicesRecoveryPointId = default(string), string longTermRetentionBackupResourceId = default(string), string recoverableDatabaseId = default(string), string restorableDroppedDatabaseId = default(string), CatalogCollationType? catalogCollation = default(CatalogCollationType?), bool? zoneRedundant = default(bool?), DatabaseLicenseType? licenseType = default(DatabaseLicenseType?), long? maxLogSizeBytes = default(long?), System.DateTime? earliestRestoreDate = default(System.DateTime?), DatabaseReadScale? readScale = default(DatabaseReadScale?), int? readReplicaCount = default(int?), Sku currentSku = default(Sku), int? autoPauseDelay = default(int?), double? minCapacity = default(double?), System.DateTime? pausedDate = default(System.DateTime?), System.DateTime? resumedDate = default(System.DateTime?)) : base(location, id, name, type, tags) { Sku = sku; @@ -302,7 +304,7 @@ public Database() /// 'OnlineSecondary' /// [JsonProperty(PropertyName = "properties.createMode")] - public string CreateMode { get; set; } + public CreateMode? CreateMode { get; set; } /// /// Gets or sets the collation of the database. @@ -322,7 +324,7 @@ public Database() /// 'WideWorldImportersStd', 'WideWorldImportersFull' /// [JsonProperty(PropertyName = "properties.sampleName")] - public string SampleName { get; set; } + public SampleName? SampleName { get; set; } /// /// Gets or sets the resource identifier of the elastic pool containing @@ -348,7 +350,7 @@ public Database() /// 'OnlineChangingDwPerformanceTiers', 'Disabled' /// [JsonProperty(PropertyName = "properties.status")] - public string Status { get; private set; } + public DatabaseStatus? Status { get; private set; } /// /// Gets the ID of the database. @@ -433,7 +435,7 @@ public Database() /// include: 'DATABASE_DEFAULT', 'SQL_Latin1_General_CP1_CI_AS' /// [JsonProperty(PropertyName = "properties.catalogCollation")] - public string CatalogCollation { get; set; } + public CatalogCollationType? CatalogCollation { get; set; } /// /// Gets or sets whether or not this database is zone redundant, which @@ -444,11 +446,13 @@ public Database() public bool? ZoneRedundant { get; set; } /// - /// Gets or sets the license type to apply for this database. Possible + /// Gets or sets the license type to apply for this database. + /// `LicenseIncluded` if you need a license, or `BasePrice` if you have + /// a license and are eligible for the Azure Hybrid Benefit. Possible /// values include: 'LicenseIncluded', 'BasePrice' /// [JsonProperty(PropertyName = "properties.licenseType")] - public string LicenseType { get; set; } + public DatabaseLicenseType? LicenseType { get; set; } /// /// Gets the max log size for this database. @@ -471,7 +475,7 @@ public Database() /// 'Enabled', 'Disabled' /// [JsonProperty(PropertyName = "properties.readScale")] - public string ReadScale { get; set; } + public DatabaseReadScale? ReadScale { get; set; } /// /// Gets or sets the number of readonly secondary replicas associated diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseBlobAuditingPolicy.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseBlobAuditingPolicy.cs index b4f9bc89e6db..639db988b972 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseBlobAuditingPolicy.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseBlobAuditingPolicy.cs @@ -46,9 +46,19 @@ public DatabaseBlobAuditingPolicy() /// Enabled, storageEndpoint or isAzureMonitorTargetEnabled is /// required. /// Specifies the identifier key - /// of the auditing storage account. If state is Enabled and - /// storageEndpoint is specified, storageAccountAccessKey is - /// required. + /// of the auditing storage account. + /// If state is Enabled and storageEndpoint is specified, not + /// specifying the storageAccountAccessKey will use SQL server + /// system-assigned managed identity to access the storage. + /// Prerequisites for using managed identity authentication: + /// 1. Assign SQL Server a system-assigned managed identity in Azure + /// Active Directory (AAD). + /// 2. Grant SQL Server identity access to the storage account by + /// adding 'Storage Blob Data Contributor' RBAC role to the server + /// identity. + /// For more information, see [Auditing to storage using Managed + /// Identity + /// authentication](https://go.microsoft.com/fwlink/?linkid=2114355) /// Specifies the number of days to keep in /// the audit logs in the storage account. /// Specifies the Actions-Groups @@ -200,8 +210,19 @@ public DatabaseBlobAuditingPolicy() /// /// Gets or sets specifies the identifier key of the auditing storage - /// account. If state is Enabled and storageEndpoint is specified, - /// storageAccountAccessKey is required. + /// account. + /// If state is Enabled and storageEndpoint is specified, not + /// specifying the storageAccountAccessKey will use SQL server + /// system-assigned managed identity to access the storage. + /// Prerequisites for using managed identity authentication: + /// 1. Assign SQL Server a system-assigned managed identity in Azure + /// Active Directory (AAD). + /// 2. Grant SQL Server identity access to the storage account by + /// adding 'Storage Blob Data Contributor' RBAC role to the server + /// identity. + /// For more information, see [Auditing to storage using Managed + /// Identity + /// authentication](https://go.microsoft.com/fwlink/?linkid=2114355) /// [JsonProperty(PropertyName = "properties.storageAccountAccessKey")] public string StorageAccountAccessKey { get; set; } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseLicenseType.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseLicenseType.cs index 8fec77be3faf..18b62df46b65 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseLicenseType.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseLicenseType.cs @@ -10,13 +10,96 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for DatabaseLicenseType. /// - public static class DatabaseLicenseType + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(DatabaseLicenseTypeConverter))] + public struct DatabaseLicenseType : System.IEquatable { - public const string LicenseIncluded = "LicenseIncluded"; - public const string BasePrice = "BasePrice"; + private DatabaseLicenseType(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly DatabaseLicenseType LicenseIncluded = "LicenseIncluded"; + + public static readonly DatabaseLicenseType BasePrice = "BasePrice"; + + + /// + /// Underlying value of enum DatabaseLicenseType + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for DatabaseLicenseType + /// + public override string ToString() + { + return UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type DatabaseLicenseType + /// + public bool Equals(DatabaseLicenseType e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to DatabaseLicenseType + /// + public static implicit operator DatabaseLicenseType(string value) + { + return new DatabaseLicenseType(value); + } + + /// + /// Implicit operator to convert DatabaseLicenseType to string + /// + public static implicit operator string(DatabaseLicenseType e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum DatabaseLicenseType + /// + public static bool operator == (DatabaseLicenseType e1, DatabaseLicenseType e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum DatabaseLicenseType + /// + public static bool operator != (DatabaseLicenseType e1, DatabaseLicenseType e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for DatabaseLicenseType + /// + public override bool Equals(object obj) + { + return obj is DatabaseLicenseType && Equals((DatabaseLicenseType)obj); + } + + /// + /// Returns for hashCode DatabaseLicenseType + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseLicenseTypeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseLicenseTypeConverter.cs new file mode 100644 index 000000000000..d72fe3f966be --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseLicenseTypeConverter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for DatabaseLicenseType. + /// + public sealed class DatabaseLicenseTypeConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to DatabaseLicenseType by + /// the converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(DatabaseLicenseType).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to DatabaseLicenseType. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (DatabaseLicenseType)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for DatabaseLicenseType for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseOperation.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseOperation.cs index 98d64dc4bfb6..4af090f5ddb6 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseOperation.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseOperation.cs @@ -58,7 +58,7 @@ public DatabaseOperation() /// The operation description. /// Whether the operation can be /// cancelled. - public DatabaseOperation(string id = default(string), string name = default(string), string type = default(string), string databaseName = default(string), string operation = default(string), string operationFriendlyName = default(string), int? percentComplete = default(int?), string serverName = default(string), System.DateTime? startTime = default(System.DateTime?), string state = default(string), int? errorCode = default(int?), string errorDescription = default(string), int? errorSeverity = default(int?), bool? isUserError = default(bool?), System.DateTime? estimatedCompletionTime = default(System.DateTime?), string description = default(string), bool? isCancellable = default(bool?)) + public DatabaseOperation(string id = default(string), string name = default(string), string type = default(string), string databaseName = default(string), string operation = default(string), string operationFriendlyName = default(string), int? percentComplete = default(int?), string serverName = default(string), System.DateTime? startTime = default(System.DateTime?), ManagementOperationState? state = default(ManagementOperationState?), int? errorCode = default(int?), string errorDescription = default(string), int? errorSeverity = default(int?), bool? isUserError = default(bool?), System.DateTime? estimatedCompletionTime = default(System.DateTime?), string description = default(string), bool? isCancellable = default(bool?)) : base(id, name, type) { DatabaseName = databaseName; @@ -125,7 +125,7 @@ public DatabaseOperation() /// 'Cancelled' /// [JsonProperty(PropertyName = "properties.state")] - public string State { get; private set; } + public ManagementOperationState? State { get; private set; } /// /// Gets the operation error code. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseReadScale.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseReadScale.cs index be48a34acdcf..4e0dccd1f32b 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseReadScale.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseReadScale.cs @@ -10,13 +10,96 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for DatabaseReadScale. /// - public static class DatabaseReadScale + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(DatabaseReadScaleConverter))] + public struct DatabaseReadScale : System.IEquatable { - public const string Enabled = "Enabled"; - public const string Disabled = "Disabled"; + private DatabaseReadScale(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly DatabaseReadScale Enabled = "Enabled"; + + public static readonly DatabaseReadScale Disabled = "Disabled"; + + + /// + /// Underlying value of enum DatabaseReadScale + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for DatabaseReadScale + /// + public override string ToString() + { + return UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type DatabaseReadScale + /// + public bool Equals(DatabaseReadScale e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to DatabaseReadScale + /// + public static implicit operator DatabaseReadScale(string value) + { + return new DatabaseReadScale(value); + } + + /// + /// Implicit operator to convert DatabaseReadScale to string + /// + public static implicit operator string(DatabaseReadScale e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum DatabaseReadScale + /// + public static bool operator == (DatabaseReadScale e1, DatabaseReadScale e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum DatabaseReadScale + /// + public static bool operator != (DatabaseReadScale e1, DatabaseReadScale e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for DatabaseReadScale + /// + public override bool Equals(object obj) + { + return obj is DatabaseReadScale && Equals((DatabaseReadScale)obj); + } + + /// + /// Returns for hashCode DatabaseReadScale + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseReadScaleConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseReadScaleConverter.cs new file mode 100644 index 000000000000..976b4109ab1d --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseReadScaleConverter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for DatabaseReadScale. + /// + public sealed class DatabaseReadScaleConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to DatabaseReadScale by the + /// converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(DatabaseReadScale).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to DatabaseReadScale. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (DatabaseReadScale)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for DatabaseReadScale for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState1.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState1.cs index 2692f1d2ec2c..649b01882773 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState1.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState1.cs @@ -10,14 +10,98 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for DatabaseState1. /// - public static class DatabaseState1 + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(DatabaseState1Converter))] + public struct DatabaseState1 : System.IEquatable { - public const string All = "All"; - public const string Live = "Live"; - public const string Deleted = "Deleted"; + private DatabaseState1(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly DatabaseState1 All = "All"; + + public static readonly DatabaseState1 Live = "Live"; + + public static readonly DatabaseState1 Deleted = "Deleted"; + + + /// + /// Underlying value of enum DatabaseState1 + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for DatabaseState1 + /// + public override string ToString() + { + return UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type DatabaseState1 + /// + public bool Equals(DatabaseState1 e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to DatabaseState1 + /// + public static implicit operator DatabaseState1(string value) + { + return new DatabaseState1(value); + } + + /// + /// Implicit operator to convert DatabaseState1 to string + /// + public static implicit operator string(DatabaseState1 e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum DatabaseState1 + /// + public static bool operator == (DatabaseState1 e1, DatabaseState1 e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum DatabaseState1 + /// + public static bool operator != (DatabaseState1 e1, DatabaseState1 e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for DatabaseState1 + /// + public override bool Equals(object obj) + { + return obj is DatabaseState1 && Equals((DatabaseState1)obj); + } + + /// + /// Returns for hashCode DatabaseState1 + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState1Converter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState1Converter.cs new file mode 100644 index 000000000000..da7072c0c9bc --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState1Converter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for DatabaseState1. + /// + public sealed class DatabaseState1Converter : JsonConverter + { + + /// + /// Returns if objectType can be converted to DatabaseState1 by the + /// converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(DatabaseState1).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to DatabaseState1. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (DatabaseState1)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for DatabaseState1 for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState2.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState2.cs index fc0c0446db5e..cbf1efaa443e 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState2.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState2.cs @@ -10,14 +10,98 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for DatabaseState2. /// - public static class DatabaseState2 + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(DatabaseState2Converter))] + public struct DatabaseState2 : System.IEquatable { - public const string All = "All"; - public const string Live = "Live"; - public const string Deleted = "Deleted"; + private DatabaseState2(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly DatabaseState2 All = "All"; + + public static readonly DatabaseState2 Live = "Live"; + + public static readonly DatabaseState2 Deleted = "Deleted"; + + + /// + /// Underlying value of enum DatabaseState2 + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for DatabaseState2 + /// + public override string ToString() + { + return UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type DatabaseState2 + /// + public bool Equals(DatabaseState2 e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to DatabaseState2 + /// + public static implicit operator DatabaseState2(string value) + { + return new DatabaseState2(value); + } + + /// + /// Implicit operator to convert DatabaseState2 to string + /// + public static implicit operator string(DatabaseState2 e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum DatabaseState2 + /// + public static bool operator == (DatabaseState2 e1, DatabaseState2 e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum DatabaseState2 + /// + public static bool operator != (DatabaseState2 e1, DatabaseState2 e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for DatabaseState2 + /// + public override bool Equals(object obj) + { + return obj is DatabaseState2 && Equals((DatabaseState2)obj); + } + + /// + /// Returns for hashCode DatabaseState2 + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState2Converter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState2Converter.cs new file mode 100644 index 000000000000..1e4fcb54834f --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState2Converter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for DatabaseState2. + /// + public sealed class DatabaseState2Converter : JsonConverter + { + + /// + /// Returns if objectType can be converted to DatabaseState2 by the + /// converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(DatabaseState2).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to DatabaseState2. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (DatabaseState2)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for DatabaseState2 for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState3.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState3.cs index 65ba2f51d2e0..b2db5803049a 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState3.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState3.cs @@ -10,14 +10,98 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for DatabaseState3. /// - public static class DatabaseState3 + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(DatabaseState3Converter))] + public struct DatabaseState3 : System.IEquatable { - public const string All = "All"; - public const string Live = "Live"; - public const string Deleted = "Deleted"; + private DatabaseState3(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly DatabaseState3 All = "All"; + + public static readonly DatabaseState3 Live = "Live"; + + public static readonly DatabaseState3 Deleted = "Deleted"; + + + /// + /// Underlying value of enum DatabaseState3 + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for DatabaseState3 + /// + public override string ToString() + { + return UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type DatabaseState3 + /// + public bool Equals(DatabaseState3 e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to DatabaseState3 + /// + public static implicit operator DatabaseState3(string value) + { + return new DatabaseState3(value); + } + + /// + /// Implicit operator to convert DatabaseState3 to string + /// + public static implicit operator string(DatabaseState3 e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum DatabaseState3 + /// + public static bool operator == (DatabaseState3 e1, DatabaseState3 e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum DatabaseState3 + /// + public static bool operator != (DatabaseState3 e1, DatabaseState3 e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for DatabaseState3 + /// + public override bool Equals(object obj) + { + return obj is DatabaseState3 && Equals((DatabaseState3)obj); + } + + /// + /// Returns for hashCode DatabaseState3 + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState3Converter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState3Converter.cs new file mode 100644 index 000000000000..ca2f680cafc4 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState3Converter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for DatabaseState3. + /// + public sealed class DatabaseState3Converter : JsonConverter + { + + /// + /// Returns if objectType can be converted to DatabaseState3 by the + /// converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(DatabaseState3).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to DatabaseState3. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (DatabaseState3)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for DatabaseState3 for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState4.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState4.cs index 47eff0771e7d..43ad4a950640 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState4.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState4.cs @@ -10,14 +10,98 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for DatabaseState4. /// - public static class DatabaseState4 + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(DatabaseState4Converter))] + public struct DatabaseState4 : System.IEquatable { - public const string All = "All"; - public const string Live = "Live"; - public const string Deleted = "Deleted"; + private DatabaseState4(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly DatabaseState4 All = "All"; + + public static readonly DatabaseState4 Live = "Live"; + + public static readonly DatabaseState4 Deleted = "Deleted"; + + + /// + /// Underlying value of enum DatabaseState4 + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for DatabaseState4 + /// + public override string ToString() + { + return UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type DatabaseState4 + /// + public bool Equals(DatabaseState4 e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to DatabaseState4 + /// + public static implicit operator DatabaseState4(string value) + { + return new DatabaseState4(value); + } + + /// + /// Implicit operator to convert DatabaseState4 to string + /// + public static implicit operator string(DatabaseState4 e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum DatabaseState4 + /// + public static bool operator == (DatabaseState4 e1, DatabaseState4 e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum DatabaseState4 + /// + public static bool operator != (DatabaseState4 e1, DatabaseState4 e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for DatabaseState4 + /// + public override bool Equals(object obj) + { + return obj is DatabaseState4 && Equals((DatabaseState4)obj); + } + + /// + /// Returns for hashCode DatabaseState4 + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState4Converter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState4Converter.cs new file mode 100644 index 000000000000..c1a2f28537f0 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState4Converter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for DatabaseState4. + /// + public sealed class DatabaseState4Converter : JsonConverter + { + + /// + /// Returns if objectType can be converted to DatabaseState4 by the + /// converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(DatabaseState4).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to DatabaseState4. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (DatabaseState4)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for DatabaseState4 for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState5.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState5.cs index ce9a5903a777..7bb73094aec1 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState5.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState5.cs @@ -10,14 +10,98 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for DatabaseState5. /// - public static class DatabaseState5 + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(DatabaseState5Converter))] + public struct DatabaseState5 : System.IEquatable { - public const string All = "All"; - public const string Live = "Live"; - public const string Deleted = "Deleted"; + private DatabaseState5(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly DatabaseState5 All = "All"; + + public static readonly DatabaseState5 Live = "Live"; + + public static readonly DatabaseState5 Deleted = "Deleted"; + + + /// + /// Underlying value of enum DatabaseState5 + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for DatabaseState5 + /// + public override string ToString() + { + return UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type DatabaseState5 + /// + public bool Equals(DatabaseState5 e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to DatabaseState5 + /// + public static implicit operator DatabaseState5(string value) + { + return new DatabaseState5(value); + } + + /// + /// Implicit operator to convert DatabaseState5 to string + /// + public static implicit operator string(DatabaseState5 e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum DatabaseState5 + /// + public static bool operator == (DatabaseState5 e1, DatabaseState5 e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum DatabaseState5 + /// + public static bool operator != (DatabaseState5 e1, DatabaseState5 e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for DatabaseState5 + /// + public override bool Equals(object obj) + { + return obj is DatabaseState5 && Equals((DatabaseState5)obj); + } + + /// + /// Returns for hashCode DatabaseState5 + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState5Converter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState5Converter.cs new file mode 100644 index 000000000000..78b6f4aa11e5 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState5Converter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for DatabaseState5. + /// + public sealed class DatabaseState5Converter : JsonConverter + { + + /// + /// Returns if objectType can be converted to DatabaseState5 by the + /// converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(DatabaseState5).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to DatabaseState5. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (DatabaseState5)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for DatabaseState5 for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState6.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState6.cs index dc5e76219007..50cbc1fca9bf 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState6.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState6.cs @@ -10,14 +10,98 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for DatabaseState6. /// - public static class DatabaseState6 + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(DatabaseState6Converter))] + public struct DatabaseState6 : System.IEquatable { - public const string All = "All"; - public const string Live = "Live"; - public const string Deleted = "Deleted"; + private DatabaseState6(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly DatabaseState6 All = "All"; + + public static readonly DatabaseState6 Live = "Live"; + + public static readonly DatabaseState6 Deleted = "Deleted"; + + + /// + /// Underlying value of enum DatabaseState6 + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for DatabaseState6 + /// + public override string ToString() + { + return UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type DatabaseState6 + /// + public bool Equals(DatabaseState6 e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to DatabaseState6 + /// + public static implicit operator DatabaseState6(string value) + { + return new DatabaseState6(value); + } + + /// + /// Implicit operator to convert DatabaseState6 to string + /// + public static implicit operator string(DatabaseState6 e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum DatabaseState6 + /// + public static bool operator == (DatabaseState6 e1, DatabaseState6 e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum DatabaseState6 + /// + public static bool operator != (DatabaseState6 e1, DatabaseState6 e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for DatabaseState6 + /// + public override bool Equals(object obj) + { + return obj is DatabaseState6 && Equals((DatabaseState6)obj); + } + + /// + /// Returns for hashCode DatabaseState6 + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState6Converter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState6Converter.cs new file mode 100644 index 000000000000..3a3b9fbabbef --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState6Converter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for DatabaseState6. + /// + public sealed class DatabaseState6Converter : JsonConverter + { + + /// + /// Returns if objectType can be converted to DatabaseState6 by the + /// converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(DatabaseState6).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to DatabaseState6. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (DatabaseState6)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for DatabaseState6 for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseStatus.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseStatus.cs index 5caced77f2da..010a9a945d48 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseStatus.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseStatus.cs @@ -10,32 +10,134 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for DatabaseStatus. /// - public static class DatabaseStatus + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(DatabaseStatusConverter))] + public struct DatabaseStatus : System.IEquatable { - public const string Online = "Online"; - public const string Restoring = "Restoring"; - public const string RecoveryPending = "RecoveryPending"; - public const string Recovering = "Recovering"; - public const string Suspect = "Suspect"; - public const string Offline = "Offline"; - public const string Standby = "Standby"; - public const string Shutdown = "Shutdown"; - public const string EmergencyMode = "EmergencyMode"; - public const string AutoClosed = "AutoClosed"; - public const string Copying = "Copying"; - public const string Creating = "Creating"; - public const string Inaccessible = "Inaccessible"; - public const string OfflineSecondary = "OfflineSecondary"; - public const string Pausing = "Pausing"; - public const string Paused = "Paused"; - public const string Resuming = "Resuming"; - public const string Scaling = "Scaling"; - public const string OfflineChangingDwPerformanceTiers = "OfflineChangingDwPerformanceTiers"; - public const string OnlineChangingDwPerformanceTiers = "OnlineChangingDwPerformanceTiers"; - public const string Disabled = "Disabled"; + private DatabaseStatus(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly DatabaseStatus Online = "Online"; + + public static readonly DatabaseStatus Restoring = "Restoring"; + + public static readonly DatabaseStatus RecoveryPending = "RecoveryPending"; + + public static readonly DatabaseStatus Recovering = "Recovering"; + + public static readonly DatabaseStatus Suspect = "Suspect"; + + public static readonly DatabaseStatus Offline = "Offline"; + + public static readonly DatabaseStatus Standby = "Standby"; + + public static readonly DatabaseStatus Shutdown = "Shutdown"; + + public static readonly DatabaseStatus EmergencyMode = "EmergencyMode"; + + public static readonly DatabaseStatus AutoClosed = "AutoClosed"; + + public static readonly DatabaseStatus Copying = "Copying"; + + public static readonly DatabaseStatus Creating = "Creating"; + + public static readonly DatabaseStatus Inaccessible = "Inaccessible"; + + public static readonly DatabaseStatus OfflineSecondary = "OfflineSecondary"; + + public static readonly DatabaseStatus Pausing = "Pausing"; + + public static readonly DatabaseStatus Paused = "Paused"; + + public static readonly DatabaseStatus Resuming = "Resuming"; + + public static readonly DatabaseStatus Scaling = "Scaling"; + + public static readonly DatabaseStatus OfflineChangingDwPerformanceTiers = "OfflineChangingDwPerformanceTiers"; + + public static readonly DatabaseStatus OnlineChangingDwPerformanceTiers = "OnlineChangingDwPerformanceTiers"; + + public static readonly DatabaseStatus Disabled = "Disabled"; + + + /// + /// Underlying value of enum DatabaseStatus + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for DatabaseStatus + /// + public override string ToString() + { + return UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type DatabaseStatus + /// + public bool Equals(DatabaseStatus e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to DatabaseStatus + /// + public static implicit operator DatabaseStatus(string value) + { + return new DatabaseStatus(value); + } + + /// + /// Implicit operator to convert DatabaseStatus to string + /// + public static implicit operator string(DatabaseStatus e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum DatabaseStatus + /// + public static bool operator == (DatabaseStatus e1, DatabaseStatus e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum DatabaseStatus + /// + public static bool operator != (DatabaseStatus e1, DatabaseStatus e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for DatabaseStatus + /// + public override bool Equals(object obj) + { + return obj is DatabaseStatus && Equals((DatabaseStatus)obj); + } + + /// + /// Returns for hashCode DatabaseStatus + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseStatusConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseStatusConverter.cs new file mode 100644 index 000000000000..9e23c1e959c2 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseStatusConverter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for DatabaseStatus. + /// + public sealed class DatabaseStatusConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to DatabaseStatus by the + /// converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(DatabaseStatus).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to DatabaseStatus. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (DatabaseStatus)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for DatabaseStatus for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseUpdate.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseUpdate.cs index 275cd2e70a33..a49b8266b671 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseUpdate.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseUpdate.cs @@ -129,7 +129,9 @@ public DatabaseUpdate() /// redundant, which means the replicas of this database will be spread /// across multiple availability zones. /// The license type to apply for this - /// database. Possible values include: 'LicenseIncluded', + /// database. `LicenseIncluded` if you need a license, or `BasePrice` + /// if you have a license and are eligible for the Azure Hybrid + /// Benefit. Possible values include: 'LicenseIncluded', /// 'BasePrice' /// The max log size for this /// database. @@ -158,7 +160,7 @@ public DatabaseUpdate() /// user action or database login (ISO8601 format). Null if the /// database is paused. /// Resource tags. - public DatabaseUpdate(Sku sku = default(Sku), string createMode = default(string), string collation = default(string), long? maxSizeBytes = default(long?), string sampleName = default(string), string elasticPoolId = default(string), string sourceDatabaseId = default(string), string status = default(string), System.Guid? databaseId = default(System.Guid?), System.DateTime? creationDate = default(System.DateTime?), string currentServiceObjectiveName = default(string), string requestedServiceObjectiveName = default(string), string defaultSecondaryLocation = default(string), string failoverGroupId = default(string), System.DateTime? restorePointInTime = default(System.DateTime?), System.DateTime? sourceDatabaseDeletionDate = default(System.DateTime?), string recoveryServicesRecoveryPointId = default(string), string longTermRetentionBackupResourceId = default(string), string recoverableDatabaseId = default(string), string restorableDroppedDatabaseId = default(string), string catalogCollation = default(string), bool? zoneRedundant = default(bool?), string licenseType = default(string), long? maxLogSizeBytes = default(long?), System.DateTime? earliestRestoreDate = default(System.DateTime?), string readScale = default(string), int? readReplicaCount = default(int?), Sku currentSku = default(Sku), int? autoPauseDelay = default(int?), double? minCapacity = default(double?), System.DateTime? pausedDate = default(System.DateTime?), System.DateTime? resumedDate = default(System.DateTime?), IDictionary tags = default(IDictionary)) + public DatabaseUpdate(Sku sku = default(Sku), CreateMode? createMode = default(CreateMode?), string collation = default(string), long? maxSizeBytes = default(long?), SampleName? sampleName = default(SampleName?), string elasticPoolId = default(string), string sourceDatabaseId = default(string), DatabaseStatus? status = default(DatabaseStatus?), System.Guid? databaseId = default(System.Guid?), System.DateTime? creationDate = default(System.DateTime?), string currentServiceObjectiveName = default(string), string requestedServiceObjectiveName = default(string), string defaultSecondaryLocation = default(string), string failoverGroupId = default(string), System.DateTime? restorePointInTime = default(System.DateTime?), System.DateTime? sourceDatabaseDeletionDate = default(System.DateTime?), string recoveryServicesRecoveryPointId = default(string), string longTermRetentionBackupResourceId = default(string), string recoverableDatabaseId = default(string), string restorableDroppedDatabaseId = default(string), CatalogCollationType? catalogCollation = default(CatalogCollationType?), bool? zoneRedundant = default(bool?), DatabaseLicenseType? licenseType = default(DatabaseLicenseType?), long? maxLogSizeBytes = default(long?), System.DateTime? earliestRestoreDate = default(System.DateTime?), DatabaseReadScale? readScale = default(DatabaseReadScale?), int? readReplicaCount = default(int?), Sku currentSku = default(Sku), int? autoPauseDelay = default(int?), double? minCapacity = default(double?), System.DateTime? pausedDate = default(System.DateTime?), System.DateTime? resumedDate = default(System.DateTime?), IDictionary tags = default(IDictionary)) { Sku = sku; CreateMode = createMode; @@ -250,7 +252,7 @@ public DatabaseUpdate() /// 'OnlineSecondary' /// [JsonProperty(PropertyName = "properties.createMode")] - public string CreateMode { get; set; } + public CreateMode? CreateMode { get; set; } /// /// Gets or sets the collation of the database. @@ -270,7 +272,7 @@ public DatabaseUpdate() /// 'WideWorldImportersStd', 'WideWorldImportersFull' /// [JsonProperty(PropertyName = "properties.sampleName")] - public string SampleName { get; set; } + public SampleName? SampleName { get; set; } /// /// Gets or sets the resource identifier of the elastic pool containing @@ -296,7 +298,7 @@ public DatabaseUpdate() /// 'OnlineChangingDwPerformanceTiers', 'Disabled' /// [JsonProperty(PropertyName = "properties.status")] - public string Status { get; private set; } + public DatabaseStatus? Status { get; private set; } /// /// Gets the ID of the database. @@ -381,7 +383,7 @@ public DatabaseUpdate() /// include: 'DATABASE_DEFAULT', 'SQL_Latin1_General_CP1_CI_AS' /// [JsonProperty(PropertyName = "properties.catalogCollation")] - public string CatalogCollation { get; set; } + public CatalogCollationType? CatalogCollation { get; set; } /// /// Gets or sets whether or not this database is zone redundant, which @@ -392,11 +394,13 @@ public DatabaseUpdate() public bool? ZoneRedundant { get; set; } /// - /// Gets or sets the license type to apply for this database. Possible + /// Gets or sets the license type to apply for this database. + /// `LicenseIncluded` if you need a license, or `BasePrice` if you have + /// a license and are eligible for the Azure Hybrid Benefit. Possible /// values include: 'LicenseIncluded', 'BasePrice' /// [JsonProperty(PropertyName = "properties.licenseType")] - public string LicenseType { get; set; } + public DatabaseLicenseType? LicenseType { get; set; } /// /// Gets the max log size for this database. @@ -419,7 +423,7 @@ public DatabaseUpdate() /// 'Enabled', 'Disabled' /// [JsonProperty(PropertyName = "properties.readScale")] - public string ReadScale { get; set; } + public DatabaseReadScale? ReadScale { get; set; } /// /// Gets or sets the number of readonly secondary replicas associated diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseVulnerabilityAssessment.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseVulnerabilityAssessment.cs index 0fcc79220867..4ad6c58749bf 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseVulnerabilityAssessment.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseVulnerabilityAssessment.cs @@ -42,8 +42,8 @@ public DatabaseVulnerabilityAssessment() /// https://myStorage.blob.core.windows.net/VaScans/). It is required /// if server level vulnerability assessment policy doesn't set /// A shared access signature (SAS - /// Key) that has write access to the blob container specified in - /// 'storageContainerPath' parameter. If 'storageAccountAccessKey' + /// Key) that has read and write access to the blob container specified + /// in 'storageContainerPath' parameter. If 'storageAccountAccessKey' /// isn't specified, StorageContainerSasKey is required. /// Specifies the identifier key /// of the storage account for vulnerability assessment scan results. @@ -75,10 +75,10 @@ public DatabaseVulnerabilityAssessment() public string StorageContainerPath { get; set; } /// - /// Gets or sets a shared access signature (SAS Key) that has write - /// access to the blob container specified in 'storageContainerPath' - /// parameter. If 'storageAccountAccessKey' isn't specified, - /// StorageContainerSasKey is required. + /// Gets or sets a shared access signature (SAS Key) that has read and + /// write access to the blob container specified in + /// 'storageContainerPath' parameter. If 'storageAccountAccessKey' + /// isn't specified, StorageContainerSasKey is required. /// [JsonProperty(PropertyName = "properties.storageContainerSasKey")] public string StorageContainerSasKey { get; set; } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/EditionCapability.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/EditionCapability.cs index f68ebcfb7e50..6876d1efeb61 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/EditionCapability.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/EditionCapability.cs @@ -36,15 +36,21 @@ public EditionCapability() /// service objectives for the edition. /// Whether or not zone redundancy is /// supported for the edition. + /// The read scale capability for the + /// edition. + /// The list of supported + /// storage capabilities for this edition /// The status of the capability. Possible values /// include: 'Visible', 'Available', 'Default', 'Disabled' /// The reason for the capability not being /// available. - public EditionCapability(string name = default(string), IList supportedServiceLevelObjectives = default(IList), bool? zoneRedundant = default(bool?), CapabilityStatus? status = default(CapabilityStatus?), string reason = default(string)) + public EditionCapability(string name = default(string), IList supportedServiceLevelObjectives = default(IList), bool? zoneRedundant = default(bool?), ReadScaleCapability readScale = default(ReadScaleCapability), IList supportedStorageCapabilities = default(IList), CapabilityStatus? status = default(CapabilityStatus?), string reason = default(string)) { Name = name; SupportedServiceLevelObjectives = supportedServiceLevelObjectives; ZoneRedundant = zoneRedundant; + ReadScale = readScale; + SupportedStorageCapabilities = supportedStorageCapabilities; Status = status; Reason = reason; CustomInit(); @@ -73,6 +79,18 @@ public EditionCapability() [JsonProperty(PropertyName = "zoneRedundant")] public bool? ZoneRedundant { get; private set; } + /// + /// Gets the read scale capability for the edition. + /// + [JsonProperty(PropertyName = "readScale")] + public ReadScaleCapability ReadScale { get; private set; } + + /// + /// Gets the list of supported storage capabilities for this edition + /// + [JsonProperty(PropertyName = "supportedStorageCapabilities")] + public IList SupportedStorageCapabilities { get; private set; } + /// /// Gets the status of the capability. Possible values include: /// 'Visible', 'Available', 'Default', 'Disabled' diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPool.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPool.cs index 9e5d861d81d0..0032eb762d43 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPool.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPool.cs @@ -67,7 +67,7 @@ public ElasticPool() /// The license type to apply for this /// elastic pool. Possible values include: 'LicenseIncluded', /// 'BasePrice' - public ElasticPool(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), Sku sku = default(Sku), string kind = default(string), string state = default(string), System.DateTime? creationDate = default(System.DateTime?), long? maxSizeBytes = default(long?), ElasticPoolPerDatabaseSettings perDatabaseSettings = default(ElasticPoolPerDatabaseSettings), bool? zoneRedundant = default(bool?), string licenseType = default(string)) + public ElasticPool(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), Sku sku = default(Sku), string kind = default(string), ElasticPoolState? state = default(ElasticPoolState?), System.DateTime? creationDate = default(System.DateTime?), long? maxSizeBytes = default(long?), ElasticPoolPerDatabaseSettings perDatabaseSettings = default(ElasticPoolPerDatabaseSettings), bool? zoneRedundant = default(bool?), ElasticPoolLicenseType? licenseType = default(ElasticPoolLicenseType?)) : base(location, id, name, type, tags) { Sku = sku; @@ -116,7 +116,7 @@ public ElasticPool() /// 'Creating', 'Ready', 'Disabled' /// [JsonProperty(PropertyName = "properties.state")] - public string State { get; private set; } + public ElasticPoolState? State { get; private set; } /// /// Gets the creation date of the elastic pool (ISO8601 format). @@ -150,7 +150,7 @@ public ElasticPool() /// Possible values include: 'LicenseIncluded', 'BasePrice' /// [JsonProperty(PropertyName = "properties.licenseType")] - public string LicenseType { get; set; } + public ElasticPoolLicenseType? LicenseType { get; set; } /// /// Validate the object. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolEdition.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolEdition.cs index 4ce546476901..04e933f36e63 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolEdition.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolEdition.cs @@ -10,16 +10,102 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for ElasticPoolEdition. /// - public static class ElasticPoolEdition + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(ElasticPoolEditionConverter))] + public struct ElasticPoolEdition : System.IEquatable { - public const string Basic = "Basic"; - public const string Standard = "Standard"; - public const string Premium = "Premium"; - public const string GeneralPurpose = "GeneralPurpose"; - public const string BusinessCritical = "BusinessCritical"; + private ElasticPoolEdition(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly ElasticPoolEdition Basic = "Basic"; + + public static readonly ElasticPoolEdition Standard = "Standard"; + + public static readonly ElasticPoolEdition Premium = "Premium"; + + public static readonly ElasticPoolEdition GeneralPurpose = "GeneralPurpose"; + + public static readonly ElasticPoolEdition BusinessCritical = "BusinessCritical"; + + + /// + /// Underlying value of enum ElasticPoolEdition + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for ElasticPoolEdition + /// + public override string ToString() + { + return UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type ElasticPoolEdition + /// + public bool Equals(ElasticPoolEdition e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to ElasticPoolEdition + /// + public static implicit operator ElasticPoolEdition(string value) + { + return new ElasticPoolEdition(value); + } + + /// + /// Implicit operator to convert ElasticPoolEdition to string + /// + public static implicit operator string(ElasticPoolEdition e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum ElasticPoolEdition + /// + public static bool operator == (ElasticPoolEdition e1, ElasticPoolEdition e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum ElasticPoolEdition + /// + public static bool operator != (ElasticPoolEdition e1, ElasticPoolEdition e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for ElasticPoolEdition + /// + public override bool Equals(object obj) + { + return obj is ElasticPoolEdition && Equals((ElasticPoolEdition)obj); + } + + /// + /// Returns for hashCode ElasticPoolEdition + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolEditionConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolEditionConverter.cs new file mode 100644 index 000000000000..b6041a552074 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolEditionConverter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for ElasticPoolEdition. + /// + public sealed class ElasticPoolEditionConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to ElasticPoolEdition by the + /// converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(ElasticPoolEdition).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to ElasticPoolEdition. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (ElasticPoolEdition)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for ElasticPoolEdition for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolLicenseType.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolLicenseType.cs index 91040cda5998..290ae2618e39 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolLicenseType.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolLicenseType.cs @@ -10,13 +10,96 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for ElasticPoolLicenseType. /// - public static class ElasticPoolLicenseType + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(ElasticPoolLicenseTypeConverter))] + public struct ElasticPoolLicenseType : System.IEquatable { - public const string LicenseIncluded = "LicenseIncluded"; - public const string BasePrice = "BasePrice"; + private ElasticPoolLicenseType(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly ElasticPoolLicenseType LicenseIncluded = "LicenseIncluded"; + + public static readonly ElasticPoolLicenseType BasePrice = "BasePrice"; + + + /// + /// Underlying value of enum ElasticPoolLicenseType + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for ElasticPoolLicenseType + /// + public override string ToString() + { + return UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type ElasticPoolLicenseType + /// + public bool Equals(ElasticPoolLicenseType e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to ElasticPoolLicenseType + /// + public static implicit operator ElasticPoolLicenseType(string value) + { + return new ElasticPoolLicenseType(value); + } + + /// + /// Implicit operator to convert ElasticPoolLicenseType to string + /// + public static implicit operator string(ElasticPoolLicenseType e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum ElasticPoolLicenseType + /// + public static bool operator == (ElasticPoolLicenseType e1, ElasticPoolLicenseType e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum ElasticPoolLicenseType + /// + public static bool operator != (ElasticPoolLicenseType e1, ElasticPoolLicenseType e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for ElasticPoolLicenseType + /// + public override bool Equals(object obj) + { + return obj is ElasticPoolLicenseType && Equals((ElasticPoolLicenseType)obj); + } + + /// + /// Returns for hashCode ElasticPoolLicenseType + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolLicenseTypeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolLicenseTypeConverter.cs new file mode 100644 index 000000000000..553f43659d49 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolLicenseTypeConverter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for ElasticPoolLicenseType. + /// + public sealed class ElasticPoolLicenseTypeConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to ElasticPoolLicenseType by + /// the converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(ElasticPoolLicenseType).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to ElasticPoolLicenseType. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (ElasticPoolLicenseType)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for ElasticPoolLicenseType for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolPerDatabaseMaxPerformanceLevelCapability.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolPerDatabaseMaxPerformanceLevelCapability.cs index 74af2a056139..f82b6812d740 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolPerDatabaseMaxPerformanceLevelCapability.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolPerDatabaseMaxPerformanceLevelCapability.cs @@ -43,7 +43,7 @@ public ElasticPoolPerDatabaseMaxPerformanceLevelCapability() /// include: 'Visible', 'Available', 'Default', 'Disabled' /// The reason for the capability not being /// available. - public ElasticPoolPerDatabaseMaxPerformanceLevelCapability(double? limit = default(double?), string unit = default(string), IList supportedPerDatabaseMinPerformanceLevels = default(IList), CapabilityStatus? status = default(CapabilityStatus?), string reason = default(string)) + public ElasticPoolPerDatabaseMaxPerformanceLevelCapability(double? limit = default(double?), PerformanceLevelUnit? unit = default(PerformanceLevelUnit?), IList supportedPerDatabaseMinPerformanceLevels = default(IList), CapabilityStatus? status = default(CapabilityStatus?), string reason = default(string)) { Limit = limit; Unit = unit; @@ -69,7 +69,7 @@ public ElasticPoolPerDatabaseMaxPerformanceLevelCapability() /// include: 'DTU', 'VCores' /// [JsonProperty(PropertyName = "unit")] - public string Unit { get; private set; } + public PerformanceLevelUnit? Unit { get; private set; } /// /// Gets the list of supported min database performance levels. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolPerDatabaseMinPerformanceLevelCapability.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolPerDatabaseMinPerformanceLevelCapability.cs index 90abdfcd655b..9cea5490a81e 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolPerDatabaseMinPerformanceLevelCapability.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolPerDatabaseMinPerformanceLevelCapability.cs @@ -39,7 +39,7 @@ public ElasticPoolPerDatabaseMinPerformanceLevelCapability() /// include: 'Visible', 'Available', 'Default', 'Disabled' /// The reason for the capability not being /// available. - public ElasticPoolPerDatabaseMinPerformanceLevelCapability(double? limit = default(double?), string unit = default(string), CapabilityStatus? status = default(CapabilityStatus?), string reason = default(string)) + public ElasticPoolPerDatabaseMinPerformanceLevelCapability(double? limit = default(double?), PerformanceLevelUnit? unit = default(PerformanceLevelUnit?), CapabilityStatus? status = default(CapabilityStatus?), string reason = default(string)) { Limit = limit; Unit = unit; @@ -64,7 +64,7 @@ public ElasticPoolPerDatabaseMinPerformanceLevelCapability() /// include: 'DTU', 'VCores' /// [JsonProperty(PropertyName = "unit")] - public string Unit { get; private set; } + public PerformanceLevelUnit? Unit { get; private set; } /// /// Gets the status of the capability. Possible values include: diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolPerformanceLevelCapability.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolPerformanceLevelCapability.cs index 7f42a53b6408..9dfae52b9858 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolPerformanceLevelCapability.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolPerformanceLevelCapability.cs @@ -48,11 +48,13 @@ public ElasticPoolPerformanceLevelCapability() /// per database max sizes. /// The list of /// supported per database max performance levels. + /// Whether or not zone redundancy is + /// supported for the performance level. /// The status of the capability. Possible values /// include: 'Visible', 'Available', 'Default', 'Disabled' /// The reason for the capability not being /// available. - public ElasticPoolPerformanceLevelCapability(PerformanceLevelCapability performanceLevel = default(PerformanceLevelCapability), Sku sku = default(Sku), IList supportedLicenseTypes = default(IList), int? maxDatabaseCount = default(int?), MaxSizeCapability includedMaxSize = default(MaxSizeCapability), IList supportedMaxSizes = default(IList), IList supportedPerDatabaseMaxSizes = default(IList), IList supportedPerDatabaseMaxPerformanceLevels = default(IList), CapabilityStatus? status = default(CapabilityStatus?), string reason = default(string)) + public ElasticPoolPerformanceLevelCapability(PerformanceLevelCapability performanceLevel = default(PerformanceLevelCapability), Sku sku = default(Sku), IList supportedLicenseTypes = default(IList), int? maxDatabaseCount = default(int?), MaxSizeCapability includedMaxSize = default(MaxSizeCapability), IList supportedMaxSizes = default(IList), IList supportedPerDatabaseMaxSizes = default(IList), IList supportedPerDatabaseMaxPerformanceLevels = default(IList), bool? zoneRedundant = default(bool?), CapabilityStatus? status = default(CapabilityStatus?), string reason = default(string)) { PerformanceLevel = performanceLevel; Sku = sku; @@ -62,6 +64,7 @@ public ElasticPoolPerformanceLevelCapability() SupportedMaxSizes = supportedMaxSizes; SupportedPerDatabaseMaxSizes = supportedPerDatabaseMaxSizes; SupportedPerDatabaseMaxPerformanceLevels = supportedPerDatabaseMaxPerformanceLevels; + ZoneRedundant = zoneRedundant; Status = status; Reason = reason; CustomInit(); @@ -120,6 +123,13 @@ public ElasticPoolPerformanceLevelCapability() [JsonProperty(PropertyName = "supportedPerDatabaseMaxPerformanceLevels")] public IList SupportedPerDatabaseMaxPerformanceLevels { get; private set; } + /// + /// Gets whether or not zone redundancy is supported for the + /// performance level. + /// + [JsonProperty(PropertyName = "zoneRedundant")] + public bool? ZoneRedundant { get; private set; } + /// /// Gets the status of the capability. Possible values include: /// 'Visible', 'Available', 'Default', 'Disabled' diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolState.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolState.cs index 5e36b8d12088..9e21c9776984 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolState.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolState.cs @@ -10,14 +10,98 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for ElasticPoolState. /// - public static class ElasticPoolState + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(ElasticPoolStateConverter))] + public struct ElasticPoolState : System.IEquatable { - public const string Creating = "Creating"; - public const string Ready = "Ready"; - public const string Disabled = "Disabled"; + private ElasticPoolState(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly ElasticPoolState Creating = "Creating"; + + public static readonly ElasticPoolState Ready = "Ready"; + + public static readonly ElasticPoolState Disabled = "Disabled"; + + + /// + /// Underlying value of enum ElasticPoolState + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for ElasticPoolState + /// + public override string ToString() + { + return UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type ElasticPoolState + /// + public bool Equals(ElasticPoolState e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to ElasticPoolState + /// + public static implicit operator ElasticPoolState(string value) + { + return new ElasticPoolState(value); + } + + /// + /// Implicit operator to convert ElasticPoolState to string + /// + public static implicit operator string(ElasticPoolState e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum ElasticPoolState + /// + public static bool operator == (ElasticPoolState e1, ElasticPoolState e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum ElasticPoolState + /// + public static bool operator != (ElasticPoolState e1, ElasticPoolState e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for ElasticPoolState + /// + public override bool Equals(object obj) + { + return obj is ElasticPoolState && Equals((ElasticPoolState)obj); + } + + /// + /// Returns for hashCode ElasticPoolState + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolStateConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolStateConverter.cs new file mode 100644 index 000000000000..9eae804ada9b --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolStateConverter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for ElasticPoolState. + /// + public sealed class ElasticPoolStateConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to ElasticPoolState by the + /// converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(ElasticPoolState).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to ElasticPoolState. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (ElasticPoolState)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for ElasticPoolState for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolUpdate.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolUpdate.cs index 2fddf59ce1f0..03144be7b350 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolUpdate.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolUpdate.cs @@ -45,7 +45,7 @@ public ElasticPoolUpdate() /// elastic pool. Possible values include: 'LicenseIncluded', /// 'BasePrice' /// Resource tags. - public ElasticPoolUpdate(Sku sku = default(Sku), long? maxSizeBytes = default(long?), ElasticPoolPerDatabaseSettings perDatabaseSettings = default(ElasticPoolPerDatabaseSettings), bool? zoneRedundant = default(bool?), string licenseType = default(string), IDictionary tags = default(IDictionary)) + public ElasticPoolUpdate(Sku sku = default(Sku), long? maxSizeBytes = default(long?), ElasticPoolPerDatabaseSettings perDatabaseSettings = default(ElasticPoolPerDatabaseSettings), bool? zoneRedundant = default(bool?), ElasticPoolLicenseType? licenseType = default(ElasticPoolLicenseType?), IDictionary tags = default(IDictionary)) { Sku = sku; MaxSizeBytes = maxSizeBytes; @@ -92,7 +92,7 @@ public ElasticPoolUpdate() /// Possible values include: 'LicenseIncluded', 'BasePrice' /// [JsonProperty(PropertyName = "properties.licenseType")] - public string LicenseType { get; set; } + public ElasticPoolLicenseType? LicenseType { get; set; } /// /// Gets or sets resource tags. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/EncryptionProtector.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/EncryptionProtector.cs index ea9fe3a5d1a5..8a52edc09327 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/EncryptionProtector.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/EncryptionProtector.cs @@ -46,7 +46,7 @@ public EncryptionProtector() /// The name of the server key. /// The URI of the server key. /// Thumbprint of the server key. - public EncryptionProtector(string serverKeyType, string id = default(string), string name = default(string), string type = default(string), string kind = default(string), string location = default(string), string subregion = default(string), string serverKeyName = default(string), string uri = default(string), string thumbprint = default(string)) + public EncryptionProtector(ServerKeyType serverKeyType, string id = default(string), string name = default(string), string type = default(string), string kind = default(string), string location = default(string), string subregion = default(string), string serverKeyName = default(string), string uri = default(string), string thumbprint = default(string)) : base(id, name, type) { Kind = kind; @@ -95,7 +95,7 @@ public EncryptionProtector() /// 'AzureKeyVault' /// [JsonProperty(PropertyName = "properties.serverKeyType")] - public string ServerKeyType { get; set; } + public ServerKeyType ServerKeyType { get; set; } /// /// Gets the URI of the server key. @@ -117,10 +117,6 @@ public EncryptionProtector() /// public virtual void Validate() { - if (ServerKeyType == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "ServerKeyType"); - } } } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ExportDatabaseDefinition.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ExportDatabaseDefinition.cs new file mode 100644 index 000000000000..a5fb485f8718 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ExportDatabaseDefinition.cs @@ -0,0 +1,131 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Linq; + + /// + /// Contains the information necessary to perform export database + /// operation. + /// + public partial class ExportDatabaseDefinition + { + /// + /// Initializes a new instance of the ExportDatabaseDefinition class. + /// + public ExportDatabaseDefinition() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ExportDatabaseDefinition class. + /// + /// Storage key type. Possible values + /// include: 'SharedAccessKey', 'StorageAccessKey' + /// Storage key. + /// Storage Uri. + /// Administrator login name. + /// Administrator login + /// password. + /// Authentication type. + /// Optional resource information to + /// enable network isolation for request. + public ExportDatabaseDefinition(StorageKeyType storageKeyType, string storageKey, string storageUri, string administratorLogin, string administratorLoginPassword, string authenticationType = default(string), NetworkIsolationSettings networkIsolation = default(NetworkIsolationSettings)) + { + StorageKeyType = storageKeyType; + StorageKey = storageKey; + StorageUri = storageUri; + AdministratorLogin = administratorLogin; + AdministratorLoginPassword = administratorLoginPassword; + AuthenticationType = authenticationType; + NetworkIsolation = networkIsolation; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets storage key type. Possible values include: + /// 'SharedAccessKey', 'StorageAccessKey' + /// + [JsonProperty(PropertyName = "storageKeyType")] + public StorageKeyType StorageKeyType { get; set; } + + /// + /// Gets or sets storage key. + /// + [JsonProperty(PropertyName = "storageKey")] + public string StorageKey { get; set; } + + /// + /// Gets or sets storage Uri. + /// + [JsonProperty(PropertyName = "storageUri")] + public string StorageUri { get; set; } + + /// + /// Gets or sets administrator login name. + /// + [JsonProperty(PropertyName = "administratorLogin")] + public string AdministratorLogin { get; set; } + + /// + /// Gets or sets administrator login password. + /// + [JsonProperty(PropertyName = "administratorLoginPassword")] + public string AdministratorLoginPassword { get; set; } + + /// + /// Gets or sets authentication type. + /// + [JsonProperty(PropertyName = "authenticationType")] + public string AuthenticationType { get; set; } + + /// + /// Gets or sets optional resource information to enable network + /// isolation for request. + /// + [JsonProperty(PropertyName = "networkIsolation")] + public NetworkIsolationSettings NetworkIsolation { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (StorageKey == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "StorageKey"); + } + if (StorageUri == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "StorageUri"); + } + if (AdministratorLogin == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "AdministratorLogin"); + } + if (AdministratorLoginPassword == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "AdministratorLoginPassword"); + } + } + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ExtendedDatabaseBlobAuditingPolicy.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ExtendedDatabaseBlobAuditingPolicy.cs index 26e8b807a859..fb45c749c8e3 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ExtendedDatabaseBlobAuditingPolicy.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ExtendedDatabaseBlobAuditingPolicy.cs @@ -49,9 +49,19 @@ public ExtendedDatabaseBlobAuditingPolicy() /// Enabled, storageEndpoint or isAzureMonitorTargetEnabled is /// required. /// Specifies the identifier key - /// of the auditing storage account. If state is Enabled and - /// storageEndpoint is specified, storageAccountAccessKey is - /// required. + /// of the auditing storage account. + /// If state is Enabled and storageEndpoint is specified, not + /// specifying the storageAccountAccessKey will use SQL server + /// system-assigned managed identity to access the storage. + /// Prerequisites for using managed identity authentication: + /// 1. Assign SQL Server a system-assigned managed identity in Azure + /// Active Directory (AAD). + /// 2. Grant SQL Server identity access to the storage account by + /// adding 'Storage Blob Data Contributor' RBAC role to the server + /// identity. + /// For more information, see [Auditing to storage using Managed + /// Identity + /// authentication](https://go.microsoft.com/fwlink/?linkid=2114355) /// Specifies the number of days to keep in /// the audit logs in the storage account. /// Specifies the Actions-Groups @@ -204,8 +214,19 @@ public ExtendedDatabaseBlobAuditingPolicy() /// /// Gets or sets specifies the identifier key of the auditing storage - /// account. If state is Enabled and storageEndpoint is specified, - /// storageAccountAccessKey is required. + /// account. + /// If state is Enabled and storageEndpoint is specified, not + /// specifying the storageAccountAccessKey will use SQL server + /// system-assigned managed identity to access the storage. + /// Prerequisites for using managed identity authentication: + /// 1. Assign SQL Server a system-assigned managed identity in Azure + /// Active Directory (AAD). + /// 2. Grant SQL Server identity access to the storage account by + /// adding 'Storage Blob Data Contributor' RBAC role to the server + /// identity. + /// For more information, see [Auditing to storage using Managed + /// Identity + /// authentication](https://go.microsoft.com/fwlink/?linkid=2114355) /// [JsonProperty(PropertyName = "properties.storageAccountAccessKey")] public string StorageAccountAccessKey { get; set; } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ExtendedServerBlobAuditingPolicy.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ExtendedServerBlobAuditingPolicy.cs index 31f94db40baa..f7e2e879b2bf 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ExtendedServerBlobAuditingPolicy.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ExtendedServerBlobAuditingPolicy.cs @@ -49,9 +49,19 @@ public ExtendedServerBlobAuditingPolicy() /// Enabled, storageEndpoint or isAzureMonitorTargetEnabled is /// required. /// Specifies the identifier key - /// of the auditing storage account. If state is Enabled and - /// storageEndpoint is specified, storageAccountAccessKey is - /// required. + /// of the auditing storage account. + /// If state is Enabled and storageEndpoint is specified, not + /// specifying the storageAccountAccessKey will use SQL server + /// system-assigned managed identity to access the storage. + /// Prerequisites for using managed identity authentication: + /// 1. Assign SQL Server a system-assigned managed identity in Azure + /// Active Directory (AAD). + /// 2. Grant SQL Server identity access to the storage account by + /// adding 'Storage Blob Data Contributor' RBAC role to the server + /// identity. + /// For more information, see [Auditing to storage using Managed + /// Identity + /// authentication](https://go.microsoft.com/fwlink/?linkid=2114355) /// Specifies the number of days to keep in /// the audit logs in the storage account. /// Specifies the Actions-Groups @@ -204,8 +214,19 @@ public ExtendedServerBlobAuditingPolicy() /// /// Gets or sets specifies the identifier key of the auditing storage - /// account. If state is Enabled and storageEndpoint is specified, - /// storageAccountAccessKey is required. + /// account. + /// If state is Enabled and storageEndpoint is specified, not + /// specifying the storageAccountAccessKey will use SQL server + /// system-assigned managed identity to access the storage. + /// Prerequisites for using managed identity authentication: + /// 1. Assign SQL Server a system-assigned managed identity in Azure + /// Active Directory (AAD). + /// 2. Grant SQL Server identity access to the storage account by + /// adding 'Storage Blob Data Contributor' RBAC role to the server + /// identity. + /// For more information, see [Auditing to storage using Managed + /// Identity + /// authentication](https://go.microsoft.com/fwlink/?linkid=2114355) /// [JsonProperty(PropertyName = "properties.storageAccountAccessKey")] public string StorageAccountAccessKey { get; set; } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/FailoverGroup.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/FailoverGroup.cs index 9fe6b90fb1bd..41197cecd823 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/FailoverGroup.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/FailoverGroup.cs @@ -52,7 +52,7 @@ public FailoverGroup() /// group instance. /// List of databases in the failover /// group. - public FailoverGroup(FailoverGroupReadWriteEndpoint readWriteEndpoint, IList partnerServers, string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), FailoverGroupReadOnlyEndpoint readOnlyEndpoint = default(FailoverGroupReadOnlyEndpoint), string replicationRole = default(string), string replicationState = default(string), IList databases = default(IList)) + public FailoverGroup(FailoverGroupReadWriteEndpoint readWriteEndpoint, IList partnerServers, string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), FailoverGroupReadOnlyEndpoint readOnlyEndpoint = default(FailoverGroupReadOnlyEndpoint), FailoverGroupReplicationRole? replicationRole = default(FailoverGroupReplicationRole?), string replicationState = default(string), IList databases = default(IList)) : base(id, name, type) { Location = location; @@ -100,7 +100,7 @@ public FailoverGroup() /// Possible values include: 'Primary', 'Secondary' /// [JsonProperty(PropertyName = "properties.replicationRole")] - public string ReplicationRole { get; private set; } + public FailoverGroupReplicationRole? ReplicationRole { get; private set; } /// /// Gets replication state of the failover group instance. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/FailoverGroupReadOnlyEndpoint.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/FailoverGroupReadOnlyEndpoint.cs index 161a0d051d5c..cc8c1dbf98fe 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/FailoverGroupReadOnlyEndpoint.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/FailoverGroupReadOnlyEndpoint.cs @@ -34,7 +34,7 @@ public FailoverGroupReadOnlyEndpoint() /// Failover policy of the read-only /// endpoint for the failover group. Possible values include: /// 'Disabled', 'Enabled' - public FailoverGroupReadOnlyEndpoint(string failoverPolicy = default(string)) + public FailoverGroupReadOnlyEndpoint(ReadOnlyEndpointFailoverPolicy? failoverPolicy = default(ReadOnlyEndpointFailoverPolicy?)) { FailoverPolicy = failoverPolicy; CustomInit(); @@ -50,7 +50,7 @@ public FailoverGroupReadOnlyEndpoint() /// failover group. Possible values include: 'Disabled', 'Enabled' /// [JsonProperty(PropertyName = "failoverPolicy")] - public string FailoverPolicy { get; set; } + public ReadOnlyEndpointFailoverPolicy? FailoverPolicy { get; set; } } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/FailoverGroupReadWriteEndpoint.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/FailoverGroupReadWriteEndpoint.cs index 823617cb01ce..f36bd4bfb0d8 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/FailoverGroupReadWriteEndpoint.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/FailoverGroupReadWriteEndpoint.cs @@ -10,7 +10,6 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Microsoft.Rest; using Newtonsoft.Json; using System.Linq; @@ -40,7 +39,7 @@ public FailoverGroupReadWriteEndpoint() /// before failover with data loss is attempted for the read-write /// endpoint. If failoverPolicy is Automatic then /// failoverWithDataLossGracePeriodMinutes is required. - public FailoverGroupReadWriteEndpoint(string failoverPolicy, int? failoverWithDataLossGracePeriodMinutes = default(int?)) + public FailoverGroupReadWriteEndpoint(ReadWriteEndpointFailoverPolicy failoverPolicy, int? failoverWithDataLossGracePeriodMinutes = default(int?)) { FailoverPolicy = failoverPolicy; FailoverWithDataLossGracePeriodMinutes = failoverWithDataLossGracePeriodMinutes; @@ -59,7 +58,7 @@ public FailoverGroupReadWriteEndpoint() /// include: 'Manual', 'Automatic' /// [JsonProperty(PropertyName = "failoverPolicy")] - public string FailoverPolicy { get; set; } + public ReadWriteEndpointFailoverPolicy FailoverPolicy { get; set; } /// /// Gets or sets grace period before failover with data loss is @@ -72,15 +71,11 @@ public FailoverGroupReadWriteEndpoint() /// /// Validate the object. /// - /// + /// /// Thrown if validation fails /// public virtual void Validate() { - if (FailoverPolicy == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "FailoverPolicy"); - } } } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/FailoverGroupReplicationRole.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/FailoverGroupReplicationRole.cs index 380e10a578b4..251e505410d2 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/FailoverGroupReplicationRole.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/FailoverGroupReplicationRole.cs @@ -10,13 +10,96 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for FailoverGroupReplicationRole. /// - public static class FailoverGroupReplicationRole + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(FailoverGroupReplicationRoleConverter))] + public struct FailoverGroupReplicationRole : System.IEquatable { - public const string Primary = "Primary"; - public const string Secondary = "Secondary"; + private FailoverGroupReplicationRole(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly FailoverGroupReplicationRole Primary = "Primary"; + + public static readonly FailoverGroupReplicationRole Secondary = "Secondary"; + + + /// + /// Underlying value of enum FailoverGroupReplicationRole + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for FailoverGroupReplicationRole + /// + public override string ToString() + { + return UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type FailoverGroupReplicationRole + /// + public bool Equals(FailoverGroupReplicationRole e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to FailoverGroupReplicationRole + /// + public static implicit operator FailoverGroupReplicationRole(string value) + { + return new FailoverGroupReplicationRole(value); + } + + /// + /// Implicit operator to convert FailoverGroupReplicationRole to string + /// + public static implicit operator string(FailoverGroupReplicationRole e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum FailoverGroupReplicationRole + /// + public static bool operator == (FailoverGroupReplicationRole e1, FailoverGroupReplicationRole e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum FailoverGroupReplicationRole + /// + public static bool operator != (FailoverGroupReplicationRole e1, FailoverGroupReplicationRole e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for FailoverGroupReplicationRole + /// + public override bool Equals(object obj) + { + return obj is FailoverGroupReplicationRole && Equals((FailoverGroupReplicationRole)obj); + } + + /// + /// Returns for hashCode FailoverGroupReplicationRole + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/FailoverGroupReplicationRoleConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/FailoverGroupReplicationRoleConverter.cs new file mode 100644 index 000000000000..80c2d0b338e3 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/FailoverGroupReplicationRoleConverter.cs @@ -0,0 +1,55 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for FailoverGroupReplicationRole. + /// + public sealed class FailoverGroupReplicationRoleConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to + /// FailoverGroupReplicationRole by the converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(FailoverGroupReplicationRole).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to + /// FailoverGroupReplicationRole. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (FailoverGroupReplicationRole)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for FailoverGroupReplicationRole for + /// serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/IdentityType.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/IdentityType.cs index cb7c7a82b81d..c1c201535595 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/IdentityType.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/IdentityType.cs @@ -10,12 +10,94 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for IdentityType. /// - public static class IdentityType + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(IdentityTypeConverter))] + public struct IdentityType : System.IEquatable { - public const string SystemAssigned = "SystemAssigned"; + private IdentityType(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly IdentityType SystemAssigned = "SystemAssigned"; + + + /// + /// Underlying value of enum IdentityType + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for IdentityType + /// + public override string ToString() + { + return UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type IdentityType + /// + public bool Equals(IdentityType e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to IdentityType + /// + public static implicit operator IdentityType(string value) + { + return new IdentityType(value); + } + + /// + /// Implicit operator to convert IdentityType to string + /// + public static implicit operator string(IdentityType e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum IdentityType + /// + public static bool operator == (IdentityType e1, IdentityType e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum IdentityType + /// + public static bool operator != (IdentityType e1, IdentityType e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for IdentityType + /// + public override bool Equals(object obj) + { + return obj is IdentityType && Equals((IdentityType)obj); + } + + /// + /// Returns for hashCode IdentityType + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/IdentityTypeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/IdentityTypeConverter.cs new file mode 100644 index 000000000000..f171ba65f248 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/IdentityTypeConverter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for IdentityType. + /// + public sealed class IdentityTypeConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to IdentityType by the + /// converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(IdentityType).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to IdentityType. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (IdentityType)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for IdentityType for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ImportExistingDatabaseDefinition.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ImportExistingDatabaseDefinition.cs new file mode 100644 index 000000000000..0c28b55dd451 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ImportExistingDatabaseDefinition.cs @@ -0,0 +1,133 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Linq; + + /// + /// Contains the information necessary to perform import operation for + /// existing database. + /// + public partial class ImportExistingDatabaseDefinition + { + /// + /// Initializes a new instance of the ImportExistingDatabaseDefinition + /// class. + /// + public ImportExistingDatabaseDefinition() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ImportExistingDatabaseDefinition + /// class. + /// + /// Storage key type. Possible values + /// include: 'SharedAccessKey', 'StorageAccessKey' + /// Storage key. + /// Storage Uri. + /// Administrator login name. + /// Administrator login + /// password. + /// Authentication type. + /// Optional resource information to + /// enable network isolation for request. + public ImportExistingDatabaseDefinition(StorageKeyType storageKeyType, string storageKey, string storageUri, string administratorLogin, string administratorLoginPassword, string authenticationType = default(string), NetworkIsolationSettings networkIsolation = default(NetworkIsolationSettings)) + { + StorageKeyType = storageKeyType; + StorageKey = storageKey; + StorageUri = storageUri; + AdministratorLogin = administratorLogin; + AdministratorLoginPassword = administratorLoginPassword; + AuthenticationType = authenticationType; + NetworkIsolation = networkIsolation; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets storage key type. Possible values include: + /// 'SharedAccessKey', 'StorageAccessKey' + /// + [JsonProperty(PropertyName = "storageKeyType")] + public StorageKeyType StorageKeyType { get; set; } + + /// + /// Gets or sets storage key. + /// + [JsonProperty(PropertyName = "storageKey")] + public string StorageKey { get; set; } + + /// + /// Gets or sets storage Uri. + /// + [JsonProperty(PropertyName = "storageUri")] + public string StorageUri { get; set; } + + /// + /// Gets or sets administrator login name. + /// + [JsonProperty(PropertyName = "administratorLogin")] + public string AdministratorLogin { get; set; } + + /// + /// Gets or sets administrator login password. + /// + [JsonProperty(PropertyName = "administratorLoginPassword")] + public string AdministratorLoginPassword { get; set; } + + /// + /// Gets or sets authentication type. + /// + [JsonProperty(PropertyName = "authenticationType")] + public string AuthenticationType { get; set; } + + /// + /// Gets or sets optional resource information to enable network + /// isolation for request. + /// + [JsonProperty(PropertyName = "networkIsolation")] + public NetworkIsolationSettings NetworkIsolation { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (StorageKey == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "StorageKey"); + } + if (StorageUri == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "StorageUri"); + } + if (AdministratorLogin == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "AdministratorLogin"); + } + if (AdministratorLoginPassword == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "AdministratorLoginPassword"); + } + } + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ImportExportOperationResult.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ImportExportOperationResult.cs new file mode 100644 index 000000000000..548a1664d3b2 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ImportExportOperationResult.cs @@ -0,0 +1,135 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// An ImportExport operation result resource. + /// + [Rest.Serialization.JsonTransformation] + public partial class ImportExportOperationResult : ProxyResource + { + /// + /// Initializes a new instance of the ImportExportOperationResult + /// class. + /// + public ImportExportOperationResult() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ImportExportOperationResult + /// class. + /// + /// Resource ID. + /// Resource name. + /// Resource type. + /// Request Id. + /// Request type. + /// Queued time. + /// Last modified time. + /// Blob Uri. + /// Server name. + /// Database name. + /// Operation status. + /// Error message. + /// Gets the status of private + /// endpoints associated with this request. + public ImportExportOperationResult(string id = default(string), string name = default(string), string type = default(string), System.Guid? requestId = default(System.Guid?), string requestType = default(string), string queuedTime = default(string), string lastModifiedTime = default(string), string blobUri = default(string), string serverName = default(string), string databaseName = default(string), string status = default(string), string errorMessage = default(string), IList privateEndpointConnections = default(IList)) + : base(id, name, type) + { + RequestId = requestId; + RequestType = requestType; + QueuedTime = queuedTime; + LastModifiedTime = lastModifiedTime; + BlobUri = blobUri; + ServerName = serverName; + DatabaseName = databaseName; + Status = status; + ErrorMessage = errorMessage; + PrivateEndpointConnections = privateEndpointConnections; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets request Id. + /// + [JsonProperty(PropertyName = "properties.requestId")] + public System.Guid? RequestId { get; private set; } + + /// + /// Gets request type. + /// + [JsonProperty(PropertyName = "properties.requestType")] + public string RequestType { get; private set; } + + /// + /// Gets queued time. + /// + [JsonProperty(PropertyName = "properties.queuedTime")] + public string QueuedTime { get; private set; } + + /// + /// Gets last modified time. + /// + [JsonProperty(PropertyName = "properties.lastModifiedTime")] + public string LastModifiedTime { get; private set; } + + /// + /// Gets blob Uri. + /// + [JsonProperty(PropertyName = "properties.blobUri")] + public string BlobUri { get; private set; } + + /// + /// Gets server name. + /// + [JsonProperty(PropertyName = "properties.serverName")] + public string ServerName { get; private set; } + + /// + /// Gets database name. + /// + [JsonProperty(PropertyName = "properties.databaseName")] + public string DatabaseName { get; private set; } + + /// + /// Gets operation status. + /// + [JsonProperty(PropertyName = "properties.status")] + public string Status { get; private set; } + + /// + /// Gets error message. + /// + [JsonProperty(PropertyName = "properties.errorMessage")] + public string ErrorMessage { get; private set; } + + /// + /// Gets the status of private endpoints associated with this request. + /// + [JsonProperty(PropertyName = "properties.privateEndpointConnections")] + public IList PrivateEndpointConnections { get; private set; } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ImportNewDatabaseDefinition.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ImportNewDatabaseDefinition.cs new file mode 100644 index 000000000000..d13b7f0797b7 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ImportNewDatabaseDefinition.cs @@ -0,0 +1,167 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Linq; + + /// + /// Contains the information necessary to perform import operation for new + /// database. + /// + public partial class ImportNewDatabaseDefinition + { + /// + /// Initializes a new instance of the ImportNewDatabaseDefinition + /// class. + /// + public ImportNewDatabaseDefinition() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ImportNewDatabaseDefinition + /// class. + /// + /// Storage key type. Possible values + /// include: 'SharedAccessKey', 'StorageAccessKey' + /// Storage key. + /// Storage Uri. + /// Administrator login name. + /// Administrator login + /// password. + /// Name of the import database. + /// Edition of the import database. + /// Service level objective name of + /// the import database. + /// Max size in bytes for the import + /// database. + /// Authentication type. + /// Optional resource information to + /// enable network isolation for request. + public ImportNewDatabaseDefinition(StorageKeyType storageKeyType, string storageKey, string storageUri, string administratorLogin, string administratorLoginPassword, string databaseName = default(string), string edition = default(string), string serviceObjectiveName = default(string), string maxSizeBytes = default(string), string authenticationType = default(string), NetworkIsolationSettings networkIsolation = default(NetworkIsolationSettings)) + { + DatabaseName = databaseName; + Edition = edition; + ServiceObjectiveName = serviceObjectiveName; + MaxSizeBytes = maxSizeBytes; + StorageKeyType = storageKeyType; + StorageKey = storageKey; + StorageUri = storageUri; + AdministratorLogin = administratorLogin; + AdministratorLoginPassword = administratorLoginPassword; + AuthenticationType = authenticationType; + NetworkIsolation = networkIsolation; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets name of the import database. + /// + [JsonProperty(PropertyName = "databaseName")] + public string DatabaseName { get; set; } + + /// + /// Gets or sets edition of the import database. + /// + [JsonProperty(PropertyName = "edition")] + public string Edition { get; set; } + + /// + /// Gets or sets service level objective name of the import database. + /// + [JsonProperty(PropertyName = "serviceObjectiveName")] + public string ServiceObjectiveName { get; set; } + + /// + /// Gets or sets max size in bytes for the import database. + /// + [JsonProperty(PropertyName = "maxSizeBytes")] + public string MaxSizeBytes { get; set; } + + /// + /// Gets or sets storage key type. Possible values include: + /// 'SharedAccessKey', 'StorageAccessKey' + /// + [JsonProperty(PropertyName = "storageKeyType")] + public StorageKeyType StorageKeyType { get; set; } + + /// + /// Gets or sets storage key. + /// + [JsonProperty(PropertyName = "storageKey")] + public string StorageKey { get; set; } + + /// + /// Gets or sets storage Uri. + /// + [JsonProperty(PropertyName = "storageUri")] + public string StorageUri { get; set; } + + /// + /// Gets or sets administrator login name. + /// + [JsonProperty(PropertyName = "administratorLogin")] + public string AdministratorLogin { get; set; } + + /// + /// Gets or sets administrator login password. + /// + [JsonProperty(PropertyName = "administratorLoginPassword")] + public string AdministratorLoginPassword { get; set; } + + /// + /// Gets or sets authentication type. + /// + [JsonProperty(PropertyName = "authenticationType")] + public string AuthenticationType { get; set; } + + /// + /// Gets or sets optional resource information to enable network + /// isolation for request. + /// + [JsonProperty(PropertyName = "networkIsolation")] + public NetworkIsolationSettings NetworkIsolation { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (StorageKey == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "StorageKey"); + } + if (StorageUri == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "StorageUri"); + } + if (AdministratorLogin == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "AdministratorLogin"); + } + if (AdministratorLoginPassword == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "AdministratorLoginPassword"); + } + } + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstanceFailoverGroup.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstanceFailoverGroup.cs index 19f2f6800532..bc3ff7416992 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstanceFailoverGroup.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstanceFailoverGroup.cs @@ -50,7 +50,7 @@ public InstanceFailoverGroup() /// 'Secondary' /// Replication state of the failover /// group instance. - public InstanceFailoverGroup(InstanceFailoverGroupReadWriteEndpoint readWriteEndpoint, IList partnerRegions, IList managedInstancePairs, string id = default(string), string name = default(string), string type = default(string), InstanceFailoverGroupReadOnlyEndpoint readOnlyEndpoint = default(InstanceFailoverGroupReadOnlyEndpoint), string replicationRole = default(string), string replicationState = default(string)) + public InstanceFailoverGroup(InstanceFailoverGroupReadWriteEndpoint readWriteEndpoint, IList partnerRegions, IList managedInstancePairs, string id = default(string), string name = default(string), string type = default(string), InstanceFailoverGroupReadOnlyEndpoint readOnlyEndpoint = default(InstanceFailoverGroupReadOnlyEndpoint), InstanceFailoverGroupReplicationRole? replicationRole = default(InstanceFailoverGroupReplicationRole?), string replicationState = default(string)) : base(id, name, type) { ReadWriteEndpoint = readWriteEndpoint; @@ -84,7 +84,7 @@ public InstanceFailoverGroup() /// Possible values include: 'Primary', 'Secondary' /// [JsonProperty(PropertyName = "properties.replicationRole")] - public string ReplicationRole { get; private set; } + public InstanceFailoverGroupReplicationRole? ReplicationRole { get; private set; } /// /// Gets replication state of the failover group instance. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstanceFailoverGroupReadOnlyEndpoint.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstanceFailoverGroupReadOnlyEndpoint.cs index c3e7c22f98d0..5a7e6fcac550 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstanceFailoverGroupReadOnlyEndpoint.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstanceFailoverGroupReadOnlyEndpoint.cs @@ -34,7 +34,7 @@ public InstanceFailoverGroupReadOnlyEndpoint() /// Failover policy of the read-only /// endpoint for the failover group. Possible values include: /// 'Disabled', 'Enabled' - public InstanceFailoverGroupReadOnlyEndpoint(string failoverPolicy = default(string)) + public InstanceFailoverGroupReadOnlyEndpoint(ReadOnlyEndpointFailoverPolicy? failoverPolicy = default(ReadOnlyEndpointFailoverPolicy?)) { FailoverPolicy = failoverPolicy; CustomInit(); @@ -50,7 +50,7 @@ public InstanceFailoverGroupReadOnlyEndpoint() /// failover group. Possible values include: 'Disabled', 'Enabled' /// [JsonProperty(PropertyName = "failoverPolicy")] - public string FailoverPolicy { get; set; } + public ReadOnlyEndpointFailoverPolicy? FailoverPolicy { get; set; } } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstanceFailoverGroupReadWriteEndpoint.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstanceFailoverGroupReadWriteEndpoint.cs index 299752e7bf35..7af96668a660 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstanceFailoverGroupReadWriteEndpoint.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstanceFailoverGroupReadWriteEndpoint.cs @@ -10,7 +10,6 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Microsoft.Rest; using Newtonsoft.Json; using System.Linq; @@ -40,7 +39,7 @@ public InstanceFailoverGroupReadWriteEndpoint() /// before failover with data loss is attempted for the read-write /// endpoint. If failoverPolicy is Automatic then /// failoverWithDataLossGracePeriodMinutes is required. - public InstanceFailoverGroupReadWriteEndpoint(string failoverPolicy, int? failoverWithDataLossGracePeriodMinutes = default(int?)) + public InstanceFailoverGroupReadWriteEndpoint(ReadWriteEndpointFailoverPolicy failoverPolicy, int? failoverWithDataLossGracePeriodMinutes = default(int?)) { FailoverPolicy = failoverPolicy; FailoverWithDataLossGracePeriodMinutes = failoverWithDataLossGracePeriodMinutes; @@ -59,7 +58,7 @@ public InstanceFailoverGroupReadWriteEndpoint() /// include: 'Manual', 'Automatic' /// [JsonProperty(PropertyName = "failoverPolicy")] - public string FailoverPolicy { get; set; } + public ReadWriteEndpointFailoverPolicy FailoverPolicy { get; set; } /// /// Gets or sets grace period before failover with data loss is @@ -72,15 +71,11 @@ public InstanceFailoverGroupReadWriteEndpoint() /// /// Validate the object. /// - /// + /// /// Thrown if validation fails /// public virtual void Validate() { - if (FailoverPolicy == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "FailoverPolicy"); - } } } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstanceFailoverGroupReplicationRole.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstanceFailoverGroupReplicationRole.cs index cd4a463d4d89..abd0ffb3c64d 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstanceFailoverGroupReplicationRole.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstanceFailoverGroupReplicationRole.cs @@ -10,13 +10,101 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for InstanceFailoverGroupReplicationRole. /// - public static class InstanceFailoverGroupReplicationRole + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(InstanceFailoverGroupReplicationRoleConverter))] + public struct InstanceFailoverGroupReplicationRole : System.IEquatable { - public const string Primary = "Primary"; - public const string Secondary = "Secondary"; + private InstanceFailoverGroupReplicationRole(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly InstanceFailoverGroupReplicationRole Primary = "Primary"; + + public static readonly InstanceFailoverGroupReplicationRole Secondary = "Secondary"; + + + /// + /// Underlying value of enum InstanceFailoverGroupReplicationRole + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for + /// InstanceFailoverGroupReplicationRole + /// + public override string ToString() + { + return UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type InstanceFailoverGroupReplicationRole + /// + public bool Equals(InstanceFailoverGroupReplicationRole e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to + /// InstanceFailoverGroupReplicationRole + /// + public static implicit operator InstanceFailoverGroupReplicationRole(string value) + { + return new InstanceFailoverGroupReplicationRole(value); + } + + /// + /// Implicit operator to convert InstanceFailoverGroupReplicationRole + /// to string + /// + public static implicit operator string(InstanceFailoverGroupReplicationRole e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum + /// InstanceFailoverGroupReplicationRole + /// + public static bool operator == (InstanceFailoverGroupReplicationRole e1, InstanceFailoverGroupReplicationRole e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum + /// InstanceFailoverGroupReplicationRole + /// + public static bool operator != (InstanceFailoverGroupReplicationRole e1, InstanceFailoverGroupReplicationRole e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for InstanceFailoverGroupReplicationRole + /// + public override bool Equals(object obj) + { + return obj is InstanceFailoverGroupReplicationRole && Equals((InstanceFailoverGroupReplicationRole)obj); + } + + /// + /// Returns for hashCode InstanceFailoverGroupReplicationRole + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstanceFailoverGroupReplicationRoleConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstanceFailoverGroupReplicationRoleConverter.cs new file mode 100644 index 000000000000..2caa0100d9f8 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstanceFailoverGroupReplicationRoleConverter.cs @@ -0,0 +1,55 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for InstanceFailoverGroupReplicationRole. + /// + public sealed class InstanceFailoverGroupReplicationRoleConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to + /// InstanceFailoverGroupReplicationRole by the converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(InstanceFailoverGroupReplicationRole).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to + /// InstanceFailoverGroupReplicationRole. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (InstanceFailoverGroupReplicationRole)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for InstanceFailoverGroupReplicationRole for + /// serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstancePool.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstancePool.cs index c174f85c08ac..cf25e3b6c40b 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstancePool.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstancePool.cs @@ -48,7 +48,7 @@ public InstancePool() /// Resource type. /// Resource tags. /// The name and tier of the SKU. - public InstancePool(string location, string subnetId, int vCores, string licenseType, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), Sku sku = default(Sku)) + public InstancePool(string location, string subnetId, int vCores, InstancePoolLicenseType licenseType, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), Sku sku = default(Sku)) : base(location, id, name, type, tags) { Sku = sku; @@ -89,7 +89,7 @@ public InstancePool() /// 'LicenseIncluded', 'BasePrice' /// [JsonProperty(PropertyName = "properties.licenseType")] - public string LicenseType { get; set; } + public InstancePoolLicenseType LicenseType { get; set; } /// /// Validate the object. @@ -104,10 +104,6 @@ public override void Validate() { throw new ValidationException(ValidationRules.CannotBeNull, "SubnetId"); } - if (LicenseType == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "LicenseType"); - } if (Sku != null) { Sku.Validate(); diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstancePoolEditionCapability.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstancePoolEditionCapability.cs new file mode 100644 index 000000000000..01ed3b9fb65a --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstancePoolEditionCapability.cs @@ -0,0 +1,82 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// The instance pool capability + /// + public partial class InstancePoolEditionCapability + { + /// + /// Initializes a new instance of the InstancePoolEditionCapability + /// class. + /// + public InstancePoolEditionCapability() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the InstancePoolEditionCapability + /// class. + /// + /// The instance pool version name. + /// The supported families. + /// The status of the capability. Possible values + /// include: 'Visible', 'Available', 'Default', 'Disabled' + /// The reason for the capability not being + /// available. + public InstancePoolEditionCapability(string name = default(string), IList supportedFamilies = default(IList), CapabilityStatus? status = default(CapabilityStatus?), string reason = default(string)) + { + Name = name; + SupportedFamilies = supportedFamilies; + Status = status; + Reason = reason; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets the instance pool version name. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; private set; } + + /// + /// Gets the supported families. + /// + [JsonProperty(PropertyName = "supportedFamilies")] + public IList SupportedFamilies { get; private set; } + + /// + /// Gets the status of the capability. Possible values include: + /// 'Visible', 'Available', 'Default', 'Disabled' + /// + [JsonProperty(PropertyName = "status")] + public CapabilityStatus? Status { get; private set; } + + /// + /// Gets or sets the reason for the capability not being available. + /// + [JsonProperty(PropertyName = "reason")] + public string Reason { get; set; } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstancePoolFamilyCapability.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstancePoolFamilyCapability.cs new file mode 100644 index 000000000000..ecfc3e5e09c7 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstancePoolFamilyCapability.cs @@ -0,0 +1,92 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// The instance pool family capability. + /// + public partial class InstancePoolFamilyCapability + { + /// + /// Initializes a new instance of the InstancePoolFamilyCapability + /// class. + /// + public InstancePoolFamilyCapability() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the InstancePoolFamilyCapability + /// class. + /// + /// Family name. + /// List of supported license + /// types. + /// List of supported virtual cores + /// values. + /// The status of the capability. Possible values + /// include: 'Visible', 'Available', 'Default', 'Disabled' + /// The reason for the capability not being + /// available. + public InstancePoolFamilyCapability(string name = default(string), IList supportedLicenseTypes = default(IList), IList supportedVcoresValues = default(IList), CapabilityStatus? status = default(CapabilityStatus?), string reason = default(string)) + { + Name = name; + SupportedLicenseTypes = supportedLicenseTypes; + SupportedVcoresValues = supportedVcoresValues; + Status = status; + Reason = reason; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets family name. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; private set; } + + /// + /// Gets list of supported license types. + /// + [JsonProperty(PropertyName = "supportedLicenseTypes")] + public IList SupportedLicenseTypes { get; private set; } + + /// + /// Gets list of supported virtual cores values. + /// + [JsonProperty(PropertyName = "supportedVcoresValues")] + public IList SupportedVcoresValues { get; private set; } + + /// + /// Gets the status of the capability. Possible values include: + /// 'Visible', 'Available', 'Default', 'Disabled' + /// + [JsonProperty(PropertyName = "status")] + public CapabilityStatus? Status { get; private set; } + + /// + /// Gets or sets the reason for the capability not being available. + /// + [JsonProperty(PropertyName = "reason")] + public string Reason { get; set; } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstancePoolLicenseType.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstancePoolLicenseType.cs index b4371565f980..cdd2c8375b95 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstancePoolLicenseType.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstancePoolLicenseType.cs @@ -10,13 +10,96 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for InstancePoolLicenseType. /// - public static class InstancePoolLicenseType + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(InstancePoolLicenseTypeConverter))] + public struct InstancePoolLicenseType : System.IEquatable { - public const string LicenseIncluded = "LicenseIncluded"; - public const string BasePrice = "BasePrice"; + private InstancePoolLicenseType(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly InstancePoolLicenseType LicenseIncluded = "LicenseIncluded"; + + public static readonly InstancePoolLicenseType BasePrice = "BasePrice"; + + + /// + /// Underlying value of enum InstancePoolLicenseType + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for InstancePoolLicenseType + /// + public override string ToString() + { + return UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type InstancePoolLicenseType + /// + public bool Equals(InstancePoolLicenseType e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to InstancePoolLicenseType + /// + public static implicit operator InstancePoolLicenseType(string value) + { + return new InstancePoolLicenseType(value); + } + + /// + /// Implicit operator to convert InstancePoolLicenseType to string + /// + public static implicit operator string(InstancePoolLicenseType e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum InstancePoolLicenseType + /// + public static bool operator == (InstancePoolLicenseType e1, InstancePoolLicenseType e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum InstancePoolLicenseType + /// + public static bool operator != (InstancePoolLicenseType e1, InstancePoolLicenseType e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for InstancePoolLicenseType + /// + public override bool Equals(object obj) + { + return obj is InstancePoolLicenseType && Equals((InstancePoolLicenseType)obj); + } + + /// + /// Returns for hashCode InstancePoolLicenseType + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstancePoolLicenseTypeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstancePoolLicenseTypeConverter.cs new file mode 100644 index 000000000000..0ebb9e4ee1f4 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstancePoolLicenseTypeConverter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for InstancePoolLicenseType. + /// + public sealed class InstancePoolLicenseTypeConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to InstancePoolLicenseType + /// by the converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(InstancePoolLicenseType).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to InstancePoolLicenseType. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (InstancePoolLicenseType)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for InstancePoolLicenseType for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstancePoolVcoresCapability.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstancePoolVcoresCapability.cs new file mode 100644 index 000000000000..6d5c653c1846 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstancePoolVcoresCapability.cs @@ -0,0 +1,88 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// The managed instance virtual cores capability. + /// + public partial class InstancePoolVcoresCapability + { + /// + /// Initializes a new instance of the InstancePoolVcoresCapability + /// class. + /// + public InstancePoolVcoresCapability() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the InstancePoolVcoresCapability + /// class. + /// + /// The virtual cores identifier. + /// The virtual cores value. + /// Storage limit. + /// The status of the capability. Possible values + /// include: 'Visible', 'Available', 'Default', 'Disabled' + /// The reason for the capability not being + /// available. + public InstancePoolVcoresCapability(string name = default(string), int? value = default(int?), MaxSizeCapability storageLimit = default(MaxSizeCapability), CapabilityStatus? status = default(CapabilityStatus?), string reason = default(string)) + { + Name = name; + Value = value; + StorageLimit = storageLimit; + Status = status; + Reason = reason; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets the virtual cores identifier. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; private set; } + + /// + /// Gets the virtual cores value. + /// + [JsonProperty(PropertyName = "value")] + public int? Value { get; private set; } + + /// + /// Gets storage limit. + /// + [JsonProperty(PropertyName = "storageLimit")] + public MaxSizeCapability StorageLimit { get; private set; } + + /// + /// Gets the status of the capability. Possible values include: + /// 'Visible', 'Available', 'Default', 'Disabled' + /// + [JsonProperty(PropertyName = "status")] + public CapabilityStatus? Status { get; private set; } + + /// + /// Gets or sets the reason for the capability not being available. + /// + [JsonProperty(PropertyName = "reason")] + public string Reason { get; set; } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobAgent.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobAgent.cs index fe6f269eab8a..b82e50f80551 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobAgent.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobAgent.cs @@ -45,7 +45,7 @@ public JobAgent() /// The state of the job agent. Possible values /// include: 'Creating', 'Ready', 'Updating', 'Deleting', /// 'Disabled' - public JobAgent(string location, string databaseId, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), Sku sku = default(Sku), string state = default(string)) + public JobAgent(string location, string databaseId, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), Sku sku = default(Sku), JobAgentState? state = default(JobAgentState?)) : base(location, id, name, type, tags) { Sku = sku; @@ -76,7 +76,7 @@ public JobAgent() /// 'Creating', 'Ready', 'Updating', 'Deleting', 'Disabled' /// [JsonProperty(PropertyName = "properties.state")] - public string State { get; private set; } + public JobAgentState? State { get; private set; } /// /// Validate the object. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobAgentState.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobAgentState.cs index b8897f53cb79..24fec667743f 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobAgentState.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobAgentState.cs @@ -10,16 +10,102 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for JobAgentState. /// - public static class JobAgentState + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(JobAgentStateConverter))] + public struct JobAgentState : System.IEquatable { - public const string Creating = "Creating"; - public const string Ready = "Ready"; - public const string Updating = "Updating"; - public const string Deleting = "Deleting"; - public const string Disabled = "Disabled"; + private JobAgentState(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly JobAgentState Creating = "Creating"; + + public static readonly JobAgentState Ready = "Ready"; + + public static readonly JobAgentState Updating = "Updating"; + + public static readonly JobAgentState Deleting = "Deleting"; + + public static readonly JobAgentState Disabled = "Disabled"; + + + /// + /// Underlying value of enum JobAgentState + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for JobAgentState + /// + public override string ToString() + { + return UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type JobAgentState + /// + public bool Equals(JobAgentState e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to JobAgentState + /// + public static implicit operator JobAgentState(string value) + { + return new JobAgentState(value); + } + + /// + /// Implicit operator to convert JobAgentState to string + /// + public static implicit operator string(JobAgentState e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum JobAgentState + /// + public static bool operator == (JobAgentState e1, JobAgentState e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum JobAgentState + /// + public static bool operator != (JobAgentState e1, JobAgentState e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for JobAgentState + /// + public override bool Equals(object obj) + { + return obj is JobAgentState && Equals((JobAgentState)obj); + } + + /// + /// Returns for hashCode JobAgentState + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobAgentStateConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobAgentStateConverter.cs new file mode 100644 index 000000000000..6c021f921d92 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobAgentStateConverter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for JobAgentState. + /// + public sealed class JobAgentStateConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to JobAgentState by the + /// converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(JobAgentState).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to JobAgentState. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (JobAgentState)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for JobAgentState for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobExecution.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobExecution.cs index 39c3e70baf2c..2c2768198736 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobExecution.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobExecution.cs @@ -61,7 +61,7 @@ public JobExecution() /// The last status or error message. /// The target that this execution is executed /// on. - public JobExecution(string id = default(string), string name = default(string), string type = default(string), int? jobVersion = default(int?), string stepName = default(string), int? stepId = default(int?), System.Guid? jobExecutionId = default(System.Guid?), string lifecycle = default(string), string provisioningState = default(string), System.DateTime? createTime = default(System.DateTime?), System.DateTime? startTime = default(System.DateTime?), System.DateTime? endTime = default(System.DateTime?), int? currentAttempts = default(int?), System.DateTime? currentAttemptStartTime = default(System.DateTime?), string lastMessage = default(string), JobExecutionTarget target = default(JobExecutionTarget)) + public JobExecution(string id = default(string), string name = default(string), string type = default(string), int? jobVersion = default(int?), string stepName = default(string), int? stepId = default(int?), System.Guid? jobExecutionId = default(System.Guid?), JobExecutionLifecycle? lifecycle = default(JobExecutionLifecycle?), ProvisioningState? provisioningState = default(ProvisioningState?), System.DateTime? createTime = default(System.DateTime?), System.DateTime? startTime = default(System.DateTime?), System.DateTime? endTime = default(System.DateTime?), int? currentAttempts = default(int?), System.DateTime? currentAttemptStartTime = default(System.DateTime?), string lastMessage = default(string), JobExecutionTarget target = default(JobExecutionTarget)) : base(id, name, type) { JobVersion = jobVersion; @@ -116,7 +116,7 @@ public JobExecution() /// 'TimedOut', 'Canceled', 'Skipped' /// [JsonProperty(PropertyName = "properties.lifecycle")] - public string Lifecycle { get; private set; } + public JobExecutionLifecycle? Lifecycle { get; private set; } /// /// Gets the ARM provisioning state of the job execution. Possible @@ -124,7 +124,7 @@ public JobExecution() /// 'Canceled' /// [JsonProperty(PropertyName = "properties.provisioningState")] - public string ProvisioningState { get; private set; } + public ProvisioningState? ProvisioningState { get; private set; } /// /// Gets the time that the job execution was created. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobExecutionLifecycle.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobExecutionLifecycle.cs index 37ead7ce7ff5..50d8148bac4e 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobExecutionLifecycle.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobExecutionLifecycle.cs @@ -10,21 +10,112 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for JobExecutionLifecycle. /// - public static class JobExecutionLifecycle + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(JobExecutionLifecycleConverter))] + public struct JobExecutionLifecycle : System.IEquatable { - public const string Created = "Created"; - public const string InProgress = "InProgress"; - public const string WaitingForChildJobExecutions = "WaitingForChildJobExecutions"; - public const string WaitingForRetry = "WaitingForRetry"; - public const string Succeeded = "Succeeded"; - public const string SucceededWithSkipped = "SucceededWithSkipped"; - public const string Failed = "Failed"; - public const string TimedOut = "TimedOut"; - public const string Canceled = "Canceled"; - public const string Skipped = "Skipped"; + private JobExecutionLifecycle(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly JobExecutionLifecycle Created = "Created"; + + public static readonly JobExecutionLifecycle InProgress = "InProgress"; + + public static readonly JobExecutionLifecycle WaitingForChildJobExecutions = "WaitingForChildJobExecutions"; + + public static readonly JobExecutionLifecycle WaitingForRetry = "WaitingForRetry"; + + public static readonly JobExecutionLifecycle Succeeded = "Succeeded"; + + public static readonly JobExecutionLifecycle SucceededWithSkipped = "SucceededWithSkipped"; + + public static readonly JobExecutionLifecycle Failed = "Failed"; + + public static readonly JobExecutionLifecycle TimedOut = "TimedOut"; + + public static readonly JobExecutionLifecycle Canceled = "Canceled"; + + public static readonly JobExecutionLifecycle Skipped = "Skipped"; + + + /// + /// Underlying value of enum JobExecutionLifecycle + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for JobExecutionLifecycle + /// + public override string ToString() + { + return UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type JobExecutionLifecycle + /// + public bool Equals(JobExecutionLifecycle e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to JobExecutionLifecycle + /// + public static implicit operator JobExecutionLifecycle(string value) + { + return new JobExecutionLifecycle(value); + } + + /// + /// Implicit operator to convert JobExecutionLifecycle to string + /// + public static implicit operator string(JobExecutionLifecycle e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum JobExecutionLifecycle + /// + public static bool operator == (JobExecutionLifecycle e1, JobExecutionLifecycle e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum JobExecutionLifecycle + /// + public static bool operator != (JobExecutionLifecycle e1, JobExecutionLifecycle e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for JobExecutionLifecycle + /// + public override bool Equals(object obj) + { + return obj is JobExecutionLifecycle && Equals((JobExecutionLifecycle)obj); + } + + /// + /// Returns for hashCode JobExecutionLifecycle + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobExecutionLifecycleConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobExecutionLifecycleConverter.cs new file mode 100644 index 000000000000..4f1114861711 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobExecutionLifecycleConverter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for JobExecutionLifecycle. + /// + public sealed class JobExecutionLifecycleConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to JobExecutionLifecycle by + /// the converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(JobExecutionLifecycle).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to JobExecutionLifecycle. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (JobExecutionLifecycle)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for JobExecutionLifecycle for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobExecutionTarget.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobExecutionTarget.cs index 6b7e1dff02e8..bd2989561aef 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobExecutionTarget.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobExecutionTarget.cs @@ -34,7 +34,7 @@ public JobExecutionTarget() /// 'SqlServer' /// The server name. /// The database name. - public JobExecutionTarget(string type = default(string), string serverName = default(string), string databaseName = default(string)) + public JobExecutionTarget(JobTargetType? type = default(JobTargetType?), string serverName = default(string), string databaseName = default(string)) { Type = type; ServerName = serverName; @@ -53,7 +53,7 @@ public JobExecutionTarget() /// 'SqlServer' /// [JsonProperty(PropertyName = "type")] - public string Type { get; private set; } + public JobTargetType? Type { get; private set; } /// /// Gets the server name. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobStepAction.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobStepAction.cs index 51941a310406..e550d8f8b04e 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobStepAction.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobStepAction.cs @@ -36,7 +36,7 @@ public JobStepAction() /// Possible values include: 'TSql' /// The source of the action to execute. Possible /// values include: 'Inline' - public JobStepAction(string value, string type = default(string), string source = default(string)) + public JobStepAction(string value, JobStepActionType? type = default(JobStepActionType?), JobStepActionSource? source = default(JobStepActionSource?)) { Type = type; Source = source; @@ -54,14 +54,14 @@ public JobStepAction() /// Possible values include: 'TSql' /// [JsonProperty(PropertyName = "type")] - public string Type { get; set; } + public JobStepActionType? Type { get; set; } /// /// Gets or sets the source of the action to execute. Possible values /// include: 'Inline' /// [JsonProperty(PropertyName = "source")] - public string Source { get; set; } + public JobStepActionSource? Source { get; set; } /// /// Gets or sets the action value, for example the text of the T-SQL diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobStepActionSource.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobStepActionSource.cs index 2f96d3a39604..18f8b1d00e82 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobStepActionSource.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobStepActionSource.cs @@ -10,12 +10,94 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for JobStepActionSource. /// - public static class JobStepActionSource + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(JobStepActionSourceConverter))] + public struct JobStepActionSource : System.IEquatable { - public const string Inline = "Inline"; + private JobStepActionSource(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly JobStepActionSource Inline = "Inline"; + + + /// + /// Underlying value of enum JobStepActionSource + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for JobStepActionSource + /// + public override string ToString() + { + return UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type JobStepActionSource + /// + public bool Equals(JobStepActionSource e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to JobStepActionSource + /// + public static implicit operator JobStepActionSource(string value) + { + return new JobStepActionSource(value); + } + + /// + /// Implicit operator to convert JobStepActionSource to string + /// + public static implicit operator string(JobStepActionSource e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum JobStepActionSource + /// + public static bool operator == (JobStepActionSource e1, JobStepActionSource e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum JobStepActionSource + /// + public static bool operator != (JobStepActionSource e1, JobStepActionSource e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for JobStepActionSource + /// + public override bool Equals(object obj) + { + return obj is JobStepActionSource && Equals((JobStepActionSource)obj); + } + + /// + /// Returns for hashCode JobStepActionSource + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobStepActionSourceConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobStepActionSourceConverter.cs new file mode 100644 index 000000000000..241c078ae7fe --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobStepActionSourceConverter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for JobStepActionSource. + /// + public sealed class JobStepActionSourceConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to JobStepActionSource by + /// the converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(JobStepActionSource).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to JobStepActionSource. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (JobStepActionSource)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for JobStepActionSource for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobStepActionType.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobStepActionType.cs index 6dda291ff321..2352a1ccadd9 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobStepActionType.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobStepActionType.cs @@ -10,12 +10,94 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for JobStepActionType. /// - public static class JobStepActionType + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(JobStepActionTypeConverter))] + public struct JobStepActionType : System.IEquatable { - public const string TSql = "TSql"; + private JobStepActionType(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly JobStepActionType TSql = "TSql"; + + + /// + /// Underlying value of enum JobStepActionType + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for JobStepActionType + /// + public override string ToString() + { + return UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type JobStepActionType + /// + public bool Equals(JobStepActionType e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to JobStepActionType + /// + public static implicit operator JobStepActionType(string value) + { + return new JobStepActionType(value); + } + + /// + /// Implicit operator to convert JobStepActionType to string + /// + public static implicit operator string(JobStepActionType e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum JobStepActionType + /// + public static bool operator == (JobStepActionType e1, JobStepActionType e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum JobStepActionType + /// + public static bool operator != (JobStepActionType e1, JobStepActionType e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for JobStepActionType + /// + public override bool Equals(object obj) + { + return obj is JobStepActionType && Equals((JobStepActionType)obj); + } + + /// + /// Returns for hashCode JobStepActionType + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobStepActionTypeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobStepActionTypeConverter.cs new file mode 100644 index 000000000000..28ded5cdd872 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobStepActionTypeConverter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for JobStepActionType. + /// + public sealed class JobStepActionTypeConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to JobStepActionType by the + /// converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(JobStepActionType).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to JobStepActionType. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (JobStepActionType)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for JobStepActionType for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobStepOutput.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobStepOutput.cs index cdd0db7bec05..c2f8ba1e4bc0 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobStepOutput.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobStepOutput.cs @@ -43,7 +43,7 @@ public JobStepOutput() /// The output destination resource /// group. /// The output destination schema. - public JobStepOutput(string serverName, string databaseName, string tableName, string credential, string type = default(string), System.Guid? subscriptionId = default(System.Guid?), string resourceGroupName = default(string), string schemaName = default(string)) + public JobStepOutput(string serverName, string databaseName, string tableName, string credential, JobStepOutputType? type = default(JobStepOutputType?), System.Guid? subscriptionId = default(System.Guid?), string resourceGroupName = default(string), string schemaName = default(string)) { Type = type; SubscriptionId = subscriptionId; @@ -66,7 +66,7 @@ public JobStepOutput() /// 'SqlDatabase' /// [JsonProperty(PropertyName = "type")] - public string Type { get; set; } + public JobStepOutputType? Type { get; set; } /// /// Gets or sets the output destination subscription id. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobStepOutputType.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobStepOutputType.cs index bb86c8126657..ef25916619b3 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobStepOutputType.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobStepOutputType.cs @@ -10,12 +10,94 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for JobStepOutputType. /// - public static class JobStepOutputType + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(JobStepOutputTypeConverter))] + public struct JobStepOutputType : System.IEquatable { - public const string SqlDatabase = "SqlDatabase"; + private JobStepOutputType(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly JobStepOutputType SqlDatabase = "SqlDatabase"; + + + /// + /// Underlying value of enum JobStepOutputType + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for JobStepOutputType + /// + public override string ToString() + { + return UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type JobStepOutputType + /// + public bool Equals(JobStepOutputType e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to JobStepOutputType + /// + public static implicit operator JobStepOutputType(string value) + { + return new JobStepOutputType(value); + } + + /// + /// Implicit operator to convert JobStepOutputType to string + /// + public static implicit operator string(JobStepOutputType e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum JobStepOutputType + /// + public static bool operator == (JobStepOutputType e1, JobStepOutputType e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum JobStepOutputType + /// + public static bool operator != (JobStepOutputType e1, JobStepOutputType e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for JobStepOutputType + /// + public override bool Equals(object obj) + { + return obj is JobStepOutputType && Equals((JobStepOutputType)obj); + } + + /// + /// Returns for hashCode JobStepOutputType + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobStepOutputTypeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobStepOutputTypeConverter.cs new file mode 100644 index 000000000000..f6e86f9a358b --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobStepOutputTypeConverter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for JobStepOutputType. + /// + public sealed class JobStepOutputTypeConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to JobStepOutputType by the + /// converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(JobStepOutputType).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to JobStepOutputType. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (JobStepOutputType)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for JobStepOutputType for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobTarget.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobTarget.cs index 7d03cc175e67..4d0b124b79da 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobTarget.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobTarget.cs @@ -10,7 +10,6 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Microsoft.Rest; using Newtonsoft.Json; using System.Linq; @@ -44,7 +43,7 @@ public JobTarget() /// The resource ID of the credential /// that is used during job execution to connect to the target and /// determine the list of databases inside the target. - public JobTarget(string type, JobTargetGroupMembershipType? membershipType = default(JobTargetGroupMembershipType?), string serverName = default(string), string databaseName = default(string), string elasticPoolName = default(string), string shardMapName = default(string), string refreshCredential = default(string)) + public JobTarget(JobTargetType type, JobTargetGroupMembershipType? membershipType = default(JobTargetGroupMembershipType?), string serverName = default(string), string databaseName = default(string), string elasticPoolName = default(string), string shardMapName = default(string), string refreshCredential = default(string)) { MembershipType = membershipType; Type = type; @@ -74,7 +73,7 @@ public JobTarget() /// 'SqlServer' /// [JsonProperty(PropertyName = "type")] - public string Type { get; set; } + public JobTargetType Type { get; set; } /// /// Gets or sets the target server name. @@ -111,15 +110,11 @@ public JobTarget() /// /// Validate the object. /// - /// + /// /// Thrown if validation fails /// public virtual void Validate() { - if (Type == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Type"); - } } } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobTargetType.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobTargetType.cs index bf3921ce5ec0..01fbf9a93991 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobTargetType.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobTargetType.cs @@ -10,16 +10,102 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for JobTargetType. /// - public static class JobTargetType + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(JobTargetTypeConverter))] + public struct JobTargetType : System.IEquatable { - public const string TargetGroup = "TargetGroup"; - public const string SqlDatabase = "SqlDatabase"; - public const string SqlElasticPool = "SqlElasticPool"; - public const string SqlShardMap = "SqlShardMap"; - public const string SqlServer = "SqlServer"; + private JobTargetType(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly JobTargetType TargetGroup = "TargetGroup"; + + public static readonly JobTargetType SqlDatabase = "SqlDatabase"; + + public static readonly JobTargetType SqlElasticPool = "SqlElasticPool"; + + public static readonly JobTargetType SqlShardMap = "SqlShardMap"; + + public static readonly JobTargetType SqlServer = "SqlServer"; + + + /// + /// Underlying value of enum JobTargetType + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for JobTargetType + /// + public override string ToString() + { + return UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type JobTargetType + /// + public bool Equals(JobTargetType e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to JobTargetType + /// + public static implicit operator JobTargetType(string value) + { + return new JobTargetType(value); + } + + /// + /// Implicit operator to convert JobTargetType to string + /// + public static implicit operator string(JobTargetType e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum JobTargetType + /// + public static bool operator == (JobTargetType e1, JobTargetType e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum JobTargetType + /// + public static bool operator != (JobTargetType e1, JobTargetType e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for JobTargetType + /// + public override bool Equals(object obj) + { + return obj is JobTargetType && Equals((JobTargetType)obj); + } + + /// + /// Returns for hashCode JobTargetType + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobTargetTypeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobTargetTypeConverter.cs new file mode 100644 index 000000000000..8b117d0ea11e --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobTargetTypeConverter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for JobTargetType. + /// + public sealed class JobTargetTypeConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to JobTargetType by the + /// converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(JobTargetType).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to JobTargetType. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (JobTargetType)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for JobTargetType for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/LogSizeCapability.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/LogSizeCapability.cs index e374ba951793..aaf5d85a541b 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/LogSizeCapability.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/LogSizeCapability.cs @@ -34,7 +34,7 @@ public LogSizeCapability() /// The units that the limit is expressed in. /// Possible values include: 'Megabytes', 'Gigabytes', 'Terabytes', /// 'Petabytes', 'Percent' - public LogSizeCapability(int? limit = default(int?), string unit = default(string)) + public LogSizeCapability(int? limit = default(int?), LogSizeUnit? unit = default(LogSizeUnit?)) { Limit = limit; Unit = unit; @@ -58,7 +58,7 @@ public LogSizeCapability() /// 'Percent' /// [JsonProperty(PropertyName = "unit")] - public string Unit { get; private set; } + public LogSizeUnit? Unit { get; private set; } } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/LogSizeUnit.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/LogSizeUnit.cs index 1b8c8bfc8596..e595a40f2bbc 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/LogSizeUnit.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/LogSizeUnit.cs @@ -10,16 +10,102 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for LogSizeUnit. /// - public static class LogSizeUnit + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(LogSizeUnitConverter))] + public struct LogSizeUnit : System.IEquatable { - public const string Megabytes = "Megabytes"; - public const string Gigabytes = "Gigabytes"; - public const string Terabytes = "Terabytes"; - public const string Petabytes = "Petabytes"; - public const string Percent = "Percent"; + private LogSizeUnit(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly LogSizeUnit Megabytes = "Megabytes"; + + public static readonly LogSizeUnit Gigabytes = "Gigabytes"; + + public static readonly LogSizeUnit Terabytes = "Terabytes"; + + public static readonly LogSizeUnit Petabytes = "Petabytes"; + + public static readonly LogSizeUnit Percent = "Percent"; + + + /// + /// Underlying value of enum LogSizeUnit + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for LogSizeUnit + /// + public override string ToString() + { + return UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type LogSizeUnit + /// + public bool Equals(LogSizeUnit e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to LogSizeUnit + /// + public static implicit operator LogSizeUnit(string value) + { + return new LogSizeUnit(value); + } + + /// + /// Implicit operator to convert LogSizeUnit to string + /// + public static implicit operator string(LogSizeUnit e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum LogSizeUnit + /// + public static bool operator == (LogSizeUnit e1, LogSizeUnit e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum LogSizeUnit + /// + public static bool operator != (LogSizeUnit e1, LogSizeUnit e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for LogSizeUnit + /// + public override bool Equals(object obj) + { + return obj is LogSizeUnit && Equals((LogSizeUnit)obj); + } + + /// + /// Returns for hashCode LogSizeUnit + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/LogSizeUnitConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/LogSizeUnitConverter.cs new file mode 100644 index 000000000000..bb9f436d6278 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/LogSizeUnitConverter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for LogSizeUnit. + /// + public sealed class LogSizeUnitConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to LogSizeUnit by the + /// converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(LogSizeUnit).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to LogSizeUnit. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (LogSizeUnit)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for LogSizeUnit for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/LongTermRetentionDatabaseState.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/LongTermRetentionDatabaseState.cs index 5bcd5d6f4710..341242387fe3 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/LongTermRetentionDatabaseState.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/LongTermRetentionDatabaseState.cs @@ -10,14 +10,100 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for LongTermRetentionDatabaseState. /// - public static class LongTermRetentionDatabaseState + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(LongTermRetentionDatabaseStateConverter))] + public struct LongTermRetentionDatabaseState : System.IEquatable { - public const string All = "All"; - public const string Live = "Live"; - public const string Deleted = "Deleted"; + private LongTermRetentionDatabaseState(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly LongTermRetentionDatabaseState All = "All"; + + public static readonly LongTermRetentionDatabaseState Live = "Live"; + + public static readonly LongTermRetentionDatabaseState Deleted = "Deleted"; + + + /// + /// Underlying value of enum LongTermRetentionDatabaseState + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for LongTermRetentionDatabaseState + /// + public override string ToString() + { + return UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type LongTermRetentionDatabaseState + /// + public bool Equals(LongTermRetentionDatabaseState e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to + /// LongTermRetentionDatabaseState + /// + public static implicit operator LongTermRetentionDatabaseState(string value) + { + return new LongTermRetentionDatabaseState(value); + } + + /// + /// Implicit operator to convert LongTermRetentionDatabaseState to + /// string + /// + public static implicit operator string(LongTermRetentionDatabaseState e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum LongTermRetentionDatabaseState + /// + public static bool operator == (LongTermRetentionDatabaseState e1, LongTermRetentionDatabaseState e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum LongTermRetentionDatabaseState + /// + public static bool operator != (LongTermRetentionDatabaseState e1, LongTermRetentionDatabaseState e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for LongTermRetentionDatabaseState + /// + public override bool Equals(object obj) + { + return obj is LongTermRetentionDatabaseState && Equals((LongTermRetentionDatabaseState)obj); + } + + /// + /// Returns for hashCode LongTermRetentionDatabaseState + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/LongTermRetentionDatabaseStateConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/LongTermRetentionDatabaseStateConverter.cs new file mode 100644 index 000000000000..ecda89352bb8 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/LongTermRetentionDatabaseStateConverter.cs @@ -0,0 +1,55 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for LongTermRetentionDatabaseState. + /// + public sealed class LongTermRetentionDatabaseStateConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to + /// LongTermRetentionDatabaseState by the converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(LongTermRetentionDatabaseState).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to + /// LongTermRetentionDatabaseState. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (LongTermRetentionDatabaseState)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for LongTermRetentionDatabaseState for + /// serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedDatabase.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedDatabase.cs index 097d79ad06b1..d16a278fd6e2 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedDatabase.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedDatabase.cs @@ -93,7 +93,7 @@ public ManagedDatabase() /// of this managed database. /// Last backup file name for restore of /// this managed database. - public ManagedDatabase(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), string collation = default(string), string status = default(string), System.DateTime? creationDate = default(System.DateTime?), System.DateTime? earliestRestorePoint = default(System.DateTime?), System.DateTime? restorePointInTime = default(System.DateTime?), string defaultSecondaryLocation = default(string), string catalogCollation = default(string), string createMode = default(string), string storageContainerUri = default(string), string sourceDatabaseId = default(string), string restorableDroppedDatabaseId = default(string), string storageContainerSasToken = default(string), string failoverGroupId = default(string), string recoverableDatabaseId = default(string), string longTermRetentionBackupResourceId = default(string), bool? autoCompleteRestore = default(bool?), string lastBackupName = default(string)) + public ManagedDatabase(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), string collation = default(string), ManagedDatabaseStatus? status = default(ManagedDatabaseStatus?), System.DateTime? creationDate = default(System.DateTime?), System.DateTime? earliestRestorePoint = default(System.DateTime?), System.DateTime? restorePointInTime = default(System.DateTime?), string defaultSecondaryLocation = default(string), CatalogCollationType? catalogCollation = default(CatalogCollationType?), ManagedDatabaseCreateMode? createMode = default(ManagedDatabaseCreateMode?), string storageContainerUri = default(string), string sourceDatabaseId = default(string), string restorableDroppedDatabaseId = default(string), string storageContainerSasToken = default(string), string failoverGroupId = default(string), string recoverableDatabaseId = default(string), string longTermRetentionBackupResourceId = default(string), bool? autoCompleteRestore = default(bool?), string lastBackupName = default(string)) : base(location, id, name, type, tags) { Collation = collation; @@ -133,7 +133,7 @@ public ManagedDatabase() /// 'Updating' /// [JsonProperty(PropertyName = "properties.status")] - public string Status { get; private set; } + public ManagedDatabaseStatus? Status { get; private set; } /// /// Gets creation date of the database. @@ -167,7 +167,7 @@ public ManagedDatabase() /// include: 'DATABASE_DEFAULT', 'SQL_Latin1_General_CP1_CI_AS' /// [JsonProperty(PropertyName = "properties.catalogCollation")] - public string CatalogCollation { get; set; } + public CatalogCollationType? CatalogCollation { get; set; } /// /// Gets or sets managed database create mode. PointInTimeRestore: @@ -185,7 +185,7 @@ public ManagedDatabase() /// 'Recovery', 'RestoreLongTermRetentionBackup' /// [JsonProperty(PropertyName = "properties.createMode")] - public string CreateMode { get; set; } + public ManagedDatabaseCreateMode? CreateMode { get; set; } /// /// Gets or sets conditional. If createMode is RestoreExternalBackup, diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedDatabaseCreateMode.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedDatabaseCreateMode.cs index c7c1e20d8260..8edb412f8b74 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedDatabaseCreateMode.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedDatabaseCreateMode.cs @@ -10,16 +10,102 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for ManagedDatabaseCreateMode. /// - public static class ManagedDatabaseCreateMode + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(ManagedDatabaseCreateModeConverter))] + public struct ManagedDatabaseCreateMode : System.IEquatable { - public const string Default = "Default"; - public const string RestoreExternalBackup = "RestoreExternalBackup"; - public const string PointInTimeRestore = "PointInTimeRestore"; - public const string Recovery = "Recovery"; - public const string RestoreLongTermRetentionBackup = "RestoreLongTermRetentionBackup"; + private ManagedDatabaseCreateMode(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly ManagedDatabaseCreateMode Default = "Default"; + + public static readonly ManagedDatabaseCreateMode RestoreExternalBackup = "RestoreExternalBackup"; + + public static readonly ManagedDatabaseCreateMode PointInTimeRestore = "PointInTimeRestore"; + + public static readonly ManagedDatabaseCreateMode Recovery = "Recovery"; + + public static readonly ManagedDatabaseCreateMode RestoreLongTermRetentionBackup = "RestoreLongTermRetentionBackup"; + + + /// + /// Underlying value of enum ManagedDatabaseCreateMode + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for ManagedDatabaseCreateMode + /// + public override string ToString() + { + return UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type ManagedDatabaseCreateMode + /// + public bool Equals(ManagedDatabaseCreateMode e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to ManagedDatabaseCreateMode + /// + public static implicit operator ManagedDatabaseCreateMode(string value) + { + return new ManagedDatabaseCreateMode(value); + } + + /// + /// Implicit operator to convert ManagedDatabaseCreateMode to string + /// + public static implicit operator string(ManagedDatabaseCreateMode e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum ManagedDatabaseCreateMode + /// + public static bool operator == (ManagedDatabaseCreateMode e1, ManagedDatabaseCreateMode e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum ManagedDatabaseCreateMode + /// + public static bool operator != (ManagedDatabaseCreateMode e1, ManagedDatabaseCreateMode e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for ManagedDatabaseCreateMode + /// + public override bool Equals(object obj) + { + return obj is ManagedDatabaseCreateMode && Equals((ManagedDatabaseCreateMode)obj); + } + + /// + /// Returns for hashCode ManagedDatabaseCreateMode + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedDatabaseCreateModeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedDatabaseCreateModeConverter.cs new file mode 100644 index 000000000000..bfc490f8b789 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedDatabaseCreateModeConverter.cs @@ -0,0 +1,54 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for ManagedDatabaseCreateMode. + /// + public sealed class ManagedDatabaseCreateModeConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to ManagedDatabaseCreateMode + /// by the converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(ManagedDatabaseCreateMode).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to ManagedDatabaseCreateMode. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (ManagedDatabaseCreateMode)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for ManagedDatabaseCreateMode for + /// serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedDatabaseStatus.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedDatabaseStatus.cs index fb53873a68b4..df66c5020284 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedDatabaseStatus.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedDatabaseStatus.cs @@ -10,18 +10,106 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for ManagedDatabaseStatus. /// - public static class ManagedDatabaseStatus + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(ManagedDatabaseStatusConverter))] + public struct ManagedDatabaseStatus : System.IEquatable { - public const string Online = "Online"; - public const string Offline = "Offline"; - public const string Shutdown = "Shutdown"; - public const string Creating = "Creating"; - public const string Inaccessible = "Inaccessible"; - public const string Restoring = "Restoring"; - public const string Updating = "Updating"; + private ManagedDatabaseStatus(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly ManagedDatabaseStatus Online = "Online"; + + public static readonly ManagedDatabaseStatus Offline = "Offline"; + + public static readonly ManagedDatabaseStatus Shutdown = "Shutdown"; + + public static readonly ManagedDatabaseStatus Creating = "Creating"; + + public static readonly ManagedDatabaseStatus Inaccessible = "Inaccessible"; + + public static readonly ManagedDatabaseStatus Restoring = "Restoring"; + + public static readonly ManagedDatabaseStatus Updating = "Updating"; + + + /// + /// Underlying value of enum ManagedDatabaseStatus + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for ManagedDatabaseStatus + /// + public override string ToString() + { + return UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type ManagedDatabaseStatus + /// + public bool Equals(ManagedDatabaseStatus e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to ManagedDatabaseStatus + /// + public static implicit operator ManagedDatabaseStatus(string value) + { + return new ManagedDatabaseStatus(value); + } + + /// + /// Implicit operator to convert ManagedDatabaseStatus to string + /// + public static implicit operator string(ManagedDatabaseStatus e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum ManagedDatabaseStatus + /// + public static bool operator == (ManagedDatabaseStatus e1, ManagedDatabaseStatus e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum ManagedDatabaseStatus + /// + public static bool operator != (ManagedDatabaseStatus e1, ManagedDatabaseStatus e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for ManagedDatabaseStatus + /// + public override bool Equals(object obj) + { + return obj is ManagedDatabaseStatus && Equals((ManagedDatabaseStatus)obj); + } + + /// + /// Returns for hashCode ManagedDatabaseStatus + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedDatabaseStatusConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedDatabaseStatusConverter.cs new file mode 100644 index 000000000000..3478b2db9f0a --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedDatabaseStatusConverter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for ManagedDatabaseStatus. + /// + public sealed class ManagedDatabaseStatusConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to ManagedDatabaseStatus by + /// the converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(ManagedDatabaseStatus).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to ManagedDatabaseStatus. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (ManagedDatabaseStatus)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for ManagedDatabaseStatus for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedDatabaseUpdate.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedDatabaseUpdate.cs index 4afb5faa70f0..6729a79e652a 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedDatabaseUpdate.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedDatabaseUpdate.cs @@ -89,7 +89,7 @@ public ManagedDatabaseUpdate() /// Last backup file name for restore of /// this managed database. /// Resource tags. - public ManagedDatabaseUpdate(string collation = default(string), string status = default(string), System.DateTime? creationDate = default(System.DateTime?), System.DateTime? earliestRestorePoint = default(System.DateTime?), System.DateTime? restorePointInTime = default(System.DateTime?), string defaultSecondaryLocation = default(string), string catalogCollation = default(string), string createMode = default(string), string storageContainerUri = default(string), string sourceDatabaseId = default(string), string restorableDroppedDatabaseId = default(string), string storageContainerSasToken = default(string), string failoverGroupId = default(string), string recoverableDatabaseId = default(string), string longTermRetentionBackupResourceId = default(string), bool? autoCompleteRestore = default(bool?), string lastBackupName = default(string), IDictionary tags = default(IDictionary)) + public ManagedDatabaseUpdate(string collation = default(string), ManagedDatabaseStatus? status = default(ManagedDatabaseStatus?), System.DateTime? creationDate = default(System.DateTime?), System.DateTime? earliestRestorePoint = default(System.DateTime?), System.DateTime? restorePointInTime = default(System.DateTime?), string defaultSecondaryLocation = default(string), CatalogCollationType? catalogCollation = default(CatalogCollationType?), ManagedDatabaseCreateMode? createMode = default(ManagedDatabaseCreateMode?), string storageContainerUri = default(string), string sourceDatabaseId = default(string), string restorableDroppedDatabaseId = default(string), string storageContainerSasToken = default(string), string failoverGroupId = default(string), string recoverableDatabaseId = default(string), string longTermRetentionBackupResourceId = default(string), bool? autoCompleteRestore = default(bool?), string lastBackupName = default(string), IDictionary tags = default(IDictionary)) { Collation = collation; Status = status; @@ -129,7 +129,7 @@ public ManagedDatabaseUpdate() /// 'Updating' /// [JsonProperty(PropertyName = "properties.status")] - public string Status { get; private set; } + public ManagedDatabaseStatus? Status { get; private set; } /// /// Gets creation date of the database. @@ -163,7 +163,7 @@ public ManagedDatabaseUpdate() /// include: 'DATABASE_DEFAULT', 'SQL_Latin1_General_CP1_CI_AS' /// [JsonProperty(PropertyName = "properties.catalogCollation")] - public string CatalogCollation { get; set; } + public CatalogCollationType? CatalogCollation { get; set; } /// /// Gets or sets managed database create mode. PointInTimeRestore: @@ -181,7 +181,7 @@ public ManagedDatabaseUpdate() /// 'Recovery', 'RestoreLongTermRetentionBackup' /// [JsonProperty(PropertyName = "properties.createMode")] - public string CreateMode { get; set; } + public ManagedDatabaseCreateMode? CreateMode { get; set; } /// /// Gets or sets conditional. If createMode is RestoreExternalBackup, diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstance.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstance.cs index 39e3bb0b60a5..1e0e2bbf1469 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstance.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstance.cs @@ -105,6 +105,8 @@ public ManagedInstance() /// Europe Standard Time". /// The Id of the instance pool this /// managed server belongs to. + /// Specifies maintenance + /// configuration id to apply to this managed instance. /// Minimal TLS version. Allowed /// values: 'None', '1.0', '1.1', '1.2' /// The storage account type used to @@ -112,7 +114,7 @@ public ManagedInstance() /// (LocallyRedundantStorage), ZRS (ZoneRedundantStorage) and GRS /// (GeoRedundantStorage). Possible values include: 'GRS', 'LRS', /// 'ZRS' - public ManagedInstance(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), ResourceIdentity identity = default(ResourceIdentity), Sku sku = default(Sku), string provisioningState = default(string), string managedInstanceCreateMode = default(string), string fullyQualifiedDomainName = default(string), string administratorLogin = default(string), string administratorLoginPassword = default(string), string subnetId = default(string), string state = default(string), string licenseType = default(string), int? vCores = default(int?), int? storageSizeInGB = default(int?), string collation = default(string), string dnsZone = default(string), string dnsZonePartner = default(string), bool? publicDataEndpointEnabled = default(bool?), string sourceManagedInstanceId = default(string), System.DateTime? restorePointInTime = default(System.DateTime?), string proxyOverride = default(string), string timezoneId = default(string), string instancePoolId = default(string), string maintenanceConfigurationId = default(string), string minimalTlsVersion = default(string), string storageAccountType = default(string)) + public ManagedInstance(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), ResourceIdentity identity = default(ResourceIdentity), Sku sku = default(Sku), string provisioningState = default(string), ManagedServerCreateMode? managedInstanceCreateMode = default(ManagedServerCreateMode?), string fullyQualifiedDomainName = default(string), string administratorLogin = default(string), string administratorLoginPassword = default(string), string subnetId = default(string), string state = default(string), ManagedInstanceLicenseType? licenseType = default(ManagedInstanceLicenseType?), int? vCores = default(int?), int? storageSizeInGB = default(int?), string collation = default(string), string dnsZone = default(string), string dnsZonePartner = default(string), bool? publicDataEndpointEnabled = default(bool?), string sourceManagedInstanceId = default(string), System.DateTime? restorePointInTime = default(System.DateTime?), ManagedInstanceProxyOverride? proxyOverride = default(ManagedInstanceProxyOverride?), string timezoneId = default(string), string instancePoolId = default(string), string maintenanceConfigurationId = default(string), string minimalTlsVersion = default(string), StorageAccountType? storageAccountType = default(StorageAccountType?)) : base(location, id, name, type, tags) { Identity = identity; @@ -136,6 +138,7 @@ public ManagedInstance() ProxyOverride = proxyOverride; TimezoneId = timezoneId; InstancePoolId = instancePoolId; + MaintenanceConfigurationId = maintenanceConfigurationId; MinimalTlsVersion = minimalTlsVersion; StorageAccountType = storageAccountType; CustomInit(); @@ -178,7 +181,7 @@ public ManagedInstance() /// 'Default', 'PointInTimeRestore' /// [JsonProperty(PropertyName = "properties.managedInstanceCreateMode")] - public string ManagedInstanceCreateMode { get; set; } + public ManagedServerCreateMode? ManagedInstanceCreateMode { get; set; } /// /// Gets the fully qualified domain name of the managed instance. @@ -220,7 +223,7 @@ public ManagedInstance() /// licenses). Possible values include: 'LicenseIncluded', 'BasePrice' /// [JsonProperty(PropertyName = "properties.licenseType")] - public string LicenseType { get; set; } + public ManagedInstanceLicenseType? LicenseType { get; set; } /// /// Gets or sets the number of vCores. Allowed values: 8, 16, 24, 32, @@ -280,7 +283,7 @@ public ManagedInstance() /// Possible values include: 'Proxy', 'Redirect', 'Default' /// [JsonProperty(PropertyName = "properties.proxyOverride")] - public string ProxyOverride { get; set; } + public ManagedInstanceProxyOverride? ProxyOverride { get; set; } /// /// Gets or sets id of the timezone. Allowed values are timezones @@ -306,6 +309,13 @@ public ManagedInstance() [JsonProperty(PropertyName = "properties.instancePoolId")] public string InstancePoolId { get; set; } + /// + /// Gets or sets specifies maintenance configuration id to apply to + /// this managed instance. + /// + [JsonProperty(PropertyName = "properties.maintenanceConfigurationId")] + public string MaintenanceConfigurationId { get; set; } + /// /// Gets or sets minimal TLS version. Allowed values: 'None', '1.0', /// '1.1', '1.2' @@ -320,7 +330,7 @@ public ManagedInstance() /// values include: 'GRS', 'LRS', 'ZRS' /// [JsonProperty(PropertyName = "properties.storageAccountType")] - public string StorageAccountType { get; set; } + public StorageAccountType? StorageAccountType { get; set; } /// /// Validate the object. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceEncryptionProtector.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceEncryptionProtector.cs index 10a41136245f..73de91c7a668 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceEncryptionProtector.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceEncryptionProtector.cs @@ -46,7 +46,7 @@ public ManagedInstanceEncryptionProtector() /// key. /// The URI of the server key. /// Thumbprint of the server key. - public ManagedInstanceEncryptionProtector(string serverKeyType, string id = default(string), string name = default(string), string type = default(string), string kind = default(string), string serverKeyName = default(string), string uri = default(string), string thumbprint = default(string)) + public ManagedInstanceEncryptionProtector(ServerKeyType serverKeyType, string id = default(string), string name = default(string), string type = default(string), string kind = default(string), string serverKeyName = default(string), string uri = default(string), string thumbprint = default(string)) : base(id, name, type) { Kind = kind; @@ -81,7 +81,7 @@ public ManagedInstanceEncryptionProtector() /// 'AzureKeyVault' /// [JsonProperty(PropertyName = "properties.serverKeyType")] - public string ServerKeyType { get; set; } + public ServerKeyType ServerKeyType { get; set; } /// /// Gets the URI of the server key. @@ -103,10 +103,6 @@ public ManagedInstanceEncryptionProtector() /// public virtual void Validate() { - if (ServerKeyType == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "ServerKeyType"); - } } } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceFamilyCapability.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceFamilyCapability.cs index 0e2270ab9283..df268f844004 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceFamilyCapability.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceFamilyCapability.cs @@ -39,20 +39,16 @@ public ManagedInstanceFamilyCapability() /// types. /// List of supported virtual cores /// values. - /// Included size. - /// Storage size ranges. /// The status of the capability. Possible values /// include: 'Visible', 'Available', 'Default', 'Disabled' /// The reason for the capability not being /// available. - public ManagedInstanceFamilyCapability(string name = default(string), string sku = default(string), IList supportedLicenseTypes = default(IList), IList supportedVcoresValues = default(IList), MaxSizeCapability includedMaxSize = default(MaxSizeCapability), IList supportedStorageSizes = default(IList), CapabilityStatus? status = default(CapabilityStatus?), string reason = default(string)) + public ManagedInstanceFamilyCapability(string name = default(string), string sku = default(string), IList supportedLicenseTypes = default(IList), IList supportedVcoresValues = default(IList), CapabilityStatus? status = default(CapabilityStatus?), string reason = default(string)) { Name = name; Sku = sku; SupportedLicenseTypes = supportedLicenseTypes; SupportedVcoresValues = supportedVcoresValues; - IncludedMaxSize = includedMaxSize; - SupportedStorageSizes = supportedStorageSizes; Status = status; Reason = reason; CustomInit(); @@ -87,18 +83,6 @@ public ManagedInstanceFamilyCapability() [JsonProperty(PropertyName = "supportedVcoresValues")] public IList SupportedVcoresValues { get; private set; } - /// - /// Gets included size. - /// - [JsonProperty(PropertyName = "includedMaxSize")] - public MaxSizeCapability IncludedMaxSize { get; private set; } - - /// - /// Gets storage size ranges. - /// - [JsonProperty(PropertyName = "supportedStorageSizes")] - public IList SupportedStorageSizes { get; private set; } - /// /// Gets the status of the capability. Possible values include: /// 'Visible', 'Available', 'Default', 'Disabled' diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceKey.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceKey.cs index da6ab159a907..b4bd7e381580 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceKey.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceKey.cs @@ -44,7 +44,7 @@ public ManagedInstanceKey() /// AzureKeyVault, then the URI is required. /// Thumbprint of the key. /// The key creation date. - public ManagedInstanceKey(string serverKeyType, string id = default(string), string name = default(string), string type = default(string), string kind = default(string), string uri = default(string), string thumbprint = default(string), System.DateTime? creationDate = default(System.DateTime?)) + public ManagedInstanceKey(ServerKeyType serverKeyType, string id = default(string), string name = default(string), string type = default(string), string kind = default(string), string uri = default(string), string thumbprint = default(string), System.DateTime? creationDate = default(System.DateTime?)) : base(id, name, type) { Kind = kind; @@ -72,7 +72,7 @@ public ManagedInstanceKey() /// Possible values include: 'ServiceManaged', 'AzureKeyVault' /// [JsonProperty(PropertyName = "properties.serverKeyType")] - public string ServerKeyType { get; set; } + public ServerKeyType ServerKeyType { get; set; } /// /// Gets or sets the URI of the key. If the ServerKeyType is @@ -101,10 +101,6 @@ public ManagedInstanceKey() /// public virtual void Validate() { - if (ServerKeyType == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "ServerKeyType"); - } } } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceLicenseType.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceLicenseType.cs index 518832b8e90d..40cc37539f93 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceLicenseType.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceLicenseType.cs @@ -10,13 +10,96 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for ManagedInstanceLicenseType. /// - public static class ManagedInstanceLicenseType + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(ManagedInstanceLicenseTypeConverter))] + public struct ManagedInstanceLicenseType : System.IEquatable { - public const string LicenseIncluded = "LicenseIncluded"; - public const string BasePrice = "BasePrice"; + private ManagedInstanceLicenseType(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly ManagedInstanceLicenseType LicenseIncluded = "LicenseIncluded"; + + public static readonly ManagedInstanceLicenseType BasePrice = "BasePrice"; + + + /// + /// Underlying value of enum ManagedInstanceLicenseType + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for ManagedInstanceLicenseType + /// + public override string ToString() + { + return UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type ManagedInstanceLicenseType + /// + public bool Equals(ManagedInstanceLicenseType e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to ManagedInstanceLicenseType + /// + public static implicit operator ManagedInstanceLicenseType(string value) + { + return new ManagedInstanceLicenseType(value); + } + + /// + /// Implicit operator to convert ManagedInstanceLicenseType to string + /// + public static implicit operator string(ManagedInstanceLicenseType e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum ManagedInstanceLicenseType + /// + public static bool operator == (ManagedInstanceLicenseType e1, ManagedInstanceLicenseType e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum ManagedInstanceLicenseType + /// + public static bool operator != (ManagedInstanceLicenseType e1, ManagedInstanceLicenseType e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for ManagedInstanceLicenseType + /// + public override bool Equals(object obj) + { + return obj is ManagedInstanceLicenseType && Equals((ManagedInstanceLicenseType)obj); + } + + /// + /// Returns for hashCode ManagedInstanceLicenseType + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceLicenseTypeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceLicenseTypeConverter.cs new file mode 100644 index 000000000000..3299377a282e --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceLicenseTypeConverter.cs @@ -0,0 +1,55 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for ManagedInstanceLicenseType. + /// + public sealed class ManagedInstanceLicenseTypeConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to + /// ManagedInstanceLicenseType by the converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(ManagedInstanceLicenseType).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to + /// ManagedInstanceLicenseType. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (ManagedInstanceLicenseType)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for ManagedInstanceLicenseType for + /// serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceOperation.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceOperation.cs index bcec42027099..9c408ac62043 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceOperation.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceOperation.cs @@ -59,7 +59,7 @@ public ManagedInstanceOperation() /// cancelled. /// The operation parameters. /// The operation steps. - public ManagedInstanceOperation(string id = default(string), string name = default(string), string type = default(string), string managedInstanceName = default(string), string operation = default(string), string operationFriendlyName = default(string), int? percentComplete = default(int?), System.DateTime? startTime = default(System.DateTime?), string state = default(string), int? errorCode = default(int?), string errorDescription = default(string), int? errorSeverity = default(int?), bool? isUserError = default(bool?), System.DateTime? estimatedCompletionTime = default(System.DateTime?), string description = default(string), bool? isCancellable = default(bool?), ManagedInstanceOperationParametersPair operationParameters = default(ManagedInstanceOperationParametersPair), ManagedInstanceOperationSteps operationSteps = default(ManagedInstanceOperationSteps)) + public ManagedInstanceOperation(string id = default(string), string name = default(string), string type = default(string), string managedInstanceName = default(string), string operation = default(string), string operationFriendlyName = default(string), int? percentComplete = default(int?), System.DateTime? startTime = default(System.DateTime?), ManagementOperationState? state = default(ManagementOperationState?), int? errorCode = default(int?), string errorDescription = default(string), int? errorSeverity = default(int?), bool? isUserError = default(bool?), System.DateTime? estimatedCompletionTime = default(System.DateTime?), string description = default(string), bool? isCancellable = default(bool?), ManagedInstanceOperationParametersPair operationParameters = default(ManagedInstanceOperationParametersPair), ManagedInstanceOperationSteps operationSteps = default(ManagedInstanceOperationSteps)) : base(id, name, type) { ManagedInstanceName = managedInstanceName; @@ -122,7 +122,7 @@ public ManagedInstanceOperation() /// 'Cancelled' /// [JsonProperty(PropertyName = "properties.state")] - public string State { get; private set; } + public ManagementOperationState? State { get; private set; } /// /// Gets the operation error code. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstancePrivateLinkServiceConnectionStateProperty.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstancePrivateLinkServiceConnectionStateProperty.cs new file mode 100644 index 000000000000..19079afb92e3 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstancePrivateLinkServiceConnectionStateProperty.cs @@ -0,0 +1,87 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Linq; + + public partial class ManagedInstancePrivateLinkServiceConnectionStateProperty + { + /// + /// Initializes a new instance of the + /// ManagedInstancePrivateLinkServiceConnectionStateProperty class. + /// + public ManagedInstancePrivateLinkServiceConnectionStateProperty() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// ManagedInstancePrivateLinkServiceConnectionStateProperty class. + /// + /// The private link service connection + /// status. + /// The private link service connection + /// description. + /// The private link service connection + /// description. + public ManagedInstancePrivateLinkServiceConnectionStateProperty(string status, string description, string actionsRequired = default(string)) + { + Status = status; + Description = description; + ActionsRequired = actionsRequired; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the private link service connection status. + /// + [JsonProperty(PropertyName = "status")] + public string Status { get; set; } + + /// + /// Gets or sets the private link service connection description. + /// + [JsonProperty(PropertyName = "description")] + public string Description { get; set; } + + /// + /// Gets the private link service connection description. + /// + [JsonProperty(PropertyName = "actionsRequired")] + public string ActionsRequired { get; private set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Status == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Status"); + } + if (Description == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Description"); + } + } + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceProxyOverride.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceProxyOverride.cs index dd6d2f660269..ca55ea27c5b1 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceProxyOverride.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceProxyOverride.cs @@ -10,14 +10,98 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for ManagedInstanceProxyOverride. /// - public static class ManagedInstanceProxyOverride + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(ManagedInstanceProxyOverrideConverter))] + public struct ManagedInstanceProxyOverride : System.IEquatable { - public const string Proxy = "Proxy"; - public const string Redirect = "Redirect"; - public const string Default = "Default"; + private ManagedInstanceProxyOverride(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly ManagedInstanceProxyOverride Proxy = "Proxy"; + + public static readonly ManagedInstanceProxyOverride Redirect = "Redirect"; + + public static readonly ManagedInstanceProxyOverride Default = "Default"; + + + /// + /// Underlying value of enum ManagedInstanceProxyOverride + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for ManagedInstanceProxyOverride + /// + public override string ToString() + { + return UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type ManagedInstanceProxyOverride + /// + public bool Equals(ManagedInstanceProxyOverride e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to ManagedInstanceProxyOverride + /// + public static implicit operator ManagedInstanceProxyOverride(string value) + { + return new ManagedInstanceProxyOverride(value); + } + + /// + /// Implicit operator to convert ManagedInstanceProxyOverride to string + /// + public static implicit operator string(ManagedInstanceProxyOverride e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum ManagedInstanceProxyOverride + /// + public static bool operator == (ManagedInstanceProxyOverride e1, ManagedInstanceProxyOverride e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum ManagedInstanceProxyOverride + /// + public static bool operator != (ManagedInstanceProxyOverride e1, ManagedInstanceProxyOverride e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for ManagedInstanceProxyOverride + /// + public override bool Equals(object obj) + { + return obj is ManagedInstanceProxyOverride && Equals((ManagedInstanceProxyOverride)obj); + } + + /// + /// Returns for hashCode ManagedInstanceProxyOverride + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceProxyOverrideConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceProxyOverrideConverter.cs new file mode 100644 index 000000000000..bf7fbf0f8b03 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceProxyOverrideConverter.cs @@ -0,0 +1,55 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for ManagedInstanceProxyOverride. + /// + public sealed class ManagedInstanceProxyOverrideConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to + /// ManagedInstanceProxyOverride by the converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(ManagedInstanceProxyOverride).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to + /// ManagedInstanceProxyOverride. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (ManagedInstanceProxyOverride)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for ManagedInstanceProxyOverride for + /// serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceUpdate.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceUpdate.cs index c7a69145d33a..612e4dad5760 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceUpdate.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceUpdate.cs @@ -97,6 +97,8 @@ public ManagedInstanceUpdate() /// Europe Standard Time". /// The Id of the instance pool this /// managed server belongs to. + /// Specifies maintenance + /// configuration id to apply to this managed instance. /// Minimal TLS version. Allowed /// values: 'None', '1.0', '1.1', '1.2' /// The storage account type used to @@ -105,7 +107,7 @@ public ManagedInstanceUpdate() /// (GeoRedundantStorage). Possible values include: 'GRS', 'LRS', /// 'ZRS' /// Resource tags. - public ManagedInstanceUpdate(Sku sku = default(Sku), string provisioningState = default(string), string managedInstanceCreateMode = default(string), string fullyQualifiedDomainName = default(string), string administratorLogin = default(string), string administratorLoginPassword = default(string), string subnetId = default(string), string state = default(string), string licenseType = default(string), int? vCores = default(int?), int? storageSizeInGB = default(int?), string collation = default(string), string dnsZone = default(string), string dnsZonePartner = default(string), bool? publicDataEndpointEnabled = default(bool?), string sourceManagedInstanceId = default(string), System.DateTime? restorePointInTime = default(System.DateTime?), string proxyOverride = default(string), string timezoneId = default(string), string instancePoolId = default(string), string maintenanceConfigurationId = default(string), string minimalTlsVersion = default(string), string storageAccountType = default(string), IDictionary tags = default(IDictionary)) + public ManagedInstanceUpdate(Sku sku = default(Sku), string provisioningState = default(string), ManagedServerCreateMode? managedInstanceCreateMode = default(ManagedServerCreateMode?), string fullyQualifiedDomainName = default(string), string administratorLogin = default(string), string administratorLoginPassword = default(string), string subnetId = default(string), string state = default(string), ManagedInstanceLicenseType? licenseType = default(ManagedInstanceLicenseType?), int? vCores = default(int?), int? storageSizeInGB = default(int?), string collation = default(string), string dnsZone = default(string), string dnsZonePartner = default(string), bool? publicDataEndpointEnabled = default(bool?), string sourceManagedInstanceId = default(string), System.DateTime? restorePointInTime = default(System.DateTime?), ManagedInstanceProxyOverride? proxyOverride = default(ManagedInstanceProxyOverride?), string timezoneId = default(string), string instancePoolId = default(string), string maintenanceConfigurationId = default(string), string minimalTlsVersion = default(string), StorageAccountType? storageAccountType = default(StorageAccountType?), IDictionary tags = default(IDictionary)) { Sku = sku; ProvisioningState = provisioningState; @@ -127,6 +129,7 @@ public ManagedInstanceUpdate() ProxyOverride = proxyOverride; TimezoneId = timezoneId; InstancePoolId = instancePoolId; + MaintenanceConfigurationId = maintenanceConfigurationId; MinimalTlsVersion = minimalTlsVersion; StorageAccountType = storageAccountType; Tags = tags; @@ -162,7 +165,7 @@ public ManagedInstanceUpdate() /// 'Default', 'PointInTimeRestore' /// [JsonProperty(PropertyName = "properties.managedInstanceCreateMode")] - public string ManagedInstanceCreateMode { get; set; } + public ManagedServerCreateMode? ManagedInstanceCreateMode { get; set; } /// /// Gets the fully qualified domain name of the managed instance. @@ -204,7 +207,7 @@ public ManagedInstanceUpdate() /// licenses). Possible values include: 'LicenseIncluded', 'BasePrice' /// [JsonProperty(PropertyName = "properties.licenseType")] - public string LicenseType { get; set; } + public ManagedInstanceLicenseType? LicenseType { get; set; } /// /// Gets or sets the number of vCores. Allowed values: 8, 16, 24, 32, @@ -264,7 +267,7 @@ public ManagedInstanceUpdate() /// Possible values include: 'Proxy', 'Redirect', 'Default' /// [JsonProperty(PropertyName = "properties.proxyOverride")] - public string ProxyOverride { get; set; } + public ManagedInstanceProxyOverride? ProxyOverride { get; set; } /// /// Gets or sets id of the timezone. Allowed values are timezones @@ -290,6 +293,13 @@ public ManagedInstanceUpdate() [JsonProperty(PropertyName = "properties.instancePoolId")] public string InstancePoolId { get; set; } + /// + /// Gets or sets specifies maintenance configuration id to apply to + /// this managed instance. + /// + [JsonProperty(PropertyName = "properties.maintenanceConfigurationId")] + public string MaintenanceConfigurationId { get; set; } + /// /// Gets or sets minimal TLS version. Allowed values: 'None', '1.0', /// '1.1', '1.2' @@ -304,7 +314,7 @@ public ManagedInstanceUpdate() /// values include: 'GRS', 'LRS', 'ZRS' /// [JsonProperty(PropertyName = "properties.storageAccountType")] - public string StorageAccountType { get; set; } + public StorageAccountType? StorageAccountType { get; set; } /// /// Gets or sets resource tags. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceVcoresCapability.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceVcoresCapability.cs index 5d8c8e6adbfb..c252dd6a583a 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceVcoresCapability.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceVcoresCapability.cs @@ -11,6 +11,8 @@ namespace Microsoft.Azure.Management.Sql.Models { using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; using System.Linq; /// @@ -33,14 +35,24 @@ public ManagedInstanceVcoresCapability() /// /// The virtual cores identifier. /// The virtual cores value. + /// Included size. + /// Storage size ranges. + /// True if this service objective + /// is supported for managed instances in an instance pool. + /// True if this service objective is + /// supported for standalone managed instances. /// The status of the capability. Possible values /// include: 'Visible', 'Available', 'Default', 'Disabled' /// The reason for the capability not being /// available. - public ManagedInstanceVcoresCapability(string name = default(string), int? value = default(int?), CapabilityStatus? status = default(CapabilityStatus?), string reason = default(string)) + public ManagedInstanceVcoresCapability(string name = default(string), int? value = default(int?), MaxSizeCapability includedMaxSize = default(MaxSizeCapability), IList supportedStorageSizes = default(IList), bool? instancePoolSupported = default(bool?), bool? standaloneSupported = default(bool?), CapabilityStatus? status = default(CapabilityStatus?), string reason = default(string)) { Name = name; Value = value; + IncludedMaxSize = includedMaxSize; + SupportedStorageSizes = supportedStorageSizes; + InstancePoolSupported = instancePoolSupported; + StandaloneSupported = standaloneSupported; Status = status; Reason = reason; CustomInit(); @@ -63,6 +75,32 @@ public ManagedInstanceVcoresCapability() [JsonProperty(PropertyName = "value")] public int? Value { get; private set; } + /// + /// Gets included size. + /// + [JsonProperty(PropertyName = "includedMaxSize")] + public MaxSizeCapability IncludedMaxSize { get; private set; } + + /// + /// Gets storage size ranges. + /// + [JsonProperty(PropertyName = "supportedStorageSizes")] + public IList SupportedStorageSizes { get; private set; } + + /// + /// Gets true if this service objective is supported for managed + /// instances in an instance pool. + /// + [JsonProperty(PropertyName = "instancePoolSupported")] + public bool? InstancePoolSupported { get; private set; } + + /// + /// Gets true if this service objective is supported for standalone + /// managed instances. + /// + [JsonProperty(PropertyName = "standaloneSupported")] + public bool? StandaloneSupported { get; private set; } + /// /// Gets the status of the capability. Possible values include: /// 'Visible', 'Available', 'Default', 'Disabled' diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceVersionCapability.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceVersionCapability.cs index e715d86d3e63..2278b208d4c5 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceVersionCapability.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceVersionCapability.cs @@ -36,14 +36,17 @@ public ManagedInstanceVersionCapability() /// The server version name. /// The list of supported managed /// instance editions. + /// The list of supported + /// instance pool editions. /// The status of the capability. Possible values /// include: 'Visible', 'Available', 'Default', 'Disabled' /// The reason for the capability not being /// available. - public ManagedInstanceVersionCapability(string name = default(string), IList supportedEditions = default(IList), CapabilityStatus? status = default(CapabilityStatus?), string reason = default(string)) + public ManagedInstanceVersionCapability(string name = default(string), IList supportedEditions = default(IList), IList supportedInstancePoolEditions = default(IList), CapabilityStatus? status = default(CapabilityStatus?), string reason = default(string)) { Name = name; SupportedEditions = supportedEditions; + SupportedInstancePoolEditions = supportedInstancePoolEditions; Status = status; Reason = reason; CustomInit(); @@ -66,6 +69,12 @@ public ManagedInstanceVersionCapability() [JsonProperty(PropertyName = "supportedEditions")] public IList SupportedEditions { get; private set; } + /// + /// Gets the list of supported instance pool editions. + /// + [JsonProperty(PropertyName = "supportedInstancePoolEditions")] + public IList SupportedInstancePoolEditions { get; private set; } + /// /// Gets the status of the capability. Possible values include: /// 'Visible', 'Available', 'Default', 'Disabled' diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceVulnerabilityAssessment.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceVulnerabilityAssessment.cs index aec229e8d1eb..7c46e6d77625 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceVulnerabilityAssessment.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceVulnerabilityAssessment.cs @@ -41,8 +41,8 @@ public ManagedInstanceVulnerabilityAssessment() /// Resource name. /// Resource type. /// A shared access signature (SAS - /// Key) that has write access to the blob container specified in - /// 'storageContainerPath' parameter. If 'storageAccountAccessKey' + /// Key) that has read and write access to the blob container specified + /// in 'storageContainerPath' parameter. If 'storageAccountAccessKey' /// isn't specified, StorageContainerSasKey is required. /// Specifies the identifier key /// of the storage account for vulnerability assessment scan results. @@ -72,10 +72,10 @@ public ManagedInstanceVulnerabilityAssessment() public string StorageContainerPath { get; set; } /// - /// Gets or sets a shared access signature (SAS Key) that has write - /// access to the blob container specified in 'storageContainerPath' - /// parameter. If 'storageAccountAccessKey' isn't specified, - /// StorageContainerSasKey is required. + /// Gets or sets a shared access signature (SAS Key) that has read and + /// write access to the blob container specified in + /// 'storageContainerPath' parameter. If 'storageAccountAccessKey' + /// isn't specified, StorageContainerSasKey is required. /// [JsonProperty(PropertyName = "properties.storageContainerSasKey")] public string StorageContainerSasKey { get; set; } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedServerCreateMode.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedServerCreateMode.cs index 141db5dae3f7..6d1ca26a908f 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedServerCreateMode.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedServerCreateMode.cs @@ -10,13 +10,96 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for ManagedServerCreateMode. /// - public static class ManagedServerCreateMode + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(ManagedServerCreateModeConverter))] + public struct ManagedServerCreateMode : System.IEquatable { - public const string Default = "Default"; - public const string PointInTimeRestore = "PointInTimeRestore"; + private ManagedServerCreateMode(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly ManagedServerCreateMode Default = "Default"; + + public static readonly ManagedServerCreateMode PointInTimeRestore = "PointInTimeRestore"; + + + /// + /// Underlying value of enum ManagedServerCreateMode + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for ManagedServerCreateMode + /// + public override string ToString() + { + return UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type ManagedServerCreateMode + /// + public bool Equals(ManagedServerCreateMode e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to ManagedServerCreateMode + /// + public static implicit operator ManagedServerCreateMode(string value) + { + return new ManagedServerCreateMode(value); + } + + /// + /// Implicit operator to convert ManagedServerCreateMode to string + /// + public static implicit operator string(ManagedServerCreateMode e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum ManagedServerCreateMode + /// + public static bool operator == (ManagedServerCreateMode e1, ManagedServerCreateMode e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum ManagedServerCreateMode + /// + public static bool operator != (ManagedServerCreateMode e1, ManagedServerCreateMode e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for ManagedServerCreateMode + /// + public override bool Equals(object obj) + { + return obj is ManagedServerCreateMode && Equals((ManagedServerCreateMode)obj); + } + + /// + /// Returns for hashCode ManagedServerCreateMode + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedServerCreateModeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedServerCreateModeConverter.cs new file mode 100644 index 000000000000..a634f8a5f8d9 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedServerCreateModeConverter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for ManagedServerCreateMode. + /// + public sealed class ManagedServerCreateModeConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to ManagedServerCreateMode + /// by the converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(ManagedServerCreateMode).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to ManagedServerCreateMode. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (ManagedServerCreateMode)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for ManagedServerCreateMode for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagementOperationState.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagementOperationState.cs index 5cc2d5460636..14fd4ea107c3 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagementOperationState.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagementOperationState.cs @@ -10,17 +10,104 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for ManagementOperationState. /// - public static class ManagementOperationState + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(ManagementOperationStateConverter))] + public struct ManagementOperationState : System.IEquatable { - public const string Pending = "Pending"; - public const string InProgress = "InProgress"; - public const string Succeeded = "Succeeded"; - public const string Failed = "Failed"; - public const string CancelInProgress = "CancelInProgress"; - public const string Cancelled = "Cancelled"; + private ManagementOperationState(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly ManagementOperationState Pending = "Pending"; + + public static readonly ManagementOperationState InProgress = "InProgress"; + + public static readonly ManagementOperationState Succeeded = "Succeeded"; + + public static readonly ManagementOperationState Failed = "Failed"; + + public static readonly ManagementOperationState CancelInProgress = "CancelInProgress"; + + public static readonly ManagementOperationState Cancelled = "Cancelled"; + + + /// + /// Underlying value of enum ManagementOperationState + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for ManagementOperationState + /// + public override string ToString() + { + return UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type ManagementOperationState + /// + public bool Equals(ManagementOperationState e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to ManagementOperationState + /// + public static implicit operator ManagementOperationState(string value) + { + return new ManagementOperationState(value); + } + + /// + /// Implicit operator to convert ManagementOperationState to string + /// + public static implicit operator string(ManagementOperationState e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum ManagementOperationState + /// + public static bool operator == (ManagementOperationState e1, ManagementOperationState e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum ManagementOperationState + /// + public static bool operator != (ManagementOperationState e1, ManagementOperationState e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for ManagementOperationState + /// + public override bool Equals(object obj) + { + return obj is ManagementOperationState && Equals((ManagementOperationState)obj); + } + + /// + /// Returns for hashCode ManagementOperationState + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagementOperationStateConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagementOperationStateConverter.cs new file mode 100644 index 000000000000..a3d6452f16a0 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagementOperationStateConverter.cs @@ -0,0 +1,54 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for ManagementOperationState. + /// + public sealed class ManagementOperationStateConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to ManagementOperationState + /// by the converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(ManagementOperationState).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to ManagementOperationState. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (ManagementOperationState)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for ManagementOperationState for + /// serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/MaxSizeCapability.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/MaxSizeCapability.cs index e0475eee1066..def373f39d61 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/MaxSizeCapability.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/MaxSizeCapability.cs @@ -34,7 +34,7 @@ public MaxSizeCapability() /// The units that the limit is expressed in. /// Possible values include: 'Megabytes', 'Gigabytes', 'Terabytes', /// 'Petabytes' - public MaxSizeCapability(int? limit = default(int?), string unit = default(string)) + public MaxSizeCapability(int? limit = default(int?), MaxSizeUnit? unit = default(MaxSizeUnit?)) { Limit = limit; Unit = unit; @@ -57,7 +57,7 @@ public MaxSizeCapability() /// include: 'Megabytes', 'Gigabytes', 'Terabytes', 'Petabytes' /// [JsonProperty(PropertyName = "unit")] - public string Unit { get; private set; } + public MaxSizeUnit? Unit { get; private set; } } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/MaxSizeUnit.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/MaxSizeUnit.cs index cdf8f43bfd5c..96177a14eaa8 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/MaxSizeUnit.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/MaxSizeUnit.cs @@ -10,15 +10,100 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for MaxSizeUnit. /// - public static class MaxSizeUnit + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(MaxSizeUnitConverter))] + public struct MaxSizeUnit : System.IEquatable { - public const string Megabytes = "Megabytes"; - public const string Gigabytes = "Gigabytes"; - public const string Terabytes = "Terabytes"; - public const string Petabytes = "Petabytes"; + private MaxSizeUnit(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly MaxSizeUnit Megabytes = "Megabytes"; + + public static readonly MaxSizeUnit Gigabytes = "Gigabytes"; + + public static readonly MaxSizeUnit Terabytes = "Terabytes"; + + public static readonly MaxSizeUnit Petabytes = "Petabytes"; + + + /// + /// Underlying value of enum MaxSizeUnit + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for MaxSizeUnit + /// + public override string ToString() + { + return UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type MaxSizeUnit + /// + public bool Equals(MaxSizeUnit e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to MaxSizeUnit + /// + public static implicit operator MaxSizeUnit(string value) + { + return new MaxSizeUnit(value); + } + + /// + /// Implicit operator to convert MaxSizeUnit to string + /// + public static implicit operator string(MaxSizeUnit e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum MaxSizeUnit + /// + public static bool operator == (MaxSizeUnit e1, MaxSizeUnit e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum MaxSizeUnit + /// + public static bool operator != (MaxSizeUnit e1, MaxSizeUnit e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for MaxSizeUnit + /// + public override bool Equals(object obj) + { + return obj is MaxSizeUnit && Equals((MaxSizeUnit)obj); + } + + /// + /// Returns for hashCode MaxSizeUnit + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/MaxSizeUnitConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/MaxSizeUnitConverter.cs new file mode 100644 index 000000000000..a63443040350 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/MaxSizeUnitConverter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for MaxSizeUnit. + /// + public sealed class MaxSizeUnitConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to MaxSizeUnit by the + /// converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(MaxSizeUnit).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to MaxSizeUnit. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (MaxSizeUnit)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for MaxSizeUnit for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/Metric.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/Metric.cs index c2f7e0249613..f81d6baa6b56 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/Metric.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/Metric.cs @@ -43,7 +43,7 @@ public Metric() /// The name information for the metric. /// The metric values for the specified time /// window and timestep. - public Metric(System.DateTime? startTime = default(System.DateTime?), System.DateTime? endTime = default(System.DateTime?), string timeGrain = default(string), string unit = default(string), MetricName name = default(MetricName), IList metricValues = default(IList)) + public Metric(System.DateTime? startTime = default(System.DateTime?), System.DateTime? endTime = default(System.DateTime?), string timeGrain = default(string), UnitType? unit = default(UnitType?), MetricName name = default(MetricName), IList metricValues = default(IList)) { StartTime = startTime; EndTime = endTime; @@ -82,7 +82,7 @@ public Metric() /// 'bytes', 'seconds', 'percent', 'countPerSecond', 'bytesPerSecond' /// [JsonProperty(PropertyName = "unit")] - public string Unit { get; private set; } + public UnitType? Unit { get; private set; } /// /// Gets the name information for the metric. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/MetricDefinition.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/MetricDefinition.cs index 5bd07c0d50f1..dc33003c3588 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/MetricDefinition.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/MetricDefinition.cs @@ -41,7 +41,7 @@ public MetricDefinition() /// 'BytesPerSecond' /// The list of database metric /// availabilities for the metric. - public MetricDefinition(MetricName name = default(MetricName), string primaryAggregationType = default(string), string resourceUri = default(string), string unit = default(string), IList metricAvailabilities = default(IList)) + public MetricDefinition(MetricName name = default(MetricName), PrimaryAggregationType? primaryAggregationType = default(PrimaryAggregationType?), string resourceUri = default(string), UnitDefinitionType? unit = default(UnitDefinitionType?), IList metricAvailabilities = default(IList)) { Name = name; PrimaryAggregationType = primaryAggregationType; @@ -68,7 +68,7 @@ public MetricDefinition() /// 'Minimum', 'Maximum', 'Total' /// [JsonProperty(PropertyName = "primaryAggregationType")] - public string PrimaryAggregationType { get; private set; } + public PrimaryAggregationType? PrimaryAggregationType { get; private set; } /// /// Gets the resource uri of the database. @@ -81,7 +81,7 @@ public MetricDefinition() /// 'Bytes', 'Seconds', 'Percent', 'CountPerSecond', 'BytesPerSecond' /// [JsonProperty(PropertyName = "unit")] - public string Unit { get; private set; } + public UnitDefinitionType? Unit { get; private set; } /// /// Gets the list of database metric availabilities for the metric. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/MinCapacityCapability.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/MinCapacityCapability.cs new file mode 100644 index 000000000000..b713250cad8e --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/MinCapacityCapability.cs @@ -0,0 +1,70 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// The min capacity capability + /// + public partial class MinCapacityCapability + { + /// + /// Initializes a new instance of the MinCapacityCapability class. + /// + public MinCapacityCapability() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the MinCapacityCapability class. + /// + /// Min capacity value + /// The status of the capability. Possible values + /// include: 'Visible', 'Available', 'Default', 'Disabled' + /// The reason for the capability not being + /// available. + public MinCapacityCapability(double? value = default(double?), CapabilityStatus? status = default(CapabilityStatus?), string reason = default(string)) + { + Value = value; + Status = status; + Reason = reason; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets min capacity value + /// + [JsonProperty(PropertyName = "value")] + public double? Value { get; private set; } + + /// + /// Gets the status of the capability. Possible values include: + /// 'Visible', 'Available', 'Default', 'Disabled' + /// + [JsonProperty(PropertyName = "status")] + public CapabilityStatus? Status { get; private set; } + + /// + /// Gets or sets the reason for the capability not being available. + /// + [JsonProperty(PropertyName = "reason")] + public string Reason { get; set; } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/NetworkIsolationSettings.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/NetworkIsolationSettings.cs new file mode 100644 index 000000000000..b83f3b2b33fa --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/NetworkIsolationSettings.cs @@ -0,0 +1,72 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Contains the ARM resources for which to create private endpoint + /// connection. + /// + public partial class NetworkIsolationSettings + { + /// + /// Initializes a new instance of the NetworkIsolationSettings class. + /// + public NetworkIsolationSettings() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the NetworkIsolationSettings class. + /// + /// The resource id for the + /// storage account used to store BACPAC file. If set, private endpoint + /// connection will be created for the storage account. Must match + /// storage account used for StorageUri parameter. + /// The resource id for the SQL + /// server which is the target of this request. If set, private + /// endpoint connection will be created for the SQL server. Must match + /// server which is target of the operation. + public NetworkIsolationSettings(string storageAccountResourceId = default(string), string sqlServerResourceId = default(string)) + { + StorageAccountResourceId = storageAccountResourceId; + SqlServerResourceId = sqlServerResourceId; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the resource id for the storage account used to store + /// BACPAC file. If set, private endpoint connection will be created + /// for the storage account. Must match storage account used for + /// StorageUri parameter. + /// + [JsonProperty(PropertyName = "storageAccountResourceId")] + public string StorageAccountResourceId { get; set; } + + /// + /// Gets or sets the resource id for the SQL server which is the target + /// of this request. If set, private endpoint connection will be + /// created for the SQL server. Must match server which is target of + /// the operation. + /// + [JsonProperty(PropertyName = "sqlServerResourceId")] + public string SqlServerResourceId { get; set; } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/Operation.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/Operation.cs index fcf0b7b48dbc..d6f75827c8ff 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/Operation.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/Operation.cs @@ -39,7 +39,7 @@ public Operation() /// Possible values include: 'user', 'system' /// Additional descriptions for the /// operation. - public Operation(string name = default(string), OperationDisplay display = default(OperationDisplay), string origin = default(string), IDictionary properties = default(IDictionary)) + public Operation(string name = default(string), OperationDisplay display = default(OperationDisplay), OperationOrigin? origin = default(OperationOrigin?), IDictionary properties = default(IDictionary)) { Name = name; Display = display; @@ -72,7 +72,7 @@ public Operation() /// include: 'user', 'system' /// [JsonProperty(PropertyName = "origin")] - public string Origin { get; private set; } + public OperationOrigin? Origin { get; private set; } /// /// Gets additional descriptions for the operation. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/OperationOrigin.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/OperationOrigin.cs index 4d779e5b4c1a..350fa72bba26 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/OperationOrigin.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/OperationOrigin.cs @@ -10,13 +10,96 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for OperationOrigin. /// - public static class OperationOrigin + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(OperationOriginConverter))] + public struct OperationOrigin : System.IEquatable { - public const string User = "user"; - public const string System = "system"; + private OperationOrigin(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly OperationOrigin User = "user"; + + public static readonly OperationOrigin System = "system"; + + + /// + /// Underlying value of enum OperationOrigin + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for OperationOrigin + /// + public override string ToString() + { + return UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type OperationOrigin + /// + public bool Equals(OperationOrigin e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to OperationOrigin + /// + public static implicit operator OperationOrigin(string value) + { + return new OperationOrigin(value); + } + + /// + /// Implicit operator to convert OperationOrigin to string + /// + public static implicit operator string(OperationOrigin e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum OperationOrigin + /// + public static bool operator == (OperationOrigin e1, OperationOrigin e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum OperationOrigin + /// + public static bool operator != (OperationOrigin e1, OperationOrigin e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for OperationOrigin + /// + public override bool Equals(object obj) + { + return obj is OperationOrigin && Equals((OperationOrigin)obj); + } + + /// + /// Returns for hashCode OperationOrigin + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/OperationOriginConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/OperationOriginConverter.cs new file mode 100644 index 000000000000..4375b48232c9 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/OperationOriginConverter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for OperationOrigin. + /// + public sealed class OperationOriginConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to OperationOrigin by the + /// converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(OperationOrigin).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to OperationOrigin. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (OperationOrigin)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for OperationOrigin for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PartnerInfo.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PartnerInfo.cs index 440a5d14a763..e6fe406b738d 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PartnerInfo.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PartnerInfo.cs @@ -34,7 +34,7 @@ public PartnerInfo() /// Geo location of the partner server. /// Replication role of the partner /// server. Possible values include: 'Primary', 'Secondary' - public PartnerInfo(string id, string location = default(string), string replicationRole = default(string)) + public PartnerInfo(string id, string location = default(string), FailoverGroupReplicationRole? replicationRole = default(FailoverGroupReplicationRole?)) { Id = id; Location = location; @@ -64,7 +64,7 @@ public PartnerInfo() /// include: 'Primary', 'Secondary' /// [JsonProperty(PropertyName = "replicationRole")] - public string ReplicationRole { get; private set; } + public FailoverGroupReplicationRole? ReplicationRole { get; private set; } /// /// Validate the object. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PartnerRegionInfo.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PartnerRegionInfo.cs index 4835389285ef..a816aa9c042f 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PartnerRegionInfo.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PartnerRegionInfo.cs @@ -34,7 +34,7 @@ public PartnerRegionInfo() /// Replication role of the partner /// managed instances. Possible values include: 'Primary', /// 'Secondary' - public PartnerRegionInfo(string location = default(string), string replicationRole = default(string)) + public PartnerRegionInfo(string location = default(string), InstanceFailoverGroupReplicationRole? replicationRole = default(InstanceFailoverGroupReplicationRole?)) { Location = location; ReplicationRole = replicationRole; @@ -57,7 +57,7 @@ public PartnerRegionInfo() /// values include: 'Primary', 'Secondary' /// [JsonProperty(PropertyName = "replicationRole")] - public string ReplicationRole { get; private set; } + public InstanceFailoverGroupReplicationRole? ReplicationRole { get; private set; } } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PauseDelayTimeUnit.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PauseDelayTimeUnit.cs new file mode 100644 index 000000000000..caa8340bbd93 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PauseDelayTimeUnit.cs @@ -0,0 +1,103 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + /// + /// Defines values for PauseDelayTimeUnit. + /// + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(PauseDelayTimeUnitConverter))] + public struct PauseDelayTimeUnit : System.IEquatable + { + private PauseDelayTimeUnit(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly PauseDelayTimeUnit Minutes = "Minutes"; + + + /// + /// Underlying value of enum PauseDelayTimeUnit + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for PauseDelayTimeUnit + /// + public override string ToString() + { + return UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type PauseDelayTimeUnit + /// + public bool Equals(PauseDelayTimeUnit e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to PauseDelayTimeUnit + /// + public static implicit operator PauseDelayTimeUnit(string value) + { + return new PauseDelayTimeUnit(value); + } + + /// + /// Implicit operator to convert PauseDelayTimeUnit to string + /// + public static implicit operator string(PauseDelayTimeUnit e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum PauseDelayTimeUnit + /// + public static bool operator == (PauseDelayTimeUnit e1, PauseDelayTimeUnit e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum PauseDelayTimeUnit + /// + public static bool operator != (PauseDelayTimeUnit e1, PauseDelayTimeUnit e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for PauseDelayTimeUnit + /// + public override bool Equals(object obj) + { + return obj is PauseDelayTimeUnit && Equals((PauseDelayTimeUnit)obj); + } + + /// + /// Returns for hashCode PauseDelayTimeUnit + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PauseDelayTimeUnitConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PauseDelayTimeUnitConverter.cs new file mode 100644 index 000000000000..13ba249919e9 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PauseDelayTimeUnitConverter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for PauseDelayTimeUnit. + /// + public sealed class PauseDelayTimeUnitConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to PauseDelayTimeUnit by the + /// converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(PauseDelayTimeUnit).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to PauseDelayTimeUnit. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (PauseDelayTimeUnit)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for PauseDelayTimeUnit for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PerformanceLevelCapability.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PerformanceLevelCapability.cs index 8b04656c9b9c..5e0493983703 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PerformanceLevelCapability.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PerformanceLevelCapability.cs @@ -32,7 +32,7 @@ public PerformanceLevelCapability() /// Performance level value. /// Unit type used to measure performance level. /// Possible values include: 'DTU', 'VCores' - public PerformanceLevelCapability(double? value = default(double?), string unit = default(string)) + public PerformanceLevelCapability(double? value = default(double?), PerformanceLevelUnit? unit = default(PerformanceLevelUnit?)) { Value = value; Unit = unit; @@ -55,7 +55,7 @@ public PerformanceLevelCapability() /// include: 'DTU', 'VCores' /// [JsonProperty(PropertyName = "unit")] - public string Unit { get; private set; } + public PerformanceLevelUnit? Unit { get; private set; } } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PerformanceLevelUnit.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PerformanceLevelUnit.cs index 8eb843ed2bc3..a115b6322345 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PerformanceLevelUnit.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PerformanceLevelUnit.cs @@ -10,13 +10,96 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for PerformanceLevelUnit. /// - public static class PerformanceLevelUnit + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(PerformanceLevelUnitConverter))] + public struct PerformanceLevelUnit : System.IEquatable { - public const string DTU = "DTU"; - public const string VCores = "VCores"; + private PerformanceLevelUnit(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly PerformanceLevelUnit DTU = "DTU"; + + public static readonly PerformanceLevelUnit VCores = "VCores"; + + + /// + /// Underlying value of enum PerformanceLevelUnit + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for PerformanceLevelUnit + /// + public override string ToString() + { + return UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type PerformanceLevelUnit + /// + public bool Equals(PerformanceLevelUnit e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to PerformanceLevelUnit + /// + public static implicit operator PerformanceLevelUnit(string value) + { + return new PerformanceLevelUnit(value); + } + + /// + /// Implicit operator to convert PerformanceLevelUnit to string + /// + public static implicit operator string(PerformanceLevelUnit e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum PerformanceLevelUnit + /// + public static bool operator == (PerformanceLevelUnit e1, PerformanceLevelUnit e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum PerformanceLevelUnit + /// + public static bool operator != (PerformanceLevelUnit e1, PerformanceLevelUnit e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for PerformanceLevelUnit + /// + public override bool Equals(object obj) + { + return obj is PerformanceLevelUnit && Equals((PerformanceLevelUnit)obj); + } + + /// + /// Returns for hashCode PerformanceLevelUnit + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PerformanceLevelUnitConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PerformanceLevelUnitConverter.cs new file mode 100644 index 000000000000..3d58b1c585e4 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PerformanceLevelUnitConverter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for PerformanceLevelUnit. + /// + public sealed class PerformanceLevelUnitConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to PerformanceLevelUnit by + /// the converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(PerformanceLevelUnit).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to PerformanceLevelUnit. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (PerformanceLevelUnit)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for PerformanceLevelUnit for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrimaryAggregationType.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrimaryAggregationType.cs index d863b177f680..fc710e285372 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrimaryAggregationType.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrimaryAggregationType.cs @@ -10,17 +10,104 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for PrimaryAggregationType. /// - public static class PrimaryAggregationType + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(PrimaryAggregationTypeConverter))] + public struct PrimaryAggregationType : System.IEquatable { - public const string None = "None"; - public const string Average = "Average"; - public const string Count = "Count"; - public const string Minimum = "Minimum"; - public const string Maximum = "Maximum"; - public const string Total = "Total"; + private PrimaryAggregationType(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly PrimaryAggregationType None = "None"; + + public static readonly PrimaryAggregationType Average = "Average"; + + public static readonly PrimaryAggregationType Count = "Count"; + + public static readonly PrimaryAggregationType Minimum = "Minimum"; + + public static readonly PrimaryAggregationType Maximum = "Maximum"; + + public static readonly PrimaryAggregationType Total = "Total"; + + + /// + /// Underlying value of enum PrimaryAggregationType + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for PrimaryAggregationType + /// + public override string ToString() + { + return UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type PrimaryAggregationType + /// + public bool Equals(PrimaryAggregationType e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to PrimaryAggregationType + /// + public static implicit operator PrimaryAggregationType(string value) + { + return new PrimaryAggregationType(value); + } + + /// + /// Implicit operator to convert PrimaryAggregationType to string + /// + public static implicit operator string(PrimaryAggregationType e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum PrimaryAggregationType + /// + public static bool operator == (PrimaryAggregationType e1, PrimaryAggregationType e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum PrimaryAggregationType + /// + public static bool operator != (PrimaryAggregationType e1, PrimaryAggregationType e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for PrimaryAggregationType + /// + public override bool Equals(object obj) + { + return obj is PrimaryAggregationType && Equals((PrimaryAggregationType)obj); + } + + /// + /// Returns for hashCode PrimaryAggregationType + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrimaryAggregationTypeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrimaryAggregationTypeConverter.cs new file mode 100644 index 000000000000..72fcf7333fdf --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrimaryAggregationTypeConverter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for PrimaryAggregationType. + /// + public sealed class PrimaryAggregationTypeConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to PrimaryAggregationType by + /// the converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(PrimaryAggregationType).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to PrimaryAggregationType. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (PrimaryAggregationType)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for PrimaryAggregationType for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateEndpointConnection.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateEndpointConnection.cs index 1e5b5bd72283..7d429e5f86b5 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateEndpointConnection.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateEndpointConnection.cs @@ -42,7 +42,7 @@ public PrivateEndpointConnection() /// State of the private endpoint /// connection. Possible values include: 'Approving', 'Ready', /// 'Dropping', 'Failed', 'Rejecting' - public PrivateEndpointConnection(string id = default(string), string name = default(string), string type = default(string), PrivateEndpointProperty privateEndpoint = default(PrivateEndpointProperty), PrivateLinkServiceConnectionStateProperty privateLinkServiceConnectionState = default(PrivateLinkServiceConnectionStateProperty), string provisioningState = default(string)) + public PrivateEndpointConnection(string id = default(string), string name = default(string), string type = default(string), PrivateEndpointProperty privateEndpoint = default(PrivateEndpointProperty), PrivateLinkServiceConnectionStateProperty privateLinkServiceConnectionState = default(PrivateLinkServiceConnectionStateProperty), PrivateEndpointProvisioningState? provisioningState = default(PrivateEndpointProvisioningState?)) : base(id, name, type) { PrivateEndpoint = privateEndpoint; @@ -73,7 +73,7 @@ public PrivateEndpointConnection() /// include: 'Approving', 'Ready', 'Dropping', 'Failed', 'Rejecting' /// [JsonProperty(PropertyName = "properties.provisioningState")] - public string ProvisioningState { get; private set; } + public PrivateEndpointProvisioningState? ProvisioningState { get; private set; } /// /// Validate the object. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateEndpointConnectionProperties.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateEndpointConnectionProperties.cs index 86d661659397..09f479a5dad3 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateEndpointConnectionProperties.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateEndpointConnectionProperties.cs @@ -38,7 +38,7 @@ public PrivateEndpointConnectionProperties() /// State of the private endpoint /// connection. Possible values include: 'Approving', 'Ready', /// 'Dropping', 'Failed', 'Rejecting' - public PrivateEndpointConnectionProperties(PrivateEndpointProperty privateEndpoint = default(PrivateEndpointProperty), PrivateLinkServiceConnectionStateProperty privateLinkServiceConnectionState = default(PrivateLinkServiceConnectionStateProperty), string provisioningState = default(string)) + public PrivateEndpointConnectionProperties(PrivateEndpointProperty privateEndpoint = default(PrivateEndpointProperty), PrivateLinkServiceConnectionStateProperty privateLinkServiceConnectionState = default(PrivateLinkServiceConnectionStateProperty), PrivateEndpointProvisioningState? provisioningState = default(PrivateEndpointProvisioningState?)) { PrivateEndpoint = privateEndpoint; PrivateLinkServiceConnectionState = privateLinkServiceConnectionState; @@ -68,7 +68,7 @@ public PrivateEndpointConnectionProperties() /// include: 'Approving', 'Ready', 'Dropping', 'Failed', 'Rejecting' /// [JsonProperty(PropertyName = "provisioningState")] - public string ProvisioningState { get; private set; } + public PrivateEndpointProvisioningState? ProvisioningState { get; private set; } /// /// Validate the object. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateEndpointConnectionRequestStatus.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateEndpointConnectionRequestStatus.cs new file mode 100644 index 000000000000..e65d5eece7a2 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateEndpointConnectionRequestStatus.cs @@ -0,0 +1,72 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Contains the private endpoint connection requests status. + /// + public partial class PrivateEndpointConnectionRequestStatus + { + /// + /// Initializes a new instance of the + /// PrivateEndpointConnectionRequestStatus class. + /// + public PrivateEndpointConnectionRequestStatus() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// PrivateEndpointConnectionRequestStatus class. + /// + /// Resource id for which the + /// private endpoint is created. + /// The connection name for + /// the private endpoint. + /// Status of this private endpoint + /// connection. + public PrivateEndpointConnectionRequestStatus(string privateLinkServiceId = default(string), string privateEndpointConnectionName = default(string), string status = default(string)) + { + PrivateLinkServiceId = privateLinkServiceId; + PrivateEndpointConnectionName = privateEndpointConnectionName; + Status = status; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets resource id for which the private endpoint is created. + /// + [JsonProperty(PropertyName = "privateLinkServiceId")] + public string PrivateLinkServiceId { get; private set; } + + /// + /// Gets the connection name for the private endpoint. + /// + [JsonProperty(PropertyName = "privateEndpointConnectionName")] + public string PrivateEndpointConnectionName { get; private set; } + + /// + /// Gets status of this private endpoint connection. + /// + [JsonProperty(PropertyName = "status")] + public string Status { get; private set; } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateEndpointProvisioningState.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateEndpointProvisioningState.cs index 8b51147cfcf2..13b8474b6d40 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateEndpointProvisioningState.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateEndpointProvisioningState.cs @@ -10,16 +10,104 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for PrivateEndpointProvisioningState. /// - public static class PrivateEndpointProvisioningState + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(PrivateEndpointProvisioningStateConverter))] + public struct PrivateEndpointProvisioningState : System.IEquatable { - public const string Approving = "Approving"; - public const string Ready = "Ready"; - public const string Dropping = "Dropping"; - public const string Failed = "Failed"; - public const string Rejecting = "Rejecting"; + private PrivateEndpointProvisioningState(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly PrivateEndpointProvisioningState Approving = "Approving"; + + public static readonly PrivateEndpointProvisioningState Ready = "Ready"; + + public static readonly PrivateEndpointProvisioningState Dropping = "Dropping"; + + public static readonly PrivateEndpointProvisioningState Failed = "Failed"; + + public static readonly PrivateEndpointProvisioningState Rejecting = "Rejecting"; + + + /// + /// Underlying value of enum PrivateEndpointProvisioningState + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for PrivateEndpointProvisioningState + /// + public override string ToString() + { + return UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type PrivateEndpointProvisioningState + /// + public bool Equals(PrivateEndpointProvisioningState e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to + /// PrivateEndpointProvisioningState + /// + public static implicit operator PrivateEndpointProvisioningState(string value) + { + return new PrivateEndpointProvisioningState(value); + } + + /// + /// Implicit operator to convert PrivateEndpointProvisioningState to + /// string + /// + public static implicit operator string(PrivateEndpointProvisioningState e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum PrivateEndpointProvisioningState + /// + public static bool operator == (PrivateEndpointProvisioningState e1, PrivateEndpointProvisioningState e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum PrivateEndpointProvisioningState + /// + public static bool operator != (PrivateEndpointProvisioningState e1, PrivateEndpointProvisioningState e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for PrivateEndpointProvisioningState + /// + public override bool Equals(object obj) + { + return obj is PrivateEndpointProvisioningState && Equals((PrivateEndpointProvisioningState)obj); + } + + /// + /// Returns for hashCode PrivateEndpointProvisioningState + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateEndpointProvisioningStateConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateEndpointProvisioningStateConverter.cs new file mode 100644 index 000000000000..4aba156c0b1e --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateEndpointProvisioningStateConverter.cs @@ -0,0 +1,55 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for PrivateEndpointProvisioningState. + /// + public sealed class PrivateEndpointProvisioningStateConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to + /// PrivateEndpointProvisioningState by the converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(PrivateEndpointProvisioningState).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to + /// PrivateEndpointProvisioningState. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (PrivateEndpointProvisioningState)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for PrivateEndpointProvisioningState for + /// serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateLinkServiceConnectionStateActionsRequire.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateLinkServiceConnectionStateActionsRequire.cs index 65076ffb9e33..9d4f37c6de77 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateLinkServiceConnectionStateActionsRequire.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateLinkServiceConnectionStateActionsRequire.cs @@ -10,12 +10,103 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for PrivateLinkServiceConnectionStateActionsRequire. /// - public static class PrivateLinkServiceConnectionStateActionsRequire + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(PrivateLinkServiceConnectionStateActionsRequireConverter))] + public struct PrivateLinkServiceConnectionStateActionsRequire : System.IEquatable { - public const string None = "None"; + private PrivateLinkServiceConnectionStateActionsRequire(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly PrivateLinkServiceConnectionStateActionsRequire None = "None"; + + + /// + /// Underlying value of enum + /// PrivateLinkServiceConnectionStateActionsRequire + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for + /// PrivateLinkServiceConnectionStateActionsRequire + /// + public override string ToString() + { + return UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type + /// PrivateLinkServiceConnectionStateActionsRequire + /// + public bool Equals(PrivateLinkServiceConnectionStateActionsRequire e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to + /// PrivateLinkServiceConnectionStateActionsRequire + /// + public static implicit operator PrivateLinkServiceConnectionStateActionsRequire(string value) + { + return new PrivateLinkServiceConnectionStateActionsRequire(value); + } + + /// + /// Implicit operator to convert + /// PrivateLinkServiceConnectionStateActionsRequire to string + /// + public static implicit operator string(PrivateLinkServiceConnectionStateActionsRequire e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum + /// PrivateLinkServiceConnectionStateActionsRequire + /// + public static bool operator == (PrivateLinkServiceConnectionStateActionsRequire e1, PrivateLinkServiceConnectionStateActionsRequire e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum + /// PrivateLinkServiceConnectionStateActionsRequire + /// + public static bool operator != (PrivateLinkServiceConnectionStateActionsRequire e1, PrivateLinkServiceConnectionStateActionsRequire e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for + /// PrivateLinkServiceConnectionStateActionsRequire + /// + public override bool Equals(object obj) + { + return obj is PrivateLinkServiceConnectionStateActionsRequire && Equals((PrivateLinkServiceConnectionStateActionsRequire)obj); + } + + /// + /// Returns for hashCode + /// PrivateLinkServiceConnectionStateActionsRequire + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateLinkServiceConnectionStateActionsRequireConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateLinkServiceConnectionStateActionsRequireConverter.cs new file mode 100644 index 000000000000..11ba9fac5962 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateLinkServiceConnectionStateActionsRequireConverter.cs @@ -0,0 +1,55 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for PrivateLinkServiceConnectionStateActionsRequire. + /// + public sealed class PrivateLinkServiceConnectionStateActionsRequireConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to + /// PrivateLinkServiceConnectionStateActionsRequire by the converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(PrivateLinkServiceConnectionStateActionsRequire).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to + /// PrivateLinkServiceConnectionStateActionsRequire. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (PrivateLinkServiceConnectionStateActionsRequire)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for + /// PrivateLinkServiceConnectionStateActionsRequire for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateLinkServiceConnectionStateProperty.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateLinkServiceConnectionStateProperty.cs index b37af54682f7..35c59ae42bc3 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateLinkServiceConnectionStateProperty.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateLinkServiceConnectionStateProperty.cs @@ -36,7 +36,7 @@ public PrivateLinkServiceConnectionStateProperty() /// description. /// The actions required for private link /// service connection. Possible values include: 'None' - public PrivateLinkServiceConnectionStateProperty(string status, string description, string actionsRequired = default(string)) + public PrivateLinkServiceConnectionStateProperty(PrivateLinkServiceConnectionStateStatus status, string description, PrivateLinkServiceConnectionStateActionsRequire? actionsRequired = default(PrivateLinkServiceConnectionStateActionsRequire?)) { Status = status; Description = description; @@ -54,7 +54,7 @@ public PrivateLinkServiceConnectionStateProperty() /// values include: 'Approved', 'Pending', 'Rejected', 'Disconnected' /// [JsonProperty(PropertyName = "status")] - public string Status { get; set; } + public PrivateLinkServiceConnectionStateStatus Status { get; set; } /// /// Gets or sets the private link service connection description. @@ -67,7 +67,7 @@ public PrivateLinkServiceConnectionStateProperty() /// Possible values include: 'None' /// [JsonProperty(PropertyName = "actionsRequired")] - public string ActionsRequired { get; private set; } + public PrivateLinkServiceConnectionStateActionsRequire? ActionsRequired { get; private set; } /// /// Validate the object. @@ -77,10 +77,6 @@ public PrivateLinkServiceConnectionStateProperty() /// public virtual void Validate() { - if (Status == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Status"); - } if (Description == null) { throw new ValidationException(ValidationRules.CannotBeNull, "Description"); diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateLinkServiceConnectionStateStatus.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateLinkServiceConnectionStateStatus.cs index 625f7c0aed92..8a205f8eb4b8 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateLinkServiceConnectionStateStatus.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateLinkServiceConnectionStateStatus.cs @@ -10,15 +10,106 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for PrivateLinkServiceConnectionStateStatus. /// - public static class PrivateLinkServiceConnectionStateStatus + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(PrivateLinkServiceConnectionStateStatusConverter))] + public struct PrivateLinkServiceConnectionStateStatus : System.IEquatable { - public const string Approved = "Approved"; - public const string Pending = "Pending"; - public const string Rejected = "Rejected"; - public const string Disconnected = "Disconnected"; + private PrivateLinkServiceConnectionStateStatus(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly PrivateLinkServiceConnectionStateStatus Approved = "Approved"; + + public static readonly PrivateLinkServiceConnectionStateStatus Pending = "Pending"; + + public static readonly PrivateLinkServiceConnectionStateStatus Rejected = "Rejected"; + + public static readonly PrivateLinkServiceConnectionStateStatus Disconnected = "Disconnected"; + + + /// + /// Underlying value of enum PrivateLinkServiceConnectionStateStatus + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for + /// PrivateLinkServiceConnectionStateStatus + /// + public override string ToString() + { + return UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type PrivateLinkServiceConnectionStateStatus + /// + public bool Equals(PrivateLinkServiceConnectionStateStatus e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to + /// PrivateLinkServiceConnectionStateStatus + /// + public static implicit operator PrivateLinkServiceConnectionStateStatus(string value) + { + return new PrivateLinkServiceConnectionStateStatus(value); + } + + /// + /// Implicit operator to convert + /// PrivateLinkServiceConnectionStateStatus to string + /// + public static implicit operator string(PrivateLinkServiceConnectionStateStatus e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum + /// PrivateLinkServiceConnectionStateStatus + /// + public static bool operator == (PrivateLinkServiceConnectionStateStatus e1, PrivateLinkServiceConnectionStateStatus e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum + /// PrivateLinkServiceConnectionStateStatus + /// + public static bool operator != (PrivateLinkServiceConnectionStateStatus e1, PrivateLinkServiceConnectionStateStatus e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for + /// PrivateLinkServiceConnectionStateStatus + /// + public override bool Equals(object obj) + { + return obj is PrivateLinkServiceConnectionStateStatus && Equals((PrivateLinkServiceConnectionStateStatus)obj); + } + + /// + /// Returns for hashCode PrivateLinkServiceConnectionStateStatus + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateLinkServiceConnectionStateStatusConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateLinkServiceConnectionStateStatusConverter.cs new file mode 100644 index 000000000000..5b6c95b39411 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateLinkServiceConnectionStateStatusConverter.cs @@ -0,0 +1,55 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for PrivateLinkServiceConnectionStateStatus. + /// + public sealed class PrivateLinkServiceConnectionStateStatusConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to + /// PrivateLinkServiceConnectionStateStatus by the converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(PrivateLinkServiceConnectionStateStatus).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to + /// PrivateLinkServiceConnectionStateStatus. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (PrivateLinkServiceConnectionStateStatus)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for PrivateLinkServiceConnectionStateStatus + /// for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ProvisioningState.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ProvisioningState.cs index 86dff5006da9..ac6c1d688463 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ProvisioningState.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ProvisioningState.cs @@ -10,16 +10,102 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for ProvisioningState. /// - public static class ProvisioningState + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(ProvisioningStateConverter))] + public struct ProvisioningState : System.IEquatable { - public const string Created = "Created"; - public const string InProgress = "InProgress"; - public const string Succeeded = "Succeeded"; - public const string Failed = "Failed"; - public const string Canceled = "Canceled"; + private ProvisioningState(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly ProvisioningState Created = "Created"; + + public static readonly ProvisioningState InProgress = "InProgress"; + + public static readonly ProvisioningState Succeeded = "Succeeded"; + + public static readonly ProvisioningState Failed = "Failed"; + + public static readonly ProvisioningState Canceled = "Canceled"; + + + /// + /// Underlying value of enum ProvisioningState + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for ProvisioningState + /// + public override string ToString() + { + return UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type ProvisioningState + /// + public bool Equals(ProvisioningState e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to ProvisioningState + /// + public static implicit operator ProvisioningState(string value) + { + return new ProvisioningState(value); + } + + /// + /// Implicit operator to convert ProvisioningState to string + /// + public static implicit operator string(ProvisioningState e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum ProvisioningState + /// + public static bool operator == (ProvisioningState e1, ProvisioningState e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum ProvisioningState + /// + public static bool operator != (ProvisioningState e1, ProvisioningState e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for ProvisioningState + /// + public override bool Equals(object obj) + { + return obj is ProvisioningState && Equals((ProvisioningState)obj); + } + + /// + /// Returns for hashCode ProvisioningState + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ProvisioningStateConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ProvisioningStateConverter.cs new file mode 100644 index 000000000000..1daf14e3574a --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ProvisioningStateConverter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for ProvisioningState. + /// + public sealed class ProvisioningStateConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to ProvisioningState by the + /// converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(ProvisioningState).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to ProvisioningState. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (ProvisioningState)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for ProvisioningState for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReadOnlyEndpointFailoverPolicy.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReadOnlyEndpointFailoverPolicy.cs index 4d78fadf1980..6ceb6583de86 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReadOnlyEndpointFailoverPolicy.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReadOnlyEndpointFailoverPolicy.cs @@ -10,13 +10,98 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for ReadOnlyEndpointFailoverPolicy. /// - public static class ReadOnlyEndpointFailoverPolicy + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(ReadOnlyEndpointFailoverPolicyConverter))] + public struct ReadOnlyEndpointFailoverPolicy : System.IEquatable { - public const string Disabled = "Disabled"; - public const string Enabled = "Enabled"; + private ReadOnlyEndpointFailoverPolicy(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly ReadOnlyEndpointFailoverPolicy Disabled = "Disabled"; + + public static readonly ReadOnlyEndpointFailoverPolicy Enabled = "Enabled"; + + + /// + /// Underlying value of enum ReadOnlyEndpointFailoverPolicy + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for ReadOnlyEndpointFailoverPolicy + /// + public override string ToString() + { + return UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type ReadOnlyEndpointFailoverPolicy + /// + public bool Equals(ReadOnlyEndpointFailoverPolicy e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to + /// ReadOnlyEndpointFailoverPolicy + /// + public static implicit operator ReadOnlyEndpointFailoverPolicy(string value) + { + return new ReadOnlyEndpointFailoverPolicy(value); + } + + /// + /// Implicit operator to convert ReadOnlyEndpointFailoverPolicy to + /// string + /// + public static implicit operator string(ReadOnlyEndpointFailoverPolicy e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum ReadOnlyEndpointFailoverPolicy + /// + public static bool operator == (ReadOnlyEndpointFailoverPolicy e1, ReadOnlyEndpointFailoverPolicy e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum ReadOnlyEndpointFailoverPolicy + /// + public static bool operator != (ReadOnlyEndpointFailoverPolicy e1, ReadOnlyEndpointFailoverPolicy e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for ReadOnlyEndpointFailoverPolicy + /// + public override bool Equals(object obj) + { + return obj is ReadOnlyEndpointFailoverPolicy && Equals((ReadOnlyEndpointFailoverPolicy)obj); + } + + /// + /// Returns for hashCode ReadOnlyEndpointFailoverPolicy + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReadOnlyEndpointFailoverPolicyConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReadOnlyEndpointFailoverPolicyConverter.cs new file mode 100644 index 000000000000..f2b2352a5cee --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReadOnlyEndpointFailoverPolicyConverter.cs @@ -0,0 +1,55 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for ReadOnlyEndpointFailoverPolicy. + /// + public sealed class ReadOnlyEndpointFailoverPolicyConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to + /// ReadOnlyEndpointFailoverPolicy by the converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(ReadOnlyEndpointFailoverPolicy).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to + /// ReadOnlyEndpointFailoverPolicy. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (ReadOnlyEndpointFailoverPolicy)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for ReadOnlyEndpointFailoverPolicy for + /// serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReadScaleCapability.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReadScaleCapability.cs new file mode 100644 index 000000000000..1055b0b9c412 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReadScaleCapability.cs @@ -0,0 +1,71 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// The read scale capability. + /// + public partial class ReadScaleCapability + { + /// + /// Initializes a new instance of the ReadScaleCapability class. + /// + public ReadScaleCapability() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ReadScaleCapability class. + /// + /// The maximum number of read scale + /// replicas. + /// The status of the capability. Possible values + /// include: 'Visible', 'Available', 'Default', 'Disabled' + /// The reason for the capability not being + /// available. + public ReadScaleCapability(int? maxNumberOfReplicas = default(int?), CapabilityStatus? status = default(CapabilityStatus?), string reason = default(string)) + { + MaxNumberOfReplicas = maxNumberOfReplicas; + Status = status; + Reason = reason; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets the maximum number of read scale replicas. + /// + [JsonProperty(PropertyName = "maxNumberOfReplicas")] + public int? MaxNumberOfReplicas { get; private set; } + + /// + /// Gets the status of the capability. Possible values include: + /// 'Visible', 'Available', 'Default', 'Disabled' + /// + [JsonProperty(PropertyName = "status")] + public CapabilityStatus? Status { get; private set; } + + /// + /// Gets or sets the reason for the capability not being available. + /// + [JsonProperty(PropertyName = "reason")] + public string Reason { get; set; } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReadWriteEndpointFailoverPolicy.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReadWriteEndpointFailoverPolicy.cs index 1ea812a89b20..08e2db05c2e7 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReadWriteEndpointFailoverPolicy.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReadWriteEndpointFailoverPolicy.cs @@ -10,13 +10,98 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for ReadWriteEndpointFailoverPolicy. /// - public static class ReadWriteEndpointFailoverPolicy + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(ReadWriteEndpointFailoverPolicyConverter))] + public struct ReadWriteEndpointFailoverPolicy : System.IEquatable { - public const string Manual = "Manual"; - public const string Automatic = "Automatic"; + private ReadWriteEndpointFailoverPolicy(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly ReadWriteEndpointFailoverPolicy Manual = "Manual"; + + public static readonly ReadWriteEndpointFailoverPolicy Automatic = "Automatic"; + + + /// + /// Underlying value of enum ReadWriteEndpointFailoverPolicy + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for ReadWriteEndpointFailoverPolicy + /// + public override string ToString() + { + return UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type ReadWriteEndpointFailoverPolicy + /// + public bool Equals(ReadWriteEndpointFailoverPolicy e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to + /// ReadWriteEndpointFailoverPolicy + /// + public static implicit operator ReadWriteEndpointFailoverPolicy(string value) + { + return new ReadWriteEndpointFailoverPolicy(value); + } + + /// + /// Implicit operator to convert ReadWriteEndpointFailoverPolicy to + /// string + /// + public static implicit operator string(ReadWriteEndpointFailoverPolicy e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum ReadWriteEndpointFailoverPolicy + /// + public static bool operator == (ReadWriteEndpointFailoverPolicy e1, ReadWriteEndpointFailoverPolicy e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum ReadWriteEndpointFailoverPolicy + /// + public static bool operator != (ReadWriteEndpointFailoverPolicy e1, ReadWriteEndpointFailoverPolicy e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for ReadWriteEndpointFailoverPolicy + /// + public override bool Equals(object obj) + { + return obj is ReadWriteEndpointFailoverPolicy && Equals((ReadWriteEndpointFailoverPolicy)obj); + } + + /// + /// Returns for hashCode ReadWriteEndpointFailoverPolicy + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReadWriteEndpointFailoverPolicyConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReadWriteEndpointFailoverPolicyConverter.cs new file mode 100644 index 000000000000..953d3b242b00 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReadWriteEndpointFailoverPolicyConverter.cs @@ -0,0 +1,55 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for ReadWriteEndpointFailoverPolicy. + /// + public sealed class ReadWriteEndpointFailoverPolicyConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to + /// ReadWriteEndpointFailoverPolicy by the converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(ReadWriteEndpointFailoverPolicy).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to + /// ReadWriteEndpointFailoverPolicy. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (ReadWriteEndpointFailoverPolicy)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for ReadWriteEndpointFailoverPolicy for + /// serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/RecommendedElasticPool.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/RecommendedElasticPool.cs index 64bc89c9d26f..ee7c2e27ec44 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/RecommendedElasticPool.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/RecommendedElasticPool.cs @@ -58,7 +58,7 @@ public RecommendedElasticPool() /// Expanded property /// The list of databases housed in the server. /// Expanded property - public RecommendedElasticPool(string id = default(string), string name = default(string), string type = default(string), string databaseEdition = default(string), double? dtu = default(double?), double? databaseDtuMin = default(double?), double? databaseDtuMax = default(double?), double? storageMB = default(double?), System.DateTime? observationPeriodStart = default(System.DateTime?), System.DateTime? observationPeriodEnd = default(System.DateTime?), double? maxObservedDtu = default(double?), double? maxObservedStorageMB = default(double?), IList databases = default(IList), IList metrics = default(IList)) + public RecommendedElasticPool(string id = default(string), string name = default(string), string type = default(string), ElasticPoolEdition? databaseEdition = default(ElasticPoolEdition?), double? dtu = default(double?), double? databaseDtuMin = default(double?), double? databaseDtuMax = default(double?), double? storageMB = default(double?), System.DateTime? observationPeriodStart = default(System.DateTime?), System.DateTime? observationPeriodEnd = default(System.DateTime?), double? maxObservedDtu = default(double?), double? maxObservedStorageMB = default(double?), IList databases = default(IList), IList metrics = default(IList)) : base(id, name, type) { DatabaseEdition = databaseEdition; @@ -87,7 +87,7 @@ public RecommendedElasticPool() /// 'GeneralPurpose', 'BusinessCritical' /// [JsonProperty(PropertyName = "properties.databaseEdition")] - public string DatabaseEdition { get; private set; } + public ElasticPoolEdition? DatabaseEdition { get; private set; } /// /// Gets or sets the DTU for the recommended elastic pool. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReplicaType.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReplicaType.cs index f7a52812ab85..2050f79eaa5e 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReplicaType.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReplicaType.cs @@ -10,13 +10,96 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for ReplicaType. /// - public static class ReplicaType + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(ReplicaTypeConverter))] + public struct ReplicaType : System.IEquatable { - public const string Primary = "Primary"; - public const string ReadableSecondary = "ReadableSecondary"; + private ReplicaType(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly ReplicaType Primary = "Primary"; + + public static readonly ReplicaType ReadableSecondary = "ReadableSecondary"; + + + /// + /// Underlying value of enum ReplicaType + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for ReplicaType + /// + public override string ToString() + { + return UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type ReplicaType + /// + public bool Equals(ReplicaType e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to ReplicaType + /// + public static implicit operator ReplicaType(string value) + { + return new ReplicaType(value); + } + + /// + /// Implicit operator to convert ReplicaType to string + /// + public static implicit operator string(ReplicaType e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum ReplicaType + /// + public static bool operator == (ReplicaType e1, ReplicaType e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum ReplicaType + /// + public static bool operator != (ReplicaType e1, ReplicaType e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for ReplicaType + /// + public override bool Equals(object obj) + { + return obj is ReplicaType && Equals((ReplicaType)obj); + } + + /// + /// Returns for hashCode ReplicaType + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReplicaTypeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReplicaTypeConverter.cs new file mode 100644 index 000000000000..2dc81d8fbb2b --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReplicaTypeConverter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for ReplicaType. + /// + public sealed class ReplicaTypeConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to ReplicaType by the + /// converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(ReplicaType).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to ReplicaType. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (ReplicaType)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for ReplicaType for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReplicationLink.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReplicationLink.cs index 0d886828bfad..d1de4fb55e02 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReplicationLink.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReplicationLink.cs @@ -60,7 +60,7 @@ public ReplicationLink() /// The replication state for the /// replication link. Possible values include: 'PENDING', 'SEEDING', /// 'CATCH_UP', 'SUSPENDED' - public ReplicationLink(string id = default(string), string name = default(string), string type = default(string), string location = default(string), bool? isTerminationAllowed = default(bool?), string replicationMode = default(string), string partnerServer = default(string), string partnerDatabase = default(string), string partnerLocation = default(string), ReplicationRole? role = default(ReplicationRole?), ReplicationRole? partnerRole = default(ReplicationRole?), System.DateTime? startTime = default(System.DateTime?), int? percentComplete = default(int?), string replicationState = default(string)) + public ReplicationLink(string id = default(string), string name = default(string), string type = default(string), string location = default(string), bool? isTerminationAllowed = default(bool?), string replicationMode = default(string), string partnerServer = default(string), string partnerDatabase = default(string), string partnerLocation = default(string), ReplicationRole? role = default(ReplicationRole?), ReplicationRole? partnerRole = default(ReplicationRole?), System.DateTime? startTime = default(System.DateTime?), int? percentComplete = default(int?), ReplicationState? replicationState = default(ReplicationState?)) : base(id, name, type) { Location = location; @@ -152,7 +152,7 @@ public ReplicationLink() /// values include: 'PENDING', 'SEEDING', 'CATCH_UP', 'SUSPENDED' /// [JsonProperty(PropertyName = "properties.replicationState")] - public string ReplicationState { get; private set; } + public ReplicationState? ReplicationState { get; private set; } } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReplicationState.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReplicationState.cs index 067c14bdb345..e84297c1c21a 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReplicationState.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReplicationState.cs @@ -10,15 +10,100 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for ReplicationState. /// - public static class ReplicationState + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(ReplicationStateConverter))] + public struct ReplicationState : System.IEquatable { - public const string PENDING = "PENDING"; - public const string SEEDING = "SEEDING"; - public const string CATCHUP = "CATCH_UP"; - public const string SUSPENDED = "SUSPENDED"; + private ReplicationState(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly ReplicationState PENDING = "PENDING"; + + public static readonly ReplicationState SEEDING = "SEEDING"; + + public static readonly ReplicationState CATCHUP = "CATCH_UP"; + + public static readonly ReplicationState SUSPENDED = "SUSPENDED"; + + + /// + /// Underlying value of enum ReplicationState + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for ReplicationState + /// + public override string ToString() + { + return UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type ReplicationState + /// + public bool Equals(ReplicationState e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to ReplicationState + /// + public static implicit operator ReplicationState(string value) + { + return new ReplicationState(value); + } + + /// + /// Implicit operator to convert ReplicationState to string + /// + public static implicit operator string(ReplicationState e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum ReplicationState + /// + public static bool operator == (ReplicationState e1, ReplicationState e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum ReplicationState + /// + public static bool operator != (ReplicationState e1, ReplicationState e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for ReplicationState + /// + public override bool Equals(object obj) + { + return obj is ReplicationState && Equals((ReplicationState)obj); + } + + /// + /// Returns for hashCode ReplicationState + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReplicationStateConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReplicationStateConverter.cs new file mode 100644 index 000000000000..37a054974228 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReplicationStateConverter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for ReplicationState. + /// + public sealed class ReplicationStateConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to ReplicationState by the + /// converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(ReplicationState).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to ReplicationState. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (ReplicationState)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for ReplicationState for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ResourceIdentity.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ResourceIdentity.cs index d3f9595700d3..5fbf0848c174 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ResourceIdentity.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ResourceIdentity.cs @@ -37,7 +37,7 @@ public ResourceIdentity() /// 'SystemAssigned' /// The Azure Active Directory tenant /// id. - public ResourceIdentity(System.Guid? principalId = default(System.Guid?), string type = default(string), System.Guid? tenantId = default(System.Guid?)) + public ResourceIdentity(System.Guid? principalId = default(System.Guid?), IdentityType? type = default(IdentityType?), System.Guid? tenantId = default(System.Guid?)) { PrincipalId = principalId; Type = type; @@ -63,7 +63,7 @@ public ResourceIdentity() /// 'SystemAssigned' /// [JsonProperty(PropertyName = "type")] - public string Type { get; set; } + public IdentityType? Type { get; set; } /// /// Gets the Azure Active Directory tenant id. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SampleName.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SampleName.cs index 92a7ff7a1560..6f400bda716c 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SampleName.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SampleName.cs @@ -10,14 +10,98 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for SampleName. /// - public static class SampleName + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(SampleNameConverter))] + public struct SampleName : System.IEquatable { - public const string AdventureWorksLT = "AdventureWorksLT"; - public const string WideWorldImportersStd = "WideWorldImportersStd"; - public const string WideWorldImportersFull = "WideWorldImportersFull"; + private SampleName(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly SampleName AdventureWorksLT = "AdventureWorksLT"; + + public static readonly SampleName WideWorldImportersStd = "WideWorldImportersStd"; + + public static readonly SampleName WideWorldImportersFull = "WideWorldImportersFull"; + + + /// + /// Underlying value of enum SampleName + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for SampleName + /// + public override string ToString() + { + return UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type SampleName + /// + public bool Equals(SampleName e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to SampleName + /// + public static implicit operator SampleName(string value) + { + return new SampleName(value); + } + + /// + /// Implicit operator to convert SampleName to string + /// + public static implicit operator string(SampleName e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum SampleName + /// + public static bool operator == (SampleName e1, SampleName e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum SampleName + /// + public static bool operator != (SampleName e1, SampleName e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for SampleName + /// + public override bool Equals(object obj) + { + return obj is SampleName && Equals((SampleName)obj); + } + + /// + /// Returns for hashCode SampleName + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SampleNameConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SampleNameConverter.cs new file mode 100644 index 000000000000..fb7b9b68f517 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SampleNameConverter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for SampleName. + /// + public sealed class SampleNameConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to SampleName by the + /// converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(SampleName).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to SampleName. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (SampleName)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for SampleName for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/Server.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/Server.cs index ceb028f78c6f..e7b9dc14b8f5 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/Server.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/Server.cs @@ -59,7 +59,7 @@ public Server() /// access is allowed for this server. Value is optional but if passed /// in, must be 'Enabled' or 'Disabled'. Possible values include: /// 'Enabled', 'Disabled' - public Server(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), ResourceIdentity identity = default(ResourceIdentity), string kind = default(string), string administratorLogin = default(string), string administratorLoginPassword = default(string), string version = default(string), string state = default(string), string fullyQualifiedDomainName = default(string), IList privateEndpointConnections = default(IList), string minimalTlsVersion = default(string), string publicNetworkAccess = default(string)) + public Server(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), ResourceIdentity identity = default(ResourceIdentity), string kind = default(string), string administratorLogin = default(string), string administratorLoginPassword = default(string), string version = default(string), string state = default(string), string fullyQualifiedDomainName = default(string), IList privateEndpointConnections = default(IList), string minimalTlsVersion = default(string), ServerPublicNetworkAccess? publicNetworkAccess = default(ServerPublicNetworkAccess?)) : base(location, id, name, type, tags) { Identity = identity; @@ -144,7 +144,7 @@ public Server() /// or 'Disabled'. Possible values include: 'Enabled', 'Disabled' /// [JsonProperty(PropertyName = "properties.publicNetworkAccess")] - public string PublicNetworkAccess { get; set; } + public ServerPublicNetworkAccess? PublicNetworkAccess { get; set; } /// /// Validate the object. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServerBlobAuditingPolicy.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServerBlobAuditingPolicy.cs index c7a9ac26f54a..ff252b229b69 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServerBlobAuditingPolicy.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServerBlobAuditingPolicy.cs @@ -45,9 +45,19 @@ public ServerBlobAuditingPolicy() /// Enabled, storageEndpoint or isAzureMonitorTargetEnabled is /// required. /// Specifies the identifier key - /// of the auditing storage account. If state is Enabled and - /// storageEndpoint is specified, storageAccountAccessKey is - /// required. + /// of the auditing storage account. + /// If state is Enabled and storageEndpoint is specified, not + /// specifying the storageAccountAccessKey will use SQL server + /// system-assigned managed identity to access the storage. + /// Prerequisites for using managed identity authentication: + /// 1. Assign SQL Server a system-assigned managed identity in Azure + /// Active Directory (AAD). + /// 2. Grant SQL Server identity access to the storage account by + /// adding 'Storage Blob Data Contributor' RBAC role to the server + /// identity. + /// For more information, see [Auditing to storage using Managed + /// Identity + /// authentication](https://go.microsoft.com/fwlink/?linkid=2114355) /// Specifies the number of days to keep in /// the audit logs in the storage account. /// Specifies the Actions-Groups @@ -192,8 +202,19 @@ public ServerBlobAuditingPolicy() /// /// Gets or sets specifies the identifier key of the auditing storage - /// account. If state is Enabled and storageEndpoint is specified, - /// storageAccountAccessKey is required. + /// account. + /// If state is Enabled and storageEndpoint is specified, not + /// specifying the storageAccountAccessKey will use SQL server + /// system-assigned managed identity to access the storage. + /// Prerequisites for using managed identity authentication: + /// 1. Assign SQL Server a system-assigned managed identity in Azure + /// Active Directory (AAD). + /// 2. Grant SQL Server identity access to the storage account by + /// adding 'Storage Blob Data Contributor' RBAC role to the server + /// identity. + /// For more information, see [Auditing to storage using Managed + /// Identity + /// authentication](https://go.microsoft.com/fwlink/?linkid=2114355) /// [JsonProperty(PropertyName = "properties.storageAccountAccessKey")] public string StorageAccountAccessKey { get; set; } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServerKey.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServerKey.cs index 75567c92ac7e..ec2a227780a5 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServerKey.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServerKey.cs @@ -45,7 +45,7 @@ public ServerKey() /// The URI of the server key. /// Thumbprint of the server key. /// The server key creation date. - public ServerKey(string serverKeyType, string id = default(string), string name = default(string), string type = default(string), string kind = default(string), string location = default(string), string subregion = default(string), string uri = default(string), string thumbprint = default(string), System.DateTime? creationDate = default(System.DateTime?)) + public ServerKey(ServerKeyType serverKeyType, string id = default(string), string name = default(string), string type = default(string), string kind = default(string), string location = default(string), string subregion = default(string), string uri = default(string), string thumbprint = default(string), System.DateTime? creationDate = default(System.DateTime?)) : base(id, name, type) { Kind = kind; @@ -88,7 +88,7 @@ public ServerKey() /// 'AzureKeyVault' /// [JsonProperty(PropertyName = "properties.serverKeyType")] - public string ServerKeyType { get; set; } + public ServerKeyType ServerKeyType { get; set; } /// /// Gets or sets the URI of the server key. @@ -116,10 +116,6 @@ public ServerKey() /// public virtual void Validate() { - if (ServerKeyType == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "ServerKeyType"); - } } } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServerKeyType.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServerKeyType.cs index 3358ddccad1e..9c0f2dcd8226 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServerKeyType.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServerKeyType.cs @@ -10,13 +10,96 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for ServerKeyType. /// - public static class ServerKeyType + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(ServerKeyTypeConverter))] + public struct ServerKeyType : System.IEquatable { - public const string ServiceManaged = "ServiceManaged"; - public const string AzureKeyVault = "AzureKeyVault"; + private ServerKeyType(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly ServerKeyType ServiceManaged = "ServiceManaged"; + + public static readonly ServerKeyType AzureKeyVault = "AzureKeyVault"; + + + /// + /// Underlying value of enum ServerKeyType + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for ServerKeyType + /// + public override string ToString() + { + return UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type ServerKeyType + /// + public bool Equals(ServerKeyType e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to ServerKeyType + /// + public static implicit operator ServerKeyType(string value) + { + return new ServerKeyType(value); + } + + /// + /// Implicit operator to convert ServerKeyType to string + /// + public static implicit operator string(ServerKeyType e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum ServerKeyType + /// + public static bool operator == (ServerKeyType e1, ServerKeyType e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum ServerKeyType + /// + public static bool operator != (ServerKeyType e1, ServerKeyType e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for ServerKeyType + /// + public override bool Equals(object obj) + { + return obj is ServerKeyType && Equals((ServerKeyType)obj); + } + + /// + /// Returns for hashCode ServerKeyType + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServerKeyTypeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServerKeyTypeConverter.cs new file mode 100644 index 000000000000..eaaa4bf4d7cf --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServerKeyTypeConverter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for ServerKeyType. + /// + public sealed class ServerKeyTypeConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to ServerKeyType by the + /// converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(ServerKeyType).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to ServerKeyType. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (ServerKeyType)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for ServerKeyType for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServerPublicNetworkAccess.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServerPublicNetworkAccess.cs index 6b611e0db6a3..58c6df5bf2c8 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServerPublicNetworkAccess.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServerPublicNetworkAccess.cs @@ -10,13 +10,96 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for ServerPublicNetworkAccess. /// - public static class ServerPublicNetworkAccess + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(ServerPublicNetworkAccessConverter))] + public struct ServerPublicNetworkAccess : System.IEquatable { - public const string Enabled = "Enabled"; - public const string Disabled = "Disabled"; + private ServerPublicNetworkAccess(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly ServerPublicNetworkAccess Enabled = "Enabled"; + + public static readonly ServerPublicNetworkAccess Disabled = "Disabled"; + + + /// + /// Underlying value of enum ServerPublicNetworkAccess + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for ServerPublicNetworkAccess + /// + public override string ToString() + { + return UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type ServerPublicNetworkAccess + /// + public bool Equals(ServerPublicNetworkAccess e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to ServerPublicNetworkAccess + /// + public static implicit operator ServerPublicNetworkAccess(string value) + { + return new ServerPublicNetworkAccess(value); + } + + /// + /// Implicit operator to convert ServerPublicNetworkAccess to string + /// + public static implicit operator string(ServerPublicNetworkAccess e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum ServerPublicNetworkAccess + /// + public static bool operator == (ServerPublicNetworkAccess e1, ServerPublicNetworkAccess e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum ServerPublicNetworkAccess + /// + public static bool operator != (ServerPublicNetworkAccess e1, ServerPublicNetworkAccess e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for ServerPublicNetworkAccess + /// + public override bool Equals(object obj) + { + return obj is ServerPublicNetworkAccess && Equals((ServerPublicNetworkAccess)obj); + } + + /// + /// Returns for hashCode ServerPublicNetworkAccess + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServerPublicNetworkAccessConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServerPublicNetworkAccessConverter.cs new file mode 100644 index 000000000000..bd8c40a3ddfc --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServerPublicNetworkAccessConverter.cs @@ -0,0 +1,54 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for ServerPublicNetworkAccess. + /// + public sealed class ServerPublicNetworkAccessConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to ServerPublicNetworkAccess + /// by the converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(ServerPublicNetworkAccess).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to ServerPublicNetworkAccess. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (ServerPublicNetworkAccess)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for ServerPublicNetworkAccess for + /// serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServerUpdate.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServerUpdate.cs index cd86344ea902..3131ab12bf44 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServerUpdate.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServerUpdate.cs @@ -51,7 +51,7 @@ public ServerUpdate() /// in, must be 'Enabled' or 'Disabled'. Possible values include: /// 'Enabled', 'Disabled' /// Resource tags. - public ServerUpdate(string administratorLogin = default(string), string administratorLoginPassword = default(string), string version = default(string), string state = default(string), string fullyQualifiedDomainName = default(string), IList privateEndpointConnections = default(IList), string minimalTlsVersion = default(string), string publicNetworkAccess = default(string), IDictionary tags = default(IDictionary)) + public ServerUpdate(string administratorLogin = default(string), string administratorLoginPassword = default(string), string version = default(string), string state = default(string), string fullyQualifiedDomainName = default(string), IList privateEndpointConnections = default(IList), string minimalTlsVersion = default(string), ServerPublicNetworkAccess? publicNetworkAccess = default(ServerPublicNetworkAccess?), IDictionary tags = default(IDictionary)) { AdministratorLogin = administratorLogin; AdministratorLoginPassword = administratorLoginPassword; @@ -121,7 +121,7 @@ public ServerUpdate() /// or 'Disabled'. Possible values include: 'Enabled', 'Disabled' /// [JsonProperty(PropertyName = "properties.publicNetworkAccess")] - public string PublicNetworkAccess { get; set; } + public ServerPublicNetworkAccess? PublicNetworkAccess { get; set; } /// /// Gets or sets resource tags. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServerVulnerabilityAssessment.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServerVulnerabilityAssessment.cs index a66171057791..0fe8baa64ded 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServerVulnerabilityAssessment.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServerVulnerabilityAssessment.cs @@ -41,8 +41,8 @@ public ServerVulnerabilityAssessment() /// Resource name. /// Resource type. /// A shared access signature (SAS - /// Key) that has write access to the blob container specified in - /// 'storageContainerPath' parameter. If 'storageAccountAccessKey' + /// Key) that has read and write access to the blob container specified + /// in 'storageContainerPath' parameter. If 'storageAccountAccessKey' /// isn't specified, StorageContainerSasKey is required. /// Specifies the identifier key /// of the storage account for vulnerability assessment scan results. @@ -72,10 +72,10 @@ public ServerVulnerabilityAssessment() public string StorageContainerPath { get; set; } /// - /// Gets or sets a shared access signature (SAS Key) that has write - /// access to the blob container specified in 'storageContainerPath' - /// parameter. If 'storageAccountAccessKey' isn't specified, - /// StorageContainerSasKey is required. + /// Gets or sets a shared access signature (SAS Key) that has read and + /// write access to the blob container specified in + /// 'storageContainerPath' parameter. If 'storageAccountAccessKey' + /// isn't specified, StorageContainerSasKey is required. /// [JsonProperty(PropertyName = "properties.storageContainerSasKey")] public string StorageContainerSasKey { get; set; } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServiceObjectiveCapability.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServiceObjectiveCapability.cs index 57a002937dfe..b6a9fcc01c28 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServiceObjectiveCapability.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServiceObjectiveCapability.cs @@ -40,11 +40,18 @@ public ServiceObjectiveCapability() /// List of supported license /// types. /// The included (free) max size. + /// Whether or not zone redundancy is + /// supported for the service objective. + /// Supported time range for auto + /// pause delay + /// List of supported min + /// capacities + /// The compute model /// The status of the capability. Possible values /// include: 'Visible', 'Available', 'Default', 'Disabled' /// The reason for the capability not being /// available. - public ServiceObjectiveCapability(System.Guid? id = default(System.Guid?), string name = default(string), IList supportedMaxSizes = default(IList), PerformanceLevelCapability performanceLevel = default(PerformanceLevelCapability), Sku sku = default(Sku), IList supportedLicenseTypes = default(IList), MaxSizeCapability includedMaxSize = default(MaxSizeCapability), CapabilityStatus? status = default(CapabilityStatus?), string reason = default(string)) + public ServiceObjectiveCapability(System.Guid? id = default(System.Guid?), string name = default(string), IList supportedMaxSizes = default(IList), PerformanceLevelCapability performanceLevel = default(PerformanceLevelCapability), Sku sku = default(Sku), IList supportedLicenseTypes = default(IList), MaxSizeCapability includedMaxSize = default(MaxSizeCapability), bool? zoneRedundant = default(bool?), AutoPauseDelayTimeRange supportedAutoPauseDelay = default(AutoPauseDelayTimeRange), IList supportedMinCapacities = default(IList), string computeModel = default(string), CapabilityStatus? status = default(CapabilityStatus?), string reason = default(string)) { Id = id; Name = name; @@ -53,6 +60,10 @@ public ServiceObjectiveCapability() Sku = sku; SupportedLicenseTypes = supportedLicenseTypes; IncludedMaxSize = includedMaxSize; + ZoneRedundant = zoneRedundant; + SupportedAutoPauseDelay = supportedAutoPauseDelay; + SupportedMinCapacities = supportedMinCapacities; + ComputeModel = computeModel; Status = status; Reason = reason; CustomInit(); @@ -105,6 +116,31 @@ public ServiceObjectiveCapability() [JsonProperty(PropertyName = "includedMaxSize")] public MaxSizeCapability IncludedMaxSize { get; private set; } + /// + /// Gets whether or not zone redundancy is supported for the service + /// objective. + /// + [JsonProperty(PropertyName = "zoneRedundant")] + public bool? ZoneRedundant { get; private set; } + + /// + /// Gets supported time range for auto pause delay + /// + [JsonProperty(PropertyName = "supportedAutoPauseDelay")] + public AutoPauseDelayTimeRange SupportedAutoPauseDelay { get; private set; } + + /// + /// Gets list of supported min capacities + /// + [JsonProperty(PropertyName = "supportedMinCapacities")] + public IList SupportedMinCapacities { get; private set; } + + /// + /// Gets the compute model + /// + [JsonProperty(PropertyName = "computeModel")] + public string ComputeModel { get; private set; } + /// /// Gets the status of the capability. Possible values include: /// 'Visible', 'Available', 'Default', 'Disabled' diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServiceObjectiveName.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServiceObjectiveName.cs index befe17ba9bbf..86c882966c9c 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServiceObjectiveName.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServiceObjectiveName.cs @@ -10,76 +10,222 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for ServiceObjectiveName. /// - public static class ServiceObjectiveName + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(ServiceObjectiveNameConverter))] + public struct ServiceObjectiveName : System.IEquatable { - public const string System = "System"; - public const string System0 = "System0"; - public const string System1 = "System1"; - public const string System2 = "System2"; - public const string System3 = "System3"; - public const string System4 = "System4"; - public const string System2L = "System2L"; - public const string System3L = "System3L"; - public const string System4L = "System4L"; - public const string Free = "Free"; - public const string Basic = "Basic"; - public const string S0 = "S0"; - public const string S1 = "S1"; - public const string S2 = "S2"; - public const string S3 = "S3"; - public const string S4 = "S4"; - public const string S6 = "S6"; - public const string S7 = "S7"; - public const string S9 = "S9"; - public const string S12 = "S12"; - public const string P1 = "P1"; - public const string P2 = "P2"; - public const string P3 = "P3"; - public const string P4 = "P4"; - public const string P6 = "P6"; - public const string P11 = "P11"; - public const string P15 = "P15"; - public const string PRS1 = "PRS1"; - public const string PRS2 = "PRS2"; - public const string PRS4 = "PRS4"; - public const string PRS6 = "PRS6"; - public const string DW100 = "DW100"; - public const string DW200 = "DW200"; - public const string DW300 = "DW300"; - public const string DW400 = "DW400"; - public const string DW500 = "DW500"; - public const string DW600 = "DW600"; - public const string DW1000 = "DW1000"; - public const string DW1200 = "DW1200"; - public const string DW1000c = "DW1000c"; - public const string DW1500 = "DW1500"; - public const string DW1500c = "DW1500c"; - public const string DW2000 = "DW2000"; - public const string DW2000c = "DW2000c"; - public const string DW3000 = "DW3000"; - public const string DW2500c = "DW2500c"; - public const string DW3000c = "DW3000c"; - public const string DW6000 = "DW6000"; - public const string DW5000c = "DW5000c"; - public const string DW6000c = "DW6000c"; - public const string DW7500c = "DW7500c"; - public const string DW10000c = "DW10000c"; - public const string DW15000c = "DW15000c"; - public const string DW30000c = "DW30000c"; - public const string DS100 = "DS100"; - public const string DS200 = "DS200"; - public const string DS300 = "DS300"; - public const string DS400 = "DS400"; - public const string DS500 = "DS500"; - public const string DS600 = "DS600"; - public const string DS1000 = "DS1000"; - public const string DS1200 = "DS1200"; - public const string DS1500 = "DS1500"; - public const string DS2000 = "DS2000"; - public const string ElasticPool = "ElasticPool"; + private ServiceObjectiveName(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly ServiceObjectiveName System = "System"; + + public static readonly ServiceObjectiveName System0 = "System0"; + + public static readonly ServiceObjectiveName System1 = "System1"; + + public static readonly ServiceObjectiveName System2 = "System2"; + + public static readonly ServiceObjectiveName System3 = "System3"; + + public static readonly ServiceObjectiveName System4 = "System4"; + + public static readonly ServiceObjectiveName System2L = "System2L"; + + public static readonly ServiceObjectiveName System3L = "System3L"; + + public static readonly ServiceObjectiveName System4L = "System4L"; + + public static readonly ServiceObjectiveName Free = "Free"; + + public static readonly ServiceObjectiveName Basic = "Basic"; + + public static readonly ServiceObjectiveName S0 = "S0"; + + public static readonly ServiceObjectiveName S1 = "S1"; + + public static readonly ServiceObjectiveName S2 = "S2"; + + public static readonly ServiceObjectiveName S3 = "S3"; + + public static readonly ServiceObjectiveName S4 = "S4"; + + public static readonly ServiceObjectiveName S6 = "S6"; + + public static readonly ServiceObjectiveName S7 = "S7"; + + public static readonly ServiceObjectiveName S9 = "S9"; + + public static readonly ServiceObjectiveName S12 = "S12"; + + public static readonly ServiceObjectiveName P1 = "P1"; + + public static readonly ServiceObjectiveName P2 = "P2"; + + public static readonly ServiceObjectiveName P3 = "P3"; + + public static readonly ServiceObjectiveName P4 = "P4"; + + public static readonly ServiceObjectiveName P6 = "P6"; + + public static readonly ServiceObjectiveName P11 = "P11"; + + public static readonly ServiceObjectiveName P15 = "P15"; + + public static readonly ServiceObjectiveName PRS1 = "PRS1"; + + public static readonly ServiceObjectiveName PRS2 = "PRS2"; + + public static readonly ServiceObjectiveName PRS4 = "PRS4"; + + public static readonly ServiceObjectiveName PRS6 = "PRS6"; + + public static readonly ServiceObjectiveName DW100 = "DW100"; + + public static readonly ServiceObjectiveName DW200 = "DW200"; + + public static readonly ServiceObjectiveName DW300 = "DW300"; + + public static readonly ServiceObjectiveName DW400 = "DW400"; + + public static readonly ServiceObjectiveName DW500 = "DW500"; + + public static readonly ServiceObjectiveName DW600 = "DW600"; + + public static readonly ServiceObjectiveName DW1000 = "DW1000"; + + public static readonly ServiceObjectiveName DW1200 = "DW1200"; + + public static readonly ServiceObjectiveName DW1000c = "DW1000c"; + + public static readonly ServiceObjectiveName DW1500 = "DW1500"; + + public static readonly ServiceObjectiveName DW1500c = "DW1500c"; + + public static readonly ServiceObjectiveName DW2000 = "DW2000"; + + public static readonly ServiceObjectiveName DW2000c = "DW2000c"; + + public static readonly ServiceObjectiveName DW3000 = "DW3000"; + + public static readonly ServiceObjectiveName DW2500c = "DW2500c"; + + public static readonly ServiceObjectiveName DW3000c = "DW3000c"; + + public static readonly ServiceObjectiveName DW6000 = "DW6000"; + + public static readonly ServiceObjectiveName DW5000c = "DW5000c"; + + public static readonly ServiceObjectiveName DW6000c = "DW6000c"; + + public static readonly ServiceObjectiveName DW7500c = "DW7500c"; + + public static readonly ServiceObjectiveName DW10000c = "DW10000c"; + + public static readonly ServiceObjectiveName DW15000c = "DW15000c"; + + public static readonly ServiceObjectiveName DW30000c = "DW30000c"; + + public static readonly ServiceObjectiveName DS100 = "DS100"; + + public static readonly ServiceObjectiveName DS200 = "DS200"; + + public static readonly ServiceObjectiveName DS300 = "DS300"; + + public static readonly ServiceObjectiveName DS400 = "DS400"; + + public static readonly ServiceObjectiveName DS500 = "DS500"; + + public static readonly ServiceObjectiveName DS600 = "DS600"; + + public static readonly ServiceObjectiveName DS1000 = "DS1000"; + + public static readonly ServiceObjectiveName DS1200 = "DS1200"; + + public static readonly ServiceObjectiveName DS1500 = "DS1500"; + + public static readonly ServiceObjectiveName DS2000 = "DS2000"; + + public static readonly ServiceObjectiveName ElasticPool = "ElasticPool"; + + + /// + /// Underlying value of enum ServiceObjectiveName + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for ServiceObjectiveName + /// + public override string ToString() + { + return UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type ServiceObjectiveName + /// + public bool Equals(ServiceObjectiveName e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to ServiceObjectiveName + /// + public static implicit operator ServiceObjectiveName(string value) + { + return new ServiceObjectiveName(value); + } + + /// + /// Implicit operator to convert ServiceObjectiveName to string + /// + public static implicit operator string(ServiceObjectiveName e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum ServiceObjectiveName + /// + public static bool operator == (ServiceObjectiveName e1, ServiceObjectiveName e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum ServiceObjectiveName + /// + public static bool operator != (ServiceObjectiveName e1, ServiceObjectiveName e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for ServiceObjectiveName + /// + public override bool Equals(object obj) + { + return obj is ServiceObjectiveName && Equals((ServiceObjectiveName)obj); + } + + /// + /// Returns for hashCode ServiceObjectiveName + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServiceObjectiveNameConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServiceObjectiveNameConverter.cs new file mode 100644 index 000000000000..a9fcced25ad5 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServiceObjectiveNameConverter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for ServiceObjectiveName. + /// + public sealed class ServiceObjectiveNameConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to ServiceObjectiveName by + /// the converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(ServiceObjectiveName).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to ServiceObjectiveName. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (ServiceObjectiveName)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for ServiceObjectiveName for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SloUsageMetric.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SloUsageMetric.cs index 0f4b019f4948..e3ff7d022675 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SloUsageMetric.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SloUsageMetric.cs @@ -44,7 +44,7 @@ public SloUsageMetric() /// for SLO usage metric. /// Gets or sets inRangeTimeRatio for /// SLO usage metric. - public SloUsageMetric(string serviceLevelObjective = default(string), System.Guid serviceLevelObjectiveId = default(System.Guid), double inRangeTimeRatio = default(double)) + public SloUsageMetric(ServiceObjectiveName? serviceLevelObjective = default(ServiceObjectiveName?), System.Guid serviceLevelObjectiveId = default(System.Guid), double inRangeTimeRatio = default(double)) { ServiceLevelObjective = serviceLevelObjective; ServiceLevelObjectiveId = serviceLevelObjectiveId; @@ -71,7 +71,7 @@ public SloUsageMetric() /// 'DS1500', 'DS2000', 'ElasticPool' /// [JsonProperty(PropertyName = "serviceLevelObjective")] - public string ServiceLevelObjective { get; private set; } + public ServiceObjectiveName? ServiceLevelObjective { get; private set; } /// /// Gets the serviceLevelObjectiveId for SLO usage metric. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/StorageAccountType.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/StorageAccountType.cs index f174ff85775d..7e59838e8140 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/StorageAccountType.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/StorageAccountType.cs @@ -10,14 +10,98 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for StorageAccountType. /// - public static class StorageAccountType + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(StorageAccountTypeConverter))] + public struct StorageAccountType : System.IEquatable { - public const string GRS = "GRS"; - public const string LRS = "LRS"; - public const string ZRS = "ZRS"; + private StorageAccountType(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly StorageAccountType GRS = "GRS"; + + public static readonly StorageAccountType LRS = "LRS"; + + public static readonly StorageAccountType ZRS = "ZRS"; + + + /// + /// Underlying value of enum StorageAccountType + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for StorageAccountType + /// + public override string ToString() + { + return UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type StorageAccountType + /// + public bool Equals(StorageAccountType e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to StorageAccountType + /// + public static implicit operator StorageAccountType(string value) + { + return new StorageAccountType(value); + } + + /// + /// Implicit operator to convert StorageAccountType to string + /// + public static implicit operator string(StorageAccountType e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum StorageAccountType + /// + public static bool operator == (StorageAccountType e1, StorageAccountType e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum StorageAccountType + /// + public static bool operator != (StorageAccountType e1, StorageAccountType e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for StorageAccountType + /// + public override bool Equals(object obj) + { + return obj is StorageAccountType && Equals((StorageAccountType)obj); + } + + /// + /// Returns for hashCode StorageAccountType + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/StorageAccountTypeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/StorageAccountTypeConverter.cs new file mode 100644 index 000000000000..64f6d37618d0 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/StorageAccountTypeConverter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for StorageAccountType. + /// + public sealed class StorageAccountTypeConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to StorageAccountType by the + /// converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(StorageAccountType).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to StorageAccountType. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (StorageAccountType)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for StorageAccountType for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/StorageKeyType.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/StorageKeyType.cs index b1e639658412..f4ae7a72c85a 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/StorageKeyType.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/StorageKeyType.cs @@ -11,50 +11,95 @@ namespace Microsoft.Azure.Management.Sql.Models { using Newtonsoft.Json; - using Newtonsoft.Json.Converters; - using System.Runtime; - using System.Runtime.Serialization; /// /// Defines values for StorageKeyType. /// - [JsonConverter(typeof(StringEnumConverter))] - public enum StorageKeyType - { - [EnumMember(Value = "StorageAccessKey")] - StorageAccessKey, - [EnumMember(Value = "SharedAccessKey")] - SharedAccessKey - } - internal static class StorageKeyTypeEnumExtension + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(StorageKeyTypeConverter))] + public struct StorageKeyType : System.IEquatable { - internal static string ToSerializedValue(this StorageKeyType? value) + private StorageKeyType(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly StorageKeyType SharedAccessKey = "SharedAccessKey"; + + public static readonly StorageKeyType StorageAccessKey = "StorageAccessKey"; + + + /// + /// Underlying value of enum StorageKeyType + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for StorageKeyType + /// + public override string ToString() + { + return UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type StorageKeyType + /// + public bool Equals(StorageKeyType e) { - return value == null ? null : ((StorageKeyType)value).ToSerializedValue(); + return UnderlyingValue.Equals(e.UnderlyingValue); } - internal static string ToSerializedValue(this StorageKeyType value) + /// + /// Implicit operator to convert string to StorageKeyType + /// + public static implicit operator StorageKeyType(string value) { - switch( value ) - { - case StorageKeyType.StorageAccessKey: - return "StorageAccessKey"; - case StorageKeyType.SharedAccessKey: - return "SharedAccessKey"; - } - return null; + return new StorageKeyType(value); } - internal static StorageKeyType? ParseStorageKeyType(this string value) + /// + /// Implicit operator to convert StorageKeyType to string + /// + public static implicit operator string(StorageKeyType e) { - switch( value ) - { - case "StorageAccessKey": - return StorageKeyType.StorageAccessKey; - case "SharedAccessKey": - return StorageKeyType.SharedAccessKey; - } - return null; + return e.UnderlyingValue; } + + /// + /// Overriding == operator for enum StorageKeyType + /// + public static bool operator == (StorageKeyType e1, StorageKeyType e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum StorageKeyType + /// + public static bool operator != (StorageKeyType e1, StorageKeyType e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for StorageKeyType + /// + public override bool Equals(object obj) + { + return obj is StorageKeyType && Equals((StorageKeyType)obj); + } + + /// + /// Returns for hashCode StorageKeyType + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/StorageKeyTypeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/StorageKeyTypeConverter.cs new file mode 100644 index 000000000000..b1a7b808de9a --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/StorageKeyTypeConverter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for StorageKeyType. + /// + public sealed class StorageKeyTypeConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to StorageKeyType by the + /// converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(StorageKeyType).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to StorageKeyType. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (StorageKeyType)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for StorageKeyType for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncAgent.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncAgent.cs index dd27b72537d5..2f810854b151 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncAgent.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncAgent.cs @@ -47,7 +47,7 @@ public SyncAgent() /// Expiration time of the sync agent /// version. /// Version of the sync agent. - public SyncAgent(string id = default(string), string name = default(string), string type = default(string), string syncAgentName = default(string), string syncDatabaseId = default(string), System.DateTime? lastAliveTime = default(System.DateTime?), string state = default(string), bool? isUpToDate = default(bool?), System.DateTime? expiryTime = default(System.DateTime?), string version = default(string)) + public SyncAgent(string id = default(string), string name = default(string), string type = default(string), string syncAgentName = default(string), string syncDatabaseId = default(string), System.DateTime? lastAliveTime = default(System.DateTime?), SyncAgentState? state = default(SyncAgentState?), bool? isUpToDate = default(bool?), System.DateTime? expiryTime = default(System.DateTime?), string version = default(string)) : base(id, name, type) { SyncAgentName = syncAgentName; @@ -89,7 +89,7 @@ public SyncAgent() /// 'Offline', 'NeverConnected' /// [JsonProperty(PropertyName = "properties.state")] - public string State { get; private set; } + public SyncAgentState? State { get; private set; } /// /// Gets if the sync agent version is up to date. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncAgentLinkedDatabase.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncAgentLinkedDatabase.cs index 075a8cd921cc..b9993a161b2e 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncAgentLinkedDatabase.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncAgentLinkedDatabase.cs @@ -48,7 +48,7 @@ public SyncAgentLinkedDatabase() /// database. /// User name of the sync agent linked /// database. - public SyncAgentLinkedDatabase(string id = default(string), string name = default(string), string type = default(string), string databaseType = default(string), string databaseId = default(string), string description = default(string), string serverName = default(string), string databaseName = default(string), string userName = default(string)) + public SyncAgentLinkedDatabase(string id = default(string), string name = default(string), string type = default(string), SyncMemberDbType? databaseType = default(SyncMemberDbType?), string databaseId = default(string), string description = default(string), string serverName = default(string), string databaseName = default(string), string userName = default(string)) : base(id, name, type) { DatabaseType = databaseType; @@ -70,7 +70,7 @@ public SyncAgentLinkedDatabase() /// include: 'AzureSqlDatabase', 'SqlServerDatabase' /// [JsonProperty(PropertyName = "properties.databaseType")] - public string DatabaseType { get; private set; } + public SyncMemberDbType? DatabaseType { get; private set; } /// /// Gets id of the sync agent linked database. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncAgentState.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncAgentState.cs index 3c0f38964739..08b49470357f 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncAgentState.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncAgentState.cs @@ -10,14 +10,98 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for SyncAgentState. /// - public static class SyncAgentState + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(SyncAgentStateConverter))] + public struct SyncAgentState : System.IEquatable { - public const string Online = "Online"; - public const string Offline = "Offline"; - public const string NeverConnected = "NeverConnected"; + private SyncAgentState(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly SyncAgentState Online = "Online"; + + public static readonly SyncAgentState Offline = "Offline"; + + public static readonly SyncAgentState NeverConnected = "NeverConnected"; + + + /// + /// Underlying value of enum SyncAgentState + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for SyncAgentState + /// + public override string ToString() + { + return UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type SyncAgentState + /// + public bool Equals(SyncAgentState e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to SyncAgentState + /// + public static implicit operator SyncAgentState(string value) + { + return new SyncAgentState(value); + } + + /// + /// Implicit operator to convert SyncAgentState to string + /// + public static implicit operator string(SyncAgentState e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum SyncAgentState + /// + public static bool operator == (SyncAgentState e1, SyncAgentState e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum SyncAgentState + /// + public static bool operator != (SyncAgentState e1, SyncAgentState e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for SyncAgentState + /// + public override bool Equals(object obj) + { + return obj is SyncAgentState && Equals((SyncAgentState)obj); + } + + /// + /// Returns for hashCode SyncAgentState + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncAgentStateConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncAgentStateConverter.cs new file mode 100644 index 000000000000..1aa815ca2c27 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncAgentStateConverter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for SyncAgentState. + /// + public sealed class SyncAgentStateConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to SyncAgentState by the + /// converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(SyncAgentState).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to SyncAgentState. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (SyncAgentState)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for SyncAgentState for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncConflictResolutionPolicy.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncConflictResolutionPolicy.cs index ce499c6de853..9308ff10219c 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncConflictResolutionPolicy.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncConflictResolutionPolicy.cs @@ -10,13 +10,96 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for SyncConflictResolutionPolicy. /// - public static class SyncConflictResolutionPolicy + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(SyncConflictResolutionPolicyConverter))] + public struct SyncConflictResolutionPolicy : System.IEquatable { - public const string HubWin = "HubWin"; - public const string MemberWin = "MemberWin"; + private SyncConflictResolutionPolicy(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly SyncConflictResolutionPolicy HubWin = "HubWin"; + + public static readonly SyncConflictResolutionPolicy MemberWin = "MemberWin"; + + + /// + /// Underlying value of enum SyncConflictResolutionPolicy + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for SyncConflictResolutionPolicy + /// + public override string ToString() + { + return UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type SyncConflictResolutionPolicy + /// + public bool Equals(SyncConflictResolutionPolicy e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to SyncConflictResolutionPolicy + /// + public static implicit operator SyncConflictResolutionPolicy(string value) + { + return new SyncConflictResolutionPolicy(value); + } + + /// + /// Implicit operator to convert SyncConflictResolutionPolicy to string + /// + public static implicit operator string(SyncConflictResolutionPolicy e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum SyncConflictResolutionPolicy + /// + public static bool operator == (SyncConflictResolutionPolicy e1, SyncConflictResolutionPolicy e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum SyncConflictResolutionPolicy + /// + public static bool operator != (SyncConflictResolutionPolicy e1, SyncConflictResolutionPolicy e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for SyncConflictResolutionPolicy + /// + public override bool Equals(object obj) + { + return obj is SyncConflictResolutionPolicy && Equals((SyncConflictResolutionPolicy)obj); + } + + /// + /// Returns for hashCode SyncConflictResolutionPolicy + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncConflictResolutionPolicyConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncConflictResolutionPolicyConverter.cs new file mode 100644 index 000000000000..b412bdc31b29 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncConflictResolutionPolicyConverter.cs @@ -0,0 +1,55 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for SyncConflictResolutionPolicy. + /// + public sealed class SyncConflictResolutionPolicyConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to + /// SyncConflictResolutionPolicy by the converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(SyncConflictResolutionPolicy).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to + /// SyncConflictResolutionPolicy. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (SyncConflictResolutionPolicy)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for SyncConflictResolutionPolicy for + /// serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncDirection.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncDirection.cs index 67774a8584fd..2041f5b6f040 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncDirection.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncDirection.cs @@ -10,14 +10,98 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for SyncDirection. /// - public static class SyncDirection + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(SyncDirectionConverter))] + public struct SyncDirection : System.IEquatable { - public const string Bidirectional = "Bidirectional"; - public const string OneWayMemberToHub = "OneWayMemberToHub"; - public const string OneWayHubToMember = "OneWayHubToMember"; + private SyncDirection(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly SyncDirection Bidirectional = "Bidirectional"; + + public static readonly SyncDirection OneWayMemberToHub = "OneWayMemberToHub"; + + public static readonly SyncDirection OneWayHubToMember = "OneWayHubToMember"; + + + /// + /// Underlying value of enum SyncDirection + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for SyncDirection + /// + public override string ToString() + { + return UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type SyncDirection + /// + public bool Equals(SyncDirection e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to SyncDirection + /// + public static implicit operator SyncDirection(string value) + { + return new SyncDirection(value); + } + + /// + /// Implicit operator to convert SyncDirection to string + /// + public static implicit operator string(SyncDirection e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum SyncDirection + /// + public static bool operator == (SyncDirection e1, SyncDirection e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum SyncDirection + /// + public static bool operator != (SyncDirection e1, SyncDirection e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for SyncDirection + /// + public override bool Equals(object obj) + { + return obj is SyncDirection && Equals((SyncDirection)obj); + } + + /// + /// Returns for hashCode SyncDirection + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncDirectionConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncDirectionConverter.cs new file mode 100644 index 000000000000..8b3d0ea72510 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncDirectionConverter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for SyncDirection. + /// + public sealed class SyncDirectionConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to SyncDirection by the + /// converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(SyncDirection).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to SyncDirection. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (SyncDirection)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for SyncDirection for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncGroup.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncGroup.cs index 7a16030cfff4..30da9e6c32c8 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncGroup.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncGroup.cs @@ -53,7 +53,7 @@ public SyncGroup() /// Sync schema of the sync group. /// If use private link /// connection is enabled. - public SyncGroup(string id = default(string), string name = default(string), string type = default(string), int? interval = default(int?), System.DateTime? lastSyncTime = default(System.DateTime?), string conflictResolutionPolicy = default(string), string syncDatabaseId = default(string), string hubDatabaseUserName = default(string), string hubDatabasePassword = default(string), string syncState = default(string), SyncGroupSchema schema = default(SyncGroupSchema), bool? usePrivateLinkConnection = default(bool?)) + public SyncGroup(string id = default(string), string name = default(string), string type = default(string), int? interval = default(int?), System.DateTime? lastSyncTime = default(System.DateTime?), SyncConflictResolutionPolicy? conflictResolutionPolicy = default(SyncConflictResolutionPolicy?), string syncDatabaseId = default(string), string hubDatabaseUserName = default(string), string hubDatabasePassword = default(string), SyncGroupState? syncState = default(SyncGroupState?), SyncGroupSchema schema = default(SyncGroupSchema), bool? usePrivateLinkConnection = default(bool?)) : base(id, name, type) { Interval = interval; @@ -90,7 +90,7 @@ public SyncGroup() /// values include: 'HubWin', 'MemberWin' /// [JsonProperty(PropertyName = "properties.conflictResolutionPolicy")] - public string ConflictResolutionPolicy { get; set; } + public SyncConflictResolutionPolicy? ConflictResolutionPolicy { get; set; } /// /// Gets or sets ARM resource id of the sync database in the sync @@ -116,7 +116,7 @@ public SyncGroup() /// 'NotReady', 'Error', 'Warning', 'Progressing', 'Good' /// [JsonProperty(PropertyName = "properties.syncState")] - public string SyncState { get; private set; } + public SyncGroupState? SyncState { get; private set; } /// /// Gets or sets sync schema of the sync group. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncGroupLogProperties.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncGroupLogProperties.cs index f587146600e2..b2a7136b00fb 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncGroupLogProperties.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncGroupLogProperties.cs @@ -37,7 +37,7 @@ public SyncGroupLogProperties() /// TracingId of the sync group log. /// OperationStatus of the sync group /// log. - public SyncGroupLogProperties(System.DateTime? timestamp = default(System.DateTime?), string type = default(string), string source = default(string), string details = default(string), System.Guid? tracingId = default(System.Guid?), string operationStatus = default(string)) + public SyncGroupLogProperties(System.DateTime? timestamp = default(System.DateTime?), SyncGroupLogType? type = default(SyncGroupLogType?), string source = default(string), string details = default(string), System.Guid? tracingId = default(System.Guid?), string operationStatus = default(string)) { Timestamp = timestamp; Type = type; @@ -64,7 +64,7 @@ public SyncGroupLogProperties() /// 'Error', 'Warning', 'Success' /// [JsonProperty(PropertyName = "type")] - public string Type { get; private set; } + public SyncGroupLogType? Type { get; private set; } /// /// Gets source of the sync group log. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncGroupLogType.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncGroupLogType.cs index fb3ce4637cfc..6e38e4cc4305 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncGroupLogType.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncGroupLogType.cs @@ -10,15 +10,100 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for SyncGroupLogType. /// - public static class SyncGroupLogType + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(SyncGroupLogTypeConverter))] + public struct SyncGroupLogType : System.IEquatable { - public const string All = "All"; - public const string Error = "Error"; - public const string Warning = "Warning"; - public const string Success = "Success"; + private SyncGroupLogType(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly SyncGroupLogType All = "All"; + + public static readonly SyncGroupLogType Error = "Error"; + + public static readonly SyncGroupLogType Warning = "Warning"; + + public static readonly SyncGroupLogType Success = "Success"; + + + /// + /// Underlying value of enum SyncGroupLogType + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for SyncGroupLogType + /// + public override string ToString() + { + return UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type SyncGroupLogType + /// + public bool Equals(SyncGroupLogType e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to SyncGroupLogType + /// + public static implicit operator SyncGroupLogType(string value) + { + return new SyncGroupLogType(value); + } + + /// + /// Implicit operator to convert SyncGroupLogType to string + /// + public static implicit operator string(SyncGroupLogType e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum SyncGroupLogType + /// + public static bool operator == (SyncGroupLogType e1, SyncGroupLogType e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum SyncGroupLogType + /// + public static bool operator != (SyncGroupLogType e1, SyncGroupLogType e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for SyncGroupLogType + /// + public override bool Equals(object obj) + { + return obj is SyncGroupLogType && Equals((SyncGroupLogType)obj); + } + + /// + /// Returns for hashCode SyncGroupLogType + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncGroupLogTypeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncGroupLogTypeConverter.cs new file mode 100644 index 000000000000..224fd4dfab5f --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncGroupLogTypeConverter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for SyncGroupLogType. + /// + public sealed class SyncGroupLogTypeConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to SyncGroupLogType by the + /// converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(SyncGroupLogType).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to SyncGroupLogType. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (SyncGroupLogType)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for SyncGroupLogType for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncGroupState.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncGroupState.cs index 4367211c97bc..4642c76efc95 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncGroupState.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncGroupState.cs @@ -10,16 +10,102 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for SyncGroupState. /// - public static class SyncGroupState + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(SyncGroupStateConverter))] + public struct SyncGroupState : System.IEquatable { - public const string NotReady = "NotReady"; - public const string Error = "Error"; - public const string Warning = "Warning"; - public const string Progressing = "Progressing"; - public const string Good = "Good"; + private SyncGroupState(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly SyncGroupState NotReady = "NotReady"; + + public static readonly SyncGroupState Error = "Error"; + + public static readonly SyncGroupState Warning = "Warning"; + + public static readonly SyncGroupState Progressing = "Progressing"; + + public static readonly SyncGroupState Good = "Good"; + + + /// + /// Underlying value of enum SyncGroupState + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for SyncGroupState + /// + public override string ToString() + { + return UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type SyncGroupState + /// + public bool Equals(SyncGroupState e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to SyncGroupState + /// + public static implicit operator SyncGroupState(string value) + { + return new SyncGroupState(value); + } + + /// + /// Implicit operator to convert SyncGroupState to string + /// + public static implicit operator string(SyncGroupState e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum SyncGroupState + /// + public static bool operator == (SyncGroupState e1, SyncGroupState e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum SyncGroupState + /// + public static bool operator != (SyncGroupState e1, SyncGroupState e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for SyncGroupState + /// + public override bool Equals(object obj) + { + return obj is SyncGroupState && Equals((SyncGroupState)obj); + } + + /// + /// Returns for hashCode SyncGroupState + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncGroupStateConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncGroupStateConverter.cs new file mode 100644 index 000000000000..b9183c88b750 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncGroupStateConverter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for SyncGroupState. + /// + public sealed class SyncGroupStateConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to SyncGroupState by the + /// converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(SyncGroupState).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to SyncGroupState. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (SyncGroupState)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for SyncGroupState for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncMember.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncMember.cs index a2c6837a2407..828d184e1f29 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncMember.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncMember.cs @@ -65,7 +65,7 @@ public SyncMember() /// 'UnProvisioned', 'Provisioning', 'Provisioned', 'ProvisionFailed', /// 'DeProvisioning', 'DeProvisioned', 'DeProvisionFailed', /// 'Reprovisioning', 'ReprovisionFailed', 'UnReprovisioned' - public SyncMember(string id = default(string), string name = default(string), string type = default(string), string databaseType = default(string), string syncAgentId = default(string), System.Guid? sqlServerDatabaseId = default(System.Guid?), string syncMemberAzureDatabaseResourceId = default(string), bool? usePrivateLinkConnection = default(bool?), string serverName = default(string), string databaseName = default(string), string userName = default(string), string password = default(string), string syncDirection = default(string), string syncState = default(string)) + public SyncMember(string id = default(string), string name = default(string), string type = default(string), SyncMemberDbType? databaseType = default(SyncMemberDbType?), string syncAgentId = default(string), System.Guid? sqlServerDatabaseId = default(System.Guid?), string syncMemberAzureDatabaseResourceId = default(string), bool? usePrivateLinkConnection = default(bool?), string serverName = default(string), string databaseName = default(string), string userName = default(string), string password = default(string), SyncDirection? syncDirection = default(SyncDirection?), SyncMemberState? syncState = default(SyncMemberState?)) : base(id, name, type) { DatabaseType = databaseType; @@ -92,7 +92,7 @@ public SyncMember() /// include: 'AzureSqlDatabase', 'SqlServerDatabase' /// [JsonProperty(PropertyName = "properties.databaseType")] - public string DatabaseType { get; set; } + public SyncMemberDbType? DatabaseType { get; set; } /// /// Gets or sets ARM resource id of the sync agent in the sync member. @@ -149,7 +149,7 @@ public SyncMember() /// include: 'Bidirectional', 'OneWayMemberToHub', 'OneWayHubToMember' /// [JsonProperty(PropertyName = "properties.syncDirection")] - public string SyncDirection { get; set; } + public SyncDirection? SyncDirection { get; set; } /// /// Gets sync state of the sync member. Possible values include: @@ -161,7 +161,7 @@ public SyncMember() /// 'Reprovisioning', 'ReprovisionFailed', 'UnReprovisioned' /// [JsonProperty(PropertyName = "properties.syncState")] - public string SyncState { get; private set; } + public SyncMemberState? SyncState { get; private set; } } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncMemberDbType.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncMemberDbType.cs index 62c0d7fda443..4135c5b95395 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncMemberDbType.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncMemberDbType.cs @@ -10,13 +10,96 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for SyncMemberDbType. /// - public static class SyncMemberDbType + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(SyncMemberDbTypeConverter))] + public struct SyncMemberDbType : System.IEquatable { - public const string AzureSqlDatabase = "AzureSqlDatabase"; - public const string SqlServerDatabase = "SqlServerDatabase"; + private SyncMemberDbType(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly SyncMemberDbType AzureSqlDatabase = "AzureSqlDatabase"; + + public static readonly SyncMemberDbType SqlServerDatabase = "SqlServerDatabase"; + + + /// + /// Underlying value of enum SyncMemberDbType + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for SyncMemberDbType + /// + public override string ToString() + { + return UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type SyncMemberDbType + /// + public bool Equals(SyncMemberDbType e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to SyncMemberDbType + /// + public static implicit operator SyncMemberDbType(string value) + { + return new SyncMemberDbType(value); + } + + /// + /// Implicit operator to convert SyncMemberDbType to string + /// + public static implicit operator string(SyncMemberDbType e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum SyncMemberDbType + /// + public static bool operator == (SyncMemberDbType e1, SyncMemberDbType e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum SyncMemberDbType + /// + public static bool operator != (SyncMemberDbType e1, SyncMemberDbType e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for SyncMemberDbType + /// + public override bool Equals(object obj) + { + return obj is SyncMemberDbType && Equals((SyncMemberDbType)obj); + } + + /// + /// Returns for hashCode SyncMemberDbType + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncMemberDbTypeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncMemberDbTypeConverter.cs new file mode 100644 index 000000000000..a7be8e6b7c67 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncMemberDbTypeConverter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for SyncMemberDbType. + /// + public sealed class SyncMemberDbTypeConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to SyncMemberDbType by the + /// converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(SyncMemberDbType).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to SyncMemberDbType. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (SyncMemberDbType)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for SyncMemberDbType for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncMemberState.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncMemberState.cs index 8ef9ca4ac2d1..a88b7fea97c0 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncMemberState.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncMemberState.cs @@ -10,29 +10,128 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for SyncMemberState. /// - public static class SyncMemberState + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(SyncMemberStateConverter))] + public struct SyncMemberState : System.IEquatable { - public const string SyncInProgress = "SyncInProgress"; - public const string SyncSucceeded = "SyncSucceeded"; - public const string SyncFailed = "SyncFailed"; - public const string DisabledTombstoneCleanup = "DisabledTombstoneCleanup"; - public const string DisabledBackupRestore = "DisabledBackupRestore"; - public const string SyncSucceededWithWarnings = "SyncSucceededWithWarnings"; - public const string SyncCancelling = "SyncCancelling"; - public const string SyncCancelled = "SyncCancelled"; - public const string UnProvisioned = "UnProvisioned"; - public const string Provisioning = "Provisioning"; - public const string Provisioned = "Provisioned"; - public const string ProvisionFailed = "ProvisionFailed"; - public const string DeProvisioning = "DeProvisioning"; - public const string DeProvisioned = "DeProvisioned"; - public const string DeProvisionFailed = "DeProvisionFailed"; - public const string Reprovisioning = "Reprovisioning"; - public const string ReprovisionFailed = "ReprovisionFailed"; - public const string UnReprovisioned = "UnReprovisioned"; + private SyncMemberState(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly SyncMemberState SyncInProgress = "SyncInProgress"; + + public static readonly SyncMemberState SyncSucceeded = "SyncSucceeded"; + + public static readonly SyncMemberState SyncFailed = "SyncFailed"; + + public static readonly SyncMemberState DisabledTombstoneCleanup = "DisabledTombstoneCleanup"; + + public static readonly SyncMemberState DisabledBackupRestore = "DisabledBackupRestore"; + + public static readonly SyncMemberState SyncSucceededWithWarnings = "SyncSucceededWithWarnings"; + + public static readonly SyncMemberState SyncCancelling = "SyncCancelling"; + + public static readonly SyncMemberState SyncCancelled = "SyncCancelled"; + + public static readonly SyncMemberState UnProvisioned = "UnProvisioned"; + + public static readonly SyncMemberState Provisioning = "Provisioning"; + + public static readonly SyncMemberState Provisioned = "Provisioned"; + + public static readonly SyncMemberState ProvisionFailed = "ProvisionFailed"; + + public static readonly SyncMemberState DeProvisioning = "DeProvisioning"; + + public static readonly SyncMemberState DeProvisioned = "DeProvisioned"; + + public static readonly SyncMemberState DeProvisionFailed = "DeProvisionFailed"; + + public static readonly SyncMemberState Reprovisioning = "Reprovisioning"; + + public static readonly SyncMemberState ReprovisionFailed = "ReprovisionFailed"; + + public static readonly SyncMemberState UnReprovisioned = "UnReprovisioned"; + + + /// + /// Underlying value of enum SyncMemberState + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for SyncMemberState + /// + public override string ToString() + { + return UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type SyncMemberState + /// + public bool Equals(SyncMemberState e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to SyncMemberState + /// + public static implicit operator SyncMemberState(string value) + { + return new SyncMemberState(value); + } + + /// + /// Implicit operator to convert SyncMemberState to string + /// + public static implicit operator string(SyncMemberState e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum SyncMemberState + /// + public static bool operator == (SyncMemberState e1, SyncMemberState e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum SyncMemberState + /// + public static bool operator != (SyncMemberState e1, SyncMemberState e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for SyncMemberState + /// + public override bool Equals(object obj) + { + return obj is SyncMemberState && Equals((SyncMemberState)obj); + } + + /// + /// Returns for hashCode SyncMemberState + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncMemberStateConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncMemberStateConverter.cs new file mode 100644 index 000000000000..6e26b4d585bc --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncMemberStateConverter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for SyncMemberState. + /// + public sealed class SyncMemberStateConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to SyncMemberState by the + /// converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(SyncMemberState).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to SyncMemberState. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (SyncMemberState)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for SyncMemberState for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/TransparentDataEncryptionActivity.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/TransparentDataEncryptionActivity.cs index ab34253c2b81..910daceaab5d 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/TransparentDataEncryptionActivity.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/TransparentDataEncryptionActivity.cs @@ -42,7 +42,7 @@ public TransparentDataEncryptionActivity() /// include: 'Encrypting', 'Decrypting' /// The percent complete of the /// transparent data encryption scan for a database. - public TransparentDataEncryptionActivity(string id = default(string), string name = default(string), string type = default(string), string location = default(string), string status = default(string), double? percentComplete = default(double?)) + public TransparentDataEncryptionActivity(string id = default(string), string name = default(string), string type = default(string), string location = default(string), TransparentDataEncryptionActivityStatus? status = default(TransparentDataEncryptionActivityStatus?), double? percentComplete = default(double?)) : base(id, name, type) { Location = location; @@ -67,7 +67,7 @@ public TransparentDataEncryptionActivity() /// 'Encrypting', 'Decrypting' /// [JsonProperty(PropertyName = "properties.status")] - public string Status { get; private set; } + public TransparentDataEncryptionActivityStatus? Status { get; private set; } /// /// Gets the percent complete of the transparent data encryption scan diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/TransparentDataEncryptionActivityStatus.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/TransparentDataEncryptionActivityStatus.cs index 5880bd69d615..6a47ce56c7fe 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/TransparentDataEncryptionActivityStatus.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/TransparentDataEncryptionActivityStatus.cs @@ -10,13 +10,102 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for TransparentDataEncryptionActivityStatus. /// - public static class TransparentDataEncryptionActivityStatus + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(TransparentDataEncryptionActivityStatusConverter))] + public struct TransparentDataEncryptionActivityStatus : System.IEquatable { - public const string Encrypting = "Encrypting"; - public const string Decrypting = "Decrypting"; + private TransparentDataEncryptionActivityStatus(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly TransparentDataEncryptionActivityStatus Encrypting = "Encrypting"; + + public static readonly TransparentDataEncryptionActivityStatus Decrypting = "Decrypting"; + + + /// + /// Underlying value of enum TransparentDataEncryptionActivityStatus + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for + /// TransparentDataEncryptionActivityStatus + /// + public override string ToString() + { + return UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type TransparentDataEncryptionActivityStatus + /// + public bool Equals(TransparentDataEncryptionActivityStatus e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to + /// TransparentDataEncryptionActivityStatus + /// + public static implicit operator TransparentDataEncryptionActivityStatus(string value) + { + return new TransparentDataEncryptionActivityStatus(value); + } + + /// + /// Implicit operator to convert + /// TransparentDataEncryptionActivityStatus to string + /// + public static implicit operator string(TransparentDataEncryptionActivityStatus e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum + /// TransparentDataEncryptionActivityStatus + /// + public static bool operator == (TransparentDataEncryptionActivityStatus e1, TransparentDataEncryptionActivityStatus e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum + /// TransparentDataEncryptionActivityStatus + /// + public static bool operator != (TransparentDataEncryptionActivityStatus e1, TransparentDataEncryptionActivityStatus e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for + /// TransparentDataEncryptionActivityStatus + /// + public override bool Equals(object obj) + { + return obj is TransparentDataEncryptionActivityStatus && Equals((TransparentDataEncryptionActivityStatus)obj); + } + + /// + /// Returns for hashCode TransparentDataEncryptionActivityStatus + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/TransparentDataEncryptionActivityStatusConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/TransparentDataEncryptionActivityStatusConverter.cs new file mode 100644 index 000000000000..4a694506acac --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/TransparentDataEncryptionActivityStatusConverter.cs @@ -0,0 +1,55 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for TransparentDataEncryptionActivityStatus. + /// + public sealed class TransparentDataEncryptionActivityStatusConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to + /// TransparentDataEncryptionActivityStatus by the converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(TransparentDataEncryptionActivityStatus).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to + /// TransparentDataEncryptionActivityStatus. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (TransparentDataEncryptionActivityStatus)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for TransparentDataEncryptionActivityStatus + /// for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/UnitDefinitionType.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/UnitDefinitionType.cs index 1184776ad156..16c3edd9beac 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/UnitDefinitionType.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/UnitDefinitionType.cs @@ -10,17 +10,104 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for UnitDefinitionType. /// - public static class UnitDefinitionType + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(UnitDefinitionTypeConverter))] + public struct UnitDefinitionType : System.IEquatable { - public const string Count = "Count"; - public const string Bytes = "Bytes"; - public const string Seconds = "Seconds"; - public const string Percent = "Percent"; - public const string CountPerSecond = "CountPerSecond"; - public const string BytesPerSecond = "BytesPerSecond"; + private UnitDefinitionType(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly UnitDefinitionType Count = "Count"; + + public static readonly UnitDefinitionType Bytes = "Bytes"; + + public static readonly UnitDefinitionType Seconds = "Seconds"; + + public static readonly UnitDefinitionType Percent = "Percent"; + + public static readonly UnitDefinitionType CountPerSecond = "CountPerSecond"; + + public static readonly UnitDefinitionType BytesPerSecond = "BytesPerSecond"; + + + /// + /// Underlying value of enum UnitDefinitionType + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for UnitDefinitionType + /// + public override string ToString() + { + return UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type UnitDefinitionType + /// + public bool Equals(UnitDefinitionType e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to UnitDefinitionType + /// + public static implicit operator UnitDefinitionType(string value) + { + return new UnitDefinitionType(value); + } + + /// + /// Implicit operator to convert UnitDefinitionType to string + /// + public static implicit operator string(UnitDefinitionType e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum UnitDefinitionType + /// + public static bool operator == (UnitDefinitionType e1, UnitDefinitionType e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum UnitDefinitionType + /// + public static bool operator != (UnitDefinitionType e1, UnitDefinitionType e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for UnitDefinitionType + /// + public override bool Equals(object obj) + { + return obj is UnitDefinitionType && Equals((UnitDefinitionType)obj); + } + + /// + /// Returns for hashCode UnitDefinitionType + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/UnitDefinitionTypeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/UnitDefinitionTypeConverter.cs new file mode 100644 index 000000000000..dda3dfcf2386 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/UnitDefinitionTypeConverter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for UnitDefinitionType. + /// + public sealed class UnitDefinitionTypeConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to UnitDefinitionType by the + /// converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(UnitDefinitionType).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to UnitDefinitionType. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (UnitDefinitionType)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for UnitDefinitionType for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/UnitType.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/UnitType.cs index ecd9b7388bdf..0ddad426ce1c 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/UnitType.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/UnitType.cs @@ -10,17 +10,104 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for UnitType. /// - public static class UnitType + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(UnitTypeConverter))] + public struct UnitType : System.IEquatable { - public const string Count = "count"; - public const string Bytes = "bytes"; - public const string Seconds = "seconds"; - public const string Percent = "percent"; - public const string CountPerSecond = "countPerSecond"; - public const string BytesPerSecond = "bytesPerSecond"; + private UnitType(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly UnitType Count = "count"; + + public static readonly UnitType Bytes = "bytes"; + + public static readonly UnitType Seconds = "seconds"; + + public static readonly UnitType Percent = "percent"; + + public static readonly UnitType CountPerSecond = "countPerSecond"; + + public static readonly UnitType BytesPerSecond = "bytesPerSecond"; + + + /// + /// Underlying value of enum UnitType + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for UnitType + /// + public override string ToString() + { + return UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type UnitType + /// + public bool Equals(UnitType e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to UnitType + /// + public static implicit operator UnitType(string value) + { + return new UnitType(value); + } + + /// + /// Implicit operator to convert UnitType to string + /// + public static implicit operator string(UnitType e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum UnitType + /// + public static bool operator == (UnitType e1, UnitType e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum UnitType + /// + public static bool operator != (UnitType e1, UnitType e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for UnitType + /// + public override bool Equals(object obj) + { + return obj is UnitType && Equals((UnitType)obj); + } + + /// + /// Returns for hashCode UnitType + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/UnitTypeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/UnitTypeConverter.cs new file mode 100644 index 000000000000..a0e37419629f --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/UnitTypeConverter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for UnitType. + /// + public sealed class UnitTypeConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to UnitType by the + /// converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(UnitType).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to UnitType. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (UnitType)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for UnitType for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/UnlinkParameters.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/UnlinkParameters.cs new file mode 100644 index 000000000000..773e905009a0 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/UnlinkParameters.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Represents the parameters for Unlink Replication Link request. + /// + public partial class UnlinkParameters + { + /// + /// Initializes a new instance of the UnlinkParameters class. + /// + public UnlinkParameters() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the UnlinkParameters class. + /// + /// Determines whether link will be + /// terminated in a forced or a friendly way. + public UnlinkParameters(bool? forcedTermination = default(bool?)) + { + ForcedTermination = forcedTermination; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets determines whether link will be terminated in a forced + /// or a friendly way. + /// + [JsonProperty(PropertyName = "forcedTermination")] + public bool? ForcedTermination { get; set; } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/VirtualNetworkRule.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/VirtualNetworkRule.cs index b34438897190..d742c4ade135 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/VirtualNetworkRule.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/VirtualNetworkRule.cs @@ -43,7 +43,7 @@ public VirtualNetworkRule() /// Virtual Network Rule State. Possible values /// include: 'Initializing', 'InProgress', 'Ready', 'Deleting', /// 'Unknown' - public VirtualNetworkRule(string virtualNetworkSubnetId, string id = default(string), string name = default(string), string type = default(string), bool? ignoreMissingVnetServiceEndpoint = default(bool?), string state = default(string)) + public VirtualNetworkRule(string virtualNetworkSubnetId, string id = default(string), string name = default(string), string type = default(string), bool? ignoreMissingVnetServiceEndpoint = default(bool?), VirtualNetworkRuleState? state = default(VirtualNetworkRuleState?)) : base(id, name, type) { VirtualNetworkSubnetId = virtualNetworkSubnetId; @@ -75,7 +75,7 @@ public VirtualNetworkRule() /// 'Initializing', 'InProgress', 'Ready', 'Deleting', 'Unknown' /// [JsonProperty(PropertyName = "properties.state")] - public string State { get; private set; } + public VirtualNetworkRuleState? State { get; private set; } /// /// Validate the object. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/VirtualNetworkRuleState.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/VirtualNetworkRuleState.cs index ef0dd2f70a5b..a0aefe8e5a92 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/VirtualNetworkRuleState.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/VirtualNetworkRuleState.cs @@ -10,16 +10,102 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for VirtualNetworkRuleState. /// - public static class VirtualNetworkRuleState + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(VirtualNetworkRuleStateConverter))] + public struct VirtualNetworkRuleState : System.IEquatable { - public const string Initializing = "Initializing"; - public const string InProgress = "InProgress"; - public const string Ready = "Ready"; - public const string Deleting = "Deleting"; - public const string Unknown = "Unknown"; + private VirtualNetworkRuleState(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly VirtualNetworkRuleState Initializing = "Initializing"; + + public static readonly VirtualNetworkRuleState InProgress = "InProgress"; + + public static readonly VirtualNetworkRuleState Ready = "Ready"; + + public static readonly VirtualNetworkRuleState Deleting = "Deleting"; + + public static readonly VirtualNetworkRuleState Unknown = "Unknown"; + + + /// + /// Underlying value of enum VirtualNetworkRuleState + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for VirtualNetworkRuleState + /// + public override string ToString() + { + return UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type VirtualNetworkRuleState + /// + public bool Equals(VirtualNetworkRuleState e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to VirtualNetworkRuleState + /// + public static implicit operator VirtualNetworkRuleState(string value) + { + return new VirtualNetworkRuleState(value); + } + + /// + /// Implicit operator to convert VirtualNetworkRuleState to string + /// + public static implicit operator string(VirtualNetworkRuleState e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum VirtualNetworkRuleState + /// + public static bool operator == (VirtualNetworkRuleState e1, VirtualNetworkRuleState e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum VirtualNetworkRuleState + /// + public static bool operator != (VirtualNetworkRuleState e1, VirtualNetworkRuleState e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for VirtualNetworkRuleState + /// + public override bool Equals(object obj) + { + return obj is VirtualNetworkRuleState && Equals((VirtualNetworkRuleState)obj); + } + + /// + /// Returns for hashCode VirtualNetworkRuleState + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/VirtualNetworkRuleStateConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/VirtualNetworkRuleStateConverter.cs new file mode 100644 index 000000000000..337961087a9c --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/VirtualNetworkRuleStateConverter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for VirtualNetworkRuleState. + /// + public sealed class VirtualNetworkRuleStateConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to VirtualNetworkRuleState + /// by the converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(VirtualNetworkRuleState).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to VirtualNetworkRuleState. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (VirtualNetworkRuleState)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for VirtualNetworkRuleState for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/VulnerabilityAssessmentScanRecord.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/VulnerabilityAssessmentScanRecord.cs index 298f1c24a1f8..ca8eac5a1248 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/VulnerabilityAssessmentScanRecord.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/VulnerabilityAssessmentScanRecord.cs @@ -51,7 +51,7 @@ public VulnerabilityAssessmentScanRecord() /// container path. /// The number of failed /// security checks. - public VulnerabilityAssessmentScanRecord(string id = default(string), string name = default(string), string type = default(string), string scanId = default(string), string triggerType = default(string), string state = default(string), System.DateTime? startTime = default(System.DateTime?), System.DateTime? endTime = default(System.DateTime?), IList errors = default(IList), string storageContainerPath = default(string), int? numberOfFailedSecurityChecks = default(int?)) + public VulnerabilityAssessmentScanRecord(string id = default(string), string name = default(string), string type = default(string), string scanId = default(string), VulnerabilityAssessmentScanTriggerType? triggerType = default(VulnerabilityAssessmentScanTriggerType?), VulnerabilityAssessmentScanState? state = default(VulnerabilityAssessmentScanState?), System.DateTime? startTime = default(System.DateTime?), System.DateTime? endTime = default(System.DateTime?), IList errors = default(IList), string storageContainerPath = default(string), int? numberOfFailedSecurityChecks = default(int?)) : base(id, name, type) { ScanId = scanId; @@ -81,14 +81,14 @@ public VulnerabilityAssessmentScanRecord() /// 'Recurring' /// [JsonProperty(PropertyName = "properties.triggerType")] - public string TriggerType { get; private set; } + public VulnerabilityAssessmentScanTriggerType? TriggerType { get; private set; } /// /// Gets the scan status. Possible values include: 'Passed', 'Failed', /// 'FailedToRun', 'InProgress' /// [JsonProperty(PropertyName = "properties.state")] - public string State { get; private set; } + public VulnerabilityAssessmentScanState? State { get; private set; } /// /// Gets the scan start time (UTC). diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/VulnerabilityAssessmentScanState.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/VulnerabilityAssessmentScanState.cs index 503c61895227..5cc58647739b 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/VulnerabilityAssessmentScanState.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/VulnerabilityAssessmentScanState.cs @@ -10,15 +10,102 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for VulnerabilityAssessmentScanState. /// - public static class VulnerabilityAssessmentScanState + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(VulnerabilityAssessmentScanStateConverter))] + public struct VulnerabilityAssessmentScanState : System.IEquatable { - public const string Passed = "Passed"; - public const string Failed = "Failed"; - public const string FailedToRun = "FailedToRun"; - public const string InProgress = "InProgress"; + private VulnerabilityAssessmentScanState(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly VulnerabilityAssessmentScanState Passed = "Passed"; + + public static readonly VulnerabilityAssessmentScanState Failed = "Failed"; + + public static readonly VulnerabilityAssessmentScanState FailedToRun = "FailedToRun"; + + public static readonly VulnerabilityAssessmentScanState InProgress = "InProgress"; + + + /// + /// Underlying value of enum VulnerabilityAssessmentScanState + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for VulnerabilityAssessmentScanState + /// + public override string ToString() + { + return UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type VulnerabilityAssessmentScanState + /// + public bool Equals(VulnerabilityAssessmentScanState e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to + /// VulnerabilityAssessmentScanState + /// + public static implicit operator VulnerabilityAssessmentScanState(string value) + { + return new VulnerabilityAssessmentScanState(value); + } + + /// + /// Implicit operator to convert VulnerabilityAssessmentScanState to + /// string + /// + public static implicit operator string(VulnerabilityAssessmentScanState e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum VulnerabilityAssessmentScanState + /// + public static bool operator == (VulnerabilityAssessmentScanState e1, VulnerabilityAssessmentScanState e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum VulnerabilityAssessmentScanState + /// + public static bool operator != (VulnerabilityAssessmentScanState e1, VulnerabilityAssessmentScanState e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for VulnerabilityAssessmentScanState + /// + public override bool Equals(object obj) + { + return obj is VulnerabilityAssessmentScanState && Equals((VulnerabilityAssessmentScanState)obj); + } + + /// + /// Returns for hashCode VulnerabilityAssessmentScanState + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/VulnerabilityAssessmentScanStateConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/VulnerabilityAssessmentScanStateConverter.cs new file mode 100644 index 000000000000..a54163f7d51f --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/VulnerabilityAssessmentScanStateConverter.cs @@ -0,0 +1,55 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for VulnerabilityAssessmentScanState. + /// + public sealed class VulnerabilityAssessmentScanStateConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to + /// VulnerabilityAssessmentScanState by the converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(VulnerabilityAssessmentScanState).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to + /// VulnerabilityAssessmentScanState. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (VulnerabilityAssessmentScanState)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for VulnerabilityAssessmentScanState for + /// serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/VulnerabilityAssessmentScanTriggerType.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/VulnerabilityAssessmentScanTriggerType.cs index 252a76bff40a..293ed963bdaa 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/VulnerabilityAssessmentScanTriggerType.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/VulnerabilityAssessmentScanTriggerType.cs @@ -10,13 +10,102 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for VulnerabilityAssessmentScanTriggerType. /// - public static class VulnerabilityAssessmentScanTriggerType + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(VulnerabilityAssessmentScanTriggerTypeConverter))] + public struct VulnerabilityAssessmentScanTriggerType : System.IEquatable { - public const string OnDemand = "OnDemand"; - public const string Recurring = "Recurring"; + private VulnerabilityAssessmentScanTriggerType(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly VulnerabilityAssessmentScanTriggerType OnDemand = "OnDemand"; + + public static readonly VulnerabilityAssessmentScanTriggerType Recurring = "Recurring"; + + + /// + /// Underlying value of enum VulnerabilityAssessmentScanTriggerType + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for + /// VulnerabilityAssessmentScanTriggerType + /// + public override string ToString() + { + return UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type VulnerabilityAssessmentScanTriggerType + /// + public bool Equals(VulnerabilityAssessmentScanTriggerType e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to + /// VulnerabilityAssessmentScanTriggerType + /// + public static implicit operator VulnerabilityAssessmentScanTriggerType(string value) + { + return new VulnerabilityAssessmentScanTriggerType(value); + } + + /// + /// Implicit operator to convert VulnerabilityAssessmentScanTriggerType + /// to string + /// + public static implicit operator string(VulnerabilityAssessmentScanTriggerType e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum + /// VulnerabilityAssessmentScanTriggerType + /// + public static bool operator == (VulnerabilityAssessmentScanTriggerType e1, VulnerabilityAssessmentScanTriggerType e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum + /// VulnerabilityAssessmentScanTriggerType + /// + public static bool operator != (VulnerabilityAssessmentScanTriggerType e1, VulnerabilityAssessmentScanTriggerType e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for + /// VulnerabilityAssessmentScanTriggerType + /// + public override bool Equals(object obj) + { + return obj is VulnerabilityAssessmentScanTriggerType && Equals((VulnerabilityAssessmentScanTriggerType)obj); + } + + /// + /// Returns for hashCode VulnerabilityAssessmentScanTriggerType + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/VulnerabilityAssessmentScanTriggerTypeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/VulnerabilityAssessmentScanTriggerTypeConverter.cs new file mode 100644 index 000000000000..38737f84fae4 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/VulnerabilityAssessmentScanTriggerTypeConverter.cs @@ -0,0 +1,55 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for VulnerabilityAssessmentScanTriggerType. + /// + public sealed class VulnerabilityAssessmentScanTriggerTypeConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to + /// VulnerabilityAssessmentScanTriggerType by the converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(VulnerabilityAssessmentScanTriggerType).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to + /// VulnerabilityAssessmentScanTriggerType. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (VulnerabilityAssessmentScanTriggerType)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for VulnerabilityAssessmentScanTriggerType for + /// serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/WorkloadClassifier.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/WorkloadClassifier.cs new file mode 100644 index 000000000000..c8c86d0bbbb3 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/WorkloadClassifier.cs @@ -0,0 +1,115 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Linq; + + /// + /// Workload classifier operations for a data warehouse + /// + [Rest.Serialization.JsonTransformation] + public partial class WorkloadClassifier : ProxyResource + { + /// + /// Initializes a new instance of the WorkloadClassifier class. + /// + public WorkloadClassifier() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the WorkloadClassifier class. + /// + /// The workload classifier member + /// name. + /// Resource ID. + /// Resource name. + /// Resource type. + /// The workload classifier label. + /// The workload classifier context. + /// The workload classifier start time for + /// classification. + /// The workload classifier end time for + /// classification. + /// The workload classifier + /// importance. + public WorkloadClassifier(string memberName, string id = default(string), string name = default(string), string type = default(string), string label = default(string), string context = default(string), string startTime = default(string), string endTime = default(string), string importance = default(string)) + : base(id, name, type) + { + MemberName = memberName; + Label = label; + Context = context; + StartTime = startTime; + EndTime = endTime; + Importance = importance; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the workload classifier member name. + /// + [JsonProperty(PropertyName = "properties.memberName")] + public string MemberName { get; set; } + + /// + /// Gets or sets the workload classifier label. + /// + [JsonProperty(PropertyName = "properties.label")] + public string Label { get; set; } + + /// + /// Gets or sets the workload classifier context. + /// + [JsonProperty(PropertyName = "properties.context")] + public string Context { get; set; } + + /// + /// Gets or sets the workload classifier start time for classification. + /// + [JsonProperty(PropertyName = "properties.startTime")] + public string StartTime { get; set; } + + /// + /// Gets or sets the workload classifier end time for classification. + /// + [JsonProperty(PropertyName = "properties.endTime")] + public string EndTime { get; set; } + + /// + /// Gets or sets the workload classifier importance. + /// + [JsonProperty(PropertyName = "properties.importance")] + public string Importance { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (MemberName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "MemberName"); + } + } + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/WorkloadGroup.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/WorkloadGroup.cs new file mode 100644 index 000000000000..feac7eea8cc5 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/WorkloadGroup.cs @@ -0,0 +1,114 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Linq; + + /// + /// Workload group operations for a data warehouse + /// + [Rest.Serialization.JsonTransformation] + public partial class WorkloadGroup : ProxyResource + { + /// + /// Initializes a new instance of the WorkloadGroup class. + /// + public WorkloadGroup() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the WorkloadGroup class. + /// + /// The workload group minimum + /// percentage resource. + /// The workload group cap percentage + /// resource. + /// The workload group + /// request minimum grant percentage. + /// Resource ID. + /// Resource name. + /// Resource type. + /// The workload group + /// request maximum grant percentage. + /// The workload group importance + /// level. + /// The workload group query + /// execution timeout. + public WorkloadGroup(int minResourcePercent, int maxResourcePercent, double minResourcePercentPerRequest, string id = default(string), string name = default(string), string type = default(string), double? maxResourcePercentPerRequest = default(double?), string importance = default(string), int? queryExecutionTimeout = default(int?)) + : base(id, name, type) + { + MinResourcePercent = minResourcePercent; + MaxResourcePercent = maxResourcePercent; + MinResourcePercentPerRequest = minResourcePercentPerRequest; + MaxResourcePercentPerRequest = maxResourcePercentPerRequest; + Importance = importance; + QueryExecutionTimeout = queryExecutionTimeout; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the workload group minimum percentage resource. + /// + [JsonProperty(PropertyName = "properties.minResourcePercent")] + public int MinResourcePercent { get; set; } + + /// + /// Gets or sets the workload group cap percentage resource. + /// + [JsonProperty(PropertyName = "properties.maxResourcePercent")] + public int MaxResourcePercent { get; set; } + + /// + /// Gets or sets the workload group request minimum grant percentage. + /// + [JsonProperty(PropertyName = "properties.minResourcePercentPerRequest")] + public double MinResourcePercentPerRequest { get; set; } + + /// + /// Gets or sets the workload group request maximum grant percentage. + /// + [JsonProperty(PropertyName = "properties.maxResourcePercentPerRequest")] + public double? MaxResourcePercentPerRequest { get; set; } + + /// + /// Gets or sets the workload group importance level. + /// + [JsonProperty(PropertyName = "properties.importance")] + public string Importance { get; set; } + + /// + /// Gets or sets the workload group query execution timeout. + /// + [JsonProperty(PropertyName = "properties.queryExecutionTimeout")] + public int? QueryExecutionTimeout { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + //Nothing to validate + } + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ReplicationLinksOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ReplicationLinksOperations.cs index 3c745fd9c417..7861ec699f79 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ReplicationLinksOperations.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ReplicationLinksOperations.cs @@ -515,6 +515,38 @@ internal ReplicationLinksOperations(SqlManagementClient client) return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); } + /// + /// Deletes a database replication link in forced or friendly way. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database that has the replication link to be failed over. + /// + /// + /// The ID of the replication link to be failed over. + /// + /// + /// The required parameters for unlinking replication link. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task UnlinkWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string linkId, UnlinkParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginUnlinkWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, linkId, parameters, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + /// /// Lists a database's replication links. /// @@ -1105,5 +1137,211 @@ internal ReplicationLinksOperations(SqlManagementClient client) return _result; } + /// + /// Deletes a database replication link in forced or friendly way. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database that has the replication link to be failed over. + /// + /// + /// The ID of the replication link to be failed over. + /// + /// + /// The required parameters for unlinking replication link. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task BeginUnlinkWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string linkId, UnlinkParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (serverName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "serverName"); + } + if (databaseName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "databaseName"); + } + if (linkId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "linkId"); + } + if (parameters == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); + } + string apiVersion = "2014-04-01"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("serverName", serverName); + tracingParameters.Add("databaseName", databaseName); + tracingParameters.Add("linkId", linkId); + tracingParameters.Add("parameters", parameters); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginUnlink", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/replicationLinks/{linkId}/unlink").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); + _url = _url.Replace("{databaseName}", System.Uri.EscapeDataString(databaseName)); + _url = _url.Replace("{linkId}", System.Uri.EscapeDataString(linkId)); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(parameters != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 202 && (int)_statusCode != 204) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ReplicationLinksOperationsExtensions.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ReplicationLinksOperationsExtensions.cs index 87eab086f901..345f961efc83 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ReplicationLinksOperationsExtensions.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ReplicationLinksOperationsExtensions.cs @@ -234,6 +234,63 @@ public static void FailoverAllowDataLoss(this IReplicationLinksOperations operat (await operations.FailoverAllowDataLossWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, linkId, null, cancellationToken).ConfigureAwait(false)).Dispose(); } + /// + /// Deletes a database replication link in forced or friendly way. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database that has the replication link to be failed over. + /// + /// + /// The ID of the replication link to be failed over. + /// + /// + /// The required parameters for unlinking replication link. + /// + public static void Unlink(this IReplicationLinksOperations operations, string resourceGroupName, string serverName, string databaseName, string linkId, UnlinkParameters parameters) + { + operations.UnlinkAsync(resourceGroupName, serverName, databaseName, linkId, parameters).GetAwaiter().GetResult(); + } + + /// + /// Deletes a database replication link in forced or friendly way. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database that has the replication link to be failed over. + /// + /// + /// The ID of the replication link to be failed over. + /// + /// + /// The required parameters for unlinking replication link. + /// + /// + /// The cancellation token. + /// + public static async Task UnlinkAsync(this IReplicationLinksOperations operations, string resourceGroupName, string serverName, string databaseName, string linkId, UnlinkParameters parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.UnlinkWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, linkId, parameters, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + /// /// Lists a database's replication links. /// @@ -388,5 +445,62 @@ public static void BeginFailoverAllowDataLoss(this IReplicationLinksOperations o (await operations.BeginFailoverAllowDataLossWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, linkId, null, cancellationToken).ConfigureAwait(false)).Dispose(); } + /// + /// Deletes a database replication link in forced or friendly way. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database that has the replication link to be failed over. + /// + /// + /// The ID of the replication link to be failed over. + /// + /// + /// The required parameters for unlinking replication link. + /// + public static void BeginUnlink(this IReplicationLinksOperations operations, string resourceGroupName, string serverName, string databaseName, string linkId, UnlinkParameters parameters) + { + operations.BeginUnlinkAsync(resourceGroupName, serverName, databaseName, linkId, parameters).GetAwaiter().GetResult(); + } + + /// + /// Deletes a database replication link in forced or friendly way. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database that has the replication link to be failed over. + /// + /// + /// The ID of the replication link to be failed over. + /// + /// + /// The required parameters for unlinking replication link. + /// + /// + /// The cancellation token. + /// + public static async Task BeginUnlinkAsync(this IReplicationLinksOperations operations, string resourceGroupName, string serverName, string databaseName, string linkId, UnlinkParameters parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.BeginUnlinkWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, linkId, parameters, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/SdkInfo_SqlManagementClient.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/SdkInfo_SqlManagementClient.cs index 8e9b95d7666d..c3ee5f84b2de 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/SdkInfo_SqlManagementClient.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/SdkInfo_SqlManagementClient.cs @@ -1,27 +1,19 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// +using System; +using System.Collections.Generic; +using System.Linq; -namespace Microsoft.Azure.Management.Sql +internal static partial class SdkInfo { - using System; - using System.Collections.Generic; - using System.Linq; - - internal static partial class SdkInfo - { - public static IEnumerable> ApiInfo_SqlManagementClient - { - get - { - return new Tuple[] - { + public static IEnumerable> ApiInfo_SqlManagementClient + { + get + { + return new Tuple[] + { new Tuple("Sql", "BackupLongTermRetentionPolicies", "2017-03-01-preview"), - new Tuple("Sql", "BackupShortTermRetentionPolicies", "2017-10-01-preview"), - new Tuple("Sql", "Capabilities", "2017-10-01-preview"), + new Tuple("Sql", "BackupShortTermRetentionPolicies", "2020-02-02-preview"), + new Tuple("Sql", "Capabilities", "2018-06-01-preview"), new Tuple("Sql", "DataMaskingPolicies", "2014-04-01"), new Tuple("Sql", "DataMaskingRules", "2014-04-01"), new Tuple("Sql", "DatabaseAutomaticTuning", "2015-05-01-preview"), @@ -35,6 +27,7 @@ public static IEnumerable> ApiInfo_SqlManagementCl new Tuple("Sql", "Databases", "2014-04-01"), new Tuple("Sql", "Databases", "2017-10-01-preview"), new Tuple("Sql", "Databases", "2018-06-01-preview"), + new Tuple("Sql", "Databases", "2020-02-02-preview"), new Tuple("Sql", "ElasticPoolActivities", "2014-04-01"), new Tuple("Sql", "ElasticPoolDatabaseActivities", "2014-04-01"), new Tuple("Sql", "ElasticPoolOperations", "2017-10-01-preview"), @@ -47,6 +40,7 @@ public static IEnumerable> ApiInfo_SqlManagementCl new Tuple("Sql", "FailoverGroups", "2015-05-01-preview"), new Tuple("Sql", "FirewallRules", "2014-04-01"), new Tuple("Sql", "GeoBackupPolicies", "2014-04-01"), + new Tuple("Sql", "ImportExport", "2020-02-02-preview"), new Tuple("Sql", "InstanceFailoverGroups", "2017-10-01-preview"), new Tuple("Sql", "InstancePools", "2018-06-01-preview"), new Tuple("Sql", "JobAgents", "2017-03-01-preview"), @@ -61,7 +55,7 @@ public static IEnumerable> ApiInfo_SqlManagementCl new Tuple("Sql", "LongTermRetentionBackups", "2017-03-01-preview"), new Tuple("Sql", "LongTermRetentionManagedInstanceBackups", "2018-06-01-preview"), new Tuple("Sql", "ManagedBackupShortTermRetentionPolicies", "2017-03-01-preview"), - new Tuple("Sql", "ManagedDatabaseRestoreDetails", "2019-06-01-preview"), + new Tuple("Sql", "ManagedDatabaseRestoreDetails", "2020-02-02-preview"), new Tuple("Sql", "ManagedDatabaseSecurityAlertPolicies", "2017-03-01-preview"), new Tuple("Sql", "ManagedDatabaseSensitivityLabels", "2018-06-01-preview"), new Tuple("Sql", "ManagedDatabaseVulnerabilityAssessmentRuleBaselines", "2017-10-01-preview"), @@ -69,10 +63,11 @@ public static IEnumerable> ApiInfo_SqlManagementCl new Tuple("Sql", "ManagedDatabaseVulnerabilityAssessments", "2017-10-01-preview"), new Tuple("Sql", "ManagedDatabases", "2020-02-02-preview"), new Tuple("Sql", "ManagedInstanceAdministrators", "2017-03-01-preview"), + new Tuple("Sql", "ManagedInstanceAzureADOnlyAuthentications", "2020-02-02-preview"), new Tuple("Sql", "ManagedInstanceEncryptionProtectors", "2017-10-01-preview"), new Tuple("Sql", "ManagedInstanceKeys", "2017-10-01-preview"), - new Tuple("Sql", "ManagedInstanceOperations", "2019-06-01-preview"), new Tuple("Sql", "ManagedInstanceLongTermRetentionPolicies", "2018-06-01-preview"), + new Tuple("Sql", "ManagedInstanceOperations", "2019-06-01-preview"), new Tuple("Sql", "ManagedInstanceTdeCertificates", "2017-10-01-preview"), new Tuple("Sql", "ManagedInstanceVulnerabilityAssessments", "2018-06-01-preview"), new Tuple("Sql", "ManagedInstances", "2019-06-01-preview"), @@ -91,7 +86,8 @@ public static IEnumerable> ApiInfo_SqlManagementCl new Tuple("Sql", "RestorePoints", "2017-03-01-preview"), new Tuple("Sql", "SensitivityLabels", "2017-03-01-preview"), new Tuple("Sql", "ServerAutomaticTuning", "2017-03-01-preview"), - new Tuple("Sql", "ServerAzureADAdministrators", "2014-04-01"), + new Tuple("Sql", "ServerAzureADAdministrators", "2019-06-01-preview"), + new Tuple("Sql", "ServerAzureADOnlyAuthentications", "2020-02-02-preview"), new Tuple("Sql", "ServerBlobAuditingPolicies", "2017-03-01-preview"), new Tuple("Sql", "ServerCommunicationLinks", "2014-04-01"), new Tuple("Sql", "ServerConnectionPolicies", "2014-04-01"), @@ -101,32 +97,22 @@ public static IEnumerable> ApiInfo_SqlManagementCl new Tuple("Sql", "ServerUsages", "2014-04-01"), new Tuple("Sql", "ServerVulnerabilityAssessments", "2018-06-01-preview"), new Tuple("Sql", "Servers", "2019-06-01-preview"), - new Tuple("Sql", "Servers", "2015-05-01-preview"), + new Tuple("Sql", "Servers", "2020-02-02-preview"), new Tuple("Sql", "ServiceObjectives", "2014-04-01"), new Tuple("Sql", "ServiceTierAdvisors", "2014-04-01"), new Tuple("Sql", "SubscriptionUsages", "2015-05-01-preview"), new Tuple("Sql", "SyncAgents", "2015-05-01-preview"), - new Tuple("Sql", "SyncGroups", "2015-05-01-preview"), - new Tuple("Sql", "SyncMembers", "2015-05-01-preview"), + new Tuple("Sql", "SyncGroups", "2019-06-01-preview"), + new Tuple("Sql", "SyncMembers", "2019-06-01-preview"), new Tuple("Sql", "TdeCertificates", "2017-10-01-preview"), new Tuple("Sql", "TransparentDataEncryptionActivities", "2014-04-01"), new Tuple("Sql", "TransparentDataEncryptions", "2014-04-01"), new Tuple("Sql", "Usages", "2018-06-01-preview"), new Tuple("Sql", "VirtualClusters", "2015-05-01-preview"), new Tuple("Sql", "VirtualNetworkRules", "2015-05-01-preview"), - }.AsEnumerable(); - } - } - // BEGIN: Code Generation Metadata Section - public static readonly String AutoRestVersion = "v2"; - public static readonly String AutoRestBootStrapperVersion = "autorest@2.0.4413"; - public static readonly String AutoRestCmdExecuted = "cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/sql/resource-manager/readme.md --csharp --version=v2 --reflect-api-versions --csharp-sdks-folder=."; - public static readonly String GithubForkName = "Azure"; - public static readonly String GithubBranchName = "master"; - public static readonly String GithubCommidId = "615259b6d33d3029de2d6e403ffe0c12776da1d4"; - public static readonly String CodeGenerationErrors = ""; - public static readonly String GithubRepoName = "azure-rest-api-specs"; - // END: Code Generation Metadata Section + new Tuple("Sql", "WorkloadClassifiers", "2019-06-01-preview"), + new Tuple("Sql", "WorkloadGroups", "2019-06-01-preview"), + }.AsEnumerable(); + } } } - diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ServersOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ServersOperations.cs index b3040eac702b..6fb27c3a7ea6 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ServersOperations.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ServersOperations.cs @@ -876,6 +876,32 @@ internal ServersOperations(SqlManagementClient client) return _result; } + /// + /// Imports a bacpac into a new database. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The database import request parameters. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> ImportDatabaseWithHttpMessagesAsync(string resourceGroupName, string serverName, ImportNewDatabaseDefinition parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginImportDatabaseWithHttpMessagesAsync(resourceGroupName, serverName, parameters, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + /// /// Creates or updates a server. /// @@ -1490,6 +1516,219 @@ internal ServersOperations(SqlManagementClient client) return _result; } + /// + /// Imports a bacpac into a new database. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The database import request parameters. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> BeginImportDatabaseWithHttpMessagesAsync(string resourceGroupName, string serverName, ImportNewDatabaseDefinition parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (serverName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "serverName"); + } + if (parameters == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); + } + if (parameters != null) + { + parameters.Validate(); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + string apiVersion = "2020-02-02-preview"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("serverName", serverName); + tracingParameters.Add("parameters", parameters); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginImportDatabase", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/import").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(parameters != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 202) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + /// /// Gets a list of servers in a resource groups. /// diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ServersOperationsExtensions.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ServersOperationsExtensions.cs index 92d5362a701a..89784f56684a 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ServersOperationsExtensions.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ServersOperationsExtensions.cs @@ -296,6 +296,54 @@ public static CheckNameAvailabilityResponse CheckNameAvailability(this IServersO } } + /// + /// Imports a bacpac into a new database. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The database import request parameters. + /// + public static ImportExportOperationResult ImportDatabase(this IServersOperations operations, string resourceGroupName, string serverName, ImportNewDatabaseDefinition parameters) + { + return operations.ImportDatabaseAsync(resourceGroupName, serverName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Imports a bacpac into a new database. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The database import request parameters. + /// + /// + /// The cancellation token. + /// + public static async Task ImportDatabaseAsync(this IServersOperations operations, string resourceGroupName, string serverName, ImportNewDatabaseDefinition parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ImportDatabaseWithHttpMessagesAsync(resourceGroupName, serverName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + /// /// Creates or updates a server. /// @@ -431,6 +479,54 @@ public static Server BeginUpdate(this IServersOperations operations, string reso } } + /// + /// Imports a bacpac into a new database. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The database import request parameters. + /// + public static ImportExportOperationResult BeginImportDatabase(this IServersOperations operations, string resourceGroupName, string serverName, ImportNewDatabaseDefinition parameters) + { + return operations.BeginImportDatabaseAsync(resourceGroupName, serverName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Imports a bacpac into a new database. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The database import request parameters. + /// + /// + /// The cancellation token. + /// + public static async Task BeginImportDatabaseAsync(this IServersOperations operations, string resourceGroupName, string serverName, ImportNewDatabaseDefinition parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginImportDatabaseWithHttpMessagesAsync(resourceGroupName, serverName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + /// /// Gets a list of servers in a resource groups. /// diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/SqlManagementClient.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/SqlManagementClient.cs index 4c0f249b7cf1..5062500bd5da 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/SqlManagementClient.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/SqlManagementClient.cs @@ -396,11 +396,6 @@ public partial class SqlManagementClient : ServiceClient, I /// public virtual IInstanceFailoverGroupsOperations InstanceFailoverGroups { get; private set; } - /// - /// Gets the IBackupShortTermRetentionPoliciesOperations. - /// - public virtual IBackupShortTermRetentionPoliciesOperations BackupShortTermRetentionPolicies { get; private set; } - /// /// Gets the ITdeCertificatesOperations. /// @@ -451,11 +446,6 @@ public partial class SqlManagementClient : ServiceClient, I /// public virtual IUsagesOperations Usages { get; private set; } - /// - /// Gets the IManagedInstancesOperations. - /// - public virtual IManagedInstancesOperations ManagedInstances { get; private set; } - /// /// Gets the IPrivateEndpointConnectionsOperations. /// @@ -486,6 +476,16 @@ public partial class SqlManagementClient : ServiceClient, I /// public virtual IManagedInstanceLongTermRetentionPoliciesOperations ManagedInstanceLongTermRetentionPolicies { get; private set; } + /// + /// Gets the IWorkloadGroupsOperations. + /// + public virtual IWorkloadGroupsOperations WorkloadGroups { get; private set; } + + /// + /// Gets the IWorkloadClassifiersOperations. + /// + public virtual IWorkloadClassifiersOperations WorkloadClassifiers { get; private set; } + /// /// Gets the IManagedInstanceOperations. /// @@ -506,6 +506,16 @@ public partial class SqlManagementClient : ServiceClient, I /// public virtual ISyncMembersOperations SyncMembers { get; private set; } + /// + /// Gets the IManagedInstancesOperations. + /// + public virtual IManagedInstancesOperations ManagedInstances { get; private set; } + + /// + /// Gets the IBackupShortTermRetentionPoliciesOperations. + /// + public virtual IBackupShortTermRetentionPoliciesOperations BackupShortTermRetentionPolicies { get; private set; } + /// /// Gets the IManagedDatabaseRestoreDetailsOperations. /// @@ -521,6 +531,11 @@ public partial class SqlManagementClient : ServiceClient, I /// public virtual IServerAzureADOnlyAuthenticationsOperations ServerAzureADOnlyAuthentications { get; private set; } + /// + /// Gets the IImportExportOperations. + /// + public virtual IImportExportOperations ImportExport { get; private set; } + /// /// Gets the IManagedInstanceAzureADOnlyAuthenticationsOperations. /// @@ -792,7 +807,6 @@ private void Initialize() ManagedDatabaseVulnerabilityAssessmentScans = new ManagedDatabaseVulnerabilityAssessmentScansOperations(this); ManagedDatabaseVulnerabilityAssessments = new ManagedDatabaseVulnerabilityAssessmentsOperations(this); InstanceFailoverGroups = new InstanceFailoverGroupsOperations(this); - BackupShortTermRetentionPolicies = new BackupShortTermRetentionPoliciesOperations(this); TdeCertificates = new TdeCertificatesOperations(this); ManagedInstanceTdeCertificates = new ManagedInstanceTdeCertificatesOperations(this); ManagedInstanceKeys = new ManagedInstanceKeysOperations(this); @@ -803,20 +817,24 @@ private void Initialize() ManagedDatabaseSensitivityLabels = new ManagedDatabaseSensitivityLabelsOperations(this); InstancePools = new InstancePoolsOperations(this); Usages = new UsagesOperations(this); - ManagedInstances = new ManagedInstancesOperations(this); PrivateEndpointConnections = new PrivateEndpointConnectionsOperations(this); PrivateLinkResources = new PrivateLinkResourcesOperations(this); Servers = new ServersOperations(this); Capabilities = new CapabilitiesOperations(this); LongTermRetentionManagedInstanceBackups = new LongTermRetentionManagedInstanceBackupsOperations(this); ManagedInstanceLongTermRetentionPolicies = new ManagedInstanceLongTermRetentionPoliciesOperations(this); + WorkloadGroups = new WorkloadGroupsOperations(this); + WorkloadClassifiers = new WorkloadClassifiersOperations(this); ManagedInstanceOperations = new ManagedInstanceOperations(this); ServerAzureADAdministrators = new ServerAzureADAdministratorsOperations(this); SyncGroups = new SyncGroupsOperations(this); SyncMembers = new SyncMembersOperations(this); + ManagedInstances = new ManagedInstancesOperations(this); + BackupShortTermRetentionPolicies = new BackupShortTermRetentionPoliciesOperations(this); ManagedDatabaseRestoreDetails = new ManagedDatabaseRestoreDetailsOperations(this); ManagedDatabases = new ManagedDatabasesOperations(this); ServerAzureADOnlyAuthentications = new ServerAzureADOnlyAuthenticationsOperations(this); + ImportExport = new ImportExportOperations(this); ManagedInstanceAzureADOnlyAuthentications = new ManagedInstanceAzureADOnlyAuthenticationsOperations(this); BaseUri = new System.Uri("https://management.azure.com"); AcceptLanguage = "en-US"; @@ -853,4 +871,4 @@ private void Initialize() DeserializationSettings.Converters.Add(new CloudErrorJsonConverter()); } } -} \ No newline at end of file +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/SyncGroupsOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/SyncGroupsOperations.cs index 9271bf23ee14..71d69dcc0a8f 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/SyncGroupsOperations.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/SyncGroupsOperations.cs @@ -87,7 +87,7 @@ internal SyncGroupsOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2015-05-01-preview"; + string apiVersion = "2019-06-01-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -323,7 +323,7 @@ internal SyncGroupsOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2015-05-01-preview"; + string apiVersion = "2019-06-01-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -561,7 +561,7 @@ internal SyncGroupsOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2015-05-01-preview"; + string apiVersion = "2019-06-01-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -791,7 +791,7 @@ internal SyncGroupsOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2015-05-01-preview"; + string apiVersion = "2019-06-01-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -983,7 +983,7 @@ internal SyncGroupsOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2015-05-01-preview"; + string apiVersion = "2019-06-01-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1178,7 +1178,7 @@ internal SyncGroupsOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2015-05-01-preview"; + string apiVersion = "2019-06-01-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1477,7 +1477,7 @@ internal SyncGroupsOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2015-05-01-preview"; + string apiVersion = "2019-06-01-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1685,7 +1685,7 @@ internal SyncGroupsOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2015-05-01-preview"; + string apiVersion = "2019-06-01-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1887,7 +1887,7 @@ internal SyncGroupsOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2015-05-01-preview"; + string apiVersion = "2019-06-01-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2122,7 +2122,7 @@ internal SyncGroupsOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2015-05-01-preview"; + string apiVersion = "2019-06-01-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2324,7 +2324,7 @@ internal SyncGroupsOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2015-05-01-preview"; + string apiVersion = "2019-06-01-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/SyncMembersOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/SyncMembersOperations.cs index 570159ca7802..0b4acf9c3534 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/SyncMembersOperations.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/SyncMembersOperations.cs @@ -116,7 +116,7 @@ internal SyncMembersOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2015-05-01-preview"; + string apiVersion = "2019-06-01-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -433,7 +433,7 @@ internal SyncMembersOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2015-05-01-preview"; + string apiVersion = "2019-06-01-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -653,7 +653,7 @@ internal SyncMembersOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2015-05-01-preview"; + string apiVersion = "2019-06-01-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -914,7 +914,7 @@ internal SyncMembersOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2015-05-01-preview"; + string apiVersion = "2019-06-01-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1158,7 +1158,7 @@ internal SyncMembersOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2015-05-01-preview"; + string apiVersion = "2019-06-01-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1369,7 +1369,7 @@ internal SyncMembersOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2015-05-01-preview"; + string apiVersion = "2019-06-01-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1595,7 +1595,7 @@ internal SyncMembersOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2015-05-01-preview"; + string apiVersion = "2019-06-01-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/WorkloadClassifiersOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/WorkloadClassifiersOperations.cs new file mode 100644 index 000000000000..3aca3cda1e20 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/WorkloadClassifiersOperations.cs @@ -0,0 +1,1188 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + using System.Net; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + + /// + /// WorkloadClassifiersOperations operations. + /// + internal partial class WorkloadClassifiersOperations : IServiceOperations, IWorkloadClassifiersOperations + { + /// + /// Initializes a new instance of the WorkloadClassifiersOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal WorkloadClassifiersOperations(SqlManagementClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the SqlManagementClient + /// + public SqlManagementClient Client { get; private set; } + + /// + /// Gets a workload classifier + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database. + /// + /// + /// The name of the workload group from which to receive the classifier from. + /// + /// + /// The name of the workload classifier. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string workloadGroupName, string workloadClassifierName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (serverName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "serverName"); + } + if (databaseName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "databaseName"); + } + if (workloadGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "workloadGroupName"); + } + if (workloadClassifierName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "workloadClassifierName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + string apiVersion = "2019-06-01-preview"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("serverName", serverName); + tracingParameters.Add("databaseName", databaseName); + tracingParameters.Add("workloadGroupName", workloadGroupName); + tracingParameters.Add("workloadClassifierName", workloadClassifierName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/workloadGroups/{workloadGroupName}/workloadClassifiers/{workloadClassifierName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); + _url = _url.Replace("{databaseName}", System.Uri.EscapeDataString(databaseName)); + _url = _url.Replace("{workloadGroupName}", System.Uri.EscapeDataString(workloadGroupName)); + _url = _url.Replace("{workloadClassifierName}", System.Uri.EscapeDataString(workloadClassifierName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Creates or updates a workload classifier. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database. + /// + /// + /// The name of the workload group from which to receive the classifier from. + /// + /// + /// The name of the workload classifier to create/update. + /// + /// + /// The properties of the workload classifier. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string workloadGroupName, string workloadClassifierName, WorkloadClassifier parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send Request + AzureOperationResponse _response = await BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, workloadGroupName, workloadClassifierName, parameters, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Deletes a workload classifier. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database. + /// + /// + /// The name of the workload group from which to receive the classifier from. + /// + /// + /// The name of the workload classifier to delete. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task DeleteWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string workloadGroupName, string workloadClassifierName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, workloadGroupName, workloadClassifierName, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Gets the list of workload classifiers for a workload group + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database. + /// + /// + /// The name of the workload group from which to receive the classifiers from. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListByWorkloadGroupWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string workloadGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (serverName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "serverName"); + } + if (databaseName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "databaseName"); + } + if (workloadGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "workloadGroupName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + string apiVersion = "2019-06-01-preview"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("serverName", serverName); + tracingParameters.Add("databaseName", databaseName); + tracingParameters.Add("workloadGroupName", workloadGroupName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListByWorkloadGroup", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/workloadGroups/{workloadGroupName}/workloadClassifiers").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); + _url = _url.Replace("{databaseName}", System.Uri.EscapeDataString(databaseName)); + _url = _url.Replace("{workloadGroupName}", System.Uri.EscapeDataString(workloadGroupName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Creates or updates a workload classifier. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database. + /// + /// + /// The name of the workload group from which to receive the classifier from. + /// + /// + /// The name of the workload classifier to create/update. + /// + /// + /// The properties of the workload classifier. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string workloadGroupName, string workloadClassifierName, WorkloadClassifier parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (serverName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "serverName"); + } + if (databaseName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "databaseName"); + } + if (workloadGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "workloadGroupName"); + } + if (workloadClassifierName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "workloadClassifierName"); + } + if (parameters == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); + } + if (parameters != null) + { + parameters.Validate(); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + string apiVersion = "2019-06-01-preview"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("serverName", serverName); + tracingParameters.Add("databaseName", databaseName); + tracingParameters.Add("workloadGroupName", workloadGroupName); + tracingParameters.Add("workloadClassifierName", workloadClassifierName); + tracingParameters.Add("parameters", parameters); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginCreateOrUpdate", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/workloadGroups/{workloadGroupName}/workloadClassifiers/{workloadClassifierName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); + _url = _url.Replace("{databaseName}", System.Uri.EscapeDataString(databaseName)); + _url = _url.Replace("{workloadGroupName}", System.Uri.EscapeDataString(workloadGroupName)); + _url = _url.Replace("{workloadClassifierName}", System.Uri.EscapeDataString(workloadClassifierName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("PUT"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(parameters != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + // Deserialize Response + if ((int)_statusCode == 201) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Deletes a workload classifier. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database. + /// + /// + /// The name of the workload group from which to receive the classifier from. + /// + /// + /// The name of the workload classifier to delete. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string workloadGroupName, string workloadClassifierName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (serverName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "serverName"); + } + if (databaseName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "databaseName"); + } + if (workloadGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "workloadGroupName"); + } + if (workloadClassifierName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "workloadClassifierName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + string apiVersion = "2019-06-01-preview"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("serverName", serverName); + tracingParameters.Add("databaseName", databaseName); + tracingParameters.Add("workloadGroupName", workloadGroupName); + tracingParameters.Add("workloadClassifierName", workloadClassifierName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginDelete", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/workloadGroups/{workloadGroupName}/workloadClassifiers/{workloadClassifierName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); + _url = _url.Replace("{databaseName}", System.Uri.EscapeDataString(databaseName)); + _url = _url.Replace("{workloadGroupName}", System.Uri.EscapeDataString(workloadGroupName)); + _url = _url.Replace("{workloadClassifierName}", System.Uri.EscapeDataString(workloadClassifierName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("DELETE"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 202 && (int)_statusCode != 204) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Gets the list of workload classifiers for a workload group + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListByWorkloadGroupNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (nextPageLink == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("nextPageLink", nextPageLink); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListByWorkloadGroupNext", tracingParameters); + } + // Construct URL + string _url = "{nextLink}"; + _url = _url.Replace("{nextLink}", nextPageLink); + List _queryParameters = new List(); + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/WorkloadClassifiersOperationsExtensions.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/WorkloadClassifiersOperationsExtensions.cs new file mode 100644 index 000000000000..c8cc02707fd7 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/WorkloadClassifiersOperationsExtensions.cs @@ -0,0 +1,419 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for WorkloadClassifiersOperations. + /// + public static partial class WorkloadClassifiersOperationsExtensions + { + /// + /// Gets a workload classifier + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database. + /// + /// + /// The name of the workload group from which to receive the classifier from. + /// + /// + /// The name of the workload classifier. + /// + public static WorkloadClassifier Get(this IWorkloadClassifiersOperations operations, string resourceGroupName, string serverName, string databaseName, string workloadGroupName, string workloadClassifierName) + { + return operations.GetAsync(resourceGroupName, serverName, databaseName, workloadGroupName, workloadClassifierName).GetAwaiter().GetResult(); + } + + /// + /// Gets a workload classifier + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database. + /// + /// + /// The name of the workload group from which to receive the classifier from. + /// + /// + /// The name of the workload classifier. + /// + /// + /// The cancellation token. + /// + public static async Task GetAsync(this IWorkloadClassifiersOperations operations, string resourceGroupName, string serverName, string databaseName, string workloadGroupName, string workloadClassifierName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, workloadGroupName, workloadClassifierName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Creates or updates a workload classifier. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database. + /// + /// + /// The name of the workload group from which to receive the classifier from. + /// + /// + /// The name of the workload classifier to create/update. + /// + /// + /// The properties of the workload classifier. + /// + public static WorkloadClassifier CreateOrUpdate(this IWorkloadClassifiersOperations operations, string resourceGroupName, string serverName, string databaseName, string workloadGroupName, string workloadClassifierName, WorkloadClassifier parameters) + { + return operations.CreateOrUpdateAsync(resourceGroupName, serverName, databaseName, workloadGroupName, workloadClassifierName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Creates or updates a workload classifier. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database. + /// + /// + /// The name of the workload group from which to receive the classifier from. + /// + /// + /// The name of the workload classifier to create/update. + /// + /// + /// The properties of the workload classifier. + /// + /// + /// The cancellation token. + /// + public static async Task CreateOrUpdateAsync(this IWorkloadClassifiersOperations operations, string resourceGroupName, string serverName, string databaseName, string workloadGroupName, string workloadClassifierName, WorkloadClassifier parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, workloadGroupName, workloadClassifierName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Deletes a workload classifier. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database. + /// + /// + /// The name of the workload group from which to receive the classifier from. + /// + /// + /// The name of the workload classifier to delete. + /// + public static void Delete(this IWorkloadClassifiersOperations operations, string resourceGroupName, string serverName, string databaseName, string workloadGroupName, string workloadClassifierName) + { + operations.DeleteAsync(resourceGroupName, serverName, databaseName, workloadGroupName, workloadClassifierName).GetAwaiter().GetResult(); + } + + /// + /// Deletes a workload classifier. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database. + /// + /// + /// The name of the workload group from which to receive the classifier from. + /// + /// + /// The name of the workload classifier to delete. + /// + /// + /// The cancellation token. + /// + public static async Task DeleteAsync(this IWorkloadClassifiersOperations operations, string resourceGroupName, string serverName, string databaseName, string workloadGroupName, string workloadClassifierName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, workloadGroupName, workloadClassifierName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Gets the list of workload classifiers for a workload group + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database. + /// + /// + /// The name of the workload group from which to receive the classifiers from. + /// + public static IPage ListByWorkloadGroup(this IWorkloadClassifiersOperations operations, string resourceGroupName, string serverName, string databaseName, string workloadGroupName) + { + return operations.ListByWorkloadGroupAsync(resourceGroupName, serverName, databaseName, workloadGroupName).GetAwaiter().GetResult(); + } + + /// + /// Gets the list of workload classifiers for a workload group + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database. + /// + /// + /// The name of the workload group from which to receive the classifiers from. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByWorkloadGroupAsync(this IWorkloadClassifiersOperations operations, string resourceGroupName, string serverName, string databaseName, string workloadGroupName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByWorkloadGroupWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, workloadGroupName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Creates or updates a workload classifier. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database. + /// + /// + /// The name of the workload group from which to receive the classifier from. + /// + /// + /// The name of the workload classifier to create/update. + /// + /// + /// The properties of the workload classifier. + /// + public static WorkloadClassifier BeginCreateOrUpdate(this IWorkloadClassifiersOperations operations, string resourceGroupName, string serverName, string databaseName, string workloadGroupName, string workloadClassifierName, WorkloadClassifier parameters) + { + return operations.BeginCreateOrUpdateAsync(resourceGroupName, serverName, databaseName, workloadGroupName, workloadClassifierName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Creates or updates a workload classifier. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database. + /// + /// + /// The name of the workload group from which to receive the classifier from. + /// + /// + /// The name of the workload classifier to create/update. + /// + /// + /// The properties of the workload classifier. + /// + /// + /// The cancellation token. + /// + public static async Task BeginCreateOrUpdateAsync(this IWorkloadClassifiersOperations operations, string resourceGroupName, string serverName, string databaseName, string workloadGroupName, string workloadClassifierName, WorkloadClassifier parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, workloadGroupName, workloadClassifierName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Deletes a workload classifier. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database. + /// + /// + /// The name of the workload group from which to receive the classifier from. + /// + /// + /// The name of the workload classifier to delete. + /// + public static void BeginDelete(this IWorkloadClassifiersOperations operations, string resourceGroupName, string serverName, string databaseName, string workloadGroupName, string workloadClassifierName) + { + operations.BeginDeleteAsync(resourceGroupName, serverName, databaseName, workloadGroupName, workloadClassifierName).GetAwaiter().GetResult(); + } + + /// + /// Deletes a workload classifier. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database. + /// + /// + /// The name of the workload group from which to receive the classifier from. + /// + /// + /// The name of the workload classifier to delete. + /// + /// + /// The cancellation token. + /// + public static async Task BeginDeleteAsync(this IWorkloadClassifiersOperations operations, string resourceGroupName, string serverName, string databaseName, string workloadGroupName, string workloadClassifierName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, workloadGroupName, workloadClassifierName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Gets the list of workload classifiers for a workload group + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListByWorkloadGroupNext(this IWorkloadClassifiersOperations operations, string nextPageLink) + { + return operations.ListByWorkloadGroupNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Gets the list of workload classifiers for a workload group + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByWorkloadGroupNextAsync(this IWorkloadClassifiersOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByWorkloadGroupNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/WorkloadGroupsOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/WorkloadGroupsOperations.cs new file mode 100644 index 000000000000..186476f74931 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/WorkloadGroupsOperations.cs @@ -0,0 +1,1146 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + using System.Net; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + + /// + /// WorkloadGroupsOperations operations. + /// + internal partial class WorkloadGroupsOperations : IServiceOperations, IWorkloadGroupsOperations + { + /// + /// Initializes a new instance of the WorkloadGroupsOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal WorkloadGroupsOperations(SqlManagementClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the SqlManagementClient + /// + public SqlManagementClient Client { get; private set; } + + /// + /// Gets a workload group + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database. + /// + /// + /// The name of the workload group. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string workloadGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (serverName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "serverName"); + } + if (databaseName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "databaseName"); + } + if (workloadGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "workloadGroupName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + string apiVersion = "2019-06-01-preview"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("serverName", serverName); + tracingParameters.Add("databaseName", databaseName); + tracingParameters.Add("workloadGroupName", workloadGroupName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/workloadGroups/{workloadGroupName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); + _url = _url.Replace("{databaseName}", System.Uri.EscapeDataString(databaseName)); + _url = _url.Replace("{workloadGroupName}", System.Uri.EscapeDataString(workloadGroupName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Creates or updates a workload group. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database. + /// + /// + /// The name of the workload group. + /// + /// + /// The requested workload group state. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string workloadGroupName, WorkloadGroup parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send Request + AzureOperationResponse _response = await BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, workloadGroupName, parameters, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Deletes a workload group. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database. + /// + /// + /// The name of the workload group to delete. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task DeleteWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string workloadGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, workloadGroupName, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Gets the list of workload groups + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListByDatabaseWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (serverName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "serverName"); + } + if (databaseName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "databaseName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + string apiVersion = "2019-06-01-preview"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("serverName", serverName); + tracingParameters.Add("databaseName", databaseName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListByDatabase", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/workloadGroups").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); + _url = _url.Replace("{databaseName}", System.Uri.EscapeDataString(databaseName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Creates or updates a workload group. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database. + /// + /// + /// The name of the workload group. + /// + /// + /// The requested workload group state. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string workloadGroupName, WorkloadGroup parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (serverName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "serverName"); + } + if (databaseName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "databaseName"); + } + if (workloadGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "workloadGroupName"); + } + if (parameters == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); + } + if (parameters != null) + { + parameters.Validate(); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + string apiVersion = "2019-06-01-preview"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("serverName", serverName); + tracingParameters.Add("databaseName", databaseName); + tracingParameters.Add("workloadGroupName", workloadGroupName); + tracingParameters.Add("parameters", parameters); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginCreateOrUpdate", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/workloadGroups/{workloadGroupName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); + _url = _url.Replace("{databaseName}", System.Uri.EscapeDataString(databaseName)); + _url = _url.Replace("{workloadGroupName}", System.Uri.EscapeDataString(workloadGroupName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("PUT"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(parameters != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + // Deserialize Response + if ((int)_statusCode == 201) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Deletes a workload group. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database. + /// + /// + /// The name of the workload group to delete. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string workloadGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (serverName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "serverName"); + } + if (databaseName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "databaseName"); + } + if (workloadGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "workloadGroupName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + string apiVersion = "2019-06-01-preview"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("serverName", serverName); + tracingParameters.Add("databaseName", databaseName); + tracingParameters.Add("workloadGroupName", workloadGroupName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginDelete", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/workloadGroups/{workloadGroupName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); + _url = _url.Replace("{databaseName}", System.Uri.EscapeDataString(databaseName)); + _url = _url.Replace("{workloadGroupName}", System.Uri.EscapeDataString(workloadGroupName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("DELETE"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 202 && (int)_statusCode != 204) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Gets the list of workload groups + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListByDatabaseNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (nextPageLink == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("nextPageLink", nextPageLink); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListByDatabaseNext", tracingParameters); + } + // Construct URL + string _url = "{nextLink}"; + _url = _url.Replace("{nextLink}", nextPageLink); + List _queryParameters = new List(); + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/WorkloadGroupsOperationsExtensions.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/WorkloadGroupsOperationsExtensions.cs new file mode 100644 index 000000000000..0d86adccc315 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/WorkloadGroupsOperationsExtensions.cs @@ -0,0 +1,383 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for WorkloadGroupsOperations. + /// + public static partial class WorkloadGroupsOperationsExtensions + { + /// + /// Gets a workload group + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database. + /// + /// + /// The name of the workload group. + /// + public static WorkloadGroup Get(this IWorkloadGroupsOperations operations, string resourceGroupName, string serverName, string databaseName, string workloadGroupName) + { + return operations.GetAsync(resourceGroupName, serverName, databaseName, workloadGroupName).GetAwaiter().GetResult(); + } + + /// + /// Gets a workload group + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database. + /// + /// + /// The name of the workload group. + /// + /// + /// The cancellation token. + /// + public static async Task GetAsync(this IWorkloadGroupsOperations operations, string resourceGroupName, string serverName, string databaseName, string workloadGroupName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, workloadGroupName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Creates or updates a workload group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database. + /// + /// + /// The name of the workload group. + /// + /// + /// The requested workload group state. + /// + public static WorkloadGroup CreateOrUpdate(this IWorkloadGroupsOperations operations, string resourceGroupName, string serverName, string databaseName, string workloadGroupName, WorkloadGroup parameters) + { + return operations.CreateOrUpdateAsync(resourceGroupName, serverName, databaseName, workloadGroupName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Creates or updates a workload group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database. + /// + /// + /// The name of the workload group. + /// + /// + /// The requested workload group state. + /// + /// + /// The cancellation token. + /// + public static async Task CreateOrUpdateAsync(this IWorkloadGroupsOperations operations, string resourceGroupName, string serverName, string databaseName, string workloadGroupName, WorkloadGroup parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, workloadGroupName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Deletes a workload group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database. + /// + /// + /// The name of the workload group to delete. + /// + public static void Delete(this IWorkloadGroupsOperations operations, string resourceGroupName, string serverName, string databaseName, string workloadGroupName) + { + operations.DeleteAsync(resourceGroupName, serverName, databaseName, workloadGroupName).GetAwaiter().GetResult(); + } + + /// + /// Deletes a workload group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database. + /// + /// + /// The name of the workload group to delete. + /// + /// + /// The cancellation token. + /// + public static async Task DeleteAsync(this IWorkloadGroupsOperations operations, string resourceGroupName, string serverName, string databaseName, string workloadGroupName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, workloadGroupName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Gets the list of workload groups + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database. + /// + public static IPage ListByDatabase(this IWorkloadGroupsOperations operations, string resourceGroupName, string serverName, string databaseName) + { + return operations.ListByDatabaseAsync(resourceGroupName, serverName, databaseName).GetAwaiter().GetResult(); + } + + /// + /// Gets the list of workload groups + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByDatabaseAsync(this IWorkloadGroupsOperations operations, string resourceGroupName, string serverName, string databaseName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByDatabaseWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Creates or updates a workload group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database. + /// + /// + /// The name of the workload group. + /// + /// + /// The requested workload group state. + /// + public static WorkloadGroup BeginCreateOrUpdate(this IWorkloadGroupsOperations operations, string resourceGroupName, string serverName, string databaseName, string workloadGroupName, WorkloadGroup parameters) + { + return operations.BeginCreateOrUpdateAsync(resourceGroupName, serverName, databaseName, workloadGroupName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Creates or updates a workload group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database. + /// + /// + /// The name of the workload group. + /// + /// + /// The requested workload group state. + /// + /// + /// The cancellation token. + /// + public static async Task BeginCreateOrUpdateAsync(this IWorkloadGroupsOperations operations, string resourceGroupName, string serverName, string databaseName, string workloadGroupName, WorkloadGroup parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, workloadGroupName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Deletes a workload group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database. + /// + /// + /// The name of the workload group to delete. + /// + public static void BeginDelete(this IWorkloadGroupsOperations operations, string resourceGroupName, string serverName, string databaseName, string workloadGroupName) + { + operations.BeginDeleteAsync(resourceGroupName, serverName, databaseName, workloadGroupName).GetAwaiter().GetResult(); + } + + /// + /// Deletes a workload group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database. + /// + /// + /// The name of the workload group to delete. + /// + /// + /// The cancellation token. + /// + public static async Task BeginDeleteAsync(this IWorkloadGroupsOperations operations, string resourceGroupName, string serverName, string databaseName, string workloadGroupName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, workloadGroupName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Gets the list of workload groups + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListByDatabaseNext(this IWorkloadGroupsOperations operations, string nextPageLink) + { + return operations.ListByDatabaseNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Gets the list of workload groups + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByDatabaseNextAsync(this IWorkloadGroupsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByDatabaseNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/tests/ElasticJobAgentScenarioTests.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/tests/ElasticJobAgentScenarioTests.cs index c316020a04c3..7136a2d1d3da 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/tests/ElasticJobAgentScenarioTests.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/tests/ElasticJobAgentScenarioTests.cs @@ -419,7 +419,7 @@ public void TestCreateUpdateDropJobStep() TableName = "tbl", SubscriptionId = new Guid(), Credential = credential.Id, - Type = JobTargetType.SqlDatabase + Type = JobStepOutputType.SqlDatabase } }); diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/tests/ImportExportScenarioTests.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/tests/ImportExportScenarioTests.cs index f7ce4021dda3..381692dc2ada 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/tests/ImportExportScenarioTests.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/tests/ImportExportScenarioTests.cs @@ -86,11 +86,11 @@ public void TestImportExport(bool preexistingDatabase, string testName) storageContainerInfo.StorageContainerUri, dbName); // Export database to bacpac - sqlClient.Databases.Export(resourceGroup.Name, server.Name, dbName, new ExportRequest() + sqlClient.Databases.Export(resourceGroup.Name, server.Name, dbName, new ExportDatabaseDefinition() { AdministratorLogin = login, AdministratorLoginPassword = password, - AuthenticationType = AuthenticationType.SQL, + AuthenticationType = AuthenticationType.SQL.ToString(), StorageKey = storageContainerInfo.StorageAccountKey, StorageKeyType = StorageKeyType.StorageAccessKey, StorageUri = exportBacpacLink @@ -100,11 +100,11 @@ public void TestImportExport(bool preexistingDatabase, string testName) if (preexistingDatabase) { // Import bacpac to existing database - sqlClient.Databases.CreateImportOperation(resourceGroup.Name, server.Name, dbName2, new ImportExtensionRequest() + sqlClient.ImportExport.Import(resourceGroup.Name, server.Name, dbName2, new ImportExistingDatabaseDefinition() { AdministratorLogin = login, AdministratorLoginPassword = password, - AuthenticationType = AuthenticationType.SQL, + AuthenticationType = AuthenticationType.SQL.ToString(), StorageKey = storageContainerInfo.StorageAccountKey, StorageKeyType = StorageKeyType.StorageAccessKey, StorageUri = exportBacpacLink @@ -112,11 +112,11 @@ public void TestImportExport(bool preexistingDatabase, string testName) } else { - sqlClient.Databases.Import(resourceGroup.Name, server.Name, new ImportRequest() + sqlClient.Servers.ImportDatabase(resourceGroup.Name, server.Name, new ImportNewDatabaseDefinition() { AdministratorLogin = login, AdministratorLoginPassword = password, - AuthenticationType = AuthenticationType.SQL, + AuthenticationType = AuthenticationType.SQL.ToString(), StorageKey = storageContainerInfo.StorageAccountKey, StorageKeyType = StorageKeyType.StorageAccessKey, StorageUri = exportBacpacLink, diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/tests/ManagedInstanceLongTermRetentionTests.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/tests/ManagedInstanceLongTermRetentionTests.cs index b902c195955c..f583d8edd8b9 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/tests/ManagedInstanceLongTermRetentionTests.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/tests/ManagedInstanceLongTermRetentionTests.cs @@ -105,7 +105,7 @@ public void TestManagedIntanceLongTermRetentionCrud() parameters: new ManagedDatabase { Location = locationName, - CreateMode = CreateMode.RestoreLongTermRetentionBackup, + CreateMode = ManagedDatabaseCreateMode.RestoreLongTermRetentionBackup, LongTermRetentionBackupResourceId = backup.Id }); } @@ -155,7 +155,7 @@ public void TestManagedInstanceLongTermRetentionResourceGroupBasedCrud() parameters: new ManagedDatabase { Location = locationName, - CreateMode = CreateMode.RestoreLongTermRetentionBackup, + CreateMode = ManagedDatabaseCreateMode.RestoreLongTermRetentionBackup, LongTermRetentionBackupResourceId = backup.Id }); diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/tests/Utilities/TestEnvironmentUtilities.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/tests/Utilities/TestEnvironmentUtilities.cs index f9b70626368f..25ce34a60f6f 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/tests/Utilities/TestEnvironmentUtilities.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/tests/Utilities/TestEnvironmentUtilities.cs @@ -26,7 +26,8 @@ public static string DefaultLocation { get { - return GetValueFromEnvironment("DefaultLocation"); + return "WestCentralUs"; + ////return GetValueFromEnvironment("DefaultLocation"); } } public static string DefaultLocationId From bafdb515fe30f9e38b3533f44e94cac216c2eb1f Mon Sep 17 00:00:00 2001 From: Brandon Greenwood Date: Wed, 2 Sep 2020 21:35:03 -0700 Subject: [PATCH 02/19] Add SessionRecords for new IE APIs --- .../TestImportExistingDatabase.json | 2595 ++++++++++++++++ .../SessionRecords/TestImportNewDatabase.json | 2637 +++++++++++++++++ 2 files changed, 5232 insertions(+) create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/tests/SessionRecords/TestImportExistingDatabase.json create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/tests/SessionRecords/TestImportNewDatabase.json diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/tests/SessionRecords/TestImportExistingDatabase.json b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/tests/SessionRecords/TestImportExistingDatabase.json new file mode 100644 index 000000000000..db3a62544b97 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/tests/SessionRecords/TestImportExistingDatabase.json @@ -0,0 +1,2595 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourcegroups/sqlcrudtest-1849?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTE4NDk/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"WestCentralUs\",\r\n \"tags\": {\r\n \"sqlcrudtest-1849\": \"2020-09-03 01:13:02Z\"\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "6f70c1dc-6997-4af0-b1ff-c48565ae0e01" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "102" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 03 Sep 2020 01:13:03 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-request-id": [ + "b08b9d96-cb4b-4817-8fcb-292480ac4aaa" + ], + "x-ms-correlation-request-id": [ + "b08b9d96-cb4b-4817-8fcb-292480ac4aaa" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200903T011304Z:b08b9d96-cb4b-4817-8fcb-292480ac4aaa" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "243" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-1849\",\r\n \"name\": \"sqlcrudtest-1849\",\r\n \"location\": \"westcentralus\",\r\n \"tags\": {\r\n \"sqlcrudtest-1849\": \"2020-09-03 01:13:02Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-1849/providers/Microsoft.Sql/servers/sqlcrudtest-4360?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTE4NDkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC00MzYwP2FwaS12ZXJzaW9uPTIwMTktMDYtMDEtcHJldmlldw==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"administratorLogin\": \"dummylogin\",\r\n \"administratorLoginPassword\": \"Un53cuRE!\",\r\n \"version\": \"12.0\"\r\n },\r\n \"location\": \"WestCentralUs\",\r\n \"tags\": {}\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "628dc83c-6135-4ff6-9e7e-cc9495db84d2" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "187" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 03 Sep 2020 01:13:07 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-1849/providers/Microsoft.Sql/locations/westcentralus/serverOperationResults/efb817c3-662a-4aff-b10b-cfbdecc5f2a2?api-version=2019-06-01-preview" + ], + "Retry-After": [ + "1" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-1849/providers/Microsoft.Sql/locations/westcentralus/serverAzureAsyncOperation/efb817c3-662a-4aff-b10b-cfbdecc5f2a2?api-version=2019-06-01-preview" + ], + "x-ms-request-id": [ + "efb817c3-662a-4aff-b10b-cfbdecc5f2a2" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1196" + ], + "x-ms-correlation-request-id": [ + "c47fbb58-05c8-43dd-81c0-ca356302c3f9" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200903T011307Z:c47fbb58-05c8-43dd-81c0-ca356302c3f9" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "72" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"UpsertLogicalServer\",\r\n \"startTime\": \"2020-09-03T01:13:07.1Z\"\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-1849/providers/Microsoft.Sql/locations/westcentralus/serverAzureAsyncOperation/efb817c3-662a-4aff-b10b-cfbdecc5f2a2?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTE4NDkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9lZmI4MTdjMy02NjJhLTRhZmYtYjEwYi1jZmJkZWNjNWYyYTI/YXBpLXZlcnNpb249MjAxOS0wNi0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 03 Sep 2020 01:13:08 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "1" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "5639f6d3-6a17-46b8-9d1b-e4c968ad7440" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11967" + ], + "x-ms-correlation-request-id": [ + "76c9e2e1-b76a-462b-84ab-e2f9cd12e8ae" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200903T011308Z:76c9e2e1-b76a-462b-84ab-e2f9cd12e8ae" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "106" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"efb817c3-662a-4aff-b10b-cfbdecc5f2a2\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T01:13:07.1Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-1849/providers/Microsoft.Sql/locations/westcentralus/serverAzureAsyncOperation/efb817c3-662a-4aff-b10b-cfbdecc5f2a2?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTE4NDkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9lZmI4MTdjMy02NjJhLTRhZmYtYjEwYi1jZmJkZWNjNWYyYTI/YXBpLXZlcnNpb249MjAxOS0wNi0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 03 Sep 2020 01:13:09 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "1" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "3d4b6e15-dc7c-4643-942d-a287e95d0c7f" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11966" + ], + "x-ms-correlation-request-id": [ + "4e13ff34-6318-4686-9078-ede9c8408b00" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200903T011309Z:4e13ff34-6318-4686-9078-ede9c8408b00" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "106" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"efb817c3-662a-4aff-b10b-cfbdecc5f2a2\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T01:13:07.1Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-1849/providers/Microsoft.Sql/locations/westcentralus/serverAzureAsyncOperation/efb817c3-662a-4aff-b10b-cfbdecc5f2a2?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTE4NDkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9lZmI4MTdjMy02NjJhLTRhZmYtYjEwYi1jZmJkZWNjNWYyYTI/YXBpLXZlcnNpb249MjAxOS0wNi0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 03 Sep 2020 01:13:10 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "1" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "26a9c125-6cdc-4975-aabb-b08e09446e7d" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11965" + ], + "x-ms-correlation-request-id": [ + "04ea166f-4038-4a93-b445-5a5bf52c495b" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200903T011310Z:04ea166f-4038-4a93-b445-5a5bf52c495b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "106" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"efb817c3-662a-4aff-b10b-cfbdecc5f2a2\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T01:13:07.1Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-1849/providers/Microsoft.Sql/locations/westcentralus/serverAzureAsyncOperation/efb817c3-662a-4aff-b10b-cfbdecc5f2a2?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTE4NDkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9lZmI4MTdjMy02NjJhLTRhZmYtYjEwYi1jZmJkZWNjNWYyYTI/YXBpLXZlcnNpb249MjAxOS0wNi0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 03 Sep 2020 01:13:11 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "1" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "b76be0dc-8fb8-4eb6-8b81-badd5ada1c06" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11964" + ], + "x-ms-correlation-request-id": [ + "ca80dd1d-50a1-4f98-91fc-9965aa56ed87" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200903T011311Z:ca80dd1d-50a1-4f98-91fc-9965aa56ed87" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "106" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"efb817c3-662a-4aff-b10b-cfbdecc5f2a2\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T01:13:07.1Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-1849/providers/Microsoft.Sql/locations/westcentralus/serverAzureAsyncOperation/efb817c3-662a-4aff-b10b-cfbdecc5f2a2?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTE4NDkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9lZmI4MTdjMy02NjJhLTRhZmYtYjEwYi1jZmJkZWNjNWYyYTI/YXBpLXZlcnNpb249MjAxOS0wNi0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 03 Sep 2020 01:13:13 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "20" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "9dd69ffa-8db9-4186-98a9-508411bbdcd0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11963" + ], + "x-ms-correlation-request-id": [ + "0c3c78f5-ea1d-4a24-8597-d9f89e4c0a11" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200903T011313Z:0c3c78f5-ea1d-4a24-8597-d9f89e4c0a11" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "106" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"efb817c3-662a-4aff-b10b-cfbdecc5f2a2\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T01:13:07.1Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-1849/providers/Microsoft.Sql/locations/westcentralus/serverAzureAsyncOperation/efb817c3-662a-4aff-b10b-cfbdecc5f2a2?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTE4NDkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9lZmI4MTdjMy02NjJhLTRhZmYtYjEwYi1jZmJkZWNjNWYyYTI/YXBpLXZlcnNpb249MjAxOS0wNi0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 03 Sep 2020 01:13:32 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "20" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "6556b53d-6443-4ab1-ade1-022552feced1" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11962" + ], + "x-ms-correlation-request-id": [ + "80881f59-0054-4a89-bff5-5ca0d71aab66" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200903T011333Z:80881f59-0054-4a89-bff5-5ca0d71aab66" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "106" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"efb817c3-662a-4aff-b10b-cfbdecc5f2a2\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T01:13:07.1Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-1849/providers/Microsoft.Sql/locations/westcentralus/serverAzureAsyncOperation/efb817c3-662a-4aff-b10b-cfbdecc5f2a2?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTE4NDkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9lZmI4MTdjMy02NjJhLTRhZmYtYjEwYi1jZmJkZWNjNWYyYTI/YXBpLXZlcnNpb249MjAxOS0wNi0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 03 Sep 2020 01:13:52 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "dbf6f2b8-1c34-4604-8dac-127318ab0408" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11961" + ], + "x-ms-correlation-request-id": [ + "2265cab6-6d64-4530-874a-390c5f39cd7c" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200903T011353Z:2265cab6-6d64-4530-874a-390c5f39cd7c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "105" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"efb817c3-662a-4aff-b10b-cfbdecc5f2a2\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2020-09-03T01:13:07.1Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-1849/providers/Microsoft.Sql/servers/sqlcrudtest-4360?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTE4NDkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC00MzYwP2FwaS12ZXJzaW9uPTIwMTktMDYtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 03 Sep 2020 01:13:52 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "76fc1904-474a-450c-99ed-d76b5892217d" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11960" + ], + "x-ms-correlation-request-id": [ + "19553e7a-22bb-48a2-a827-0d8ebd7e8e01" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200903T011353Z:19553e7a-22bb-48a2-a827-0d8ebd7e8e01" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "463" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"kind\": \"v12.0\",\r\n \"properties\": {\r\n \"administratorLogin\": \"dummylogin\",\r\n \"version\": \"12.0\",\r\n \"state\": \"Ready\",\r\n \"fullyQualifiedDomainName\": \"sqlcrudtest-4360.database.windows.net\",\r\n \"privateEndpointConnections\": [],\r\n \"publicNetworkAccess\": \"Enabled\"\r\n },\r\n \"location\": \"westcentralus\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-1849/providers/Microsoft.Sql/servers/sqlcrudtest-4360\",\r\n \"name\": \"sqlcrudtest-4360\",\r\n \"type\": \"Microsoft.Sql/servers\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-1849/providers/Microsoft.Sql/servers/sqlcrudtest-4360/firewallRules/sqlcrudtest-9203?api-version=2014-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTE4NDkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC00MzYwL2ZpcmV3YWxsUnVsZXMvc3FsY3J1ZHRlc3QtOTIwMz9hcGktdmVyc2lvbj0yMDE0LTA0LTAx", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"startIpAddress\": \"0.0.0.0\",\r\n \"endIpAddress\": \"255.255.255.255\"\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "a3d30698-6e58-4b33-92d6-422762e94e5b" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "101" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Thu, 03 Sep 2020 01:13:53 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "dd79de67-b099-4ba9-9b14-f2280ff007b3" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Preference-Applied": [ + "return-content" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1195" + ], + "x-ms-correlation-request-id": [ + "72b85a4d-2871-47d0-a141-cac616cf9284" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200903T011354Z:72b85a4d-2871-47d0-a141-cac616cf9284" + ], + "Content-Length": [ + "362" + ], + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-1849/providers/Microsoft.Sql/servers/sqlcrudtest-4360/firewallRules/sqlcrudtest-9203\",\r\n \"name\": \"sqlcrudtest-9203\",\r\n \"type\": \"Microsoft.Sql/servers/firewallRules\",\r\n \"location\": \"West Central US\",\r\n \"kind\": \"v12.0\",\r\n \"properties\": {\r\n \"startIpAddress\": \"0.0.0.0\",\r\n \"endIpAddress\": \"255.255.255.255\"\r\n }\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-1849/providers/Microsoft.Sql/servers/sqlcrudtest-4360/databases/sqlcrudtest-9607?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTE4NDkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC00MzYwL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC05NjA3P2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"westcentralus\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "b2d015e8-e15a-4bf0-b14d-4ef48dcfce84" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "35" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 03 Sep 2020 01:13:54 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-1849/providers/Microsoft.Sql/locations/westcentralus/databaseOperationResults/f6415834-d3ae-4839-a319-9104245efa9d?api-version=2017-10-01-preview" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-1849/providers/Microsoft.Sql/locations/westcentralus/databaseAzureAsyncOperation/f6415834-d3ae-4839-a319-9104245efa9d?api-version=2017-10-01-preview" + ], + "x-ms-request-id": [ + "f6415834-d3ae-4839-a319-9104245efa9d" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1194" + ], + "x-ms-correlation-request-id": [ + "8d9d8c44-b372-424a-9879-6fec22e17bbc" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200903T011355Z:8d9d8c44-b372-424a-9879-6fec22e17bbc" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "75" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2020-09-03T01:13:54.99Z\"\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-1849/providers/Microsoft.Storage/storageAccounts/sqlcrudtest785?api-version=2017-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTE4NDkvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9zcWxjcnVkdGVzdDc4NT9hcGktdmVyc2lvbj0yMDE3LTA2LTAx", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\"\r\n },\r\n \"kind\": \"BlobStorage\",\r\n \"location\": \"westcentralus\",\r\n \"properties\": {\r\n \"accessTier\": \"Cool\"\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "95219b52-0832-4272-b596-951090ee14b5" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Storage.StorageManagementClient/6.5.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "158" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 03 Sep 2020 01:13:55 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Storage/locations/westcentralus/asyncoperations/c819b74b-70c0-4b45-beb8-52a44963bf10?monitor=true&api-version=2017-06-01" + ], + "Retry-After": [ + "17" + ], + "Server": [ + "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "c819b74b-70c0-4b45-beb8-52a44963bf10" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-correlation-request-id": [ + "27499443-7ff8-432c-a713-ffde4641d9b8" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200903T011356Z:27499443-7ff8-432c-a713-ffde4641d9b8" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "0" + ], + "Content-Type": [ + "text/plain; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-1849/providers/Microsoft.Sql/locations/westcentralus/databaseAzureAsyncOperation/f6415834-d3ae-4839-a319-9104245efa9d?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTE4NDkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2Y2NDE1ODM0LWQzYWUtNDgzOS1hMzE5LTkxMDQyNDVlZmE5ZD9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 03 Sep 2020 01:14:09 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "b8f3f44f-0643-4f67-aad0-b473b2d2749e" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11959" + ], + "x-ms-correlation-request-id": [ + "421c7c8e-04f5-41d6-94f8-0f12f6319baf" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200903T011410Z:421c7c8e-04f5-41d6-94f8-0f12f6319baf" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"f6415834-d3ae-4839-a319-9104245efa9d\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T01:13:54.99Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-1849/providers/Microsoft.Sql/locations/westcentralus/databaseAzureAsyncOperation/f6415834-d3ae-4839-a319-9104245efa9d?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTE4NDkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2Y2NDE1ODM0LWQzYWUtNDgzOS1hMzE5LTkxMDQyNDVlZmE5ZD9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 03 Sep 2020 01:14:25 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "bbcaea8e-7e1c-4b3f-b62c-02219244d1cc" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11958" + ], + "x-ms-correlation-request-id": [ + "86f06210-29de-4c68-b384-f8dfadf5b965" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200903T011425Z:86f06210-29de-4c68-b384-f8dfadf5b965" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"f6415834-d3ae-4839-a319-9104245efa9d\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T01:13:54.99Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-1849/providers/Microsoft.Sql/locations/westcentralus/databaseAzureAsyncOperation/f6415834-d3ae-4839-a319-9104245efa9d?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTE4NDkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2Y2NDE1ODM0LWQzYWUtNDgzOS1hMzE5LTkxMDQyNDVlZmE5ZD9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 03 Sep 2020 01:14:40 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "90a3a356-b863-4b29-8204-ba717f2e4f15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11957" + ], + "x-ms-correlation-request-id": [ + "f4a30a61-4459-4067-8f98-59995c54a8c3" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200903T011440Z:f4a30a61-4459-4067-8f98-59995c54a8c3" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "106" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"f6415834-d3ae-4839-a319-9104245efa9d\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2020-09-03T01:13:54.99Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Storage/locations/westcentralus/asyncoperations/c819b74b-70c0-4b45-beb8-52a44963bf10?monitor=true&api-version=2017-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZS9sb2NhdGlvbnMvd2VzdGNlbnRyYWx1cy9hc3luY29wZXJhdGlvbnMvYzgxOWI3NGItNzBjMC00YjQ1LWJlYjgtNTJhNDQ5NjNiZjEwP21vbml0b3I9dHJ1ZSZhcGktdmVyc2lvbj0yMDE3LTA2LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Storage.StorageManagementClient/6.5.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 03 Sep 2020 01:14:13 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "8693ca6a-ddc0-49fa-b8f3-2750415d59ad" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11999" + ], + "x-ms-correlation-request-id": [ + "91db115b-9b5f-447d-8e6d-37063923347e" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200903T011413Z:91db115b-9b5f-447d-8e6d-37063923347e" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "976" + ], + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"kind\": \"BlobStorage\",\r\n \"id\": \"/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-1849/providers/Microsoft.Storage/storageAccounts/sqlcrudtest785\",\r\n \"name\": \"sqlcrudtest785\",\r\n \"type\": \"Microsoft.Storage/storageAccounts\",\r\n \"location\": \"westcentralus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"networkAcls\": {\r\n \"bypass\": \"AzureServices\",\r\n \"virtualNetworkRules\": [],\r\n \"ipRules\": [],\r\n \"defaultAction\": \"Allow\"\r\n },\r\n \"supportsHttpsTrafficOnly\": false,\r\n \"encryption\": {\r\n \"services\": {\r\n \"file\": {\r\n \"enabled\": true,\r\n \"lastEnabledTime\": \"2020-09-03T01:13:56.1956Z\"\r\n },\r\n \"blob\": {\r\n \"enabled\": true,\r\n \"lastEnabledTime\": \"2020-09-03T01:13:56.1956Z\"\r\n }\r\n },\r\n \"keySource\": \"Microsoft.Storage\"\r\n },\r\n \"accessTier\": \"Cool\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"creationTime\": \"2020-09-03T01:13:56.1330892Z\",\r\n \"primaryEndpoints\": {\r\n \"blob\": \"https://sqlcrudtest785.blob.core.windows.net/\",\r\n \"table\": \"https://sqlcrudtest785.table.core.windows.net/\"\r\n },\r\n \"primaryLocation\": \"westcentralus\",\r\n \"statusOfPrimary\": \"available\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-1849/providers/Microsoft.Storage/storageAccounts/sqlcrudtest785/listKeys?api-version=2017-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTE4NDkvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9zcWxjcnVkdGVzdDc4NS9saXN0S2V5cz9hcGktdmVyc2lvbj0yMDE3LTA2LTAx", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "845f459b-a8ca-48e8-8738-f1ac62e77792" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Storage.StorageManagementClient/6.5.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 03 Sep 2020 01:14:13 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "f04b23c7-beb8-443c-91bd-3dec3bc58b63" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ + "11999" + ], + "x-ms-correlation-request-id": [ + "c0fc32ee-d791-4038-aa7a-fa3c8f7be0ba" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200903T011413Z:c0fc32ee-d791-4038-aa7a-fa3c8f7be0ba" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "288" + ], + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"keys\": [\r\n {\r\n \"keyName\": \"key1\",\r\n \"value\": \"R6v6QBTyOrS4AIj223IfcYZNgplw48fnz4s+7pP22rlRxECjPteeDnDxV9VR34ZBqGvxSyGnBfSVjXlxajO65Q==\",\r\n \"permissions\": \"FULL\"\r\n },\r\n {\r\n \"keyName\": \"key2\",\r\n \"value\": \"BTSgGInCBE3EpG9it4UsSsGXXlItHgpGTS5UWNu8tyEuKUyI+qBHREh38z4YR4lPzKhQ2aT859eLVMu8vG8zTw==\",\r\n \"permissions\": \"FULL\"\r\n }\r\n ]\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-1849/providers/Microsoft.Sql/servers/sqlcrudtest-4360/databases/sqlcrudtest-9607?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTE4NDkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC00MzYwL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC05NjA3P2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 03 Sep 2020 01:14:40 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "a9b5b0aa-bc45-4a15-a078-d62bd0f6d4e6" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11956" + ], + "x-ms-correlation-request-id": [ + "0218d5b8-19c9-4657-be08-35684a25f784" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200903T011440Z:0218d5b8-19c9-4657-be08-35684a25f784" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "998" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"GP_Gen5\",\r\n \"tier\": \"GeneralPurpose\",\r\n \"family\": \"Gen5\",\r\n \"capacity\": 2\r\n },\r\n \"kind\": \"v12.0,user,vcore\",\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": 34359738368,\r\n \"status\": \"Online\",\r\n \"databaseId\": \"1844e1ba-aeaa-4018-9a0c-a851e73e02eb\",\r\n \"creationDate\": \"2020-09-03T01:14:28.977Z\",\r\n \"currentServiceObjectiveName\": \"GP_Gen5_2\",\r\n \"requestedServiceObjectiveName\": \"GP_Gen5_2\",\r\n \"defaultSecondaryLocation\": \"westus2\",\r\n \"catalogCollation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"zoneRedundant\": false,\r\n \"licenseType\": \"LicenseIncluded\",\r\n \"maxLogSizeBytes\": 10307502080,\r\n \"earliestRestoreDate\": \"2020-09-03T01:44:28.977Z\",\r\n \"readScale\": \"Disabled\",\r\n \"readReplicaCount\": 0,\r\n \"currentSku\": {\r\n \"name\": \"GP_Gen5\",\r\n \"tier\": \"GeneralPurpose\",\r\n \"family\": \"Gen5\",\r\n \"capacity\": 2\r\n }\r\n },\r\n \"location\": \"westcentralus\",\r\n \"id\": \"/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-1849/providers/Microsoft.Sql/servers/sqlcrudtest-4360/databases/sqlcrudtest-9607\",\r\n \"name\": \"sqlcrudtest-9607\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-1849/providers/Microsoft.Sql/servers/sqlcrudtest-4360/databases/sqlcrudtest-6582?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTE4NDkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC00MzYwL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC02NTgyP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"westcentralus\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "2b8c3569-9f19-4d82-a1b3-cbdbf1cb2978" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "35" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 03 Sep 2020 01:14:41 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-1849/providers/Microsoft.Sql/locations/westcentralus/databaseOperationResults/84229854-3dcc-4351-9f20-2977d801603e?api-version=2017-10-01-preview" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-1849/providers/Microsoft.Sql/locations/westcentralus/databaseAzureAsyncOperation/84229854-3dcc-4351-9f20-2977d801603e?api-version=2017-10-01-preview" + ], + "x-ms-request-id": [ + "84229854-3dcc-4351-9f20-2977d801603e" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1193" + ], + "x-ms-correlation-request-id": [ + "e8e53faf-5516-4658-9195-4f2cf3ab53c1" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200903T011441Z:e8e53faf-5516-4658-9195-4f2cf3ab53c1" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "75" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2020-09-03T01:14:41.68Z\"\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-1849/providers/Microsoft.Sql/locations/westcentralus/databaseAzureAsyncOperation/84229854-3dcc-4351-9f20-2977d801603e?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTE4NDkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzg0MjI5ODU0LTNkY2MtNDM1MS05ZjIwLTI5NzdkODAxNjAzZT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 03 Sep 2020 01:14:56 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "4f4fc414-5d9d-46f6-aaed-f0e1f6956c82" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11955" + ], + "x-ms-correlation-request-id": [ + "d827ee5f-6174-46fe-9d16-18b2376d27a9" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200903T011456Z:d827ee5f-6174-46fe-9d16-18b2376d27a9" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"84229854-3dcc-4351-9f20-2977d801603e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T01:14:41.68Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-1849/providers/Microsoft.Sql/locations/westcentralus/databaseAzureAsyncOperation/84229854-3dcc-4351-9f20-2977d801603e?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTE4NDkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzg0MjI5ODU0LTNkY2MtNDM1MS05ZjIwLTI5NzdkODAxNjAzZT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 03 Sep 2020 01:15:11 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "a76f1f2c-f002-410e-aa13-5ebbb3a0debd" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11954" + ], + "x-ms-correlation-request-id": [ + "b7c4f94d-46fd-4035-bfdd-f20c142c84a9" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200903T011512Z:b7c4f94d-46fd-4035-bfdd-f20c142c84a9" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"84229854-3dcc-4351-9f20-2977d801603e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T01:14:41.68Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-1849/providers/Microsoft.Sql/locations/westcentralus/databaseAzureAsyncOperation/84229854-3dcc-4351-9f20-2977d801603e?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTE4NDkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzg0MjI5ODU0LTNkY2MtNDM1MS05ZjIwLTI5NzdkODAxNjAzZT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 03 Sep 2020 01:15:26 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "58b889c5-e0ec-41f3-b866-b12fe8d5ecfe" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11953" + ], + "x-ms-correlation-request-id": [ + "737466e6-4962-4056-b0b6-f3b5ce24c9ee" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200903T011527Z:737466e6-4962-4056-b0b6-f3b5ce24c9ee" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "106" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"84229854-3dcc-4351-9f20-2977d801603e\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2020-09-03T01:14:41.68Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-1849/providers/Microsoft.Sql/servers/sqlcrudtest-4360/databases/sqlcrudtest-6582?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTE4NDkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC00MzYwL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC02NTgyP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 03 Sep 2020 01:15:26 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "a3a4b528-5838-4475-8327-a70760d9614d" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11952" + ], + "x-ms-correlation-request-id": [ + "83bf4357-da2e-4a3f-9fd3-1648517447bf" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200903T011527Z:83bf4357-da2e-4a3f-9fd3-1648517447bf" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "998" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"GP_Gen5\",\r\n \"tier\": \"GeneralPurpose\",\r\n \"family\": \"Gen5\",\r\n \"capacity\": 2\r\n },\r\n \"kind\": \"v12.0,user,vcore\",\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": 34359738368,\r\n \"status\": \"Online\",\r\n \"databaseId\": \"37b8873e-1d47-4608-8433-1fe48e09be38\",\r\n \"creationDate\": \"2020-09-03T01:15:14.867Z\",\r\n \"currentServiceObjectiveName\": \"GP_Gen5_2\",\r\n \"requestedServiceObjectiveName\": \"GP_Gen5_2\",\r\n \"defaultSecondaryLocation\": \"westus2\",\r\n \"catalogCollation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"zoneRedundant\": false,\r\n \"licenseType\": \"LicenseIncluded\",\r\n \"maxLogSizeBytes\": 10307502080,\r\n \"earliestRestoreDate\": \"2020-09-03T01:45:14.867Z\",\r\n \"readScale\": \"Disabled\",\r\n \"readReplicaCount\": 0,\r\n \"currentSku\": {\r\n \"name\": \"GP_Gen5\",\r\n \"tier\": \"GeneralPurpose\",\r\n \"family\": \"Gen5\",\r\n \"capacity\": 2\r\n }\r\n },\r\n \"location\": \"westcentralus\",\r\n \"id\": \"/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-1849/providers/Microsoft.Sql/servers/sqlcrudtest-4360/databases/sqlcrudtest-6582\",\r\n \"name\": \"sqlcrudtest-6582\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-1849/providers/Microsoft.Sql/servers/sqlcrudtest-4360/databases/sqlcrudtest-6582?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTE4NDkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC00MzYwL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC02NTgyP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "8ae2d97b-e323-4109-8637-f580d946533c" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 03 Sep 2020 01:15:26 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "74435cbc-de43-4143-935a-91f56c1a958b" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11951" + ], + "x-ms-correlation-request-id": [ + "13d23fa9-5111-4ca8-b840-ca8dbf1f9726" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200903T011527Z:13d23fa9-5111-4ca8-b840-ca8dbf1f9726" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "998" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"GP_Gen5\",\r\n \"tier\": \"GeneralPurpose\",\r\n \"family\": \"Gen5\",\r\n \"capacity\": 2\r\n },\r\n \"kind\": \"v12.0,user,vcore\",\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": 34359738368,\r\n \"status\": \"Online\",\r\n \"databaseId\": \"37b8873e-1d47-4608-8433-1fe48e09be38\",\r\n \"creationDate\": \"2020-09-03T01:15:14.867Z\",\r\n \"currentServiceObjectiveName\": \"GP_Gen5_2\",\r\n \"requestedServiceObjectiveName\": \"GP_Gen5_2\",\r\n \"defaultSecondaryLocation\": \"westus2\",\r\n \"catalogCollation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"zoneRedundant\": false,\r\n \"licenseType\": \"LicenseIncluded\",\r\n \"maxLogSizeBytes\": 10307502080,\r\n \"earliestRestoreDate\": \"2020-09-03T01:45:14.867Z\",\r\n \"readScale\": \"Disabled\",\r\n \"readReplicaCount\": 0,\r\n \"currentSku\": {\r\n \"name\": \"GP_Gen5\",\r\n \"tier\": \"GeneralPurpose\",\r\n \"family\": \"Gen5\",\r\n \"capacity\": 2\r\n }\r\n },\r\n \"location\": \"westcentralus\",\r\n \"id\": \"/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-1849/providers/Microsoft.Sql/servers/sqlcrudtest-4360/databases/sqlcrudtest-6582\",\r\n \"name\": \"sqlcrudtest-6582\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-1849/providers/Microsoft.Sql/servers/sqlcrudtest-4360/databases/sqlcrudtest-9607/export?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTE4NDkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC00MzYwL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC05NjA3L2V4cG9ydD9hcGktdmVyc2lvbj0yMDIwLTAyLTAyLXByZXZpZXc=", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"storageKeyType\": \"StorageAccessKey\",\r\n \"storageKey\": \"R6v6QBTyOrS4AIj223IfcYZNgplw48fnz4s+7pP22rlRxECjPteeDnDxV9VR34ZBqGvxSyGnBfSVjXlxajO65Q==\",\r\n \"storageUri\": \"https://sqlcrudtest785.blob.core.windows.net/container/sqlcrudtest-9607.bacpac\",\r\n \"administratorLogin\": \"dummylogin\",\r\n \"administratorLoginPassword\": \"Un53cuRE!\",\r\n \"authenticationType\": \"SQL\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "8cfee403-6645-4ca4-9b60-d544d8cbcd72" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "369" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 03 Sep 2020 01:15:28 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportOperationResults/d14f0856-93f9-4efc-b5ba-4aaa6c4d49f8-sqlcrudtest-4360?api-version=2020-02-02-preview" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/d14f0856-93f9-4efc-b5ba-4aaa6c4d49f8-sqlcrudtest-4360?api-version=2020-02-02-preview" + ], + "x-ms-request-id": [ + "51b85bb1-d4f4-4e11-a943-4d6980381297" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1197" + ], + "x-ms-correlation-request-id": [ + "250103ee-0616-4f66-ae02-e61cfdb03b05" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200903T011528Z:250103ee-0616-4f66-ae02-e61cfdb03b05" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "65" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"Export\",\r\n \"startTime\": \"2020-09-03T01:15:28.8659345Z\"\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/d14f0856-93f9-4efc-b5ba-4aaa6c4d49f8-sqlcrudtest-4360?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vZDE0ZjA4NTYtOTNmOS00ZWZjLWI1YmEtNGFhYTZjNGQ0OWY4LXNxbGNydWR0ZXN0LTQzNjA/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 03 Sep 2020 01:15:43 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "0a68219e-f465-4f0f-b187-1fb09cb6db35" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11950" + ], + "x-ms-correlation-request-id": [ + "1479a2ea-ccaa-423f-a485-e0b078be2e0c" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200903T011544Z:1479a2ea-ccaa-423f-a485-e0b078be2e0c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "104" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"d14f0856-93f9-4efc-b5ba-4aaa6c4d49f8\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T01:15:28Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/d14f0856-93f9-4efc-b5ba-4aaa6c4d49f8-sqlcrudtest-4360?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vZDE0ZjA4NTYtOTNmOS00ZWZjLWI1YmEtNGFhYTZjNGQ0OWY4LXNxbGNydWR0ZXN0LTQzNjA/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 03 Sep 2020 01:15:59 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "868cb592-80cc-44fb-9138-b438283b553c" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11949" + ], + "x-ms-correlation-request-id": [ + "30a827fb-acac-4e87-adec-8cac10c808da" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200903T011559Z:30a827fb-acac-4e87-adec-8cac10c808da" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "104" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"d14f0856-93f9-4efc-b5ba-4aaa6c4d49f8\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T01:15:28Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/d14f0856-93f9-4efc-b5ba-4aaa6c4d49f8-sqlcrudtest-4360?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vZDE0ZjA4NTYtOTNmOS00ZWZjLWI1YmEtNGFhYTZjNGQ0OWY4LXNxbGNydWR0ZXN0LTQzNjA/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 03 Sep 2020 01:16:14 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "51048012-ebc5-4c94-b436-77affe446e1f" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11948" + ], + "x-ms-correlation-request-id": [ + "3a71180d-3ac2-4b7a-811d-1cda1cbb07ee" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200903T011614Z:3a71180d-3ac2-4b7a-811d-1cda1cbb07ee" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "104" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"d14f0856-93f9-4efc-b5ba-4aaa6c4d49f8\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T01:15:28Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/d14f0856-93f9-4efc-b5ba-4aaa6c4d49f8-sqlcrudtest-4360?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vZDE0ZjA4NTYtOTNmOS00ZWZjLWI1YmEtNGFhYTZjNGQ0OWY4LXNxbGNydWR0ZXN0LTQzNjA/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 03 Sep 2020 01:16:29 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "6b346078-fc5e-423f-9427-1768b68bb9d2" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11947" + ], + "x-ms-correlation-request-id": [ + "bf0943cd-553f-49db-be43-636e867fc01c" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200903T011629Z:bf0943cd-553f-49db-be43-636e867fc01c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "104" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"d14f0856-93f9-4efc-b5ba-4aaa6c4d49f8\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T01:16:28Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/d14f0856-93f9-4efc-b5ba-4aaa6c4d49f8-sqlcrudtest-4360?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vZDE0ZjA4NTYtOTNmOS00ZWZjLWI1YmEtNGFhYTZjNGQ0OWY4LXNxbGNydWR0ZXN0LTQzNjA/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 03 Sep 2020 01:16:44 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "09300605-fb14-4ce9-887e-5387bffb42d1" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11946" + ], + "x-ms-correlation-request-id": [ + "f53f3fba-b9ea-4a9b-a4f8-584887a120e3" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200903T011644Z:f53f3fba-b9ea-4a9b-a4f8-584887a120e3" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "104" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"d14f0856-93f9-4efc-b5ba-4aaa6c4d49f8\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T01:16:28Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/d14f0856-93f9-4efc-b5ba-4aaa6c4d49f8-sqlcrudtest-4360?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vZDE0ZjA4NTYtOTNmOS00ZWZjLWI1YmEtNGFhYTZjNGQ0OWY4LXNxbGNydWR0ZXN0LTQzNjA/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 03 Sep 2020 01:17:00 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "223fa250-9143-433c-800d-efe679784a49" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11945" + ], + "x-ms-correlation-request-id": [ + "b1feeff6-a7ac-45f4-be5f-bafe72ac649b" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200903T011700Z:b1feeff6-a7ac-45f4-be5f-bafe72ac649b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "103" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"d14f0856-93f9-4efc-b5ba-4aaa6c4d49f8\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2020-09-03T01:16:50Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportOperationResults/d14f0856-93f9-4efc-b5ba-4aaa6c4d49f8-sqlcrudtest-4360?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydE9wZXJhdGlvblJlc3VsdHMvZDE0ZjA4NTYtOTNmOS00ZWZjLWI1YmEtNGFhYTZjNGQ0OWY4LXNxbGNydWR0ZXN0LTQzNjA/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 03 Sep 2020 01:17:00 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "0790aa9f-8568-45fe-be5d-0f83a7b1b54f" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11944" + ], + "x-ms-correlation-request-id": [ + "42495d53-ca4f-4922-96b0-e340cc257964" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200903T011700Z:42495d53-ca4f-4922-96b0-e340cc257964" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "544" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"requestId\": \"d14f0856-93f9-4efc-b5ba-4aaa6c4d49f8\",\r\n \"requestType\": \"ExportDatabase\",\r\n \"queuedTime\": \"9/3/2020 1:15:27 AM\",\r\n \"lastModifiedTime\": \"9/3/2020 1:16:50 AM\",\r\n \"blobUri\": \"https://sqlcrudtest785.blob.core.windows.net/container/sqlcrudtest-9607.bacpac\",\r\n \"serverName\": \"sqlcrudtest-4360\",\r\n \"databaseName\": \"sqlcrudtest-9607\",\r\n \"status\": \"Completed\",\r\n \"privateEndpointConnections\": []\r\n },\r\n \"id\": \"d14f0856-93f9-4efc-b5ba-4aaa6c4d49f8\",\r\n \"name\": \"d14f0856-93f9-4efc-b5ba-4aaa6c4d49f8\",\r\n \"type\": \"Microsoft.Sql/servers/databases/importExportOperationResults\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-1849/providers/Microsoft.Sql/servers/sqlcrudtest-4360/databases/sqlcrudtest-6582/import?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTE4NDkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC00MzYwL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC02NTgyL2ltcG9ydD9hcGktdmVyc2lvbj0yMDIwLTAyLTAyLXByZXZpZXc=", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"storageKeyType\": \"StorageAccessKey\",\r\n \"storageKey\": \"R6v6QBTyOrS4AIj223IfcYZNgplw48fnz4s+7pP22rlRxECjPteeDnDxV9VR34ZBqGvxSyGnBfSVjXlxajO65Q==\",\r\n \"storageUri\": \"https://sqlcrudtest785.blob.core.windows.net/container/sqlcrudtest-9607.bacpac\",\r\n \"administratorLogin\": \"dummylogin\",\r\n \"administratorLoginPassword\": \"Un53cuRE!\",\r\n \"authenticationType\": \"SQL\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "25635717-1efc-486a-9f80-b899f7dbcc62" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "369" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 03 Sep 2020 01:17:01 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportOperationResults/f00c660f-e9bd-4fa0-8fcb-10e136fad53d-sqlcrudtest-4360?api-version=2020-02-02-preview" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/f00c660f-e9bd-4fa0-8fcb-10e136fad53d-sqlcrudtest-4360?api-version=2020-02-02-preview" + ], + "x-ms-request-id": [ + "a59c114f-02b4-42da-8ce6-c3a7bf1e7c58" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1196" + ], + "x-ms-correlation-request-id": [ + "f58e9304-29a3-4702-8dd7-be53fb8fa9bd" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200903T011701Z:f58e9304-29a3-4702-8dd7-be53fb8fa9bd" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "64" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"Import\",\r\n \"startTime\": \"2020-09-03T01:17:01.539168Z\"\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/f00c660f-e9bd-4fa0-8fcb-10e136fad53d-sqlcrudtest-4360?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vZjAwYzY2MGYtZTliZC00ZmEwLThmY2ItMTBlMTM2ZmFkNTNkLXNxbGNydWR0ZXN0LTQzNjA/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 03 Sep 2020 01:17:16 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "c682b79c-ba15-40de-ad49-4c150ae00c71" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11943" + ], + "x-ms-correlation-request-id": [ + "4b19ce0c-e0d5-45e7-a5b4-0872a2abc3db" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200903T011716Z:4b19ce0c-e0d5-45e7-a5b4-0872a2abc3db" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "104" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"f00c660f-e9bd-4fa0-8fcb-10e136fad53d\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T01:17:00Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/f00c660f-e9bd-4fa0-8fcb-10e136fad53d-sqlcrudtest-4360?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vZjAwYzY2MGYtZTliZC00ZmEwLThmY2ItMTBlMTM2ZmFkNTNkLXNxbGNydWR0ZXN0LTQzNjA/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 03 Sep 2020 01:17:31 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "a84ba0c2-71cd-42ac-9f97-3e3628266c76" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11942" + ], + "x-ms-correlation-request-id": [ + "7a932bcc-1d2e-4b7c-8921-6fdcab1806a2" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200903T011732Z:7a932bcc-1d2e-4b7c-8921-6fdcab1806a2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "104" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"f00c660f-e9bd-4fa0-8fcb-10e136fad53d\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T01:17:00Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/f00c660f-e9bd-4fa0-8fcb-10e136fad53d-sqlcrudtest-4360?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vZjAwYzY2MGYtZTliZC00ZmEwLThmY2ItMTBlMTM2ZmFkNTNkLXNxbGNydWR0ZXN0LTQzNjA/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 03 Sep 2020 01:17:47 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "711c618b-1059-4801-ab23-7db2d0d97600" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11941" + ], + "x-ms-correlation-request-id": [ + "9fc15888-30c3-48b0-b7b3-f16862cec8d4" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200903T011747Z:9fc15888-30c3-48b0-b7b3-f16862cec8d4" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "104" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"f00c660f-e9bd-4fa0-8fcb-10e136fad53d\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T01:17:00Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/f00c660f-e9bd-4fa0-8fcb-10e136fad53d-sqlcrudtest-4360?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vZjAwYzY2MGYtZTliZC00ZmEwLThmY2ItMTBlMTM2ZmFkNTNkLXNxbGNydWR0ZXN0LTQzNjA/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 03 Sep 2020 01:18:02 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "f2a5cc7a-aa8a-47d4-9f05-ba53fdb97681" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11940" + ], + "x-ms-correlation-request-id": [ + "e855ebc6-7163-49ff-8c58-b884d1bb24a0" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200903T011802Z:e855ebc6-7163-49ff-8c58-b884d1bb24a0" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "104" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"f00c660f-e9bd-4fa0-8fcb-10e136fad53d\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T01:18:00Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/f00c660f-e9bd-4fa0-8fcb-10e136fad53d-sqlcrudtest-4360?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vZjAwYzY2MGYtZTliZC00ZmEwLThmY2ItMTBlMTM2ZmFkNTNkLXNxbGNydWR0ZXN0LTQzNjA/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 03 Sep 2020 01:18:17 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "c2077561-c796-416d-96b0-e38eaf12d79d" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11939" + ], + "x-ms-correlation-request-id": [ + "ac4c72e4-48a1-4ddb-ba9e-95609495075b" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200903T011817Z:ac4c72e4-48a1-4ddb-ba9e-95609495075b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "103" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"f00c660f-e9bd-4fa0-8fcb-10e136fad53d\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2020-09-03T01:18:12Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportOperationResults/f00c660f-e9bd-4fa0-8fcb-10e136fad53d-sqlcrudtest-4360?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydE9wZXJhdGlvblJlc3VsdHMvZjAwYzY2MGYtZTliZC00ZmEwLThmY2ItMTBlMTM2ZmFkNTNkLXNxbGNydWR0ZXN0LTQzNjA/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 03 Sep 2020 01:18:17 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "0a24dbb5-e55d-44fa-8644-a6f5736d03f9" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11938" + ], + "x-ms-correlation-request-id": [ + "2705359d-0d97-4d46-adc8-19c102035fb4" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200903T011817Z:2705359d-0d97-4d46-adc8-19c102035fb4" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "554" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"requestId\": \"f00c660f-e9bd-4fa0-8fcb-10e136fad53d\",\r\n \"requestType\": \"ImportToExistingDatabase\",\r\n \"queuedTime\": \"9/3/2020 1:17:00 AM\",\r\n \"lastModifiedTime\": \"9/3/2020 1:18:12 AM\",\r\n \"blobUri\": \"https://sqlcrudtest785.blob.core.windows.net/container/sqlcrudtest-9607.bacpac\",\r\n \"serverName\": \"sqlcrudtest-4360\",\r\n \"databaseName\": \"sqlcrudtest-6582\",\r\n \"status\": \"Completed\",\r\n \"privateEndpointConnections\": []\r\n },\r\n \"id\": \"f00c660f-e9bd-4fa0-8fcb-10e136fad53d\",\r\n \"name\": \"f00c660f-e9bd-4fa0-8fcb-10e136fad53d\",\r\n \"type\": \"Microsoft.Sql/servers/databases/importExportOperationResults\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourcegroups/sqlcrudtest-1849?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTE4NDk/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "2095fa35-8d35-4621-a736-2df67d85cb80" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 03 Sep 2020 01:18:18 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDE4NDktV0VTVENFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoid2VzdGNlbnRyYWx1cyJ9?api-version=2017-05-10" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14998" + ], + "x-ms-request-id": [ + "2d16e014-ff35-42e2-acab-061ce22c7ffd" + ], + "x-ms-correlation-request-id": [ + "2d16e014-ff35-42e2-acab-061ce22c7ffd" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200903T011819Z:2d16e014-ff35-42e2-acab-061ce22c7ffd" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + } + ], + "Names": { + "CreateResourceGroup": [ + "sqlcrudtest-1849" + ], + "CreateServer": [ + "sqlcrudtest-4360" + ], + "CreateStorageContainer": [ + "sqlcrudtest785" + ], + "TestImportExport": [ + "sqlcrudtest-9607", + "sqlcrudtest-6582", + "sqlcrudstorage2870", + "sqlcrudtest-9203" + ] + }, + "Variables": { + "SubscriptionId": "b75889fa-6661-44e0-a844-cd96ec938991" + } +} \ No newline at end of file diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/tests/SessionRecords/TestImportNewDatabase.json b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/tests/SessionRecords/TestImportNewDatabase.json new file mode 100644 index 000000000000..bc4e91478182 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/tests/SessionRecords/TestImportNewDatabase.json @@ -0,0 +1,2637 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourcegroups/sqlcrudtest-147?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTE0Nz9hcGktdmVyc2lvbj0yMDE3LTA1LTEw", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"WestCentralUs\",\r\n \"tags\": {\r\n \"sqlcrudtest-147\": \"2020-09-03 00:58:31Z\"\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "e9024030-1604-474c-acc1-735bf65281b3" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "101" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 03 Sep 2020 00:58:33 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "619c08e5-abf3-4928-ac2e-eedd78eda271" + ], + "x-ms-correlation-request-id": [ + "619c08e5-abf3-4928-ac2e-eedd78eda271" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200903T005833Z:619c08e5-abf3-4928-ac2e-eedd78eda271" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "240" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-147\",\r\n \"name\": \"sqlcrudtest-147\",\r\n \"location\": \"westcentralus\",\r\n \"tags\": {\r\n \"sqlcrudtest-147\": \"2020-09-03 00:58:31Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-147/providers/Microsoft.Sql/servers/sqlcrudtest-6158?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTE0Ny9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL3NxbGNydWR0ZXN0LTYxNTg/YXBpLXZlcnNpb249MjAxOS0wNi0wMS1wcmV2aWV3", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"administratorLogin\": \"dummylogin\",\r\n \"administratorLoginPassword\": \"Un53cuRE!\",\r\n \"version\": \"12.0\"\r\n },\r\n \"location\": \"WestCentralUs\",\r\n \"tags\": {}\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "ee250564-a09d-42d3-a151-34389f37c78e" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "187" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 03 Sep 2020 00:58:36 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-147/providers/Microsoft.Sql/locations/westcentralus/serverOperationResults/2c269708-673d-4ee2-b314-2c34f041828f?api-version=2019-06-01-preview" + ], + "Retry-After": [ + "1" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-147/providers/Microsoft.Sql/locations/westcentralus/serverAzureAsyncOperation/2c269708-673d-4ee2-b314-2c34f041828f?api-version=2019-06-01-preview" + ], + "x-ms-request-id": [ + "2c269708-673d-4ee2-b314-2c34f041828f" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-correlation-request-id": [ + "62206bce-6445-4dcb-88a0-4fa22b30ddce" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200903T005837Z:62206bce-6445-4dcb-88a0-4fa22b30ddce" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "74" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"UpsertLogicalServer\",\r\n \"startTime\": \"2020-09-03T00:58:37.387Z\"\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-147/providers/Microsoft.Sql/locations/westcentralus/serverAzureAsyncOperation/2c269708-673d-4ee2-b314-2c34f041828f?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTE0Ny9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9sb2NhdGlvbnMvd2VzdGNlbnRyYWx1cy9zZXJ2ZXJBenVyZUFzeW5jT3BlcmF0aW9uLzJjMjY5NzA4LTY3M2QtNGVlMi1iMzE0LTJjMzRmMDQxODI4Zj9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 03 Sep 2020 00:58:37 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "1" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "0fa4beea-5ee5-4e7a-a0b3-91d7048bf8b9" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11999" + ], + "x-ms-correlation-request-id": [ + "aea678f3-4e1f-4c1a-ac42-0d4b90af8945" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200903T005838Z:aea678f3-4e1f-4c1a-ac42-0d4b90af8945" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"2c269708-673d-4ee2-b314-2c34f041828f\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T00:58:37.387Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-147/providers/Microsoft.Sql/locations/westcentralus/serverAzureAsyncOperation/2c269708-673d-4ee2-b314-2c34f041828f?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTE0Ny9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9sb2NhdGlvbnMvd2VzdGNlbnRyYWx1cy9zZXJ2ZXJBenVyZUFzeW5jT3BlcmF0aW9uLzJjMjY5NzA4LTY3M2QtNGVlMi1iMzE0LTJjMzRmMDQxODI4Zj9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 03 Sep 2020 00:58:39 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "1" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "8a0d2d1d-ae71-4e30-983a-a21c549c48f7" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11998" + ], + "x-ms-correlation-request-id": [ + "324ef091-b585-41cf-b982-c4775f7eaa7d" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200903T005839Z:324ef091-b585-41cf-b982-c4775f7eaa7d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"2c269708-673d-4ee2-b314-2c34f041828f\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T00:58:37.387Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-147/providers/Microsoft.Sql/locations/westcentralus/serverAzureAsyncOperation/2c269708-673d-4ee2-b314-2c34f041828f?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTE0Ny9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9sb2NhdGlvbnMvd2VzdGNlbnRyYWx1cy9zZXJ2ZXJBenVyZUFzeW5jT3BlcmF0aW9uLzJjMjY5NzA4LTY3M2QtNGVlMi1iMzE0LTJjMzRmMDQxODI4Zj9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 03 Sep 2020 00:58:40 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "1" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "b7cbdf90-3c24-4aa2-8690-c22b7fdec8b5" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11997" + ], + "x-ms-correlation-request-id": [ + "3544819d-c4c8-42fd-be99-fa3f4d830bdf" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200903T005840Z:3544819d-c4c8-42fd-be99-fa3f4d830bdf" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"2c269708-673d-4ee2-b314-2c34f041828f\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T00:58:37.387Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-147/providers/Microsoft.Sql/locations/westcentralus/serverAzureAsyncOperation/2c269708-673d-4ee2-b314-2c34f041828f?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTE0Ny9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9sb2NhdGlvbnMvd2VzdGNlbnRyYWx1cy9zZXJ2ZXJBenVyZUFzeW5jT3BlcmF0aW9uLzJjMjY5NzA4LTY3M2QtNGVlMi1iMzE0LTJjMzRmMDQxODI4Zj9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 03 Sep 2020 00:58:41 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "1" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "534f9f69-4660-4861-bc2b-2a1bd807dcf8" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11996" + ], + "x-ms-correlation-request-id": [ + "02f58f29-a793-4cca-8c8d-02fdc36d45bf" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200903T005842Z:02f58f29-a793-4cca-8c8d-02fdc36d45bf" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"2c269708-673d-4ee2-b314-2c34f041828f\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T00:58:37.387Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-147/providers/Microsoft.Sql/locations/westcentralus/serverAzureAsyncOperation/2c269708-673d-4ee2-b314-2c34f041828f?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTE0Ny9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9sb2NhdGlvbnMvd2VzdGNlbnRyYWx1cy9zZXJ2ZXJBenVyZUFzeW5jT3BlcmF0aW9uLzJjMjY5NzA4LTY3M2QtNGVlMi1iMzE0LTJjMzRmMDQxODI4Zj9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 03 Sep 2020 00:58:42 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "20" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "dc1dbece-b34f-4bba-8796-a3068e60df84" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11995" + ], + "x-ms-correlation-request-id": [ + "26c8df88-32d7-4cde-a0a2-188a812dc4ff" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200903T005843Z:26c8df88-32d7-4cde-a0a2-188a812dc4ff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"2c269708-673d-4ee2-b314-2c34f041828f\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T00:58:37.387Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-147/providers/Microsoft.Sql/locations/westcentralus/serverAzureAsyncOperation/2c269708-673d-4ee2-b314-2c34f041828f?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTE0Ny9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9sb2NhdGlvbnMvd2VzdGNlbnRyYWx1cy9zZXJ2ZXJBenVyZUFzeW5jT3BlcmF0aW9uLzJjMjY5NzA4LTY3M2QtNGVlMi1iMzE0LTJjMzRmMDQxODI4Zj9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 03 Sep 2020 00:59:02 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "20" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "69c70f8e-a98c-47bb-bb18-92d3b16913ce" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11994" + ], + "x-ms-correlation-request-id": [ + "d69b5c79-eb6b-4b7a-bf76-e98835c04fca" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200903T005903Z:d69b5c79-eb6b-4b7a-bf76-e98835c04fca" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"2c269708-673d-4ee2-b314-2c34f041828f\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T00:58:37.387Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-147/providers/Microsoft.Sql/locations/westcentralus/serverAzureAsyncOperation/2c269708-673d-4ee2-b314-2c34f041828f?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTE0Ny9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9sb2NhdGlvbnMvd2VzdGNlbnRyYWx1cy9zZXJ2ZXJBenVyZUFzeW5jT3BlcmF0aW9uLzJjMjY5NzA4LTY3M2QtNGVlMi1iMzE0LTJjMzRmMDQxODI4Zj9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 03 Sep 2020 00:59:22 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "ece32dcf-f9ea-464b-9478-bb46dddad8e3" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11993" + ], + "x-ms-correlation-request-id": [ + "b955be78-5989-429a-b07f-da23905a4d85" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200903T005923Z:b955be78-5989-429a-b07f-da23905a4d85" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"2c269708-673d-4ee2-b314-2c34f041828f\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2020-09-03T00:58:37.387Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-147/providers/Microsoft.Sql/servers/sqlcrudtest-6158?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTE0Ny9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL3NxbGNydWR0ZXN0LTYxNTg/YXBpLXZlcnNpb249MjAxOS0wNi0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 03 Sep 2020 00:59:23 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "7c28acb3-782b-45eb-adb7-94329951b3d8" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11992" + ], + "x-ms-correlation-request-id": [ + "78a8cef6-8829-4c02-9f39-5cc84bf6e78d" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200903T005923Z:78a8cef6-8829-4c02-9f39-5cc84bf6e78d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "462" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"kind\": \"v12.0\",\r\n \"properties\": {\r\n \"administratorLogin\": \"dummylogin\",\r\n \"version\": \"12.0\",\r\n \"state\": \"Ready\",\r\n \"fullyQualifiedDomainName\": \"sqlcrudtest-6158.database.windows.net\",\r\n \"privateEndpointConnections\": [],\r\n \"publicNetworkAccess\": \"Enabled\"\r\n },\r\n \"location\": \"westcentralus\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-147/providers/Microsoft.Sql/servers/sqlcrudtest-6158\",\r\n \"name\": \"sqlcrudtest-6158\",\r\n \"type\": \"Microsoft.Sql/servers\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-147/providers/Microsoft.Sql/servers/sqlcrudtest-6158/firewallRules/sqlcrudtest-6756?api-version=2014-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTE0Ny9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL3NxbGNydWR0ZXN0LTYxNTgvZmlyZXdhbGxSdWxlcy9zcWxjcnVkdGVzdC02NzU2P2FwaS12ZXJzaW9uPTIwMTQtMDQtMDE=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"startIpAddress\": \"0.0.0.0\",\r\n \"endIpAddress\": \"255.255.255.255\"\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "e1c699b4-4126-43b4-be62-7fb665743a04" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "101" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Thu, 03 Sep 2020 00:59:23 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "8c7c38dd-5684-419a-8481-b39c20602b31" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Preference-Applied": [ + "return-content" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-correlation-request-id": [ + "c2a8b21a-8044-42da-a3cf-72a5de41f3e1" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200903T005924Z:c2a8b21a-8044-42da-a3cf-72a5de41f3e1" + ], + "Content-Length": [ + "361" + ], + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-147/providers/Microsoft.Sql/servers/sqlcrudtest-6158/firewallRules/sqlcrudtest-6756\",\r\n \"name\": \"sqlcrudtest-6756\",\r\n \"type\": \"Microsoft.Sql/servers/firewallRules\",\r\n \"location\": \"West Central US\",\r\n \"kind\": \"v12.0\",\r\n \"properties\": {\r\n \"startIpAddress\": \"0.0.0.0\",\r\n \"endIpAddress\": \"255.255.255.255\"\r\n }\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-147/providers/Microsoft.Sql/servers/sqlcrudtest-6158/databases/sqlcrudtest-9521?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTE0Ny9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL3NxbGNydWR0ZXN0LTYxNTgvZGF0YWJhc2VzL3NxbGNydWR0ZXN0LTk1MjE/YXBpLXZlcnNpb249MjAxNy0xMC0wMS1wcmV2aWV3", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"westcentralus\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "f11e8119-9643-47e6-9292-53411b163bde" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "35" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 03 Sep 2020 00:59:24 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-147/providers/Microsoft.Sql/locations/westcentralus/databaseOperationResults/d75f1863-c305-4058-b4ac-b77db3d655ae?api-version=2017-10-01-preview" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-147/providers/Microsoft.Sql/locations/westcentralus/databaseAzureAsyncOperation/d75f1863-c305-4058-b4ac-b77db3d655ae?api-version=2017-10-01-preview" + ], + "x-ms-request-id": [ + "d75f1863-c305-4058-b4ac-b77db3d655ae" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1197" + ], + "x-ms-correlation-request-id": [ + "b128bce5-28a2-4081-8bb3-61fbbd2a6cd9" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200903T005925Z:b128bce5-28a2-4081-8bb3-61fbbd2a6cd9" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "75" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2020-09-03T00:59:25.23Z\"\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-147/providers/Microsoft.Storage/storageAccounts/sqlcrudtest2995?api-version=2017-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTE0Ny9wcm92aWRlcnMvTWljcm9zb2Z0LlN0b3JhZ2Uvc3RvcmFnZUFjY291bnRzL3NxbGNydWR0ZXN0Mjk5NT9hcGktdmVyc2lvbj0yMDE3LTA2LTAx", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\"\r\n },\r\n \"kind\": \"BlobStorage\",\r\n \"location\": \"westcentralus\",\r\n \"properties\": {\r\n \"accessTier\": \"Cool\"\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "673bcfc7-63d8-44bb-8638-0d8752f69857" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Storage.StorageManagementClient/6.5.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "158" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 03 Sep 2020 00:59:27 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Storage/locations/westcentralus/asyncoperations/09975edf-6106-4128-8f9b-7cb3df21c79f?monitor=true&api-version=2017-06-01" + ], + "Retry-After": [ + "17" + ], + "Server": [ + "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "09975edf-6106-4128-8f9b-7cb3df21c79f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-correlation-request-id": [ + "742569f0-19df-4c25-a0ac-700ecfd1c87b" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200903T005927Z:742569f0-19df-4c25-a0ac-700ecfd1c87b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "0" + ], + "Content-Type": [ + "text/plain; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-147/providers/Microsoft.Sql/locations/westcentralus/databaseAzureAsyncOperation/d75f1863-c305-4058-b4ac-b77db3d655ae?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTE0Ny9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9sb2NhdGlvbnMvd2VzdGNlbnRyYWx1cy9kYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZDc1ZjE4NjMtYzMwNS00MDU4LWI0YWMtYjc3ZGIzZDY1NWFlP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 03 Sep 2020 00:59:39 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "a913df0b-c5f3-48e5-8fab-9cb2391f7fda" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11991" + ], + "x-ms-correlation-request-id": [ + "34383d96-8e6c-488c-907d-062fdad607bd" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200903T005940Z:34383d96-8e6c-488c-907d-062fdad607bd" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"d75f1863-c305-4058-b4ac-b77db3d655ae\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T00:59:25.23Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-147/providers/Microsoft.Sql/locations/westcentralus/databaseAzureAsyncOperation/d75f1863-c305-4058-b4ac-b77db3d655ae?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTE0Ny9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9sb2NhdGlvbnMvd2VzdGNlbnRyYWx1cy9kYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZDc1ZjE4NjMtYzMwNS00MDU4LWI0YWMtYjc3ZGIzZDY1NWFlP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 03 Sep 2020 00:59:55 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "214ad324-be00-4a04-818f-a9e609a2168b" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11990" + ], + "x-ms-correlation-request-id": [ + "3bf90440-f623-4761-ba5c-e48a0bde45ae" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200903T005955Z:3bf90440-f623-4761-ba5c-e48a0bde45ae" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"d75f1863-c305-4058-b4ac-b77db3d655ae\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T00:59:25.23Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-147/providers/Microsoft.Sql/locations/westcentralus/databaseAzureAsyncOperation/d75f1863-c305-4058-b4ac-b77db3d655ae?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTE0Ny9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9sb2NhdGlvbnMvd2VzdGNlbnRyYWx1cy9kYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZDc1ZjE4NjMtYzMwNS00MDU4LWI0YWMtYjc3ZGIzZDY1NWFlP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 03 Sep 2020 01:00:10 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "4c6d0af1-76d3-4c50-b896-c2f484312a30" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11989" + ], + "x-ms-correlation-request-id": [ + "a242f89f-f478-4c3b-bd4d-8403fa2ad47f" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200903T010010Z:a242f89f-f478-4c3b-bd4d-8403fa2ad47f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "106" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"d75f1863-c305-4058-b4ac-b77db3d655ae\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2020-09-03T00:59:25.23Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Storage/locations/westcentralus/asyncoperations/09975edf-6106-4128-8f9b-7cb3df21c79f?monitor=true&api-version=2017-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZS9sb2NhdGlvbnMvd2VzdGNlbnRyYWx1cy9hc3luY29wZXJhdGlvbnMvMDk5NzVlZGYtNjEwNi00MTI4LThmOWItN2NiM2RmMjFjNzlmP21vbml0b3I9dHJ1ZSZhcGktdmVyc2lvbj0yMDE3LTA2LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Storage.StorageManagementClient/6.5.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 03 Sep 2020 00:59:43 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "0d6032da-ef4b-49e5-8997-e6348042ba71" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11999" + ], + "x-ms-correlation-request-id": [ + "3699dfb9-f17c-4ead-832c-265bcecd85ee" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200903T005944Z:3699dfb9-f17c-4ead-832c-265bcecd85ee" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "979" + ], + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"kind\": \"BlobStorage\",\r\n \"id\": \"/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-147/providers/Microsoft.Storage/storageAccounts/sqlcrudtest2995\",\r\n \"name\": \"sqlcrudtest2995\",\r\n \"type\": \"Microsoft.Storage/storageAccounts\",\r\n \"location\": \"westcentralus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"networkAcls\": {\r\n \"bypass\": \"AzureServices\",\r\n \"virtualNetworkRules\": [],\r\n \"ipRules\": [],\r\n \"defaultAction\": \"Allow\"\r\n },\r\n \"supportsHttpsTrafficOnly\": false,\r\n \"encryption\": {\r\n \"services\": {\r\n \"file\": {\r\n \"enabled\": true,\r\n \"lastEnabledTime\": \"2020-09-03T00:59:27.2506365Z\"\r\n },\r\n \"blob\": {\r\n \"enabled\": true,\r\n \"lastEnabledTime\": \"2020-09-03T00:59:27.2506365Z\"\r\n }\r\n },\r\n \"keySource\": \"Microsoft.Storage\"\r\n },\r\n \"accessTier\": \"Cool\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"creationTime\": \"2020-09-03T00:59:27.2037921Z\",\r\n \"primaryEndpoints\": {\r\n \"blob\": \"https://sqlcrudtest2995.blob.core.windows.net/\",\r\n \"table\": \"https://sqlcrudtest2995.table.core.windows.net/\"\r\n },\r\n \"primaryLocation\": \"westcentralus\",\r\n \"statusOfPrimary\": \"available\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-147/providers/Microsoft.Storage/storageAccounts/sqlcrudtest2995/listKeys?api-version=2017-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTE0Ny9wcm92aWRlcnMvTWljcm9zb2Z0LlN0b3JhZ2Uvc3RvcmFnZUFjY291bnRzL3NxbGNydWR0ZXN0Mjk5NS9saXN0S2V5cz9hcGktdmVyc2lvbj0yMDE3LTA2LTAx", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "805e7795-cf54-41ea-aadf-bdff49291c58" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Storage.StorageManagementClient/6.5.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 03 Sep 2020 00:59:44 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "4b2d38c9-b99e-4b6b-a758-a1f6fb95a8b3" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ + "11999" + ], + "x-ms-correlation-request-id": [ + "cf468442-3457-4476-9536-b233a627f53f" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200903T005944Z:cf468442-3457-4476-9536-b233a627f53f" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "288" + ], + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"keys\": [\r\n {\r\n \"keyName\": \"key1\",\r\n \"value\": \"FFofVgjty0CaaqermZfrP1vMWhZ5l8LhncOkOWu4mQcLXlhSeaFrLqk4DI/EBwxCbEviPRKO9tRwUHuVxRMt3Q==\",\r\n \"permissions\": \"FULL\"\r\n },\r\n {\r\n \"keyName\": \"key2\",\r\n \"value\": \"nWhD98v/ukFPTJuma5476E26VwK9hQy6tvGb2h8sV+OZru//cGTnt9ljj1+UJbi51+9tN7ECLjj4G1W5dXYgTw==\",\r\n \"permissions\": \"FULL\"\r\n }\r\n ]\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-147/providers/Microsoft.Sql/servers/sqlcrudtest-6158/databases/sqlcrudtest-9521?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTE0Ny9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL3NxbGNydWR0ZXN0LTYxNTgvZGF0YWJhc2VzL3NxbGNydWR0ZXN0LTk1MjE/YXBpLXZlcnNpb249MjAxNy0xMC0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 03 Sep 2020 01:00:10 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "b89cb47a-7ae9-49e9-931c-838ad15ec467" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11988" + ], + "x-ms-correlation-request-id": [ + "c4dad6e3-22b4-4733-8bb1-cb554079c756" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200903T010010Z:c4dad6e3-22b4-4733-8bb1-cb554079c756" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "997" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"GP_Gen5\",\r\n \"tier\": \"GeneralPurpose\",\r\n \"family\": \"Gen5\",\r\n \"capacity\": 2\r\n },\r\n \"kind\": \"v12.0,user,vcore\",\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": 34359738368,\r\n \"status\": \"Online\",\r\n \"databaseId\": \"88b09e46-9263-4b6c-828d-ccd20221c656\",\r\n \"creationDate\": \"2020-09-03T01:00:02.263Z\",\r\n \"currentServiceObjectiveName\": \"GP_Gen5_2\",\r\n \"requestedServiceObjectiveName\": \"GP_Gen5_2\",\r\n \"defaultSecondaryLocation\": \"westus2\",\r\n \"catalogCollation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"zoneRedundant\": false,\r\n \"licenseType\": \"LicenseIncluded\",\r\n \"maxLogSizeBytes\": 10307502080,\r\n \"earliestRestoreDate\": \"2020-09-03T01:30:02.263Z\",\r\n \"readScale\": \"Disabled\",\r\n \"readReplicaCount\": 0,\r\n \"currentSku\": {\r\n \"name\": \"GP_Gen5\",\r\n \"tier\": \"GeneralPurpose\",\r\n \"family\": \"Gen5\",\r\n \"capacity\": 2\r\n }\r\n },\r\n \"location\": \"westcentralus\",\r\n \"id\": \"/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-147/providers/Microsoft.Sql/servers/sqlcrudtest-6158/databases/sqlcrudtest-9521\",\r\n \"name\": \"sqlcrudtest-9521\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-147/providers/Microsoft.Sql/servers/sqlcrudtest-6158/databases/sqlcrudtest-9521/export?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTE0Ny9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL3NxbGNydWR0ZXN0LTYxNTgvZGF0YWJhc2VzL3NxbGNydWR0ZXN0LTk1MjEvZXhwb3J0P2FwaS12ZXJzaW9uPTIwMjAtMDItMDItcHJldmlldw==", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"storageKeyType\": \"StorageAccessKey\",\r\n \"storageKey\": \"FFofVgjty0CaaqermZfrP1vMWhZ5l8LhncOkOWu4mQcLXlhSeaFrLqk4DI/EBwxCbEviPRKO9tRwUHuVxRMt3Q==\",\r\n \"storageUri\": \"https://sqlcrudtest2995.blob.core.windows.net/container/sqlcrudtest-9521.bacpac\",\r\n \"administratorLogin\": \"dummylogin\",\r\n \"administratorLoginPassword\": \"Un53cuRE!\",\r\n \"authenticationType\": \"SQL\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "b0791c5c-cbd2-4683-99c0-973034d6f7b4" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "370" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 03 Sep 2020 01:00:12 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportOperationResults/cd19fb8e-1eee-4dec-a04f-ab87d811d26b-sqlcrudtest-6158?api-version=2020-02-02-preview" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/cd19fb8e-1eee-4dec-a04f-ab87d811d26b-sqlcrudtest-6158?api-version=2020-02-02-preview" + ], + "x-ms-request-id": [ + "5e2e4175-0c27-4ab4-805c-56752e5f9c65" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-correlation-request-id": [ + "3770798c-9d48-4d6a-9822-d92caba6f1e3" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200903T010012Z:3770798c-9d48-4d6a-9822-d92caba6f1e3" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "65" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"Export\",\r\n \"startTime\": \"2020-09-03T01:00:12.2314171Z\"\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/cd19fb8e-1eee-4dec-a04f-ab87d811d26b-sqlcrudtest-6158?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vY2QxOWZiOGUtMWVlZS00ZGVjLWEwNGYtYWI4N2Q4MTFkMjZiLXNxbGNydWR0ZXN0LTYxNTg/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 03 Sep 2020 01:00:29 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "d533b92c-8461-4df0-a40f-9e5121d5594a" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11987" + ], + "x-ms-correlation-request-id": [ + "90984647-c3ce-47c2-9066-5a758fe54c75" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200903T010030Z:90984647-c3ce-47c2-9066-5a758fe54c75" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "104" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"cd19fb8e-1eee-4dec-a04f-ab87d811d26b\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T01:00:11Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/cd19fb8e-1eee-4dec-a04f-ab87d811d26b-sqlcrudtest-6158?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vY2QxOWZiOGUtMWVlZS00ZGVjLWEwNGYtYWI4N2Q4MTFkMjZiLXNxbGNydWR0ZXN0LTYxNTg/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 03 Sep 2020 01:00:45 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "79fc5916-2f7a-4c6d-bd31-0b0ceca9e425" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11986" + ], + "x-ms-correlation-request-id": [ + "a2986a95-abd7-48c4-80d8-1e2567fda534" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200903T010045Z:a2986a95-abd7-48c4-80d8-1e2567fda534" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "104" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"cd19fb8e-1eee-4dec-a04f-ab87d811d26b\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T01:00:11Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/cd19fb8e-1eee-4dec-a04f-ab87d811d26b-sqlcrudtest-6158?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vY2QxOWZiOGUtMWVlZS00ZGVjLWEwNGYtYWI4N2Q4MTFkMjZiLXNxbGNydWR0ZXN0LTYxNTg/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 03 Sep 2020 01:01:00 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "dbbd1d79-7d87-4e45-838b-47c2d7d4b7e0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11985" + ], + "x-ms-correlation-request-id": [ + "a2b1e537-6234-458d-82b7-f1ffc646b9a2" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200903T010100Z:a2b1e537-6234-458d-82b7-f1ffc646b9a2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "104" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"cd19fb8e-1eee-4dec-a04f-ab87d811d26b\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T01:00:11Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/cd19fb8e-1eee-4dec-a04f-ab87d811d26b-sqlcrudtest-6158?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vY2QxOWZiOGUtMWVlZS00ZGVjLWEwNGYtYWI4N2Q4MTFkMjZiLXNxbGNydWR0ZXN0LTYxNTg/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 03 Sep 2020 01:01:15 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "74476abc-c3ef-40ac-8989-b25f757f3720" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11984" + ], + "x-ms-correlation-request-id": [ + "af7a1825-d426-4266-9513-6c0100f3e3a9" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200903T010115Z:af7a1825-d426-4266-9513-6c0100f3e3a9" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "104" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"cd19fb8e-1eee-4dec-a04f-ab87d811d26b\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T01:01:11Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/cd19fb8e-1eee-4dec-a04f-ab87d811d26b-sqlcrudtest-6158?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vY2QxOWZiOGUtMWVlZS00ZGVjLWEwNGYtYWI4N2Q4MTFkMjZiLXNxbGNydWR0ZXN0LTYxNTg/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 03 Sep 2020 01:01:29 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "e2c7698e-c107-465f-8586-435f4de5a161" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11983" + ], + "x-ms-correlation-request-id": [ + "813ea9f3-6510-49e0-bbf7-28d103ba0543" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200903T010130Z:813ea9f3-6510-49e0-bbf7-28d103ba0543" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "103" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"cd19fb8e-1eee-4dec-a04f-ab87d811d26b\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2020-09-03T01:01:23Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportOperationResults/cd19fb8e-1eee-4dec-a04f-ab87d811d26b-sqlcrudtest-6158?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydE9wZXJhdGlvblJlc3VsdHMvY2QxOWZiOGUtMWVlZS00ZGVjLWEwNGYtYWI4N2Q4MTFkMjZiLXNxbGNydWR0ZXN0LTYxNTg/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 03 Sep 2020 01:01:31 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "b7b25b3e-1390-420a-9ba0-42d12140989e" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11982" + ], + "x-ms-correlation-request-id": [ + "d4c6380f-6809-4eea-8cf4-3c94adce9aca" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200903T010131Z:d4c6380f-6809-4eea-8cf4-3c94adce9aca" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "545" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"requestId\": \"cd19fb8e-1eee-4dec-a04f-ab87d811d26b\",\r\n \"requestType\": \"ExportDatabase\",\r\n \"queuedTime\": \"9/3/2020 1:00:11 AM\",\r\n \"lastModifiedTime\": \"9/3/2020 1:01:23 AM\",\r\n \"blobUri\": \"https://sqlcrudtest2995.blob.core.windows.net/container/sqlcrudtest-9521.bacpac\",\r\n \"serverName\": \"sqlcrudtest-6158\",\r\n \"databaseName\": \"sqlcrudtest-9521\",\r\n \"status\": \"Completed\",\r\n \"privateEndpointConnections\": []\r\n },\r\n \"id\": \"cd19fb8e-1eee-4dec-a04f-ab87d811d26b\",\r\n \"name\": \"cd19fb8e-1eee-4dec-a04f-ab87d811d26b\",\r\n \"type\": \"Microsoft.Sql/servers/databases/importExportOperationResults\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-147/providers/Microsoft.Sql/servers/sqlcrudtest-6158/import?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTE0Ny9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL3NxbGNydWR0ZXN0LTYxNTgvaW1wb3J0P2FwaS12ZXJzaW9uPTIwMjAtMDItMDItcHJldmlldw==", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"databaseName\": \"sqlcrudtest-2577\",\r\n \"edition\": \"Basic\",\r\n \"serviceObjectiveName\": \"Basic\",\r\n \"maxSizeBytes\": \"2147483648\",\r\n \"storageKeyType\": \"StorageAccessKey\",\r\n \"storageKey\": \"FFofVgjty0CaaqermZfrP1vMWhZ5l8LhncOkOWu4mQcLXlhSeaFrLqk4DI/EBwxCbEviPRKO9tRwUHuVxRMt3Q==\",\r\n \"storageUri\": \"https://sqlcrudtest2995.blob.core.windows.net/container/sqlcrudtest-9521.bacpac\",\r\n \"administratorLogin\": \"dummylogin\",\r\n \"administratorLoginPassword\": \"Un53cuRE!\",\r\n \"authenticationType\": \"SQL\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "5afba5d2-7a36-4ff7-b01c-bceab6daa0ae" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "501" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 03 Sep 2020 01:01:32 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportOperationResults/b675cc0c-64ca-4b22-9397-f29c6a31662e-sqlcrudtest-6158?api-version=2020-02-02-preview" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/b675cc0c-64ca-4b22-9397-f29c6a31662e-sqlcrudtest-6158?api-version=2020-02-02-preview" + ], + "x-ms-request-id": [ + "46ad3d3d-f185-4137-a0e2-b01c136928d9" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-correlation-request-id": [ + "d94995e9-5aee-4d7c-b589-267edb985e3d" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200903T010132Z:d94995e9-5aee-4d7c-b589-267edb985e3d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "65" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"Import\",\r\n \"startTime\": \"2020-09-03T01:01:32.2786706Z\"\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/b675cc0c-64ca-4b22-9397-f29c6a31662e-sqlcrudtest-6158?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vYjY3NWNjMGMtNjRjYS00YjIyLTkzOTctZjI5YzZhMzE2NjJlLXNxbGNydWR0ZXN0LTYxNTg/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 03 Sep 2020 01:01:47 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "698b01c8-0088-4f5e-bc48-9bb069ed06e3" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11981" + ], + "x-ms-correlation-request-id": [ + "f04906d2-4a5d-41f8-8f0d-d77dcf1d3f11" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200903T010147Z:f04906d2-4a5d-41f8-8f0d-d77dcf1d3f11" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "104" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"b675cc0c-64ca-4b22-9397-f29c6a31662e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T01:01:31Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/b675cc0c-64ca-4b22-9397-f29c6a31662e-sqlcrudtest-6158?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vYjY3NWNjMGMtNjRjYS00YjIyLTkzOTctZjI5YzZhMzE2NjJlLXNxbGNydWR0ZXN0LTYxNTg/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 03 Sep 2020 01:02:02 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "bddbda8f-514b-4a08-98e3-a99420212780" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11980" + ], + "x-ms-correlation-request-id": [ + "ce3d3eb4-2401-418f-91dd-5559eff84060" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200903T010202Z:ce3d3eb4-2401-418f-91dd-5559eff84060" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "104" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"b675cc0c-64ca-4b22-9397-f29c6a31662e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T01:01:31Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/b675cc0c-64ca-4b22-9397-f29c6a31662e-sqlcrudtest-6158?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vYjY3NWNjMGMtNjRjYS00YjIyLTkzOTctZjI5YzZhMzE2NjJlLXNxbGNydWR0ZXN0LTYxNTg/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 03 Sep 2020 01:02:17 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "d4a54d68-61a1-45b2-a4d3-d11af34fd519" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11979" + ], + "x-ms-correlation-request-id": [ + "342cfa06-28e4-4e87-aee3-d441e7b15c45" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200903T010217Z:342cfa06-28e4-4e87-aee3-d441e7b15c45" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "104" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"b675cc0c-64ca-4b22-9397-f29c6a31662e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T01:01:31Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/b675cc0c-64ca-4b22-9397-f29c6a31662e-sqlcrudtest-6158?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vYjY3NWNjMGMtNjRjYS00YjIyLTkzOTctZjI5YzZhMzE2NjJlLXNxbGNydWR0ZXN0LTYxNTg/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 03 Sep 2020 01:02:32 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "f62c80b2-e12c-4297-8e31-653dcc4cb7bb" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11978" + ], + "x-ms-correlation-request-id": [ + "bb6fc651-b1a7-40ae-9f12-37a9c66b558b" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200903T010232Z:bb6fc651-b1a7-40ae-9f12-37a9c66b558b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "104" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"b675cc0c-64ca-4b22-9397-f29c6a31662e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T01:02:31Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/b675cc0c-64ca-4b22-9397-f29c6a31662e-sqlcrudtest-6158?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vYjY3NWNjMGMtNjRjYS00YjIyLTkzOTctZjI5YzZhMzE2NjJlLXNxbGNydWR0ZXN0LTYxNTg/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 03 Sep 2020 01:02:47 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "85b1ea0e-081e-4266-9efd-d35ed1a9a7d1" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11977" + ], + "x-ms-correlation-request-id": [ + "14d60906-effd-4403-81a0-1c3cb8bd7be3" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200903T010248Z:14d60906-effd-4403-81a0-1c3cb8bd7be3" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "104" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"b675cc0c-64ca-4b22-9397-f29c6a31662e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T01:02:31Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/b675cc0c-64ca-4b22-9397-f29c6a31662e-sqlcrudtest-6158?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vYjY3NWNjMGMtNjRjYS00YjIyLTkzOTctZjI5YzZhMzE2NjJlLXNxbGNydWR0ZXN0LTYxNTg/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 03 Sep 2020 01:03:03 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "5ac5b0d7-cc0a-48e1-bde1-4ac2076b61f8" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11976" + ], + "x-ms-correlation-request-id": [ + "f02ec32e-03fb-4722-ac80-4c5157435ef4" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200903T010303Z:f02ec32e-03fb-4722-ac80-4c5157435ef4" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "104" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"b675cc0c-64ca-4b22-9397-f29c6a31662e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T01:02:31Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/b675cc0c-64ca-4b22-9397-f29c6a31662e-sqlcrudtest-6158?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vYjY3NWNjMGMtNjRjYS00YjIyLTkzOTctZjI5YzZhMzE2NjJlLXNxbGNydWR0ZXN0LTYxNTg/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 03 Sep 2020 01:03:17 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "a07aa8a1-bc53-4ec5-b3e4-71f1233aff40" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11975" + ], + "x-ms-correlation-request-id": [ + "f0d2c074-1a27-44ce-9bb4-2b6ab7ad7987" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200903T010318Z:f0d2c074-1a27-44ce-9bb4-2b6ab7ad7987" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "104" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"b675cc0c-64ca-4b22-9397-f29c6a31662e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T01:02:31Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/b675cc0c-64ca-4b22-9397-f29c6a31662e-sqlcrudtest-6158?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vYjY3NWNjMGMtNjRjYS00YjIyLTkzOTctZjI5YzZhMzE2NjJlLXNxbGNydWR0ZXN0LTYxNTg/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 03 Sep 2020 01:03:32 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "da1d468a-ecf9-4b8a-ad0c-25c76fbdcd55" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11974" + ], + "x-ms-correlation-request-id": [ + "637eab20-764c-4072-873c-a8ca9704fcfa" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200903T010333Z:637eab20-764c-4072-873c-a8ca9704fcfa" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "104" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"b675cc0c-64ca-4b22-9397-f29c6a31662e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T01:03:31Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/b675cc0c-64ca-4b22-9397-f29c6a31662e-sqlcrudtest-6158?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vYjY3NWNjMGMtNjRjYS00YjIyLTkzOTctZjI5YzZhMzE2NjJlLXNxbGNydWR0ZXN0LTYxNTg/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 03 Sep 2020 01:03:48 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "2ce6215c-b5f5-4571-ad59-83cbe6b63f89" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11973" + ], + "x-ms-correlation-request-id": [ + "f58e7ffd-863e-4c80-9388-3e0c3acc07df" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200903T010348Z:f58e7ffd-863e-4c80-9388-3e0c3acc07df" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "104" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"b675cc0c-64ca-4b22-9397-f29c6a31662e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T01:03:31Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/b675cc0c-64ca-4b22-9397-f29c6a31662e-sqlcrudtest-6158?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vYjY3NWNjMGMtNjRjYS00YjIyLTkzOTctZjI5YzZhMzE2NjJlLXNxbGNydWR0ZXN0LTYxNTg/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 03 Sep 2020 01:04:04 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "c71c09f5-d014-49ea-afb3-79a16a1680fa" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11972" + ], + "x-ms-correlation-request-id": [ + "5422117b-e2d3-4f11-a096-17dedbb0c831" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200903T010404Z:5422117b-e2d3-4f11-a096-17dedbb0c831" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "104" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"b675cc0c-64ca-4b22-9397-f29c6a31662e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T01:03:31Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/b675cc0c-64ca-4b22-9397-f29c6a31662e-sqlcrudtest-6158?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vYjY3NWNjMGMtNjRjYS00YjIyLTkzOTctZjI5YzZhMzE2NjJlLXNxbGNydWR0ZXN0LTYxNTg/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 03 Sep 2020 01:04:18 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "a0682ec3-62b4-4621-b67b-ac41f29ee979" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11971" + ], + "x-ms-correlation-request-id": [ + "52cceb1f-6e7e-4cf4-b49e-978e5fe22166" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200903T010419Z:52cceb1f-6e7e-4cf4-b49e-978e5fe22166" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "104" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"b675cc0c-64ca-4b22-9397-f29c6a31662e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T01:03:31Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/b675cc0c-64ca-4b22-9397-f29c6a31662e-sqlcrudtest-6158?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vYjY3NWNjMGMtNjRjYS00YjIyLTkzOTctZjI5YzZhMzE2NjJlLXNxbGNydWR0ZXN0LTYxNTg/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 03 Sep 2020 01:04:34 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "d3e7cd4d-274c-49f8-915c-27c655267b1b" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11970" + ], + "x-ms-correlation-request-id": [ + "13a3a281-d829-4d55-959d-3b5631cf77be" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200903T010434Z:13a3a281-d829-4d55-959d-3b5631cf77be" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "104" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"b675cc0c-64ca-4b22-9397-f29c6a31662e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T01:04:31Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/b675cc0c-64ca-4b22-9397-f29c6a31662e-sqlcrudtest-6158?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vYjY3NWNjMGMtNjRjYS00YjIyLTkzOTctZjI5YzZhMzE2NjJlLXNxbGNydWR0ZXN0LTYxNTg/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 03 Sep 2020 01:04:49 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "69bf42f5-9ad3-4b44-af7e-52a3eddf0bce" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11969" + ], + "x-ms-correlation-request-id": [ + "911245dd-cd3b-4514-9dda-2d5b872a91b8" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200903T010449Z:911245dd-cd3b-4514-9dda-2d5b872a91b8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "103" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"b675cc0c-64ca-4b22-9397-f29c6a31662e\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2020-09-03T01:04:43Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportOperationResults/b675cc0c-64ca-4b22-9397-f29c6a31662e-sqlcrudtest-6158?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydE9wZXJhdGlvblJlc3VsdHMvYjY3NWNjMGMtNjRjYS00YjIyLTkzOTctZjI5YzZhMzE2NjJlLXNxbGNydWR0ZXN0LTYxNTg/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 03 Sep 2020 01:04:49 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "3b9f0c49-7c0f-4c20-a56f-f2abe507f98b" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11968" + ], + "x-ms-correlation-request-id": [ + "d40c5114-ca97-4f22-b88a-1b337634bf24" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200903T010449Z:d40c5114-ca97-4f22-b88a-1b337634bf24" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "550" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"requestId\": \"b675cc0c-64ca-4b22-9397-f29c6a31662e\",\r\n \"requestType\": \"ImportToNewDatabase\",\r\n \"queuedTime\": \"9/3/2020 1:01:31 AM\",\r\n \"lastModifiedTime\": \"9/3/2020 1:04:43 AM\",\r\n \"blobUri\": \"https://sqlcrudtest2995.blob.core.windows.net/container/sqlcrudtest-9521.bacpac\",\r\n \"serverName\": \"sqlcrudtest-6158\",\r\n \"databaseName\": \"sqlcrudtest-2577\",\r\n \"status\": \"Completed\",\r\n \"privateEndpointConnections\": []\r\n },\r\n \"id\": \"b675cc0c-64ca-4b22-9397-f29c6a31662e\",\r\n \"name\": \"b675cc0c-64ca-4b22-9397-f29c6a31662e\",\r\n \"type\": \"Microsoft.Sql/servers/databases/importExportOperationResults\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourcegroups/sqlcrudtest-147?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTE0Nz9hcGktdmVyc2lvbj0yMDE3LTA1LTEw", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "d804fdb5-14ca-46cd-bb32-987033056824" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 03 Sep 2020 01:04:50 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDE0Ny1XRVNUQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0Y2VudHJhbHVzIn0?api-version=2017-05-10" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" + ], + "x-ms-request-id": [ + "be4a1058-56b4-4202-837c-377bdab20534" + ], + "x-ms-correlation-request-id": [ + "be4a1058-56b4-4202-837c-377bdab20534" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200903T010451Z:be4a1058-56b4-4202-837c-377bdab20534" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + } + ], + "Names": { + "CreateResourceGroup": [ + "sqlcrudtest-147" + ], + "CreateServer": [ + "sqlcrudtest-6158" + ], + "CreateStorageContainer": [ + "sqlcrudtest2995" + ], + "TestImportExport": [ + "sqlcrudtest-9521", + "sqlcrudtest-2577", + "sqlcrudstorage709", + "sqlcrudtest-6756" + ] + }, + "Variables": { + "SubscriptionId": "b75889fa-6661-44e0-a844-cd96ec938991" + } +} \ No newline at end of file From c355eeb03831ecf079000d462c4b5d48e90b7b89 Mon Sep 17 00:00:00 2001 From: Brandon Greenwood Date: Wed, 2 Sep 2020 21:56:43 -0700 Subject: [PATCH 03/19] Undo change done for local testing --- .../tests/Utilities/TestEnvironmentUtilities.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/tests/Utilities/TestEnvironmentUtilities.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/tests/Utilities/TestEnvironmentUtilities.cs index 25ce34a60f6f..f9b70626368f 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/tests/Utilities/TestEnvironmentUtilities.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/tests/Utilities/TestEnvironmentUtilities.cs @@ -26,8 +26,7 @@ public static string DefaultLocation { get { - return "WestCentralUs"; - ////return GetValueFromEnvironment("DefaultLocation"); + return GetValueFromEnvironment("DefaultLocation"); } } public static string DefaultLocationId From 760322a8d6a6efa46fbb06c20140371858cd0131 Mon Sep 17 00:00:00 2001 From: Brandon Greenwood Date: Thu, 3 Sep 2020 11:03:39 -0700 Subject: [PATCH 04/19] Include Alicia's client changes --- .../src/Generated/DatabasesOperations.cs | 390 +++++++++++++++++- .../DatabasesOperationsExtensions.cs | 76 ++++ .../src/Generated/IDatabasesOperations.cs | 49 +++ .../Generated/SdkInfo_SqlManagementClient.cs | 3 +- 4 files changed, 505 insertions(+), 13 deletions(-) diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/DatabasesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/DatabasesOperations.cs index fcdff102849a..fb3b1d920ebd 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/DatabasesOperations.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/DatabasesOperations.cs @@ -515,7 +515,7 @@ internal DatabasesOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2017-10-01-preview"; + string apiVersion = "2019-06-01-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -717,7 +717,7 @@ internal DatabasesOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2017-10-01-preview"; + string apiVersion = "2019-06-01-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1005,7 +1005,7 @@ internal DatabasesOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2017-10-01-preview"; + string apiVersion = "2019-06-01-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1295,7 +1295,7 @@ internal DatabasesOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2017-10-01-preview"; + string apiVersion = "2019-06-01-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1436,6 +1436,201 @@ internal DatabasesOperations(SqlManagementClient client) return _result; } + /// + /// Gets a list of inaccessible databases in a logical server + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListInaccessibleByServerWithHttpMessagesAsync(string resourceGroupName, string serverName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (serverName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "serverName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + string apiVersion = "2019-06-01-preview"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("serverName", serverName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListInaccessibleByServer", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/inaccessibleDatabases").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + /// /// Failovers a database. /// @@ -1558,7 +1753,7 @@ internal DatabasesOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2017-10-01-preview"; + string apiVersion = "2019-06-01-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1784,7 +1979,7 @@ internal DatabasesOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2017-10-01-preview"; + string apiVersion = "2019-06-01-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1977,7 +2172,7 @@ internal DatabasesOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2017-10-01-preview"; + string apiVersion = "2019-06-01-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2188,7 +2383,7 @@ internal DatabasesOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2017-10-01-preview"; + string apiVersion = "2019-06-01-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2392,7 +2587,7 @@ internal DatabasesOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2017-10-01-preview"; + string apiVersion = "2019-06-01-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2593,7 +2788,7 @@ internal DatabasesOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2017-10-01-preview"; + string apiVersion = "2019-06-01-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2780,7 +2975,7 @@ internal DatabasesOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2018-06-01-preview"; + string apiVersion = "2019-06-01-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -3487,5 +3682,178 @@ internal DatabasesOperations(SqlManagementClient client) return _result; } + /// + /// Gets a list of inaccessible databases in a logical server + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListInaccessibleByServerNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (nextPageLink == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("nextPageLink", nextPageLink); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListInaccessibleByServerNext", tracingParameters); + } + // Construct URL + string _url = "{nextLink}"; + _url = _url.Replace("{nextLink}", nextPageLink); + List _queryParameters = new List(); + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/DatabasesOperationsExtensions.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/DatabasesOperationsExtensions.cs index dbaf2023d0e7..902c1d5692e7 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/DatabasesOperationsExtensions.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/DatabasesOperationsExtensions.cs @@ -608,6 +608,48 @@ public static void Rename(this IDatabasesOperations operations, string resourceG (await operations.RenameWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, parameters, null, cancellationToken).ConfigureAwait(false)).Dispose(); } + /// + /// Gets a list of inaccessible databases in a logical server + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + public static IPage ListInaccessibleByServer(this IDatabasesOperations operations, string resourceGroupName, string serverName) + { + return operations.ListInaccessibleByServerAsync(resourceGroupName, serverName).GetAwaiter().GetResult(); + } + + /// + /// Gets a list of inaccessible databases in a logical server + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The cancellation token. + /// + public static async Task> ListInaccessibleByServerAsync(this IDatabasesOperations operations, string resourceGroupName, string serverName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListInaccessibleByServerWithHttpMessagesAsync(resourceGroupName, serverName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + /// /// Failovers a database. /// @@ -1184,5 +1226,39 @@ public static IPage ListByElasticPoolNext(this IDatabasesOperations op } } + /// + /// Gets a list of inaccessible databases in a logical server + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListInaccessibleByServerNext(this IDatabasesOperations operations, string nextPageLink) + { + return operations.ListInaccessibleByServerNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Gets a list of inaccessible databases in a logical server + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListInaccessibleByServerNextAsync(this IDatabasesOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListInaccessibleByServerNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IDatabasesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IDatabasesOperations.cs index e235228400bc..815b7a925482 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IDatabasesOperations.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IDatabasesOperations.cs @@ -385,6 +385,33 @@ public partial interface IDatabasesOperations /// Task RenameWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, ResourceMoveDefinition parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// + /// Gets a list of inaccessible databases in a logical server + /// + /// + /// The name of the resource group that contains the resource. You can + /// obtain this value from the Azure Resource Manager API or the + /// portal. + /// + /// + /// The name of the server. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListInaccessibleByServerWithHttpMessagesAsync(string resourceGroupName, string serverName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// /// Failovers a database. /// /// @@ -736,5 +763,27 @@ public partial interface IDatabasesOperations /// Thrown when a required parameter is null /// Task>> ListByElasticPoolNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets a list of inaccessible databases in a logical server + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListInaccessibleByServerNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/SdkInfo_SqlManagementClient.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/SdkInfo_SqlManagementClient.cs index c3ee5f84b2de..fb6e69606085 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/SdkInfo_SqlManagementClient.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/SdkInfo_SqlManagementClient.cs @@ -25,8 +25,7 @@ public static IEnumerable> ApiInfo_SqlManagementCl new Tuple("Sql", "DatabaseVulnerabilityAssessmentScans", "2017-10-01-preview"), new Tuple("Sql", "DatabaseVulnerabilityAssessments", "2017-03-01-preview"), new Tuple("Sql", "Databases", "2014-04-01"), - new Tuple("Sql", "Databases", "2017-10-01-preview"), - new Tuple("Sql", "Databases", "2018-06-01-preview"), + new Tuple("Sql", "Databases", "2019-06-01-preview"), new Tuple("Sql", "Databases", "2020-02-02-preview"), new Tuple("Sql", "ElasticPoolActivities", "2014-04-01"), new Tuple("Sql", "ElasticPoolDatabaseActivities", "2014-04-01"), From e84483701e49a474953983f39ac5a370176f7745 Mon Sep 17 00:00:00 2001 From: Brandon Greenwood Date: Thu, 3 Sep 2020 12:58:17 -0700 Subject: [PATCH 05/19] Add missing models --- .../src/Generated/Models/Database.cs | 46 +++++++++++-------- .../src/Generated/Models/DatabaseUpdate.cs | 46 +++++++++++-------- 2 files changed, 54 insertions(+), 38 deletions(-) diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/Database.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/Database.cs index d5355b4a44a6..70775be1d31a 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/Database.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/Database.cs @@ -161,28 +161,30 @@ public Database() /// This records the earliest start /// date and time that restore is available for this database (ISO8601 /// format). - /// If enabled, connections that have - /// application intent set to readonly in their connection string may - /// be routed to a readonly secondary replica. This property is only - /// settable for Premium and Business Critical databases. Possible - /// values include: 'Enabled', 'Disabled' + /// The state of read-only routing. If enabled, + /// connections that have application intent set to readonly in their + /// connection string may be routed to a readonly secondary replica in + /// the same region. Possible values include: 'Enabled', + /// 'Disabled' /// The number of readonly secondary - /// replicas associated with the database to which readonly application - /// intent connections may be routed. This property is only settable - /// for Hyperscale edition databases. + /// replicas associated with the database. /// The name and tier of the SKU. /// Time in minutes after which database /// is automatically paused. A value of -1 means that automatic pause /// is disabled + /// The storage account type used to + /// store backups for this database. Currently the only supported + /// option is GRS (GeoRedundantStorage). Possible values include: + /// 'GRS', 'LRS', 'ZRS' /// Minimal capacity that database will /// always have allocated, if not paused /// The date when database was paused by user - /// configuration or action (ISO8601 format). Null if the database is + /// configuration or action(ISO8601 format). Null if the database is /// ready. /// The date when database was resumed by /// user action or database login (ISO8601 format). Null if the /// database is paused. - public Database(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), Sku sku = default(Sku), string kind = default(string), string managedBy = default(string), CreateMode? createMode = default(CreateMode?), string collation = default(string), long? maxSizeBytes = default(long?), SampleName? sampleName = default(SampleName?), string elasticPoolId = default(string), string sourceDatabaseId = default(string), DatabaseStatus? status = default(DatabaseStatus?), System.Guid? databaseId = default(System.Guid?), System.DateTime? creationDate = default(System.DateTime?), string currentServiceObjectiveName = default(string), string requestedServiceObjectiveName = default(string), string defaultSecondaryLocation = default(string), string failoverGroupId = default(string), System.DateTime? restorePointInTime = default(System.DateTime?), System.DateTime? sourceDatabaseDeletionDate = default(System.DateTime?), string recoveryServicesRecoveryPointId = default(string), string longTermRetentionBackupResourceId = default(string), string recoverableDatabaseId = default(string), string restorableDroppedDatabaseId = default(string), CatalogCollationType? catalogCollation = default(CatalogCollationType?), bool? zoneRedundant = default(bool?), DatabaseLicenseType? licenseType = default(DatabaseLicenseType?), long? maxLogSizeBytes = default(long?), System.DateTime? earliestRestoreDate = default(System.DateTime?), DatabaseReadScale? readScale = default(DatabaseReadScale?), int? readReplicaCount = default(int?), Sku currentSku = default(Sku), int? autoPauseDelay = default(int?), double? minCapacity = default(double?), System.DateTime? pausedDate = default(System.DateTime?), System.DateTime? resumedDate = default(System.DateTime?)) + public Database(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), Sku sku = default(Sku), string kind = default(string), string managedBy = default(string), CreateMode? createMode = default(CreateMode?), string collation = default(string), long? maxSizeBytes = default(long?), SampleName? sampleName = default(SampleName?), string elasticPoolId = default(string), string sourceDatabaseId = default(string), DatabaseStatus? status = default(DatabaseStatus?), System.Guid? databaseId = default(System.Guid?), System.DateTime? creationDate = default(System.DateTime?), string currentServiceObjectiveName = default(string), string requestedServiceObjectiveName = default(string), string defaultSecondaryLocation = default(string), string failoverGroupId = default(string), System.DateTime? restorePointInTime = default(System.DateTime?), System.DateTime? sourceDatabaseDeletionDate = default(System.DateTime?), string recoveryServicesRecoveryPointId = default(string), string longTermRetentionBackupResourceId = default(string), string recoverableDatabaseId = default(string), string restorableDroppedDatabaseId = default(string), CatalogCollationType? catalogCollation = default(CatalogCollationType?), bool? zoneRedundant = default(bool?), DatabaseLicenseType? licenseType = default(DatabaseLicenseType?), long? maxLogSizeBytes = default(long?), System.DateTime? earliestRestoreDate = default(System.DateTime?), DatabaseReadScale? readScale = default(DatabaseReadScale?), int? readReplicaCount = default(int?), Sku currentSku = default(Sku), int? autoPauseDelay = default(int?), StorageAccountType? storageAccountType = default(StorageAccountType?), double? minCapacity = default(double?), System.DateTime? pausedDate = default(System.DateTime?), System.DateTime? resumedDate = default(System.DateTime?)) : base(location, id, name, type, tags) { Sku = sku; @@ -216,6 +218,7 @@ public Database() ReadReplicaCount = readReplicaCount; CurrentSku = currentSku; AutoPauseDelay = autoPauseDelay; + StorageAccountType = storageAccountType; MinCapacity = minCapacity; PausedDate = pausedDate; ResumedDate = resumedDate; @@ -468,20 +471,17 @@ public Database() public System.DateTime? EarliestRestoreDate { get; private set; } /// - /// Gets or sets if enabled, connections that have application intent - /// set to readonly in their connection string may be routed to a - /// readonly secondary replica. This property is only settable for - /// Premium and Business Critical databases. Possible values include: - /// 'Enabled', 'Disabled' + /// Gets or sets the state of read-only routing. If enabled, + /// connections that have application intent set to readonly in their + /// connection string may be routed to a readonly secondary replica in + /// the same region. Possible values include: 'Enabled', 'Disabled' /// [JsonProperty(PropertyName = "properties.readScale")] public DatabaseReadScale? ReadScale { get; set; } /// /// Gets or sets the number of readonly secondary replicas associated - /// with the database to which readonly application intent connections - /// may be routed. This property is only settable for Hyperscale - /// edition databases. + /// with the database. /// [JsonProperty(PropertyName = "properties.readReplicaCount")] public int? ReadReplicaCount { get; set; } @@ -499,6 +499,14 @@ public Database() [JsonProperty(PropertyName = "properties.autoPauseDelay")] public int? AutoPauseDelay { get; set; } + /// + /// Gets or sets the storage account type used to store backups for + /// this database. Currently the only supported option is GRS + /// (GeoRedundantStorage). Possible values include: 'GRS', 'LRS', 'ZRS' + /// + [JsonProperty(PropertyName = "properties.storageAccountType")] + public StorageAccountType? StorageAccountType { get; set; } + /// /// Gets or sets minimal capacity that database will always have /// allocated, if not paused @@ -508,7 +516,7 @@ public Database() /// /// Gets the date when database was paused by user configuration or - /// action (ISO8601 format). Null if the database is ready. + /// action(ISO8601 format). Null if the database is ready. /// [JsonProperty(PropertyName = "properties.pausedDate")] public System.DateTime? PausedDate { get; private set; } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseUpdate.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseUpdate.cs index a49b8266b671..a008d6f9ef92 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseUpdate.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseUpdate.cs @@ -138,29 +138,31 @@ public DatabaseUpdate() /// This records the earliest start /// date and time that restore is available for this database (ISO8601 /// format). - /// If enabled, connections that have - /// application intent set to readonly in their connection string may - /// be routed to a readonly secondary replica. This property is only - /// settable for Premium and Business Critical databases. Possible - /// values include: 'Enabled', 'Disabled' + /// The state of read-only routing. If enabled, + /// connections that have application intent set to readonly in their + /// connection string may be routed to a readonly secondary replica in + /// the same region. Possible values include: 'Enabled', + /// 'Disabled' /// The number of readonly secondary - /// replicas associated with the database to which readonly application - /// intent connections may be routed. This property is only settable - /// for Hyperscale edition databases. + /// replicas associated with the database. /// The name and tier of the SKU. /// Time in minutes after which database /// is automatically paused. A value of -1 means that automatic pause /// is disabled + /// The storage account type used to + /// store backups for this database. Currently the only supported + /// option is GRS (GeoRedundantStorage). Possible values include: + /// 'GRS', 'LRS', 'ZRS' /// Minimal capacity that database will /// always have allocated, if not paused /// The date when database was paused by user - /// configuration or action (ISO8601 format). Null if the database is + /// configuration or action(ISO8601 format). Null if the database is /// ready. /// The date when database was resumed by /// user action or database login (ISO8601 format). Null if the /// database is paused. /// Resource tags. - public DatabaseUpdate(Sku sku = default(Sku), CreateMode? createMode = default(CreateMode?), string collation = default(string), long? maxSizeBytes = default(long?), SampleName? sampleName = default(SampleName?), string elasticPoolId = default(string), string sourceDatabaseId = default(string), DatabaseStatus? status = default(DatabaseStatus?), System.Guid? databaseId = default(System.Guid?), System.DateTime? creationDate = default(System.DateTime?), string currentServiceObjectiveName = default(string), string requestedServiceObjectiveName = default(string), string defaultSecondaryLocation = default(string), string failoverGroupId = default(string), System.DateTime? restorePointInTime = default(System.DateTime?), System.DateTime? sourceDatabaseDeletionDate = default(System.DateTime?), string recoveryServicesRecoveryPointId = default(string), string longTermRetentionBackupResourceId = default(string), string recoverableDatabaseId = default(string), string restorableDroppedDatabaseId = default(string), CatalogCollationType? catalogCollation = default(CatalogCollationType?), bool? zoneRedundant = default(bool?), DatabaseLicenseType? licenseType = default(DatabaseLicenseType?), long? maxLogSizeBytes = default(long?), System.DateTime? earliestRestoreDate = default(System.DateTime?), DatabaseReadScale? readScale = default(DatabaseReadScale?), int? readReplicaCount = default(int?), Sku currentSku = default(Sku), int? autoPauseDelay = default(int?), double? minCapacity = default(double?), System.DateTime? pausedDate = default(System.DateTime?), System.DateTime? resumedDate = default(System.DateTime?), IDictionary tags = default(IDictionary)) + public DatabaseUpdate(Sku sku = default(Sku), CreateMode? createMode = default(CreateMode?), string collation = default(string), long? maxSizeBytes = default(long?), SampleName? sampleName = default(SampleName?), string elasticPoolId = default(string), string sourceDatabaseId = default(string), DatabaseStatus? status = default(DatabaseStatus?), System.Guid? databaseId = default(System.Guid?), System.DateTime? creationDate = default(System.DateTime?), string currentServiceObjectiveName = default(string), string requestedServiceObjectiveName = default(string), string defaultSecondaryLocation = default(string), string failoverGroupId = default(string), System.DateTime? restorePointInTime = default(System.DateTime?), System.DateTime? sourceDatabaseDeletionDate = default(System.DateTime?), string recoveryServicesRecoveryPointId = default(string), string longTermRetentionBackupResourceId = default(string), string recoverableDatabaseId = default(string), string restorableDroppedDatabaseId = default(string), CatalogCollationType? catalogCollation = default(CatalogCollationType?), bool? zoneRedundant = default(bool?), DatabaseLicenseType? licenseType = default(DatabaseLicenseType?), long? maxLogSizeBytes = default(long?), System.DateTime? earliestRestoreDate = default(System.DateTime?), DatabaseReadScale? readScale = default(DatabaseReadScale?), int? readReplicaCount = default(int?), Sku currentSku = default(Sku), int? autoPauseDelay = default(int?), StorageAccountType? storageAccountType = default(StorageAccountType?), double? minCapacity = default(double?), System.DateTime? pausedDate = default(System.DateTime?), System.DateTime? resumedDate = default(System.DateTime?), IDictionary tags = default(IDictionary)) { Sku = sku; CreateMode = createMode; @@ -191,6 +193,7 @@ public DatabaseUpdate() ReadReplicaCount = readReplicaCount; CurrentSku = currentSku; AutoPauseDelay = autoPauseDelay; + StorageAccountType = storageAccountType; MinCapacity = minCapacity; PausedDate = pausedDate; ResumedDate = resumedDate; @@ -416,20 +419,17 @@ public DatabaseUpdate() public System.DateTime? EarliestRestoreDate { get; private set; } /// - /// Gets or sets if enabled, connections that have application intent - /// set to readonly in their connection string may be routed to a - /// readonly secondary replica. This property is only settable for - /// Premium and Business Critical databases. Possible values include: - /// 'Enabled', 'Disabled' + /// Gets or sets the state of read-only routing. If enabled, + /// connections that have application intent set to readonly in their + /// connection string may be routed to a readonly secondary replica in + /// the same region. Possible values include: 'Enabled', 'Disabled' /// [JsonProperty(PropertyName = "properties.readScale")] public DatabaseReadScale? ReadScale { get; set; } /// /// Gets or sets the number of readonly secondary replicas associated - /// with the database to which readonly application intent connections - /// may be routed. This property is only settable for Hyperscale - /// edition databases. + /// with the database. /// [JsonProperty(PropertyName = "properties.readReplicaCount")] public int? ReadReplicaCount { get; set; } @@ -447,6 +447,14 @@ public DatabaseUpdate() [JsonProperty(PropertyName = "properties.autoPauseDelay")] public int? AutoPauseDelay { get; set; } + /// + /// Gets or sets the storage account type used to store backups for + /// this database. Currently the only supported option is GRS + /// (GeoRedundantStorage). Possible values include: 'GRS', 'LRS', 'ZRS' + /// + [JsonProperty(PropertyName = "properties.storageAccountType")] + public StorageAccountType? StorageAccountType { get; set; } + /// /// Gets or sets minimal capacity that database will always have /// allocated, if not paused @@ -456,7 +464,7 @@ public DatabaseUpdate() /// /// Gets the date when database was paused by user configuration or - /// action (ISO8601 format). Null if the database is ready. + /// action(ISO8601 format). Null if the database is ready. /// [JsonProperty(PropertyName = "properties.pausedDate")] public System.DateTime? PausedDate { get; private set; } From c3eb807f328e19f49a1849ccab24415a4bc2fc11 Mon Sep 17 00:00:00 2001 From: Brandon Greenwood Date: Thu, 3 Sep 2020 13:01:54 -0700 Subject: [PATCH 06/19] Update session record for TestImportExistingDatabase --- .../TestImportExistingDatabase.json | 851 ++++++++---------- 1 file changed, 396 insertions(+), 455 deletions(-) diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/tests/SessionRecords/TestImportExistingDatabase.json b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/tests/SessionRecords/TestImportExistingDatabase.json index db3a62544b97..ab66e3924f3e 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/tests/SessionRecords/TestImportExistingDatabase.json +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/tests/SessionRecords/TestImportExistingDatabase.json @@ -1,13 +1,13 @@ { "Entries": [ { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourcegroups/sqlcrudtest-1849?api-version=2017-05-10", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTE4NDk/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourcegroups/sqlcrudtest-7317?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTczMTc/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"location\": \"WestCentralUs\",\r\n \"tags\": {\r\n \"sqlcrudtest-1849\": \"2020-09-03 01:13:02Z\"\r\n }\r\n}", + "RequestBody": "{\r\n \"location\": \"West Central US\",\r\n \"tags\": {\r\n \"sqlcrudtest-7317\": \"2020-09-03 19:47:14Z\"\r\n }\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "6f70c1dc-6997-4af0-b1ff-c48565ae0e01" + "85c9997b-b877-419c-bfbe-19477b5a9ae3" ], "accept-language": [ "en-US" @@ -22,7 +22,7 @@ "application/json; charset=utf-8" ], "Content-Length": [ - "102" + "104" ] }, "ResponseHeaders": { @@ -30,22 +30,22 @@ "no-cache" ], "Date": [ - "Thu, 03 Sep 2020 01:13:03 GMT" + "Thu, 03 Sep 2020 19:47:22 GMT" ], "Pragma": [ "no-cache" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1198" + "1195" ], "x-ms-request-id": [ - "b08b9d96-cb4b-4817-8fcb-292480ac4aaa" + "fd37114f-b4ec-4e5e-a56d-338b9791bdf5" ], "x-ms-correlation-request-id": [ - "b08b9d96-cb4b-4817-8fcb-292480ac4aaa" + "fd37114f-b4ec-4e5e-a56d-338b9791bdf5" ], "x-ms-routing-request-id": [ - "BRAZILUS:20200903T011304Z:b08b9d96-cb4b-4817-8fcb-292480ac4aaa" + "BRAZILUS:20200903T194722Z:fd37114f-b4ec-4e5e-a56d-338b9791bdf5" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -63,17 +63,17 @@ "-1" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-1849\",\r\n \"name\": \"sqlcrudtest-1849\",\r\n \"location\": \"westcentralus\",\r\n \"tags\": {\r\n \"sqlcrudtest-1849\": \"2020-09-03 01:13:02Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317\",\r\n \"name\": \"sqlcrudtest-7317\",\r\n \"location\": \"westcentralus\",\r\n \"tags\": {\r\n \"sqlcrudtest-7317\": \"2020-09-03 19:47:14Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", "StatusCode": 201 }, { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-1849/providers/Microsoft.Sql/servers/sqlcrudtest-4360?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTE4NDkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC00MzYwP2FwaS12ZXJzaW9uPTIwMTktMDYtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Sql/servers/sqlcrudtest-8696?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczMTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC04Njk2P2FwaS12ZXJzaW9uPTIwMTktMDYtMDEtcHJldmlldw==", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"administratorLogin\": \"dummylogin\",\r\n \"administratorLoginPassword\": \"Un53cuRE!\",\r\n \"version\": \"12.0\"\r\n },\r\n \"location\": \"WestCentralUs\",\r\n \"tags\": {}\r\n}", + "RequestBody": "{\r\n \"properties\": {\r\n \"administratorLogin\": \"dummylogin\",\r\n \"administratorLoginPassword\": \"Un53cuRE!\",\r\n \"version\": \"12.0\"\r\n },\r\n \"location\": \"West Central US\",\r\n \"tags\": {}\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "628dc83c-6135-4ff6-9e7e-cc9495db84d2" + "ff5f86e5-acf2-4312-b1fd-8ce70dfac9a4" ], "accept-language": [ "en-US" @@ -88,7 +88,7 @@ "application/json; charset=utf-8" ], "Content-Length": [ - "187" + "189" ] }, "ResponseHeaders": { @@ -96,13 +96,13 @@ "no-cache" ], "Date": [ - "Thu, 03 Sep 2020 01:13:07 GMT" + "Thu, 03 Sep 2020 19:47:31 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-1849/providers/Microsoft.Sql/locations/westcentralus/serverOperationResults/efb817c3-662a-4aff-b10b-cfbdecc5f2a2?api-version=2019-06-01-preview" + "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Sql/locations/westcentralus/serverOperationResults/d3b266f9-ad6a-47d4-afd8-42d291ea8adc?api-version=2019-06-01-preview" ], "Retry-After": [ "1" @@ -111,19 +111,19 @@ "Microsoft-HTTPAPI/2.0" ], "Azure-AsyncOperation": [ - "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-1849/providers/Microsoft.Sql/locations/westcentralus/serverAzureAsyncOperation/efb817c3-662a-4aff-b10b-cfbdecc5f2a2?api-version=2019-06-01-preview" + "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Sql/locations/westcentralus/serverAzureAsyncOperation/d3b266f9-ad6a-47d4-afd8-42d291ea8adc?api-version=2019-06-01-preview" ], "x-ms-request-id": [ - "efb817c3-662a-4aff-b10b-cfbdecc5f2a2" + "d3b266f9-ad6a-47d4-afd8-42d291ea8adc" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1196" + "1193" ], "x-ms-correlation-request-id": [ - "c47fbb58-05c8-43dd-81c0-ca356302c3f9" + "82aef4af-ffe9-45e3-8c8d-c61a7ac9d3e9" ], "x-ms-routing-request-id": [ - "BRAZILUS:20200903T011307Z:c47fbb58-05c8-43dd-81c0-ca356302c3f9" + "BRAZILUS:20200903T194731Z:82aef4af-ffe9-45e3-8c8d-c61a7ac9d3e9" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -132,7 +132,7 @@ "nosniff" ], "Content-Length": [ - "72" + "73" ], "Content-Type": [ "application/json; charset=utf-8" @@ -141,12 +141,12 @@ "-1" ] }, - "ResponseBody": "{\r\n \"operation\": \"UpsertLogicalServer\",\r\n \"startTime\": \"2020-09-03T01:13:07.1Z\"\r\n}", + "ResponseBody": "{\r\n \"operation\": \"UpsertLogicalServer\",\r\n \"startTime\": \"2020-09-03T19:47:31.32Z\"\r\n}", "StatusCode": 202 }, { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-1849/providers/Microsoft.Sql/locations/westcentralus/serverAzureAsyncOperation/efb817c3-662a-4aff-b10b-cfbdecc5f2a2?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTE4NDkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9lZmI4MTdjMy02NjJhLTRhZmYtYjEwYi1jZmJkZWNjNWYyYTI/YXBpLXZlcnNpb249MjAxOS0wNi0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Sql/locations/westcentralus/serverAzureAsyncOperation/d3b266f9-ad6a-47d4-afd8-42d291ea8adc?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczMTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9kM2IyNjZmOS1hZDZhLTQ3ZDQtYWZkOC00MmQyOTFlYThhZGM/YXBpLXZlcnNpb249MjAxOS0wNi0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -162,7 +162,7 @@ "no-cache" ], "Date": [ - "Thu, 03 Sep 2020 01:13:08 GMT" + "Thu, 03 Sep 2020 19:47:32 GMT" ], "Pragma": [ "no-cache" @@ -174,16 +174,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "5639f6d3-6a17-46b8-9d1b-e4c968ad7440" + "99529140-904a-4709-a3da-b74bf7eb5805" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11967" + "11981" ], "x-ms-correlation-request-id": [ - "76c9e2e1-b76a-462b-84ab-e2f9cd12e8ae" + "5c2d5be8-a62e-44b4-8820-d603adf1fb6c" ], "x-ms-routing-request-id": [ - "BRAZILUS:20200903T011308Z:76c9e2e1-b76a-462b-84ab-e2f9cd12e8ae" + "BRAZILUS:20200903T194732Z:5c2d5be8-a62e-44b4-8820-d603adf1fb6c" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -192,7 +192,7 @@ "nosniff" ], "Content-Length": [ - "106" + "107" ], "Content-Type": [ "application/json; charset=utf-8" @@ -201,12 +201,12 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"efb817c3-662a-4aff-b10b-cfbdecc5f2a2\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T01:13:07.1Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"d3b266f9-ad6a-47d4-afd8-42d291ea8adc\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T19:47:31.32Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-1849/providers/Microsoft.Sql/locations/westcentralus/serverAzureAsyncOperation/efb817c3-662a-4aff-b10b-cfbdecc5f2a2?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTE4NDkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9lZmI4MTdjMy02NjJhLTRhZmYtYjEwYi1jZmJkZWNjNWYyYTI/YXBpLXZlcnNpb249MjAxOS0wNi0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Sql/locations/westcentralus/serverAzureAsyncOperation/d3b266f9-ad6a-47d4-afd8-42d291ea8adc?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczMTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9kM2IyNjZmOS1hZDZhLTQ3ZDQtYWZkOC00MmQyOTFlYThhZGM/YXBpLXZlcnNpb249MjAxOS0wNi0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -222,7 +222,7 @@ "no-cache" ], "Date": [ - "Thu, 03 Sep 2020 01:13:09 GMT" + "Thu, 03 Sep 2020 19:47:33 GMT" ], "Pragma": [ "no-cache" @@ -234,16 +234,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "3d4b6e15-dc7c-4643-942d-a287e95d0c7f" + "5cfc2c71-a682-4d56-bf62-3a54919f0ef0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11966" + "11980" ], "x-ms-correlation-request-id": [ - "4e13ff34-6318-4686-9078-ede9c8408b00" + "1a4c85fe-8c79-4fce-b17e-10073e67d046" ], "x-ms-routing-request-id": [ - "BRAZILUS:20200903T011309Z:4e13ff34-6318-4686-9078-ede9c8408b00" + "BRAZILUS:20200903T194733Z:1a4c85fe-8c79-4fce-b17e-10073e67d046" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -252,7 +252,7 @@ "nosniff" ], "Content-Length": [ - "106" + "107" ], "Content-Type": [ "application/json; charset=utf-8" @@ -261,12 +261,12 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"efb817c3-662a-4aff-b10b-cfbdecc5f2a2\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T01:13:07.1Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"d3b266f9-ad6a-47d4-afd8-42d291ea8adc\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T19:47:31.32Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-1849/providers/Microsoft.Sql/locations/westcentralus/serverAzureAsyncOperation/efb817c3-662a-4aff-b10b-cfbdecc5f2a2?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTE4NDkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9lZmI4MTdjMy02NjJhLTRhZmYtYjEwYi1jZmJkZWNjNWYyYTI/YXBpLXZlcnNpb249MjAxOS0wNi0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Sql/locations/westcentralus/serverAzureAsyncOperation/d3b266f9-ad6a-47d4-afd8-42d291ea8adc?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczMTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9kM2IyNjZmOS1hZDZhLTQ3ZDQtYWZkOC00MmQyOTFlYThhZGM/YXBpLXZlcnNpb249MjAxOS0wNi0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -282,7 +282,7 @@ "no-cache" ], "Date": [ - "Thu, 03 Sep 2020 01:13:10 GMT" + "Thu, 03 Sep 2020 19:47:34 GMT" ], "Pragma": [ "no-cache" @@ -294,16 +294,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "26a9c125-6cdc-4975-aabb-b08e09446e7d" + "cade43cc-6fad-463c-b4f5-a6f63f6ee3c1" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11965" + "11979" ], "x-ms-correlation-request-id": [ - "04ea166f-4038-4a93-b445-5a5bf52c495b" + "36b352ed-8bd8-4634-bb23-b725795144fd" ], "x-ms-routing-request-id": [ - "BRAZILUS:20200903T011310Z:04ea166f-4038-4a93-b445-5a5bf52c495b" + "BRAZILUS:20200903T194734Z:36b352ed-8bd8-4634-bb23-b725795144fd" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -312,7 +312,7 @@ "nosniff" ], "Content-Length": [ - "106" + "107" ], "Content-Type": [ "application/json; charset=utf-8" @@ -321,12 +321,12 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"efb817c3-662a-4aff-b10b-cfbdecc5f2a2\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T01:13:07.1Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"d3b266f9-ad6a-47d4-afd8-42d291ea8adc\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T19:47:31.32Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-1849/providers/Microsoft.Sql/locations/westcentralus/serverAzureAsyncOperation/efb817c3-662a-4aff-b10b-cfbdecc5f2a2?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTE4NDkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9lZmI4MTdjMy02NjJhLTRhZmYtYjEwYi1jZmJkZWNjNWYyYTI/YXBpLXZlcnNpb249MjAxOS0wNi0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Sql/locations/westcentralus/serverAzureAsyncOperation/d3b266f9-ad6a-47d4-afd8-42d291ea8adc?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczMTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9kM2IyNjZmOS1hZDZhLTQ3ZDQtYWZkOC00MmQyOTFlYThhZGM/YXBpLXZlcnNpb249MjAxOS0wNi0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -342,7 +342,7 @@ "no-cache" ], "Date": [ - "Thu, 03 Sep 2020 01:13:11 GMT" + "Thu, 03 Sep 2020 19:47:36 GMT" ], "Pragma": [ "no-cache" @@ -354,16 +354,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "b76be0dc-8fb8-4eb6-8b81-badd5ada1c06" + "532f7bb8-18dc-43be-936f-7d49ab209f8d" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11964" + "11978" ], "x-ms-correlation-request-id": [ - "ca80dd1d-50a1-4f98-91fc-9965aa56ed87" + "18368dc8-f720-4d2f-aa9f-9d4db9d1dcee" ], "x-ms-routing-request-id": [ - "BRAZILUS:20200903T011311Z:ca80dd1d-50a1-4f98-91fc-9965aa56ed87" + "BRAZILUS:20200903T194736Z:18368dc8-f720-4d2f-aa9f-9d4db9d1dcee" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -372,7 +372,7 @@ "nosniff" ], "Content-Length": [ - "106" + "107" ], "Content-Type": [ "application/json; charset=utf-8" @@ -381,12 +381,12 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"efb817c3-662a-4aff-b10b-cfbdecc5f2a2\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T01:13:07.1Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"d3b266f9-ad6a-47d4-afd8-42d291ea8adc\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T19:47:31.32Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-1849/providers/Microsoft.Sql/locations/westcentralus/serverAzureAsyncOperation/efb817c3-662a-4aff-b10b-cfbdecc5f2a2?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTE4NDkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9lZmI4MTdjMy02NjJhLTRhZmYtYjEwYi1jZmJkZWNjNWYyYTI/YXBpLXZlcnNpb249MjAxOS0wNi0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Sql/locations/westcentralus/serverAzureAsyncOperation/d3b266f9-ad6a-47d4-afd8-42d291ea8adc?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczMTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9kM2IyNjZmOS1hZDZhLTQ3ZDQtYWZkOC00MmQyOTFlYThhZGM/YXBpLXZlcnNpb249MjAxOS0wNi0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -402,7 +402,7 @@ "no-cache" ], "Date": [ - "Thu, 03 Sep 2020 01:13:13 GMT" + "Thu, 03 Sep 2020 19:47:37 GMT" ], "Pragma": [ "no-cache" @@ -414,16 +414,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "9dd69ffa-8db9-4186-98a9-508411bbdcd0" + "59cba294-d5f3-41a7-a5b2-c6774d55b035" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11963" + "11977" ], "x-ms-correlation-request-id": [ - "0c3c78f5-ea1d-4a24-8597-d9f89e4c0a11" + "6dd20abf-b72e-4575-8104-2c50fd30296c" ], "x-ms-routing-request-id": [ - "BRAZILUS:20200903T011313Z:0c3c78f5-ea1d-4a24-8597-d9f89e4c0a11" + "BRAZILUS:20200903T194737Z:6dd20abf-b72e-4575-8104-2c50fd30296c" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -432,7 +432,7 @@ "nosniff" ], "Content-Length": [ - "106" + "107" ], "Content-Type": [ "application/json; charset=utf-8" @@ -441,12 +441,12 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"efb817c3-662a-4aff-b10b-cfbdecc5f2a2\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T01:13:07.1Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"d3b266f9-ad6a-47d4-afd8-42d291ea8adc\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T19:47:31.32Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-1849/providers/Microsoft.Sql/locations/westcentralus/serverAzureAsyncOperation/efb817c3-662a-4aff-b10b-cfbdecc5f2a2?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTE4NDkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9lZmI4MTdjMy02NjJhLTRhZmYtYjEwYi1jZmJkZWNjNWYyYTI/YXBpLXZlcnNpb249MjAxOS0wNi0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Sql/locations/westcentralus/serverAzureAsyncOperation/d3b266f9-ad6a-47d4-afd8-42d291ea8adc?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczMTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9kM2IyNjZmOS1hZDZhLTQ3ZDQtYWZkOC00MmQyOTFlYThhZGM/YXBpLXZlcnNpb249MjAxOS0wNi0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -462,7 +462,7 @@ "no-cache" ], "Date": [ - "Thu, 03 Sep 2020 01:13:32 GMT" + "Thu, 03 Sep 2020 19:47:56 GMT" ], "Pragma": [ "no-cache" @@ -474,16 +474,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "6556b53d-6443-4ab1-ade1-022552feced1" + "aaa26fad-fda1-44d9-9c63-2c037f7e967a" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11962" + "11976" ], "x-ms-correlation-request-id": [ - "80881f59-0054-4a89-bff5-5ca0d71aab66" + "2b0cda4b-cb45-4586-b51f-d30ef28f17d6" ], "x-ms-routing-request-id": [ - "BRAZILUS:20200903T011333Z:80881f59-0054-4a89-bff5-5ca0d71aab66" + "BRAZILUS:20200903T194757Z:2b0cda4b-cb45-4586-b51f-d30ef28f17d6" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -492,7 +492,7 @@ "nosniff" ], "Content-Length": [ - "106" + "107" ], "Content-Type": [ "application/json; charset=utf-8" @@ -501,12 +501,12 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"efb817c3-662a-4aff-b10b-cfbdecc5f2a2\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T01:13:07.1Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"d3b266f9-ad6a-47d4-afd8-42d291ea8adc\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T19:47:31.32Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-1849/providers/Microsoft.Sql/locations/westcentralus/serverAzureAsyncOperation/efb817c3-662a-4aff-b10b-cfbdecc5f2a2?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTE4NDkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9lZmI4MTdjMy02NjJhLTRhZmYtYjEwYi1jZmJkZWNjNWYyYTI/YXBpLXZlcnNpb249MjAxOS0wNi0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Sql/locations/westcentralus/serverAzureAsyncOperation/d3b266f9-ad6a-47d4-afd8-42d291ea8adc?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczMTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9kM2IyNjZmOS1hZDZhLTQ3ZDQtYWZkOC00MmQyOTFlYThhZGM/YXBpLXZlcnNpb249MjAxOS0wNi0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -522,7 +522,7 @@ "no-cache" ], "Date": [ - "Thu, 03 Sep 2020 01:13:52 GMT" + "Thu, 03 Sep 2020 19:48:17 GMT" ], "Pragma": [ "no-cache" @@ -534,16 +534,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "dbf6f2b8-1c34-4604-8dac-127318ab0408" + "275604e6-5e7b-4051-8c0c-9b13793de976" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11961" + "11975" ], "x-ms-correlation-request-id": [ - "2265cab6-6d64-4530-874a-390c5f39cd7c" + "d408d72b-4339-4b71-82c9-381b79e1436a" ], "x-ms-routing-request-id": [ - "BRAZILUS:20200903T011353Z:2265cab6-6d64-4530-874a-390c5f39cd7c" + "BRAZILUS:20200903T194817Z:d408d72b-4339-4b71-82c9-381b79e1436a" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -552,7 +552,7 @@ "nosniff" ], "Content-Length": [ - "105" + "106" ], "Content-Type": [ "application/json; charset=utf-8" @@ -561,12 +561,12 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"efb817c3-662a-4aff-b10b-cfbdecc5f2a2\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2020-09-03T01:13:07.1Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"d3b266f9-ad6a-47d4-afd8-42d291ea8adc\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2020-09-03T19:47:31.32Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-1849/providers/Microsoft.Sql/servers/sqlcrudtest-4360?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTE4NDkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC00MzYwP2FwaS12ZXJzaW9uPTIwMTktMDYtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Sql/servers/sqlcrudtest-8696?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczMTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC04Njk2P2FwaS12ZXJzaW9uPTIwMTktMDYtMDEtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -582,7 +582,7 @@ "no-cache" ], "Date": [ - "Thu, 03 Sep 2020 01:13:52 GMT" + "Thu, 03 Sep 2020 19:48:17 GMT" ], "Pragma": [ "no-cache" @@ -591,16 +591,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "76fc1904-474a-450c-99ed-d76b5892217d" + "b0316944-205b-437b-9cbe-af24e018a9ca" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11960" + "11974" ], "x-ms-correlation-request-id": [ - "19553e7a-22bb-48a2-a827-0d8ebd7e8e01" + "6778cbaf-5947-4457-aef6-6d66aae67083" ], "x-ms-routing-request-id": [ - "BRAZILUS:20200903T011353Z:19553e7a-22bb-48a2-a827-0d8ebd7e8e01" + "BRAZILUS:20200903T194817Z:6778cbaf-5947-4457-aef6-6d66aae67083" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -618,17 +618,17 @@ "-1" ] }, - "ResponseBody": "{\r\n \"kind\": \"v12.0\",\r\n \"properties\": {\r\n \"administratorLogin\": \"dummylogin\",\r\n \"version\": \"12.0\",\r\n \"state\": \"Ready\",\r\n \"fullyQualifiedDomainName\": \"sqlcrudtest-4360.database.windows.net\",\r\n \"privateEndpointConnections\": [],\r\n \"publicNetworkAccess\": \"Enabled\"\r\n },\r\n \"location\": \"westcentralus\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-1849/providers/Microsoft.Sql/servers/sqlcrudtest-4360\",\r\n \"name\": \"sqlcrudtest-4360\",\r\n \"type\": \"Microsoft.Sql/servers\"\r\n}", + "ResponseBody": "{\r\n \"kind\": \"v12.0\",\r\n \"properties\": {\r\n \"administratorLogin\": \"dummylogin\",\r\n \"version\": \"12.0\",\r\n \"state\": \"Ready\",\r\n \"fullyQualifiedDomainName\": \"sqlcrudtest-8696.database.windows.net\",\r\n \"privateEndpointConnections\": [],\r\n \"publicNetworkAccess\": \"Enabled\"\r\n },\r\n \"location\": \"westcentralus\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Sql/servers/sqlcrudtest-8696\",\r\n \"name\": \"sqlcrudtest-8696\",\r\n \"type\": \"Microsoft.Sql/servers\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-1849/providers/Microsoft.Sql/servers/sqlcrudtest-4360/firewallRules/sqlcrudtest-9203?api-version=2014-04-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTE4NDkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC00MzYwL2ZpcmV3YWxsUnVsZXMvc3FsY3J1ZHRlc3QtOTIwMz9hcGktdmVyc2lvbj0yMDE0LTA0LTAx", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Sql/servers/sqlcrudtest-8696/firewallRules/sqlcrudtest-9835?api-version=2014-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczMTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC04Njk2L2ZpcmV3YWxsUnVsZXMvc3FsY3J1ZHRlc3QtOTgzNT9hcGktdmVyc2lvbj0yMDE0LTA0LTAx", "RequestMethod": "PUT", "RequestBody": "{\r\n \"properties\": {\r\n \"startIpAddress\": \"0.0.0.0\",\r\n \"endIpAddress\": \"255.255.255.255\"\r\n }\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "a3d30698-6e58-4b33-92d6-422762e94e5b" + "fd5ac752-afb7-4a8e-baf9-fc5978f8d05f" ], "accept-language": [ "en-US" @@ -651,13 +651,13 @@ "no-store, no-cache" ], "Date": [ - "Thu, 03 Sep 2020 01:13:53 GMT" + "Thu, 03 Sep 2020 19:48:18 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "dd79de67-b099-4ba9-9b14-f2280ff007b3" + "105f6b91-ba8b-4819-87be-38322b324110" ], "X-Content-Type-Options": [ "nosniff" @@ -672,13 +672,13 @@ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1195" + "1191" ], "x-ms-correlation-request-id": [ - "72b85a4d-2871-47d0-a141-cac616cf9284" + "8fbea0c0-6130-4a2f-be80-b72e8d2c1c22" ], "x-ms-routing-request-id": [ - "BRAZILUS:20200903T011354Z:72b85a4d-2871-47d0-a141-cac616cf9284" + "BRAZILUS:20200903T194818Z:8fbea0c0-6130-4a2f-be80-b72e8d2c1c22" ], "Content-Length": [ "362" @@ -687,17 +687,17 @@ "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-1849/providers/Microsoft.Sql/servers/sqlcrudtest-4360/firewallRules/sqlcrudtest-9203\",\r\n \"name\": \"sqlcrudtest-9203\",\r\n \"type\": \"Microsoft.Sql/servers/firewallRules\",\r\n \"location\": \"West Central US\",\r\n \"kind\": \"v12.0\",\r\n \"properties\": {\r\n \"startIpAddress\": \"0.0.0.0\",\r\n \"endIpAddress\": \"255.255.255.255\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Sql/servers/sqlcrudtest-8696/firewallRules/sqlcrudtest-9835\",\r\n \"name\": \"sqlcrudtest-9835\",\r\n \"type\": \"Microsoft.Sql/servers/firewallRules\",\r\n \"location\": \"West Central US\",\r\n \"kind\": \"v12.0\",\r\n \"properties\": {\r\n \"startIpAddress\": \"0.0.0.0\",\r\n \"endIpAddress\": \"255.255.255.255\"\r\n }\r\n}", "StatusCode": 201 }, { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-1849/providers/Microsoft.Sql/servers/sqlcrudtest-4360/databases/sqlcrudtest-9607?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTE4NDkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC00MzYwL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC05NjA3P2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Storage/storageAccounts/sqlcrudtest8107?api-version=2017-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczMTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9zcWxjcnVkdGVzdDgxMDc/YXBpLXZlcnNpb249MjAxNy0wNi0wMQ==", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"location\": \"westcentralus\"\r\n}", + "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\"\r\n },\r\n \"kind\": \"BlobStorage\",\r\n \"location\": \"westcentralus\",\r\n \"properties\": {\r\n \"accessTier\": \"Cool\"\r\n }\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "b2d015e8-e15a-4bf0-b14d-4ef48dcfce84" + "5025ef45-a537-498b-9cd9-7bb91adca563" ], "accept-language": [ "en-US" @@ -706,13 +706,13 @@ "FxVersion/4.6.26614.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + "Microsoft.Azure.Management.Storage.StorageManagementClient/6.5.0.0" ], "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "35" + "158" ] }, "ResponseHeaders": { @@ -720,62 +720,59 @@ "no-cache" ], "Date": [ - "Thu, 03 Sep 2020 01:13:54 GMT" + "Thu, 03 Sep 2020 19:48:18 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-1849/providers/Microsoft.Sql/locations/westcentralus/databaseOperationResults/f6415834-d3ae-4839-a319-9104245efa9d?api-version=2017-10-01-preview" + "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Storage/locations/westcentralus/asyncoperations/14a0d35c-cda7-440b-bb20-6e0f130237ff?monitor=true&api-version=2017-06-01" ], "Retry-After": [ - "15" + "17" ], "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "Azure-AsyncOperation": [ - "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-1849/providers/Microsoft.Sql/locations/westcentralus/databaseAzureAsyncOperation/f6415834-d3ae-4839-a319-9104245efa9d?api-version=2017-10-01-preview" + "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "f6415834-d3ae-4839-a319-9104245efa9d" + "14a0d35c-cda7-440b-bb20-6e0f130237ff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1194" + "1190" ], "x-ms-correlation-request-id": [ - "8d9d8c44-b372-424a-9879-6fec22e17bbc" + "c9b7419c-2a3a-4e29-9991-2a0690a0159e" ], "x-ms-routing-request-id": [ - "BRAZILUS:20200903T011355Z:8d9d8c44-b372-424a-9879-6fec22e17bbc" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" + "BRAZILUS:20200903T194819Z:c9b7419c-2a3a-4e29-9991-2a0690a0159e" ], "X-Content-Type-Options": [ "nosniff" ], "Content-Length": [ - "75" + "0" ], "Content-Type": [ - "application/json; charset=utf-8" + "text/plain; charset=utf-8" ], "Expires": [ "-1" ] }, - "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2020-09-03T01:13:54.99Z\"\r\n}", + "ResponseBody": "", "StatusCode": 202 }, { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-1849/providers/Microsoft.Storage/storageAccounts/sqlcrudtest785?api-version=2017-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTE4NDkvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9zcWxjcnVkdGVzdDc4NT9hcGktdmVyc2lvbj0yMDE3LTA2LTAx", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Sql/servers/sqlcrudtest-8696/databases/sqlcrudtest-6275?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczMTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC04Njk2L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC02Mjc1P2FwaS12ZXJzaW9uPTIwMTktMDYtMDEtcHJldmlldw==", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\"\r\n },\r\n \"kind\": \"BlobStorage\",\r\n \"location\": \"westcentralus\",\r\n \"properties\": {\r\n \"accessTier\": \"Cool\"\r\n }\r\n}", + "RequestBody": "{\r\n \"location\": \"westcentralus\"\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "95219b52-0832-4272-b596-951090ee14b5" + "8f29be30-b246-4969-91f6-4168d42878a6" ], "accept-language": [ "en-US" @@ -784,13 +781,13 @@ "FxVersion/4.6.26614.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Storage.StorageManagementClient/6.5.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" ], "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "158" + "35" ] }, "ResponseHeaders": { @@ -798,54 +795,57 @@ "no-cache" ], "Date": [ - "Thu, 03 Sep 2020 01:13:55 GMT" + "Thu, 03 Sep 2020 19:48:19 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Storage/locations/westcentralus/asyncoperations/c819b74b-70c0-4b45-beb8-52a44963bf10?monitor=true&api-version=2017-06-01" + "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Sql/locations/westcentralus/databaseOperationResults/3ea7ce3e-0523-40fd-8b9e-5e0e41acfb5f?api-version=2019-06-01-preview" ], "Retry-After": [ - "17" + "15" ], "Server": [ - "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" + "Microsoft-HTTPAPI/2.0" ], - "x-ms-request-id": [ - "c819b74b-70c0-4b45-beb8-52a44963bf10" + "Azure-AsyncOperation": [ + "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Sql/locations/westcentralus/databaseAzureAsyncOperation/3ea7ce3e-0523-40fd-8b9e-5e0e41acfb5f?api-version=2019-06-01-preview" ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" + "x-ms-request-id": [ + "3ea7ce3e-0523-40fd-8b9e-5e0e41acfb5f" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1199" + "1190" ], "x-ms-correlation-request-id": [ - "27499443-7ff8-432c-a713-ffde4641d9b8" + "ab847a7d-faa0-4b84-8ddb-edb844b0c355" ], "x-ms-routing-request-id": [ - "BRAZILUS:20200903T011356Z:27499443-7ff8-432c-a713-ffde4641d9b8" + "BRAZILUS:20200903T194819Z:ab847a7d-faa0-4b84-8ddb-edb844b0c355" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], "Content-Length": [ - "0" + "76" ], "Content-Type": [ - "text/plain; charset=utf-8" + "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "ResponseBody": "", + "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2020-09-03T19:48:19.303Z\"\r\n}", "StatusCode": 202 }, { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-1849/providers/Microsoft.Sql/locations/westcentralus/databaseAzureAsyncOperation/f6415834-d3ae-4839-a319-9104245efa9d?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTE4NDkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2Y2NDE1ODM0LWQzYWUtNDgzOS1hMzE5LTkxMDQyNDVlZmE5ZD9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Sql/locations/westcentralus/databaseAzureAsyncOperation/3ea7ce3e-0523-40fd-8b9e-5e0e41acfb5f?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczMTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzNlYTdjZTNlLTA1MjMtNDBmZC04YjllLTVlMGU0MWFjZmI1Zj9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -861,7 +861,7 @@ "no-cache" ], "Date": [ - "Thu, 03 Sep 2020 01:14:09 GMT" + "Thu, 03 Sep 2020 19:48:33 GMT" ], "Pragma": [ "no-cache" @@ -873,16 +873,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "b8f3f44f-0643-4f67-aad0-b473b2d2749e" + "af69403f-491c-4358-a869-e066573e1912" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11959" + "11973" ], "x-ms-correlation-request-id": [ - "421c7c8e-04f5-41d6-94f8-0f12f6319baf" + "3ab16e18-e1f5-4eaf-87c7-d68c27d1482f" ], "x-ms-routing-request-id": [ - "BRAZILUS:20200903T011410Z:421c7c8e-04f5-41d6-94f8-0f12f6319baf" + "BRAZILUS:20200903T194834Z:3ab16e18-e1f5-4eaf-87c7-d68c27d1482f" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -891,7 +891,7 @@ "nosniff" ], "Content-Length": [ - "107" + "108" ], "Content-Type": [ "application/json; charset=utf-8" @@ -900,12 +900,12 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"f6415834-d3ae-4839-a319-9104245efa9d\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T01:13:54.99Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"3ea7ce3e-0523-40fd-8b9e-5e0e41acfb5f\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T19:48:19.303Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-1849/providers/Microsoft.Sql/locations/westcentralus/databaseAzureAsyncOperation/f6415834-d3ae-4839-a319-9104245efa9d?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTE4NDkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2Y2NDE1ODM0LWQzYWUtNDgzOS1hMzE5LTkxMDQyNDVlZmE5ZD9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Sql/locations/westcentralus/databaseAzureAsyncOperation/3ea7ce3e-0523-40fd-8b9e-5e0e41acfb5f?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczMTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzNlYTdjZTNlLTA1MjMtNDBmZC04YjllLTVlMGU0MWFjZmI1Zj9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -921,7 +921,7 @@ "no-cache" ], "Date": [ - "Thu, 03 Sep 2020 01:14:25 GMT" + "Thu, 03 Sep 2020 19:48:48 GMT" ], "Pragma": [ "no-cache" @@ -933,16 +933,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "bbcaea8e-7e1c-4b3f-b62c-02219244d1cc" + "46f4f51e-5bc9-4878-8ee3-860ae09eb15b" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11958" + "11971" ], "x-ms-correlation-request-id": [ - "86f06210-29de-4c68-b384-f8dfadf5b965" + "5e3f6ca0-d2ef-4c0f-9d89-9ed306ed0b08" ], "x-ms-routing-request-id": [ - "BRAZILUS:20200903T011425Z:86f06210-29de-4c68-b384-f8dfadf5b965" + "BRAZILUS:20200903T194849Z:5e3f6ca0-d2ef-4c0f-9d89-9ed306ed0b08" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -951,7 +951,7 @@ "nosniff" ], "Content-Length": [ - "107" + "108" ], "Content-Type": [ "application/json; charset=utf-8" @@ -960,12 +960,12 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"f6415834-d3ae-4839-a319-9104245efa9d\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T01:13:54.99Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"3ea7ce3e-0523-40fd-8b9e-5e0e41acfb5f\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T19:48:19.303Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-1849/providers/Microsoft.Sql/locations/westcentralus/databaseAzureAsyncOperation/f6415834-d3ae-4839-a319-9104245efa9d?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTE4NDkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2Y2NDE1ODM0LWQzYWUtNDgzOS1hMzE5LTkxMDQyNDVlZmE5ZD9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Sql/locations/westcentralus/databaseAzureAsyncOperation/3ea7ce3e-0523-40fd-8b9e-5e0e41acfb5f?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczMTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzNlYTdjZTNlLTA1MjMtNDBmZC04YjllLTVlMGU0MWFjZmI1Zj9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -981,7 +981,7 @@ "no-cache" ], "Date": [ - "Thu, 03 Sep 2020 01:14:40 GMT" + "Thu, 03 Sep 2020 19:49:04 GMT" ], "Pragma": [ "no-cache" @@ -993,16 +993,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "90a3a356-b863-4b29-8204-ba717f2e4f15" + "56fb74bb-a8b1-4a02-b88e-6a461c9e0a62" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11957" + "11970" ], "x-ms-correlation-request-id": [ - "f4a30a61-4459-4067-8f98-59995c54a8c3" + "8db46b44-6a84-49bb-9934-1c0038f8cd5d" ], "x-ms-routing-request-id": [ - "BRAZILUS:20200903T011440Z:f4a30a61-4459-4067-8f98-59995c54a8c3" + "BRAZILUS:20200903T194904Z:8db46b44-6a84-49bb-9934-1c0038f8cd5d" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1011,7 +1011,7 @@ "nosniff" ], "Content-Length": [ - "106" + "107" ], "Content-Type": [ "application/json; charset=utf-8" @@ -1020,12 +1020,12 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"f6415834-d3ae-4839-a319-9104245efa9d\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2020-09-03T01:13:54.99Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"3ea7ce3e-0523-40fd-8b9e-5e0e41acfb5f\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2020-09-03T19:48:19.303Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Storage/locations/westcentralus/asyncoperations/c819b74b-70c0-4b45-beb8-52a44963bf10?monitor=true&api-version=2017-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZS9sb2NhdGlvbnMvd2VzdGNlbnRyYWx1cy9hc3luY29wZXJhdGlvbnMvYzgxOWI3NGItNzBjMC00YjQ1LWJlYjgtNTJhNDQ5NjNiZjEwP21vbml0b3I9dHJ1ZSZhcGktdmVyc2lvbj0yMDE3LTA2LTAx", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Storage/locations/westcentralus/asyncoperations/14a0d35c-cda7-440b-bb20-6e0f130237ff?monitor=true&api-version=2017-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZS9sb2NhdGlvbnMvd2VzdGNlbnRyYWx1cy9hc3luY29wZXJhdGlvbnMvMTRhMGQzNWMtY2RhNy00NDBiLWJiMjAtNmUwZjEzMDIzN2ZmP21vbml0b3I9dHJ1ZSZhcGktdmVyc2lvbj0yMDE3LTA2LTAx", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -1041,7 +1041,7 @@ "no-cache" ], "Date": [ - "Thu, 03 Sep 2020 01:14:13 GMT" + "Thu, 03 Sep 2020 19:48:36 GMT" ], "Pragma": [ "no-cache" @@ -1050,25 +1050,25 @@ "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "8693ca6a-ddc0-49fa-b8f3-2750415d59ad" + "29240870-9f87-41d6-96f4-740d63b4e96e" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" + "11972" ], "x-ms-correlation-request-id": [ - "91db115b-9b5f-447d-8e6d-37063923347e" + "4871f842-ec5e-4320-83ed-825314087f35" ], "x-ms-routing-request-id": [ - "BRAZILUS:20200903T011413Z:91db115b-9b5f-447d-8e6d-37063923347e" + "BRAZILUS:20200903T194836Z:4871f842-ec5e-4320-83ed-825314087f35" ], "X-Content-Type-Options": [ "nosniff" ], "Content-Length": [ - "976" + "980" ], "Content-Type": [ "application/json" @@ -1077,17 +1077,17 @@ "-1" ] }, - "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"kind\": \"BlobStorage\",\r\n \"id\": \"/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-1849/providers/Microsoft.Storage/storageAccounts/sqlcrudtest785\",\r\n \"name\": \"sqlcrudtest785\",\r\n \"type\": \"Microsoft.Storage/storageAccounts\",\r\n \"location\": \"westcentralus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"networkAcls\": {\r\n \"bypass\": \"AzureServices\",\r\n \"virtualNetworkRules\": [],\r\n \"ipRules\": [],\r\n \"defaultAction\": \"Allow\"\r\n },\r\n \"supportsHttpsTrafficOnly\": false,\r\n \"encryption\": {\r\n \"services\": {\r\n \"file\": {\r\n \"enabled\": true,\r\n \"lastEnabledTime\": \"2020-09-03T01:13:56.1956Z\"\r\n },\r\n \"blob\": {\r\n \"enabled\": true,\r\n \"lastEnabledTime\": \"2020-09-03T01:13:56.1956Z\"\r\n }\r\n },\r\n \"keySource\": \"Microsoft.Storage\"\r\n },\r\n \"accessTier\": \"Cool\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"creationTime\": \"2020-09-03T01:13:56.1330892Z\",\r\n \"primaryEndpoints\": {\r\n \"blob\": \"https://sqlcrudtest785.blob.core.windows.net/\",\r\n \"table\": \"https://sqlcrudtest785.table.core.windows.net/\"\r\n },\r\n \"primaryLocation\": \"westcentralus\",\r\n \"statusOfPrimary\": \"available\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"kind\": \"BlobStorage\",\r\n \"id\": \"/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Storage/storageAccounts/sqlcrudtest8107\",\r\n \"name\": \"sqlcrudtest8107\",\r\n \"type\": \"Microsoft.Storage/storageAccounts\",\r\n \"location\": \"westcentralus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"networkAcls\": {\r\n \"bypass\": \"AzureServices\",\r\n \"virtualNetworkRules\": [],\r\n \"ipRules\": [],\r\n \"defaultAction\": \"Allow\"\r\n },\r\n \"supportsHttpsTrafficOnly\": false,\r\n \"encryption\": {\r\n \"services\": {\r\n \"file\": {\r\n \"enabled\": true,\r\n \"lastEnabledTime\": \"2020-09-03T19:48:18.5571988Z\"\r\n },\r\n \"blob\": {\r\n \"enabled\": true,\r\n \"lastEnabledTime\": \"2020-09-03T19:48:18.5571988Z\"\r\n }\r\n },\r\n \"keySource\": \"Microsoft.Storage\"\r\n },\r\n \"accessTier\": \"Cool\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"creationTime\": \"2020-09-03T19:48:18.4946934Z\",\r\n \"primaryEndpoints\": {\r\n \"blob\": \"https://sqlcrudtest8107.blob.core.windows.net/\",\r\n \"table\": \"https://sqlcrudtest8107.table.core.windows.net/\"\r\n },\r\n \"primaryLocation\": \"westcentralus\",\r\n \"statusOfPrimary\": \"available\"\r\n }\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-1849/providers/Microsoft.Storage/storageAccounts/sqlcrudtest785/listKeys?api-version=2017-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTE4NDkvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9zcWxjcnVkdGVzdDc4NS9saXN0S2V5cz9hcGktdmVyc2lvbj0yMDE3LTA2LTAx", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Storage/storageAccounts/sqlcrudtest8107/listKeys?api-version=2017-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczMTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9zcWxjcnVkdGVzdDgxMDcvbGlzdEtleXM/YXBpLXZlcnNpb249MjAxNy0wNi0wMQ==", "RequestMethod": "POST", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "845f459b-a8ca-48e8-8738-f1ac62e77792" + "25ef7341-6c35-4612-a855-185ea641b4be" ], "accept-language": [ "en-US" @@ -1104,7 +1104,7 @@ "no-cache" ], "Date": [ - "Thu, 03 Sep 2020 01:14:13 GMT" + "Thu, 03 Sep 2020 19:48:36 GMT" ], "Pragma": [ "no-cache" @@ -1113,7 +1113,7 @@ "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "f04b23c7-beb8-443c-91bd-3dec3bc58b63" + "d0e6518a-7ed3-45c9-8518-c57e4061e2b0" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1122,10 +1122,10 @@ "11999" ], "x-ms-correlation-request-id": [ - "c0fc32ee-d791-4038-aa7a-fa3c8f7be0ba" + "0b0be66c-e3ea-4783-8380-06c9dba3dbcb" ], "x-ms-routing-request-id": [ - "BRAZILUS:20200903T011413Z:c0fc32ee-d791-4038-aa7a-fa3c8f7be0ba" + "BRAZILUS:20200903T194836Z:0b0be66c-e3ea-4783-8380-06c9dba3dbcb" ], "X-Content-Type-Options": [ "nosniff" @@ -1140,12 +1140,12 @@ "-1" ] }, - "ResponseBody": "{\r\n \"keys\": [\r\n {\r\n \"keyName\": \"key1\",\r\n \"value\": \"R6v6QBTyOrS4AIj223IfcYZNgplw48fnz4s+7pP22rlRxECjPteeDnDxV9VR34ZBqGvxSyGnBfSVjXlxajO65Q==\",\r\n \"permissions\": \"FULL\"\r\n },\r\n {\r\n \"keyName\": \"key2\",\r\n \"value\": \"BTSgGInCBE3EpG9it4UsSsGXXlItHgpGTS5UWNu8tyEuKUyI+qBHREh38z4YR4lPzKhQ2aT859eLVMu8vG8zTw==\",\r\n \"permissions\": \"FULL\"\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"keys\": [\r\n {\r\n \"keyName\": \"key1\",\r\n \"value\": \"ZPMelgVaCQ+kNB1JHAO/hRWbaXRfH9/zUy6IHjXanuKhY/EcPWiz1TVp2s/9kAB1hJUN8x2A5QWtEvvxeUv6Lg==\",\r\n \"permissions\": \"FULL\"\r\n },\r\n {\r\n \"keyName\": \"key2\",\r\n \"value\": \"pEuRmQswFlf4DFnqsKX7UL/brob5QtmWleumJyYw0+dtiCtqxGThTnxhkfzat512kd4M/CpexFxwczoU24k9Sg==\",\r\n \"permissions\": \"FULL\"\r\n }\r\n ]\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-1849/providers/Microsoft.Sql/servers/sqlcrudtest-4360/databases/sqlcrudtest-9607?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTE4NDkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC00MzYwL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC05NjA3P2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Sql/servers/sqlcrudtest-8696/databases/sqlcrudtest-6275?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczMTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC04Njk2L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC02Mjc1P2FwaS12ZXJzaW9uPTIwMTktMDYtMDEtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -1161,7 +1161,7 @@ "no-cache" ], "Date": [ - "Thu, 03 Sep 2020 01:14:40 GMT" + "Thu, 03 Sep 2020 19:49:04 GMT" ], "Pragma": [ "no-cache" @@ -1170,16 +1170,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "a9b5b0aa-bc45-4a15-a078-d62bd0f6d4e6" + "9c8fb028-0d78-42c0-954c-8c7a32aa0865" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11956" + "11969" ], "x-ms-correlation-request-id": [ - "0218d5b8-19c9-4657-be08-35684a25f784" + "f34ec010-c4cd-4374-9d24-85e24f312d5e" ], "x-ms-routing-request-id": [ - "BRAZILUS:20200903T011440Z:0218d5b8-19c9-4657-be08-35684a25f784" + "BRAZILUS:20200903T194904Z:f34ec010-c4cd-4374-9d24-85e24f312d5e" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1188,7 +1188,7 @@ "nosniff" ], "Content-Length": [ - "998" + "1023" ], "Content-Type": [ "application/json; charset=utf-8" @@ -1197,17 +1197,17 @@ "-1" ] }, - "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"GP_Gen5\",\r\n \"tier\": \"GeneralPurpose\",\r\n \"family\": \"Gen5\",\r\n \"capacity\": 2\r\n },\r\n \"kind\": \"v12.0,user,vcore\",\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": 34359738368,\r\n \"status\": \"Online\",\r\n \"databaseId\": \"1844e1ba-aeaa-4018-9a0c-a851e73e02eb\",\r\n \"creationDate\": \"2020-09-03T01:14:28.977Z\",\r\n \"currentServiceObjectiveName\": \"GP_Gen5_2\",\r\n \"requestedServiceObjectiveName\": \"GP_Gen5_2\",\r\n \"defaultSecondaryLocation\": \"westus2\",\r\n \"catalogCollation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"zoneRedundant\": false,\r\n \"licenseType\": \"LicenseIncluded\",\r\n \"maxLogSizeBytes\": 10307502080,\r\n \"earliestRestoreDate\": \"2020-09-03T01:44:28.977Z\",\r\n \"readScale\": \"Disabled\",\r\n \"readReplicaCount\": 0,\r\n \"currentSku\": {\r\n \"name\": \"GP_Gen5\",\r\n \"tier\": \"GeneralPurpose\",\r\n \"family\": \"Gen5\",\r\n \"capacity\": 2\r\n }\r\n },\r\n \"location\": \"westcentralus\",\r\n \"id\": \"/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-1849/providers/Microsoft.Sql/servers/sqlcrudtest-4360/databases/sqlcrudtest-9607\",\r\n \"name\": \"sqlcrudtest-9607\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"GP_Gen5\",\r\n \"tier\": \"GeneralPurpose\",\r\n \"family\": \"Gen5\",\r\n \"capacity\": 2\r\n },\r\n \"kind\": \"v12.0,user,vcore\",\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": 34359738368,\r\n \"status\": \"Online\",\r\n \"databaseId\": \"2abecd08-7474-4ef4-8500-0a079748f038\",\r\n \"creationDate\": \"2020-09-03T19:48:54.46Z\",\r\n \"currentServiceObjectiveName\": \"GP_Gen5_2\",\r\n \"requestedServiceObjectiveName\": \"GP_Gen5_2\",\r\n \"defaultSecondaryLocation\": \"westus2\",\r\n \"catalogCollation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"zoneRedundant\": false,\r\n \"licenseType\": \"LicenseIncluded\",\r\n \"maxLogSizeBytes\": 10307502080,\r\n \"earliestRestoreDate\": \"2020-09-03T20:18:54.46Z\",\r\n \"readScale\": \"Disabled\",\r\n \"readReplicaCount\": 0,\r\n \"currentSku\": {\r\n \"name\": \"GP_Gen5\",\r\n \"tier\": \"GeneralPurpose\",\r\n \"family\": \"Gen5\",\r\n \"capacity\": 2\r\n },\r\n \"storageAccountType\": \"GRS\"\r\n },\r\n \"location\": \"westcentralus\",\r\n \"id\": \"/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Sql/servers/sqlcrudtest-8696/databases/sqlcrudtest-6275\",\r\n \"name\": \"sqlcrudtest-6275\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-1849/providers/Microsoft.Sql/servers/sqlcrudtest-4360/databases/sqlcrudtest-6582?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTE4NDkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC00MzYwL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC02NTgyP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Sql/servers/sqlcrudtest-8696/databases/sqlcrudtest-9440?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczMTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC04Njk2L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC05NDQwP2FwaS12ZXJzaW9uPTIwMTktMDYtMDEtcHJldmlldw==", "RequestMethod": "PUT", "RequestBody": "{\r\n \"location\": \"westcentralus\"\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "2b8c3569-9f19-4d82-a1b3-cbdbf1cb2978" + "5ba658c1-7b60-40f0-ba6b-50ed6254bbbc" ], "accept-language": [ "en-US" @@ -1230,13 +1230,13 @@ "no-cache" ], "Date": [ - "Thu, 03 Sep 2020 01:14:41 GMT" + "Thu, 03 Sep 2020 19:49:05 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-1849/providers/Microsoft.Sql/locations/westcentralus/databaseOperationResults/84229854-3dcc-4351-9f20-2977d801603e?api-version=2017-10-01-preview" + "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Sql/locations/westcentralus/databaseOperationResults/6dfb69ba-8c9c-41f8-bab2-dcce1801fdad?api-version=2019-06-01-preview" ], "Retry-After": [ "15" @@ -1245,19 +1245,19 @@ "Microsoft-HTTPAPI/2.0" ], "Azure-AsyncOperation": [ - "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-1849/providers/Microsoft.Sql/locations/westcentralus/databaseAzureAsyncOperation/84229854-3dcc-4351-9f20-2977d801603e?api-version=2017-10-01-preview" + "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Sql/locations/westcentralus/databaseAzureAsyncOperation/6dfb69ba-8c9c-41f8-bab2-dcce1801fdad?api-version=2019-06-01-preview" ], "x-ms-request-id": [ - "84229854-3dcc-4351-9f20-2977d801603e" + "6dfb69ba-8c9c-41f8-bab2-dcce1801fdad" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1193" + "1189" ], "x-ms-correlation-request-id": [ - "e8e53faf-5516-4658-9195-4f2cf3ab53c1" + "e062c977-2915-4c50-bd7c-861d3395c07a" ], "x-ms-routing-request-id": [ - "BRAZILUS:20200903T011441Z:e8e53faf-5516-4658-9195-4f2cf3ab53c1" + "BRAZILUS:20200903T194906Z:e062c977-2915-4c50-bd7c-861d3395c07a" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1275,12 +1275,12 @@ "-1" ] }, - "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2020-09-03T01:14:41.68Z\"\r\n}", + "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2020-09-03T19:49:06.24Z\"\r\n}", "StatusCode": 202 }, { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-1849/providers/Microsoft.Sql/locations/westcentralus/databaseAzureAsyncOperation/84229854-3dcc-4351-9f20-2977d801603e?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTE4NDkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzg0MjI5ODU0LTNkY2MtNDM1MS05ZjIwLTI5NzdkODAxNjAzZT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Sql/locations/westcentralus/databaseAzureAsyncOperation/6dfb69ba-8c9c-41f8-bab2-dcce1801fdad?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczMTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzZkZmI2OWJhLThjOWMtNDFmOC1iYWIyLWRjY2UxODAxZmRhZD9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -1296,7 +1296,7 @@ "no-cache" ], "Date": [ - "Thu, 03 Sep 2020 01:14:56 GMT" + "Thu, 03 Sep 2020 19:49:21 GMT" ], "Pragma": [ "no-cache" @@ -1308,16 +1308,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "4f4fc414-5d9d-46f6-aaed-f0e1f6956c82" + "f18561f5-6841-420c-896d-c0fda2051fc7" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11955" + "11968" ], "x-ms-correlation-request-id": [ - "d827ee5f-6174-46fe-9d16-18b2376d27a9" + "4d36c6fe-4206-4421-b438-e0a172b0c9a1" ], "x-ms-routing-request-id": [ - "BRAZILUS:20200903T011456Z:d827ee5f-6174-46fe-9d16-18b2376d27a9" + "BRAZILUS:20200903T194921Z:4d36c6fe-4206-4421-b438-e0a172b0c9a1" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1335,12 +1335,12 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"84229854-3dcc-4351-9f20-2977d801603e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T01:14:41.68Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"6dfb69ba-8c9c-41f8-bab2-dcce1801fdad\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T19:49:06.24Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-1849/providers/Microsoft.Sql/locations/westcentralus/databaseAzureAsyncOperation/84229854-3dcc-4351-9f20-2977d801603e?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTE4NDkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzg0MjI5ODU0LTNkY2MtNDM1MS05ZjIwLTI5NzdkODAxNjAzZT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Sql/locations/westcentralus/databaseAzureAsyncOperation/6dfb69ba-8c9c-41f8-bab2-dcce1801fdad?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczMTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzZkZmI2OWJhLThjOWMtNDFmOC1iYWIyLWRjY2UxODAxZmRhZD9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -1356,7 +1356,7 @@ "no-cache" ], "Date": [ - "Thu, 03 Sep 2020 01:15:11 GMT" + "Thu, 03 Sep 2020 19:49:36 GMT" ], "Pragma": [ "no-cache" @@ -1368,16 +1368,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "a76f1f2c-f002-410e-aa13-5ebbb3a0debd" + "64227361-95d3-4e0f-a422-57e5b5ea7a54" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11954" + "11967" ], "x-ms-correlation-request-id": [ - "b7c4f94d-46fd-4035-bfdd-f20c142c84a9" + "d67ab929-c461-4ccb-b35a-3739ebd7880f" ], "x-ms-routing-request-id": [ - "BRAZILUS:20200903T011512Z:b7c4f94d-46fd-4035-bfdd-f20c142c84a9" + "BRAZILUS:20200903T194936Z:d67ab929-c461-4ccb-b35a-3739ebd7880f" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1395,12 +1395,12 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"84229854-3dcc-4351-9f20-2977d801603e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T01:14:41.68Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"6dfb69ba-8c9c-41f8-bab2-dcce1801fdad\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T19:49:06.24Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-1849/providers/Microsoft.Sql/locations/westcentralus/databaseAzureAsyncOperation/84229854-3dcc-4351-9f20-2977d801603e?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTE4NDkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzg0MjI5ODU0LTNkY2MtNDM1MS05ZjIwLTI5NzdkODAxNjAzZT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Sql/locations/westcentralus/databaseAzureAsyncOperation/6dfb69ba-8c9c-41f8-bab2-dcce1801fdad?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczMTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzZkZmI2OWJhLThjOWMtNDFmOC1iYWIyLWRjY2UxODAxZmRhZD9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -1416,7 +1416,7 @@ "no-cache" ], "Date": [ - "Thu, 03 Sep 2020 01:15:26 GMT" + "Thu, 03 Sep 2020 19:49:50 GMT" ], "Pragma": [ "no-cache" @@ -1428,16 +1428,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "58b889c5-e0ec-41f3-b866-b12fe8d5ecfe" + "c48a243d-cde8-44dc-9b9e-ff822ae10bc7" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11953" + "11966" ], "x-ms-correlation-request-id": [ - "737466e6-4962-4056-b0b6-f3b5ce24c9ee" + "ee6a445a-36fc-4c12-90bd-0f69fbd94328" ], "x-ms-routing-request-id": [ - "BRAZILUS:20200903T011527Z:737466e6-4962-4056-b0b6-f3b5ce24c9ee" + "BRAZILUS:20200903T194951Z:ee6a445a-36fc-4c12-90bd-0f69fbd94328" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1455,12 +1455,12 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"84229854-3dcc-4351-9f20-2977d801603e\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2020-09-03T01:14:41.68Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"6dfb69ba-8c9c-41f8-bab2-dcce1801fdad\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2020-09-03T19:49:06.24Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-1849/providers/Microsoft.Sql/servers/sqlcrudtest-4360/databases/sqlcrudtest-6582?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTE4NDkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC00MzYwL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC02NTgyP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Sql/servers/sqlcrudtest-8696/databases/sqlcrudtest-9440?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczMTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC04Njk2L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC05NDQwP2FwaS12ZXJzaW9uPTIwMTktMDYtMDEtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -1476,7 +1476,7 @@ "no-cache" ], "Date": [ - "Thu, 03 Sep 2020 01:15:26 GMT" + "Thu, 03 Sep 2020 19:49:50 GMT" ], "Pragma": [ "no-cache" @@ -1485,16 +1485,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "a3a4b528-5838-4475-8327-a70760d9614d" + "0fc64241-0db1-474e-96e6-2a4ddb026a77" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11952" + "11965" ], "x-ms-correlation-request-id": [ - "83bf4357-da2e-4a3f-9fd3-1648517447bf" + "d8935d7d-4564-42a6-b7e3-2e19c9fa7234" ], "x-ms-routing-request-id": [ - "BRAZILUS:20200903T011527Z:83bf4357-da2e-4a3f-9fd3-1648517447bf" + "BRAZILUS:20200903T194951Z:d8935d7d-4564-42a6-b7e3-2e19c9fa7234" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1503,7 +1503,7 @@ "nosniff" ], "Content-Length": [ - "998" + "1023" ], "Content-Type": [ "application/json; charset=utf-8" @@ -1512,17 +1512,17 @@ "-1" ] }, - "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"GP_Gen5\",\r\n \"tier\": \"GeneralPurpose\",\r\n \"family\": \"Gen5\",\r\n \"capacity\": 2\r\n },\r\n \"kind\": \"v12.0,user,vcore\",\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": 34359738368,\r\n \"status\": \"Online\",\r\n \"databaseId\": \"37b8873e-1d47-4608-8433-1fe48e09be38\",\r\n \"creationDate\": \"2020-09-03T01:15:14.867Z\",\r\n \"currentServiceObjectiveName\": \"GP_Gen5_2\",\r\n \"requestedServiceObjectiveName\": \"GP_Gen5_2\",\r\n \"defaultSecondaryLocation\": \"westus2\",\r\n \"catalogCollation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"zoneRedundant\": false,\r\n \"licenseType\": \"LicenseIncluded\",\r\n \"maxLogSizeBytes\": 10307502080,\r\n \"earliestRestoreDate\": \"2020-09-03T01:45:14.867Z\",\r\n \"readScale\": \"Disabled\",\r\n \"readReplicaCount\": 0,\r\n \"currentSku\": {\r\n \"name\": \"GP_Gen5\",\r\n \"tier\": \"GeneralPurpose\",\r\n \"family\": \"Gen5\",\r\n \"capacity\": 2\r\n }\r\n },\r\n \"location\": \"westcentralus\",\r\n \"id\": \"/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-1849/providers/Microsoft.Sql/servers/sqlcrudtest-4360/databases/sqlcrudtest-6582\",\r\n \"name\": \"sqlcrudtest-6582\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"GP_Gen5\",\r\n \"tier\": \"GeneralPurpose\",\r\n \"family\": \"Gen5\",\r\n \"capacity\": 2\r\n },\r\n \"kind\": \"v12.0,user,vcore\",\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": 34359738368,\r\n \"status\": \"Online\",\r\n \"databaseId\": \"db7590f9-8677-41ab-8667-87589338a140\",\r\n \"creationDate\": \"2020-09-03T19:49:38.82Z\",\r\n \"currentServiceObjectiveName\": \"GP_Gen5_2\",\r\n \"requestedServiceObjectiveName\": \"GP_Gen5_2\",\r\n \"defaultSecondaryLocation\": \"westus2\",\r\n \"catalogCollation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"zoneRedundant\": false,\r\n \"licenseType\": \"LicenseIncluded\",\r\n \"maxLogSizeBytes\": 10307502080,\r\n \"earliestRestoreDate\": \"2020-09-03T20:19:38.82Z\",\r\n \"readScale\": \"Disabled\",\r\n \"readReplicaCount\": 0,\r\n \"currentSku\": {\r\n \"name\": \"GP_Gen5\",\r\n \"tier\": \"GeneralPurpose\",\r\n \"family\": \"Gen5\",\r\n \"capacity\": 2\r\n },\r\n \"storageAccountType\": \"GRS\"\r\n },\r\n \"location\": \"westcentralus\",\r\n \"id\": \"/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Sql/servers/sqlcrudtest-8696/databases/sqlcrudtest-9440\",\r\n \"name\": \"sqlcrudtest-9440\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-1849/providers/Microsoft.Sql/servers/sqlcrudtest-4360/databases/sqlcrudtest-6582?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTE4NDkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC00MzYwL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC02NTgyP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Sql/servers/sqlcrudtest-8696/databases/sqlcrudtest-9440?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczMTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC04Njk2L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC05NDQwP2FwaS12ZXJzaW9uPTIwMTktMDYtMDEtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "8ae2d97b-e323-4109-8637-f580d946533c" + "46497a8a-c830-4595-aca8-bca9766bac15" ], "accept-language": [ "en-US" @@ -1539,7 +1539,7 @@ "no-cache" ], "Date": [ - "Thu, 03 Sep 2020 01:15:26 GMT" + "Thu, 03 Sep 2020 19:49:51 GMT" ], "Pragma": [ "no-cache" @@ -1548,16 +1548,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "74435cbc-de43-4143-935a-91f56c1a958b" + "13af7c98-7f25-47be-bd0c-18d724207af9" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11951" + "11964" ], "x-ms-correlation-request-id": [ - "13d23fa9-5111-4ca8-b840-ca8dbf1f9726" + "af17d5e6-3fe6-45f5-9d9c-dad88e6a5e11" ], "x-ms-routing-request-id": [ - "BRAZILUS:20200903T011527Z:13d23fa9-5111-4ca8-b840-ca8dbf1f9726" + "BRAZILUS:20200903T194951Z:af17d5e6-3fe6-45f5-9d9c-dad88e6a5e11" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1566,7 +1566,7 @@ "nosniff" ], "Content-Length": [ - "998" + "1023" ], "Content-Type": [ "application/json; charset=utf-8" @@ -1575,17 +1575,17 @@ "-1" ] }, - "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"GP_Gen5\",\r\n \"tier\": \"GeneralPurpose\",\r\n \"family\": \"Gen5\",\r\n \"capacity\": 2\r\n },\r\n \"kind\": \"v12.0,user,vcore\",\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": 34359738368,\r\n \"status\": \"Online\",\r\n \"databaseId\": \"37b8873e-1d47-4608-8433-1fe48e09be38\",\r\n \"creationDate\": \"2020-09-03T01:15:14.867Z\",\r\n \"currentServiceObjectiveName\": \"GP_Gen5_2\",\r\n \"requestedServiceObjectiveName\": \"GP_Gen5_2\",\r\n \"defaultSecondaryLocation\": \"westus2\",\r\n \"catalogCollation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"zoneRedundant\": false,\r\n \"licenseType\": \"LicenseIncluded\",\r\n \"maxLogSizeBytes\": 10307502080,\r\n \"earliestRestoreDate\": \"2020-09-03T01:45:14.867Z\",\r\n \"readScale\": \"Disabled\",\r\n \"readReplicaCount\": 0,\r\n \"currentSku\": {\r\n \"name\": \"GP_Gen5\",\r\n \"tier\": \"GeneralPurpose\",\r\n \"family\": \"Gen5\",\r\n \"capacity\": 2\r\n }\r\n },\r\n \"location\": \"westcentralus\",\r\n \"id\": \"/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-1849/providers/Microsoft.Sql/servers/sqlcrudtest-4360/databases/sqlcrudtest-6582\",\r\n \"name\": \"sqlcrudtest-6582\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"GP_Gen5\",\r\n \"tier\": \"GeneralPurpose\",\r\n \"family\": \"Gen5\",\r\n \"capacity\": 2\r\n },\r\n \"kind\": \"v12.0,user,vcore\",\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": 34359738368,\r\n \"status\": \"Online\",\r\n \"databaseId\": \"db7590f9-8677-41ab-8667-87589338a140\",\r\n \"creationDate\": \"2020-09-03T19:49:38.82Z\",\r\n \"currentServiceObjectiveName\": \"GP_Gen5_2\",\r\n \"requestedServiceObjectiveName\": \"GP_Gen5_2\",\r\n \"defaultSecondaryLocation\": \"westus2\",\r\n \"catalogCollation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"zoneRedundant\": false,\r\n \"licenseType\": \"LicenseIncluded\",\r\n \"maxLogSizeBytes\": 10307502080,\r\n \"earliestRestoreDate\": \"2020-09-03T20:19:38.82Z\",\r\n \"readScale\": \"Disabled\",\r\n \"readReplicaCount\": 0,\r\n \"currentSku\": {\r\n \"name\": \"GP_Gen5\",\r\n \"tier\": \"GeneralPurpose\",\r\n \"family\": \"Gen5\",\r\n \"capacity\": 2\r\n },\r\n \"storageAccountType\": \"GRS\"\r\n },\r\n \"location\": \"westcentralus\",\r\n \"id\": \"/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Sql/servers/sqlcrudtest-8696/databases/sqlcrudtest-9440\",\r\n \"name\": \"sqlcrudtest-9440\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-1849/providers/Microsoft.Sql/servers/sqlcrudtest-4360/databases/sqlcrudtest-9607/export?api-version=2020-02-02-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTE4NDkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC00MzYwL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC05NjA3L2V4cG9ydD9hcGktdmVyc2lvbj0yMDIwLTAyLTAyLXByZXZpZXc=", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Sql/servers/sqlcrudtest-8696/databases/sqlcrudtest-6275/export?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczMTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC04Njk2L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC02Mjc1L2V4cG9ydD9hcGktdmVyc2lvbj0yMDIwLTAyLTAyLXByZXZpZXc=", "RequestMethod": "POST", - "RequestBody": "{\r\n \"storageKeyType\": \"StorageAccessKey\",\r\n \"storageKey\": \"R6v6QBTyOrS4AIj223IfcYZNgplw48fnz4s+7pP22rlRxECjPteeDnDxV9VR34ZBqGvxSyGnBfSVjXlxajO65Q==\",\r\n \"storageUri\": \"https://sqlcrudtest785.blob.core.windows.net/container/sqlcrudtest-9607.bacpac\",\r\n \"administratorLogin\": \"dummylogin\",\r\n \"administratorLoginPassword\": \"Un53cuRE!\",\r\n \"authenticationType\": \"SQL\"\r\n}", + "RequestBody": "{\r\n \"storageKeyType\": \"StorageAccessKey\",\r\n \"storageKey\": \"ZPMelgVaCQ+kNB1JHAO/hRWbaXRfH9/zUy6IHjXanuKhY/EcPWiz1TVp2s/9kAB1hJUN8x2A5QWtEvvxeUv6Lg==\",\r\n \"storageUri\": \"https://sqlcrudtest8107.blob.core.windows.net/container/sqlcrudtest-6275.bacpac\",\r\n \"administratorLogin\": \"dummylogin\",\r\n \"administratorLoginPassword\": \"Un53cuRE!\",\r\n \"authenticationType\": \"SQL\"\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "8cfee403-6645-4ca4-9b60-d544d8cbcd72" + "e8cd1ba5-3c5c-4ff2-8a03-5b21516dda0f" ], "accept-language": [ "en-US" @@ -1600,7 +1600,7 @@ "application/json; charset=utf-8" ], "Content-Length": [ - "369" + "370" ] }, "ResponseHeaders": { @@ -1608,13 +1608,13 @@ "no-cache" ], "Date": [ - "Thu, 03 Sep 2020 01:15:28 GMT" + "Thu, 03 Sep 2020 19:49:52 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportOperationResults/d14f0856-93f9-4efc-b5ba-4aaa6c4d49f8-sqlcrudtest-4360?api-version=2020-02-02-preview" + "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportOperationResults/04b001c4-b057-4625-a69f-fc97ef4d255b-sqlcrudtest-8696?api-version=2020-02-02-preview" ], "Retry-After": [ "15" @@ -1623,19 +1623,19 @@ "Microsoft-HTTPAPI/2.0" ], "Azure-AsyncOperation": [ - "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/d14f0856-93f9-4efc-b5ba-4aaa6c4d49f8-sqlcrudtest-4360?api-version=2020-02-02-preview" + "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/04b001c4-b057-4625-a69f-fc97ef4d255b-sqlcrudtest-8696?api-version=2020-02-02-preview" ], "x-ms-request-id": [ - "51b85bb1-d4f4-4e11-a943-4d6980381297" + "c5a827c0-957d-4d06-bb80-c4562c3bb7ff" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1197" ], "x-ms-correlation-request-id": [ - "250103ee-0616-4f66-ae02-e61cfdb03b05" + "48cdd245-0b65-4aaf-aef9-26807a3edccc" ], "x-ms-routing-request-id": [ - "BRAZILUS:20200903T011528Z:250103ee-0616-4f66-ae02-e61cfdb03b05" + "BRAZILUS:20200903T194953Z:48cdd245-0b65-4aaf-aef9-26807a3edccc" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1653,12 +1653,12 @@ "-1" ] }, - "ResponseBody": "{\r\n \"operation\": \"Export\",\r\n \"startTime\": \"2020-09-03T01:15:28.8659345Z\"\r\n}", + "ResponseBody": "{\r\n \"operation\": \"Export\",\r\n \"startTime\": \"2020-09-03T19:49:53.3506604Z\"\r\n}", "StatusCode": 202 }, { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/d14f0856-93f9-4efc-b5ba-4aaa6c4d49f8-sqlcrudtest-4360?api-version=2020-02-02-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vZDE0ZjA4NTYtOTNmOS00ZWZjLWI1YmEtNGFhYTZjNGQ0OWY4LXNxbGNydWR0ZXN0LTQzNjA/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/04b001c4-b057-4625-a69f-fc97ef4d255b-sqlcrudtest-8696?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vMDRiMDAxYzQtYjA1Ny00NjI1LWE2OWYtZmM5N2VmNGQyNTViLXNxbGNydWR0ZXN0LTg2OTY/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -1674,7 +1674,7 @@ "no-cache" ], "Date": [ - "Thu, 03 Sep 2020 01:15:43 GMT" + "Thu, 03 Sep 2020 19:50:10 GMT" ], "Pragma": [ "no-cache" @@ -1686,76 +1686,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "0a68219e-f465-4f0f-b187-1fb09cb6db35" + "08943fd7-1e79-4dc6-a379-998398d77e51" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11950" - ], - "x-ms-correlation-request-id": [ - "1479a2ea-ccaa-423f-a485-e0b078be2e0c" - ], - "x-ms-routing-request-id": [ - "BRAZILUS:20200903T011544Z:1479a2ea-ccaa-423f-a485-e0b078be2e0c" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Content-Length": [ - "104" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"name\": \"d14f0856-93f9-4efc-b5ba-4aaa6c4d49f8\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T01:15:28Z\"\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/d14f0856-93f9-4efc-b5ba-4aaa6c4d49f8-sqlcrudtest-4360?api-version=2020-02-02-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vZDE0ZjA4NTYtOTNmOS00ZWZjLWI1YmEtNGFhYTZjNGQ0OWY4LXNxbGNydWR0ZXN0LTQzNjA/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.26614.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 03 Sep 2020 01:15:59 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Retry-After": [ - "15" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-request-id": [ - "868cb592-80cc-44fb-9138-b438283b553c" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11949" + "11963" ], "x-ms-correlation-request-id": [ - "30a827fb-acac-4e87-adec-8cac10c808da" + "a571f6d8-c97e-4623-a621-cee7656b52f8" ], "x-ms-routing-request-id": [ - "BRAZILUS:20200903T011559Z:30a827fb-acac-4e87-adec-8cac10c808da" + "BRAZILUS:20200903T195010Z:a571f6d8-c97e-4623-a621-cee7656b52f8" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1773,12 +1713,12 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"d14f0856-93f9-4efc-b5ba-4aaa6c4d49f8\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T01:15:28Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"04b001c4-b057-4625-a69f-fc97ef4d255b\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T19:49:52Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/d14f0856-93f9-4efc-b5ba-4aaa6c4d49f8-sqlcrudtest-4360?api-version=2020-02-02-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vZDE0ZjA4NTYtOTNmOS00ZWZjLWI1YmEtNGFhYTZjNGQ0OWY4LXNxbGNydWR0ZXN0LTQzNjA/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/04b001c4-b057-4625-a69f-fc97ef4d255b-sqlcrudtest-8696?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vMDRiMDAxYzQtYjA1Ny00NjI1LWE2OWYtZmM5N2VmNGQyNTViLXNxbGNydWR0ZXN0LTg2OTY/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -1794,7 +1734,7 @@ "no-cache" ], "Date": [ - "Thu, 03 Sep 2020 01:16:14 GMT" + "Thu, 03 Sep 2020 19:50:24 GMT" ], "Pragma": [ "no-cache" @@ -1806,16 +1746,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "51048012-ebc5-4c94-b436-77affe446e1f" + "b3dd9abe-1bbd-4c6c-acc8-7128bc4c8c83" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11948" + "11962" ], "x-ms-correlation-request-id": [ - "3a71180d-3ac2-4b7a-811d-1cda1cbb07ee" + "643d4e8f-b362-4b0c-90e9-78574d03f0a4" ], "x-ms-routing-request-id": [ - "BRAZILUS:20200903T011614Z:3a71180d-3ac2-4b7a-811d-1cda1cbb07ee" + "BRAZILUS:20200903T195025Z:643d4e8f-b362-4b0c-90e9-78574d03f0a4" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1833,12 +1773,12 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"d14f0856-93f9-4efc-b5ba-4aaa6c4d49f8\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T01:15:28Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"04b001c4-b057-4625-a69f-fc97ef4d255b\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T19:49:52Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/d14f0856-93f9-4efc-b5ba-4aaa6c4d49f8-sqlcrudtest-4360?api-version=2020-02-02-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vZDE0ZjA4NTYtOTNmOS00ZWZjLWI1YmEtNGFhYTZjNGQ0OWY4LXNxbGNydWR0ZXN0LTQzNjA/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/04b001c4-b057-4625-a69f-fc97ef4d255b-sqlcrudtest-8696?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vMDRiMDAxYzQtYjA1Ny00NjI1LWE2OWYtZmM5N2VmNGQyNTViLXNxbGNydWR0ZXN0LTg2OTY/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -1854,7 +1794,7 @@ "no-cache" ], "Date": [ - "Thu, 03 Sep 2020 01:16:29 GMT" + "Thu, 03 Sep 2020 19:50:40 GMT" ], "Pragma": [ "no-cache" @@ -1866,16 +1806,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "6b346078-fc5e-423f-9427-1768b68bb9d2" + "18e9cf39-5d5d-4f01-b66d-7b99a355bc96" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11947" + "11961" ], "x-ms-correlation-request-id": [ - "bf0943cd-553f-49db-be43-636e867fc01c" + "a2a78021-d22e-457e-a901-64ce953f1f90" ], "x-ms-routing-request-id": [ - "BRAZILUS:20200903T011629Z:bf0943cd-553f-49db-be43-636e867fc01c" + "BRAZILUS:20200903T195040Z:a2a78021-d22e-457e-a901-64ce953f1f90" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1893,12 +1833,12 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"d14f0856-93f9-4efc-b5ba-4aaa6c4d49f8\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T01:16:28Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"04b001c4-b057-4625-a69f-fc97ef4d255b\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T19:49:52Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/d14f0856-93f9-4efc-b5ba-4aaa6c4d49f8-sqlcrudtest-4360?api-version=2020-02-02-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vZDE0ZjA4NTYtOTNmOS00ZWZjLWI1YmEtNGFhYTZjNGQ0OWY4LXNxbGNydWR0ZXN0LTQzNjA/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/04b001c4-b057-4625-a69f-fc97ef4d255b-sqlcrudtest-8696?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vMDRiMDAxYzQtYjA1Ny00NjI1LWE2OWYtZmM5N2VmNGQyNTViLXNxbGNydWR0ZXN0LTg2OTY/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -1914,7 +1854,7 @@ "no-cache" ], "Date": [ - "Thu, 03 Sep 2020 01:16:44 GMT" + "Thu, 03 Sep 2020 19:50:55 GMT" ], "Pragma": [ "no-cache" @@ -1926,16 +1866,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "09300605-fb14-4ce9-887e-5387bffb42d1" + "3e928851-443c-4c10-90ab-e2c6dd92243a" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11946" + "11960" ], "x-ms-correlation-request-id": [ - "f53f3fba-b9ea-4a9b-a4f8-584887a120e3" + "3ee5d140-0639-4aa0-97ae-01fc09a60432" ], "x-ms-routing-request-id": [ - "BRAZILUS:20200903T011644Z:f53f3fba-b9ea-4a9b-a4f8-584887a120e3" + "BRAZILUS:20200903T195056Z:3ee5d140-0639-4aa0-97ae-01fc09a60432" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1953,12 +1893,12 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"d14f0856-93f9-4efc-b5ba-4aaa6c4d49f8\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T01:16:28Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"04b001c4-b057-4625-a69f-fc97ef4d255b\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T19:50:53Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/d14f0856-93f9-4efc-b5ba-4aaa6c4d49f8-sqlcrudtest-4360?api-version=2020-02-02-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vZDE0ZjA4NTYtOTNmOS00ZWZjLWI1YmEtNGFhYTZjNGQ0OWY4LXNxbGNydWR0ZXN0LTQzNjA/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/04b001c4-b057-4625-a69f-fc97ef4d255b-sqlcrudtest-8696?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vMDRiMDAxYzQtYjA1Ny00NjI1LWE2OWYtZmM5N2VmNGQyNTViLXNxbGNydWR0ZXN0LTg2OTY/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -1974,7 +1914,7 @@ "no-cache" ], "Date": [ - "Thu, 03 Sep 2020 01:17:00 GMT" + "Thu, 03 Sep 2020 19:51:10 GMT" ], "Pragma": [ "no-cache" @@ -1986,16 +1926,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "223fa250-9143-433c-800d-efe679784a49" + "839d10b0-1135-4d39-9036-17785e694ff2" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11945" + "11959" ], "x-ms-correlation-request-id": [ - "b1feeff6-a7ac-45f4-be5f-bafe72ac649b" + "8f2a8fd4-5305-4dd3-8566-3985c79a3050" ], "x-ms-routing-request-id": [ - "BRAZILUS:20200903T011700Z:b1feeff6-a7ac-45f4-be5f-bafe72ac649b" + "BRAZILUS:20200903T195111Z:8f2a8fd4-5305-4dd3-8566-3985c79a3050" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -2013,12 +1953,12 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"d14f0856-93f9-4efc-b5ba-4aaa6c4d49f8\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2020-09-03T01:16:50Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"04b001c4-b057-4625-a69f-fc97ef4d255b\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2020-09-03T19:51:05Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportOperationResults/d14f0856-93f9-4efc-b5ba-4aaa6c4d49f8-sqlcrudtest-4360?api-version=2020-02-02-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydE9wZXJhdGlvblJlc3VsdHMvZDE0ZjA4NTYtOTNmOS00ZWZjLWI1YmEtNGFhYTZjNGQ0OWY4LXNxbGNydWR0ZXN0LTQzNjA/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportOperationResults/04b001c4-b057-4625-a69f-fc97ef4d255b-sqlcrudtest-8696?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydE9wZXJhdGlvblJlc3VsdHMvMDRiMDAxYzQtYjA1Ny00NjI1LWE2OWYtZmM5N2VmNGQyNTViLXNxbGNydWR0ZXN0LTg2OTY/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -2034,7 +1974,7 @@ "no-cache" ], "Date": [ - "Thu, 03 Sep 2020 01:17:00 GMT" + "Thu, 03 Sep 2020 19:51:10 GMT" ], "Pragma": [ "no-cache" @@ -2043,16 +1983,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "0790aa9f-8568-45fe-be5d-0f83a7b1b54f" + "0021a2d0-c723-493c-9067-a0a5f531bb37" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11944" + "11958" ], "x-ms-correlation-request-id": [ - "42495d53-ca4f-4922-96b0-e340cc257964" + "85ddb0db-131a-479c-b9a2-8d102ce0da07" ], "x-ms-routing-request-id": [ - "BRAZILUS:20200903T011700Z:42495d53-ca4f-4922-96b0-e340cc257964" + "BRAZILUS:20200903T195111Z:85ddb0db-131a-479c-b9a2-8d102ce0da07" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -2061,7 +2001,7 @@ "nosniff" ], "Content-Length": [ - "544" + "545" ], "Content-Type": [ "application/json; charset=utf-8" @@ -2070,17 +2010,17 @@ "-1" ] }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"requestId\": \"d14f0856-93f9-4efc-b5ba-4aaa6c4d49f8\",\r\n \"requestType\": \"ExportDatabase\",\r\n \"queuedTime\": \"9/3/2020 1:15:27 AM\",\r\n \"lastModifiedTime\": \"9/3/2020 1:16:50 AM\",\r\n \"blobUri\": \"https://sqlcrudtest785.blob.core.windows.net/container/sqlcrudtest-9607.bacpac\",\r\n \"serverName\": \"sqlcrudtest-4360\",\r\n \"databaseName\": \"sqlcrudtest-9607\",\r\n \"status\": \"Completed\",\r\n \"privateEndpointConnections\": []\r\n },\r\n \"id\": \"d14f0856-93f9-4efc-b5ba-4aaa6c4d49f8\",\r\n \"name\": \"d14f0856-93f9-4efc-b5ba-4aaa6c4d49f8\",\r\n \"type\": \"Microsoft.Sql/servers/databases/importExportOperationResults\"\r\n}", + "ResponseBody": "{\r\n \"properties\": {\r\n \"requestId\": \"04b001c4-b057-4625-a69f-fc97ef4d255b\",\r\n \"requestType\": \"ExportDatabase\",\r\n \"queuedTime\": \"9/3/2020 7:49:52 PM\",\r\n \"lastModifiedTime\": \"9/3/2020 7:51:05 PM\",\r\n \"blobUri\": \"https://sqlcrudtest8107.blob.core.windows.net/container/sqlcrudtest-6275.bacpac\",\r\n \"serverName\": \"sqlcrudtest-8696\",\r\n \"databaseName\": \"sqlcrudtest-6275\",\r\n \"status\": \"Completed\",\r\n \"privateEndpointConnections\": []\r\n },\r\n \"id\": \"04b001c4-b057-4625-a69f-fc97ef4d255b\",\r\n \"name\": \"04b001c4-b057-4625-a69f-fc97ef4d255b\",\r\n \"type\": \"Microsoft.Sql/servers/databases/importExportOperationResults\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-1849/providers/Microsoft.Sql/servers/sqlcrudtest-4360/databases/sqlcrudtest-6582/import?api-version=2020-02-02-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTE4NDkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC00MzYwL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC02NTgyL2ltcG9ydD9hcGktdmVyc2lvbj0yMDIwLTAyLTAyLXByZXZpZXc=", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Sql/servers/sqlcrudtest-8696/databases/sqlcrudtest-9440/import?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczMTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC04Njk2L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC05NDQwL2ltcG9ydD9hcGktdmVyc2lvbj0yMDIwLTAyLTAyLXByZXZpZXc=", "RequestMethod": "POST", - "RequestBody": "{\r\n \"storageKeyType\": \"StorageAccessKey\",\r\n \"storageKey\": \"R6v6QBTyOrS4AIj223IfcYZNgplw48fnz4s+7pP22rlRxECjPteeDnDxV9VR34ZBqGvxSyGnBfSVjXlxajO65Q==\",\r\n \"storageUri\": \"https://sqlcrudtest785.blob.core.windows.net/container/sqlcrudtest-9607.bacpac\",\r\n \"administratorLogin\": \"dummylogin\",\r\n \"administratorLoginPassword\": \"Un53cuRE!\",\r\n \"authenticationType\": \"SQL\"\r\n}", + "RequestBody": "{\r\n \"storageKeyType\": \"StorageAccessKey\",\r\n \"storageKey\": \"ZPMelgVaCQ+kNB1JHAO/hRWbaXRfH9/zUy6IHjXanuKhY/EcPWiz1TVp2s/9kAB1hJUN8x2A5QWtEvvxeUv6Lg==\",\r\n \"storageUri\": \"https://sqlcrudtest8107.blob.core.windows.net/container/sqlcrudtest-6275.bacpac\",\r\n \"administratorLogin\": \"dummylogin\",\r\n \"administratorLoginPassword\": \"Un53cuRE!\",\r\n \"authenticationType\": \"SQL\"\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "25635717-1efc-486a-9f80-b899f7dbcc62" + "5cf743b5-b721-43f1-9cd0-a79439cde0a1" ], "accept-language": [ "en-US" @@ -2095,7 +2035,7 @@ "application/json; charset=utf-8" ], "Content-Length": [ - "369" + "370" ] }, "ResponseHeaders": { @@ -2103,13 +2043,13 @@ "no-cache" ], "Date": [ - "Thu, 03 Sep 2020 01:17:01 GMT" + "Thu, 03 Sep 2020 19:51:11 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportOperationResults/f00c660f-e9bd-4fa0-8fcb-10e136fad53d-sqlcrudtest-4360?api-version=2020-02-02-preview" + "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportOperationResults/75746ddf-2544-4bba-9d43-78eb5ca5d6e2-sqlcrudtest-8696?api-version=2020-02-02-preview" ], "Retry-After": [ "15" @@ -2118,19 +2058,19 @@ "Microsoft-HTTPAPI/2.0" ], "Azure-AsyncOperation": [ - "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/f00c660f-e9bd-4fa0-8fcb-10e136fad53d-sqlcrudtest-4360?api-version=2020-02-02-preview" + "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/75746ddf-2544-4bba-9d43-78eb5ca5d6e2-sqlcrudtest-8696?api-version=2020-02-02-preview" ], "x-ms-request-id": [ - "a59c114f-02b4-42da-8ce6-c3a7bf1e7c58" + "c8c6dba8-f959-41f3-bf55-a94c790f38a5" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1196" ], "x-ms-correlation-request-id": [ - "f58e9304-29a3-4702-8dd7-be53fb8fa9bd" + "7513af2f-fd6b-49ae-9315-5b568be843d7" ], "x-ms-routing-request-id": [ - "BRAZILUS:20200903T011701Z:f58e9304-29a3-4702-8dd7-be53fb8fa9bd" + "BRAZILUS:20200903T195112Z:7513af2f-fd6b-49ae-9315-5b568be843d7" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -2139,7 +2079,7 @@ "nosniff" ], "Content-Length": [ - "64" + "65" ], "Content-Type": [ "application/json; charset=utf-8" @@ -2148,12 +2088,12 @@ "-1" ] }, - "ResponseBody": "{\r\n \"operation\": \"Import\",\r\n \"startTime\": \"2020-09-03T01:17:01.539168Z\"\r\n}", + "ResponseBody": "{\r\n \"operation\": \"Import\",\r\n \"startTime\": \"2020-09-03T19:51:12.5385611Z\"\r\n}", "StatusCode": 202 }, { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/f00c660f-e9bd-4fa0-8fcb-10e136fad53d-sqlcrudtest-4360?api-version=2020-02-02-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vZjAwYzY2MGYtZTliZC00ZmEwLThmY2ItMTBlMTM2ZmFkNTNkLXNxbGNydWR0ZXN0LTQzNjA/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/75746ddf-2544-4bba-9d43-78eb5ca5d6e2-sqlcrudtest-8696?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vNzU3NDZkZGYtMjU0NC00YmJhLTlkNDMtNzhlYjVjYTVkNmUyLXNxbGNydWR0ZXN0LTg2OTY/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -2169,7 +2109,7 @@ "no-cache" ], "Date": [ - "Thu, 03 Sep 2020 01:17:16 GMT" + "Thu, 03 Sep 2020 19:51:27 GMT" ], "Pragma": [ "no-cache" @@ -2181,16 +2121,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "c682b79c-ba15-40de-ad49-4c150ae00c71" + "51fb6293-94b6-4058-9b11-a9280e475a07" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11943" + "11957" ], "x-ms-correlation-request-id": [ - "4b19ce0c-e0d5-45e7-a5b4-0872a2abc3db" + "c9112a76-1b37-4e09-a0a4-a3e3356f9ee7" ], "x-ms-routing-request-id": [ - "BRAZILUS:20200903T011716Z:4b19ce0c-e0d5-45e7-a5b4-0872a2abc3db" + "BRAZILUS:20200903T195127Z:c9112a76-1b37-4e09-a0a4-a3e3356f9ee7" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -2208,12 +2148,12 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"f00c660f-e9bd-4fa0-8fcb-10e136fad53d\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T01:17:00Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"75746ddf-2544-4bba-9d43-78eb5ca5d6e2\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T19:51:11Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/f00c660f-e9bd-4fa0-8fcb-10e136fad53d-sqlcrudtest-4360?api-version=2020-02-02-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vZjAwYzY2MGYtZTliZC00ZmEwLThmY2ItMTBlMTM2ZmFkNTNkLXNxbGNydWR0ZXN0LTQzNjA/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/75746ddf-2544-4bba-9d43-78eb5ca5d6e2-sqlcrudtest-8696?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vNzU3NDZkZGYtMjU0NC00YmJhLTlkNDMtNzhlYjVjYTVkNmUyLXNxbGNydWR0ZXN0LTg2OTY/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -2229,7 +2169,7 @@ "no-cache" ], "Date": [ - "Thu, 03 Sep 2020 01:17:31 GMT" + "Thu, 03 Sep 2020 19:51:42 GMT" ], "Pragma": [ "no-cache" @@ -2241,16 +2181,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "a84ba0c2-71cd-42ac-9f97-3e3628266c76" + "7f6a9d2f-621f-4076-b503-60e66aa97d9f" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11942" + "11956" ], "x-ms-correlation-request-id": [ - "7a932bcc-1d2e-4b7c-8921-6fdcab1806a2" + "b58a5e59-0bca-4557-80fe-1ff9a8c0fbc0" ], "x-ms-routing-request-id": [ - "BRAZILUS:20200903T011732Z:7a932bcc-1d2e-4b7c-8921-6fdcab1806a2" + "BRAZILUS:20200903T195142Z:b58a5e59-0bca-4557-80fe-1ff9a8c0fbc0" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -2268,12 +2208,12 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"f00c660f-e9bd-4fa0-8fcb-10e136fad53d\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T01:17:00Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"75746ddf-2544-4bba-9d43-78eb5ca5d6e2\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T19:51:11Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/f00c660f-e9bd-4fa0-8fcb-10e136fad53d-sqlcrudtest-4360?api-version=2020-02-02-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vZjAwYzY2MGYtZTliZC00ZmEwLThmY2ItMTBlMTM2ZmFkNTNkLXNxbGNydWR0ZXN0LTQzNjA/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/75746ddf-2544-4bba-9d43-78eb5ca5d6e2-sqlcrudtest-8696?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vNzU3NDZkZGYtMjU0NC00YmJhLTlkNDMtNzhlYjVjYTVkNmUyLXNxbGNydWR0ZXN0LTg2OTY/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -2289,7 +2229,7 @@ "no-cache" ], "Date": [ - "Thu, 03 Sep 2020 01:17:47 GMT" + "Thu, 03 Sep 2020 19:51:57 GMT" ], "Pragma": [ "no-cache" @@ -2301,16 +2241,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "711c618b-1059-4801-ab23-7db2d0d97600" + "f0424faf-5b03-45d4-9e92-e130d06e2607" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11941" + "11955" ], "x-ms-correlation-request-id": [ - "9fc15888-30c3-48b0-b7b3-f16862cec8d4" + "184b40dc-fd22-4d26-ba64-6f32ae700189" ], "x-ms-routing-request-id": [ - "BRAZILUS:20200903T011747Z:9fc15888-30c3-48b0-b7b3-f16862cec8d4" + "BRAZILUS:20200903T195158Z:184b40dc-fd22-4d26-ba64-6f32ae700189" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -2328,12 +2268,12 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"f00c660f-e9bd-4fa0-8fcb-10e136fad53d\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T01:17:00Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"75746ddf-2544-4bba-9d43-78eb5ca5d6e2\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T19:51:11Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/f00c660f-e9bd-4fa0-8fcb-10e136fad53d-sqlcrudtest-4360?api-version=2020-02-02-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vZjAwYzY2MGYtZTliZC00ZmEwLThmY2ItMTBlMTM2ZmFkNTNkLXNxbGNydWR0ZXN0LTQzNjA/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/75746ddf-2544-4bba-9d43-78eb5ca5d6e2-sqlcrudtest-8696?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vNzU3NDZkZGYtMjU0NC00YmJhLTlkNDMtNzhlYjVjYTVkNmUyLXNxbGNydWR0ZXN0LTg2OTY/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -2349,7 +2289,7 @@ "no-cache" ], "Date": [ - "Thu, 03 Sep 2020 01:18:02 GMT" + "Thu, 03 Sep 2020 19:52:12 GMT" ], "Pragma": [ "no-cache" @@ -2361,16 +2301,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "f2a5cc7a-aa8a-47d4-9f05-ba53fdb97681" + "e35cd2fe-3113-4476-8e79-1a82ad369e06" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11940" + "11954" ], "x-ms-correlation-request-id": [ - "e855ebc6-7163-49ff-8c58-b884d1bb24a0" + "489aeb3e-c8f3-45fb-8f28-b4d37dedb5bf" ], "x-ms-routing-request-id": [ - "BRAZILUS:20200903T011802Z:e855ebc6-7163-49ff-8c58-b884d1bb24a0" + "BRAZILUS:20200903T195213Z:489aeb3e-c8f3-45fb-8f28-b4d37dedb5bf" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -2388,12 +2328,12 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"f00c660f-e9bd-4fa0-8fcb-10e136fad53d\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T01:18:00Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"75746ddf-2544-4bba-9d43-78eb5ca5d6e2\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T19:52:11Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/f00c660f-e9bd-4fa0-8fcb-10e136fad53d-sqlcrudtest-4360?api-version=2020-02-02-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vZjAwYzY2MGYtZTliZC00ZmEwLThmY2ItMTBlMTM2ZmFkNTNkLXNxbGNydWR0ZXN0LTQzNjA/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/75746ddf-2544-4bba-9d43-78eb5ca5d6e2-sqlcrudtest-8696?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vNzU3NDZkZGYtMjU0NC00YmJhLTlkNDMtNzhlYjVjYTVkNmUyLXNxbGNydWR0ZXN0LTg2OTY/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -2409,7 +2349,7 @@ "no-cache" ], "Date": [ - "Thu, 03 Sep 2020 01:18:17 GMT" + "Thu, 03 Sep 2020 19:52:27 GMT" ], "Pragma": [ "no-cache" @@ -2421,16 +2361,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "c2077561-c796-416d-96b0-e38eaf12d79d" + "747143f8-6772-48c2-8491-fff2a3d4ebb7" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11939" + "11953" ], "x-ms-correlation-request-id": [ - "ac4c72e4-48a1-4ddb-ba9e-95609495075b" + "083c5497-9848-4698-9539-8df0541066d2" ], "x-ms-routing-request-id": [ - "BRAZILUS:20200903T011817Z:ac4c72e4-48a1-4ddb-ba9e-95609495075b" + "BRAZILUS:20200903T195228Z:083c5497-9848-4698-9539-8df0541066d2" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -2448,12 +2388,12 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"f00c660f-e9bd-4fa0-8fcb-10e136fad53d\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2020-09-03T01:18:12Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"75746ddf-2544-4bba-9d43-78eb5ca5d6e2\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2020-09-03T19:52:24Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportOperationResults/f00c660f-e9bd-4fa0-8fcb-10e136fad53d-sqlcrudtest-4360?api-version=2020-02-02-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydE9wZXJhdGlvblJlc3VsdHMvZjAwYzY2MGYtZTliZC00ZmEwLThmY2ItMTBlMTM2ZmFkNTNkLXNxbGNydWR0ZXN0LTQzNjA/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportOperationResults/75746ddf-2544-4bba-9d43-78eb5ca5d6e2-sqlcrudtest-8696?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydE9wZXJhdGlvblJlc3VsdHMvNzU3NDZkZGYtMjU0NC00YmJhLTlkNDMtNzhlYjVjYTVkNmUyLXNxbGNydWR0ZXN0LTg2OTY/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -2469,7 +2409,7 @@ "no-cache" ], "Date": [ - "Thu, 03 Sep 2020 01:18:17 GMT" + "Thu, 03 Sep 2020 19:52:27 GMT" ], "Pragma": [ "no-cache" @@ -2478,16 +2418,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "0a24dbb5-e55d-44fa-8644-a6f5736d03f9" + "a38aa245-bcc6-4909-b112-a11ce3d8856b" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11938" + "11952" ], "x-ms-correlation-request-id": [ - "2705359d-0d97-4d46-adc8-19c102035fb4" + "37fac928-66b9-4e3d-a49d-b3e8e30e0acb" ], "x-ms-routing-request-id": [ - "BRAZILUS:20200903T011817Z:2705359d-0d97-4d46-adc8-19c102035fb4" + "BRAZILUS:20200903T195228Z:37fac928-66b9-4e3d-a49d-b3e8e30e0acb" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -2496,7 +2436,7 @@ "nosniff" ], "Content-Length": [ - "554" + "555" ], "Content-Type": [ "application/json; charset=utf-8" @@ -2505,17 +2445,17 @@ "-1" ] }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"requestId\": \"f00c660f-e9bd-4fa0-8fcb-10e136fad53d\",\r\n \"requestType\": \"ImportToExistingDatabase\",\r\n \"queuedTime\": \"9/3/2020 1:17:00 AM\",\r\n \"lastModifiedTime\": \"9/3/2020 1:18:12 AM\",\r\n \"blobUri\": \"https://sqlcrudtest785.blob.core.windows.net/container/sqlcrudtest-9607.bacpac\",\r\n \"serverName\": \"sqlcrudtest-4360\",\r\n \"databaseName\": \"sqlcrudtest-6582\",\r\n \"status\": \"Completed\",\r\n \"privateEndpointConnections\": []\r\n },\r\n \"id\": \"f00c660f-e9bd-4fa0-8fcb-10e136fad53d\",\r\n \"name\": \"f00c660f-e9bd-4fa0-8fcb-10e136fad53d\",\r\n \"type\": \"Microsoft.Sql/servers/databases/importExportOperationResults\"\r\n}", + "ResponseBody": "{\r\n \"properties\": {\r\n \"requestId\": \"75746ddf-2544-4bba-9d43-78eb5ca5d6e2\",\r\n \"requestType\": \"ImportToExistingDatabase\",\r\n \"queuedTime\": \"9/3/2020 7:51:11 PM\",\r\n \"lastModifiedTime\": \"9/3/2020 7:52:24 PM\",\r\n \"blobUri\": \"https://sqlcrudtest8107.blob.core.windows.net/container/sqlcrudtest-6275.bacpac\",\r\n \"serverName\": \"sqlcrudtest-8696\",\r\n \"databaseName\": \"sqlcrudtest-9440\",\r\n \"status\": \"Completed\",\r\n \"privateEndpointConnections\": []\r\n },\r\n \"id\": \"75746ddf-2544-4bba-9d43-78eb5ca5d6e2\",\r\n \"name\": \"75746ddf-2544-4bba-9d43-78eb5ca5d6e2\",\r\n \"type\": \"Microsoft.Sql/servers/databases/importExportOperationResults\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourcegroups/sqlcrudtest-1849?api-version=2017-05-10", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTE4NDk/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourcegroups/sqlcrudtest-7317?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTczMTc/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "2095fa35-8d35-4621-a736-2df67d85cb80" + "1a5cb181-3260-49fb-b230-e1720645a209" ], "accept-language": [ "en-US" @@ -2532,28 +2472,28 @@ "no-cache" ], "Date": [ - "Thu, 03 Sep 2020 01:18:18 GMT" + "Thu, 03 Sep 2020 19:52:28 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDE4NDktV0VTVENFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoid2VzdGNlbnRyYWx1cyJ9?api-version=2017-05-10" + "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDczMTctV0VTVENFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoid2VzdGNlbnRyYWx1cyJ9?api-version=2017-05-10" ], "Retry-After": [ "15" ], "x-ms-ratelimit-remaining-subscription-deletes": [ - "14998" + "14996" ], "x-ms-request-id": [ - "2d16e014-ff35-42e2-acab-061ce22c7ffd" + "06215777-378c-4b5d-aede-e13673fc161d" ], "x-ms-correlation-request-id": [ - "2d16e014-ff35-42e2-acab-061ce22c7ffd" + "06215777-378c-4b5d-aede-e13673fc161d" ], "x-ms-routing-request-id": [ - "BRAZILUS:20200903T011819Z:2d16e014-ff35-42e2-acab-061ce22c7ffd" + "BRAZILUS:20200903T195229Z:06215777-378c-4b5d-aede-e13673fc161d" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -2574,22 +2514,23 @@ ], "Names": { "CreateResourceGroup": [ - "sqlcrudtest-1849" + "sqlcrudtest-7317" ], "CreateServer": [ - "sqlcrudtest-4360" + "sqlcrudtest-8696" ], "CreateStorageContainer": [ - "sqlcrudtest785" + "sqlcrudtest8107" ], "TestImportExport": [ - "sqlcrudtest-9607", - "sqlcrudtest-6582", - "sqlcrudstorage2870", - "sqlcrudtest-9203" + "sqlcrudtest-6275", + "sqlcrudtest-9440", + "sqlcrudstorage5937", + "sqlcrudtest-9835" ] }, "Variables": { - "SubscriptionId": "b75889fa-6661-44e0-a844-cd96ec938991" + "SubscriptionId": "b75889fa-6661-44e0-a844-cd96ec938991", + "DefaultLocation": "West Central US" } } \ No newline at end of file From 7b7e71dcdf4fc98c59a9ec2d5153a1ada590926b Mon Sep 17 00:00:00 2001 From: xaliciayang Date: Thu, 3 Sep 2020 13:31:42 -0700 Subject: [PATCH 07/19] adding in updated test/session for create database test (includes storageAccountType check) --- .../tests/DatabaseCrudScenarioTests.cs | 20 +- .../TestCreateDropDatabase.json | 1724 ++++++++++------- .../Utilities/SqlManagementTestUtilities.cs | 7 +- 3 files changed, 1034 insertions(+), 717 deletions(-) diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/tests/DatabaseCrudScenarioTests.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/tests/DatabaseCrudScenarioTests.cs index 23d828bedd80..50e1958e2e75 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/tests/DatabaseCrudScenarioTests.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/tests/DatabaseCrudScenarioTests.cs @@ -44,7 +44,7 @@ public void TestCreateDropDatabase() Assert.NotNull(db1); // Create a database with all parameters specified - // + // dbName = SqlManagementTestUtilities.GenerateName(); var db2Input = new Database() { @@ -54,7 +54,8 @@ public void TestCreateDropDatabase() MaxSizeBytes = 2 * 1024L * 1024L * 1024L, Tags = tags, CreateMode = "Default", - SampleName = SampleName.AdventureWorksLT + SampleName = SampleName.AdventureWorksLT, + StorageAccountType = "LRS", }; var db2 = sqlClient.Databases.CreateOrUpdate(resourceGroup.Name, server.Name, dbName, db2Input); Assert.NotNull(db2); @@ -112,12 +113,23 @@ public void TestCreateDropDatabase() Assert.NotNull(db7); SqlManagementTestUtilities.ValidateDatabase(db7Input, db7, dbName); + dbName = SqlManagementTestUtilities.GenerateName(); + var db8Input = new Database() + { + Location = server.Location, + StorageAccountType = "LRS", + }; + var db8 = sqlClient.Databases.CreateOrUpdate(resourceGroup.Name, server.Name, dbName, db8Input); + Assert.NotNull(db8); + SqlManagementTestUtilities.ValidateDatabase(db8Input, db8, dbName); + sqlClient.Databases.Delete(resourceGroup.Name, server.Name, db1.Name); sqlClient.Databases.Delete(resourceGroup.Name, server.Name, db2.Name); sqlClient.Databases.Delete(resourceGroup.Name, server.Name, db4.Name); sqlClient.Databases.Delete(resourceGroup.Name, server.Name, db5.Name); sqlClient.Databases.Delete(resourceGroup.Name, server.Name, db6.Name); sqlClient.Databases.Delete(resourceGroup.Name, server.Name, db7.Name); + sqlClient.Databases.Delete(resourceGroup.Name, server.Name, db8.Name); } } @@ -363,7 +375,7 @@ public void TestGetAndListDatabase() } } } - + [Fact] public void TestRemoveDatabaseFromPool() { @@ -379,7 +391,7 @@ public void TestRemoveDatabaseFromPool() }; // Create an elastic pool - // + // string epName = SqlManagementTestUtilities.GenerateName(); var epInput = new ElasticPool() { diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/tests/SessionRecords/DatabaseCrudScenarioTests/TestCreateDropDatabase.json b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/tests/SessionRecords/DatabaseCrudScenarioTests/TestCreateDropDatabase.json index d3a218b2fd84..0653e6bb7f69 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/tests/SessionRecords/DatabaseCrudScenarioTests/TestCreateDropDatabase.json +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/tests/SessionRecords/DatabaseCrudScenarioTests/TestCreateDropDatabase.json @@ -1,13 +1,13 @@ { "Entries": [ { - "RequestUri": "/subscriptions/20dd0210-f0cf-4aba-8439-7d5972412384/resourcegroups/sqlcrudtest-8679?api-version=2017-05-10", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjBkZDAyMTAtZjBjZi00YWJhLTg0MzktN2Q1OTcyNDEyMzg0L3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTg2Nzk/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourcegroups/sqlcrudtest-8781?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTg3ODE/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"location\": \"canada central\",\r\n \"tags\": {\r\n \"sqlcrudtest-8679\": \"2019-09-12 20:02:47Z\"\r\n }\r\n}", + "RequestBody": "{\r\n \"location\": \"Southeast Asia\",\r\n \"tags\": {\r\n \"sqlcrudtest-8781\": \"2020-09-01 20:22:29Z\"\r\n }\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "31583467-0ed5-4593-8574-c5e453566ee9" + "7459b706-cdb6-4d0a-9bf5-7141add86e0a" ], "accept-language": [ "en-US" @@ -15,7 +15,7 @@ "User-Agent": [ "FxVersion/4.6.26614.01", "OSName/Windows", - "OSVersion/Microsoft.Windows.6.3.9600.", + "OSVersion/Microsoft.Windows.10.0.14393.", "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" ], "Content-Type": [ @@ -30,7 +30,7 @@ "no-cache" ], "Date": [ - "Thu, 12 Sep 2019 20:02:50 GMT" + "Tue, 01 Sep 2020 20:22:32 GMT" ], "Pragma": [ "no-cache" @@ -39,13 +39,13 @@ "1199" ], "x-ms-request-id": [ - "d2e4f70c-e2bb-4e72-bb7e-c89a06416703" + "6d8e8892-a07c-4463-bc1f-3ac21891dda5" ], "x-ms-correlation-request-id": [ - "d2e4f70c-e2bb-4e72-bb7e-c89a06416703" + "6d8e8892-a07c-4463-bc1f-3ac21891dda5" ], "x-ms-routing-request-id": [ - "WESTUS:20190912T200250Z:d2e4f70c-e2bb-4e72-bb7e-c89a06416703" + "WESTUS:20200901T202232Z:6d8e8892-a07c-4463-bc1f-3ac21891dda5" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -63,17 +63,17 @@ "-1" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/20dd0210-f0cf-4aba-8439-7d5972412384/resourceGroups/sqlcrudtest-8679\",\r\n \"name\": \"sqlcrudtest-8679\",\r\n \"location\": \"canadacentral\",\r\n \"tags\": {\r\n \"sqlcrudtest-8679\": \"2019-09-12 20:02:47Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781\",\r\n \"name\": \"sqlcrudtest-8781\",\r\n \"location\": \"southeastasia\",\r\n \"tags\": {\r\n \"sqlcrudtest-8781\": \"2020-09-01 20:22:29Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", "StatusCode": 201 }, { - "RequestUri": "/subscriptions/20dd0210-f0cf-4aba-8439-7d5972412384/resourceGroups/sqlcrudtest-8679/providers/Microsoft.Sql/servers/sqlcrudtest-1579?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjBkZDAyMTAtZjBjZi00YWJhLTg0MzktN2Q1OTcyNDEyMzg0L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg2NzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0xNTc5P2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/servers/sqlcrudtest-3000?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3ODEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zMDAwP2FwaS12ZXJzaW9uPTIwMTktMDYtMDEtcHJldmlldw==", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"administratorLogin\": \"dummylogin\",\r\n \"administratorLoginPassword\": \"Un53cuRE!\",\r\n \"version\": \"12.0\"\r\n },\r\n \"location\": \"canada central\",\r\n \"tags\": {}\r\n}", + "RequestBody": "{\r\n \"properties\": {\r\n \"administratorLogin\": \"dummylogin\",\r\n \"administratorLoginPassword\": \"Un53cuRE!\",\r\n \"version\": \"12.0\"\r\n },\r\n \"location\": \"Southeast Asia\",\r\n \"tags\": {}\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "82655266-0f74-4352-897e-30660fe51947" + "80be94e0-d97b-4eb8-8119-fd852cd949b0" ], "accept-language": [ "en-US" @@ -81,8 +81,8 @@ "User-Agent": [ "FxVersion/4.6.26614.01", "OSName/Windows", - "OSVersion/Microsoft.Windows.6.3.9600.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.35.0.0" + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.45.0.0" ], "Content-Type": [ "application/json; charset=utf-8" @@ -96,13 +96,13 @@ "no-cache" ], "Date": [ - "Thu, 12 Sep 2019 20:02:51 GMT" + "Tue, 01 Sep 2020 20:22:37 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/20dd0210-f0cf-4aba-8439-7d5972412384/resourceGroups/sqlcrudtest-8679/providers/Microsoft.Sql/locations/canadacentral/serverOperationResults/39f778ff-e046-43f6-9f6d-a2a3002b6b70?api-version=2015-05-01-preview" + "https://management.azure.com/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/locations/southeastasia/serverOperationResults/8cd10201-cfac-4e84-a655-b80db6f71d55?api-version=2019-06-01-preview" ], "Retry-After": [ "1" @@ -111,19 +111,19 @@ "Microsoft-HTTPAPI/2.0" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/20dd0210-f0cf-4aba-8439-7d5972412384/resourceGroups/sqlcrudtest-8679/providers/Microsoft.Sql/locations/canadacentral/serverAzureAsyncOperation/39f778ff-e046-43f6-9f6d-a2a3002b6b70?api-version=2015-05-01-preview" + "https://management.azure.com/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/locations/southeastasia/serverAzureAsyncOperation/8cd10201-cfac-4e84-a655-b80db6f71d55?api-version=2019-06-01-preview" ], "x-ms-request-id": [ - "39f778ff-e046-43f6-9f6d-a2a3002b6b70" + "8cd10201-cfac-4e84-a655-b80db6f71d55" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1199" ], "x-ms-correlation-request-id": [ - "6b0aba45-8a0b-41ab-92af-b6e2fb138d4c" + "01b3c0df-8464-45e7-949e-9636514e9c7e" ], "x-ms-routing-request-id": [ - "WESTUS:20190912T200252Z:6b0aba45-8a0b-41ab-92af-b6e2fb138d4c" + "WESTUS:20200901T202238Z:01b3c0df-8464-45e7-949e-9636514e9c7e" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -141,20 +141,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"operation\": \"UpsertLogicalServer\",\r\n \"startTime\": \"2019-09-12T20:02:52.057Z\"\r\n}", + "ResponseBody": "{\r\n \"operation\": \"UpsertLogicalServer\",\r\n \"startTime\": \"2020-09-01T20:22:38.517Z\"\r\n}", "StatusCode": 202 }, { - "RequestUri": "/subscriptions/20dd0210-f0cf-4aba-8439-7d5972412384/resourceGroups/sqlcrudtest-8679/providers/Microsoft.Sql/locations/canadacentral/serverAzureAsyncOperation/39f778ff-e046-43f6-9f6d-a2a3002b6b70?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjBkZDAyMTAtZjBjZi00YWJhLTg0MzktN2Q1OTcyNDEyMzg0L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg2NzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2NhbmFkYWNlbnRyYWwvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi8zOWY3NzhmZi1lMDQ2LTQzZjYtOWY2ZC1hMmEzMDAyYjZiNzA/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/locations/southeastasia/serverAzureAsyncOperation/8cd10201-cfac-4e84-a655-b80db6f71d55?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3ODEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3NvdXRoZWFzdGFzaWEvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi84Y2QxMDIwMS1jZmFjLTRlODQtYTY1NS1iODBkYjZmNzFkNTU/YXBpLXZlcnNpb249MjAxOS0wNi0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.26614.01", "OSName/Windows", - "OSVersion/Microsoft.Windows.6.3.9600.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.35.0.0" + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.45.0.0" ] }, "ResponseHeaders": { @@ -162,7 +162,7 @@ "no-cache" ], "Date": [ - "Thu, 12 Sep 2019 20:02:52 GMT" + "Tue, 01 Sep 2020 20:22:39 GMT" ], "Pragma": [ "no-cache" @@ -174,16 +174,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "7b3ee33b-bb38-4c55-bda5-1415b2fec4ec" + "09586bc8-2365-485a-90f3-2ddeab20c43a" ], "x-ms-ratelimit-remaining-subscription-reads": [ "11999" ], "x-ms-correlation-request-id": [ - "537e2647-7c99-4870-8ee5-c8784fe40207" + "acecd089-42cb-45d6-9157-a7faf83b410d" ], "x-ms-routing-request-id": [ - "WESTUS:20190912T200253Z:537e2647-7c99-4870-8ee5-c8784fe40207" + "WESTUS:20200901T202239Z:acecd089-42cb-45d6-9157-a7faf83b410d" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -201,20 +201,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"39f778ff-e046-43f6-9f6d-a2a3002b6b70\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-09-12T20:02:52.057Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"8cd10201-cfac-4e84-a655-b80db6f71d55\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-01T20:22:38.517Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/20dd0210-f0cf-4aba-8439-7d5972412384/resourceGroups/sqlcrudtest-8679/providers/Microsoft.Sql/locations/canadacentral/serverAzureAsyncOperation/39f778ff-e046-43f6-9f6d-a2a3002b6b70?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjBkZDAyMTAtZjBjZi00YWJhLTg0MzktN2Q1OTcyNDEyMzg0L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg2NzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2NhbmFkYWNlbnRyYWwvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi8zOWY3NzhmZi1lMDQ2LTQzZjYtOWY2ZC1hMmEzMDAyYjZiNzA/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/locations/southeastasia/serverAzureAsyncOperation/8cd10201-cfac-4e84-a655-b80db6f71d55?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3ODEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3NvdXRoZWFzdGFzaWEvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi84Y2QxMDIwMS1jZmFjLTRlODQtYTY1NS1iODBkYjZmNzFkNTU/YXBpLXZlcnNpb249MjAxOS0wNi0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.26614.01", "OSName/Windows", - "OSVersion/Microsoft.Windows.6.3.9600.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.35.0.0" + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.45.0.0" ] }, "ResponseHeaders": { @@ -222,7 +222,7 @@ "no-cache" ], "Date": [ - "Thu, 12 Sep 2019 20:02:53 GMT" + "Tue, 01 Sep 2020 20:22:40 GMT" ], "Pragma": [ "no-cache" @@ -234,16 +234,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "b76dd341-09b6-4a4d-9114-54f3ca43f70e" + "e6cd26e6-2a58-4893-ba0f-d9fa404f9279" ], "x-ms-ratelimit-remaining-subscription-reads": [ "11998" ], "x-ms-correlation-request-id": [ - "b6dea867-c364-473e-a07b-c7f59d472a85" + "f12c5072-1ca5-46ab-b21e-e0a3271d28f2" ], "x-ms-routing-request-id": [ - "WESTUS:20190912T200254Z:b6dea867-c364-473e-a07b-c7f59d472a85" + "WESTUS:20200901T202241Z:f12c5072-1ca5-46ab-b21e-e0a3271d28f2" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -261,20 +261,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"39f778ff-e046-43f6-9f6d-a2a3002b6b70\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-09-12T20:02:52.057Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"8cd10201-cfac-4e84-a655-b80db6f71d55\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-01T20:22:38.517Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/20dd0210-f0cf-4aba-8439-7d5972412384/resourceGroups/sqlcrudtest-8679/providers/Microsoft.Sql/locations/canadacentral/serverAzureAsyncOperation/39f778ff-e046-43f6-9f6d-a2a3002b6b70?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjBkZDAyMTAtZjBjZi00YWJhLTg0MzktN2Q1OTcyNDEyMzg0L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg2NzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2NhbmFkYWNlbnRyYWwvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi8zOWY3NzhmZi1lMDQ2LTQzZjYtOWY2ZC1hMmEzMDAyYjZiNzA/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/locations/southeastasia/serverAzureAsyncOperation/8cd10201-cfac-4e84-a655-b80db6f71d55?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3ODEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3NvdXRoZWFzdGFzaWEvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi84Y2QxMDIwMS1jZmFjLTRlODQtYTY1NS1iODBkYjZmNzFkNTU/YXBpLXZlcnNpb249MjAxOS0wNi0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.26614.01", "OSName/Windows", - "OSVersion/Microsoft.Windows.6.3.9600.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.35.0.0" + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.45.0.0" ] }, "ResponseHeaders": { @@ -282,7 +282,7 @@ "no-cache" ], "Date": [ - "Thu, 12 Sep 2019 20:02:54 GMT" + "Tue, 01 Sep 2020 20:22:41 GMT" ], "Pragma": [ "no-cache" @@ -294,16 +294,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "6a0beec5-7278-4b52-b96b-775249952ef2" + "1e24c49f-175f-4e05-9ef4-1e5cf37fca7d" ], "x-ms-ratelimit-remaining-subscription-reads": [ "11997" ], "x-ms-correlation-request-id": [ - "efa57845-0c29-4714-b9f7-2216740abf97" + "65b9e0d6-a5e2-433e-88f0-d3e2adc6109e" ], "x-ms-routing-request-id": [ - "WESTUS:20190912T200255Z:efa57845-0c29-4714-b9f7-2216740abf97" + "WESTUS:20200901T202242Z:65b9e0d6-a5e2-433e-88f0-d3e2adc6109e" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -321,20 +321,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"39f778ff-e046-43f6-9f6d-a2a3002b6b70\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-09-12T20:02:52.057Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"8cd10201-cfac-4e84-a655-b80db6f71d55\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-01T20:22:38.517Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/20dd0210-f0cf-4aba-8439-7d5972412384/resourceGroups/sqlcrudtest-8679/providers/Microsoft.Sql/locations/canadacentral/serverAzureAsyncOperation/39f778ff-e046-43f6-9f6d-a2a3002b6b70?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjBkZDAyMTAtZjBjZi00YWJhLTg0MzktN2Q1OTcyNDEyMzg0L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg2NzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2NhbmFkYWNlbnRyYWwvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi8zOWY3NzhmZi1lMDQ2LTQzZjYtOWY2ZC1hMmEzMDAyYjZiNzA/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/locations/southeastasia/serverAzureAsyncOperation/8cd10201-cfac-4e84-a655-b80db6f71d55?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3ODEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3NvdXRoZWFzdGFzaWEvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi84Y2QxMDIwMS1jZmFjLTRlODQtYTY1NS1iODBkYjZmNzFkNTU/YXBpLXZlcnNpb249MjAxOS0wNi0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.26614.01", "OSName/Windows", - "OSVersion/Microsoft.Windows.6.3.9600.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.35.0.0" + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.45.0.0" ] }, "ResponseHeaders": { @@ -342,28 +342,28 @@ "no-cache" ], "Date": [ - "Thu, 12 Sep 2019 20:02:56 GMT" + "Tue, 01 Sep 2020 20:22:42 GMT" ], "Pragma": [ "no-cache" ], "Retry-After": [ - "1" + "20" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "cacdd9eb-e056-4223-b1b7-242452a7c953" + "aa41248b-714c-497e-a04f-2876611b5543" ], "x-ms-ratelimit-remaining-subscription-reads": [ "11996" ], "x-ms-correlation-request-id": [ - "d22fa1da-6bbf-4326-90ac-ea1819e23816" + "d7651c6c-7355-451b-bc17-ec559c50c064" ], "x-ms-routing-request-id": [ - "WESTUS:20190912T200256Z:d22fa1da-6bbf-4326-90ac-ea1819e23816" + "WESTUS:20200901T202243Z:d7651c6c-7355-451b-bc17-ec559c50c064" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -381,20 +381,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"39f778ff-e046-43f6-9f6d-a2a3002b6b70\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-09-12T20:02:52.057Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"8cd10201-cfac-4e84-a655-b80db6f71d55\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-01T20:22:38.517Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/20dd0210-f0cf-4aba-8439-7d5972412384/resourceGroups/sqlcrudtest-8679/providers/Microsoft.Sql/locations/canadacentral/serverAzureAsyncOperation/39f778ff-e046-43f6-9f6d-a2a3002b6b70?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjBkZDAyMTAtZjBjZi00YWJhLTg0MzktN2Q1OTcyNDEyMzg0L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg2NzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2NhbmFkYWNlbnRyYWwvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi8zOWY3NzhmZi1lMDQ2LTQzZjYtOWY2ZC1hMmEzMDAyYjZiNzA/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/locations/southeastasia/serverAzureAsyncOperation/8cd10201-cfac-4e84-a655-b80db6f71d55?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3ODEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3NvdXRoZWFzdGFzaWEvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi84Y2QxMDIwMS1jZmFjLTRlODQtYTY1NS1iODBkYjZmNzFkNTU/YXBpLXZlcnNpb249MjAxOS0wNi0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.26614.01", "OSName/Windows", - "OSVersion/Microsoft.Windows.6.3.9600.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.35.0.0" + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.45.0.0" ] }, "ResponseHeaders": { @@ -402,7 +402,7 @@ "no-cache" ], "Date": [ - "Thu, 12 Sep 2019 20:02:57 GMT" + "Tue, 01 Sep 2020 20:23:02 GMT" ], "Pragma": [ "no-cache" @@ -414,16 +414,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "70684c61-747a-4349-85b2-1c475644fd2f" + "b5531bf4-87ec-4413-b479-e201fcece6d5" ], "x-ms-ratelimit-remaining-subscription-reads": [ "11995" ], "x-ms-correlation-request-id": [ - "8151ba0a-2690-40c8-a009-7b1534af085e" + "6378ccf7-4bf5-42ed-a503-61cdb647a3de" ], "x-ms-routing-request-id": [ - "WESTUS:20190912T200257Z:8151ba0a-2690-40c8-a009-7b1534af085e" + "WESTUS:20200901T202303Z:6378ccf7-4bf5-42ed-a503-61cdb647a3de" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -441,20 +441,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"39f778ff-e046-43f6-9f6d-a2a3002b6b70\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-09-12T20:02:52.057Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"8cd10201-cfac-4e84-a655-b80db6f71d55\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-01T20:22:38.517Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/20dd0210-f0cf-4aba-8439-7d5972412384/resourceGroups/sqlcrudtest-8679/providers/Microsoft.Sql/locations/canadacentral/serverAzureAsyncOperation/39f778ff-e046-43f6-9f6d-a2a3002b6b70?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjBkZDAyMTAtZjBjZi00YWJhLTg0MzktN2Q1OTcyNDEyMzg0L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg2NzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2NhbmFkYWNlbnRyYWwvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi8zOWY3NzhmZi1lMDQ2LTQzZjYtOWY2ZC1hMmEzMDAyYjZiNzA/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/locations/southeastasia/serverAzureAsyncOperation/8cd10201-cfac-4e84-a655-b80db6f71d55?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3ODEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3NvdXRoZWFzdGFzaWEvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi84Y2QxMDIwMS1jZmFjLTRlODQtYTY1NS1iODBkYjZmNzFkNTU/YXBpLXZlcnNpb249MjAxOS0wNi0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.26614.01", "OSName/Windows", - "OSVersion/Microsoft.Windows.6.3.9600.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.35.0.0" + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.45.0.0" ] }, "ResponseHeaders": { @@ -462,28 +462,28 @@ "no-cache" ], "Date": [ - "Thu, 12 Sep 2019 20:03:17 GMT" + "Tue, 01 Sep 2020 20:23:24 GMT" ], "Pragma": [ "no-cache" ], "Retry-After": [ - "20" + "15" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "bbbb6126-e2c5-4dae-9a52-4f09d78dafee" + "76fa5f69-0a00-4603-b2c1-137d518273dd" ], "x-ms-ratelimit-remaining-subscription-reads": [ "11994" ], "x-ms-correlation-request-id": [ - "e7466e42-d23e-41ae-bc1a-b1947eb6fb9b" + "9225a47a-1c97-48d9-a03d-ebc92f1b450f" ], "x-ms-routing-request-id": [ - "WESTUS:20190912T200318Z:e7466e42-d23e-41ae-bc1a-b1947eb6fb9b" + "WESTUS:20200901T202324Z:9225a47a-1c97-48d9-a03d-ebc92f1b450f" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -492,7 +492,7 @@ "nosniff" ], "Content-Length": [ - "108" + "107" ], "Content-Type": [ "application/json; charset=utf-8" @@ -501,20 +501,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"39f778ff-e046-43f6-9f6d-a2a3002b6b70\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-09-12T20:02:52.057Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"8cd10201-cfac-4e84-a655-b80db6f71d55\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2020-09-01T20:22:38.517Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/20dd0210-f0cf-4aba-8439-7d5972412384/resourceGroups/sqlcrudtest-8679/providers/Microsoft.Sql/locations/canadacentral/serverAzureAsyncOperation/39f778ff-e046-43f6-9f6d-a2a3002b6b70?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjBkZDAyMTAtZjBjZi00YWJhLTg0MzktN2Q1OTcyNDEyMzg0L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg2NzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2NhbmFkYWNlbnRyYWwvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi8zOWY3NzhmZi1lMDQ2LTQzZjYtOWY2ZC1hMmEzMDAyYjZiNzA/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/servers/sqlcrudtest-3000?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3ODEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zMDAwP2FwaS12ZXJzaW9uPTIwMTktMDYtMDEtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.26614.01", "OSName/Windows", - "OSVersion/Microsoft.Windows.6.3.9600.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.35.0.0" + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.45.0.0" ] }, "ResponseHeaders": { @@ -522,28 +522,25 @@ "no-cache" ], "Date": [ - "Thu, 12 Sep 2019 20:03:37 GMT" + "Tue, 01 Sep 2020 20:23:24 GMT" ], "Pragma": [ "no-cache" ], - "Retry-After": [ - "15" - ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "9f740c60-7ca5-46fb-8c48-9613f1704e77" + "af7a5915-963e-4e47-a53c-138682aef81d" ], "x-ms-ratelimit-remaining-subscription-reads": [ "11993" ], "x-ms-correlation-request-id": [ - "a728482f-fefd-4f75-b228-2c5966da97b3" + "3a7fc00d-b6df-4e66-9d33-e0ac7e9f3382" ], "x-ms-routing-request-id": [ - "WESTUS:20190912T200338Z:a728482f-fefd-4f75-b228-2c5966da97b3" + "WESTUS:20200901T202324Z:3a7fc00d-b6df-4e66-9d33-e0ac7e9f3382" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -552,7 +549,7 @@ "nosniff" ], "Content-Length": [ - "107" + "463" ], "Content-Type": [ "application/json; charset=utf-8" @@ -561,20 +558,32 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"39f778ff-e046-43f6-9f6d-a2a3002b6b70\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2019-09-12T20:02:52.057Z\"\r\n}", + "ResponseBody": "{\r\n \"kind\": \"v12.0\",\r\n \"properties\": {\r\n \"administratorLogin\": \"dummylogin\",\r\n \"version\": \"12.0\",\r\n \"state\": \"Ready\",\r\n \"fullyQualifiedDomainName\": \"sqlcrudtest-3000.database.windows.net\",\r\n \"privateEndpointConnections\": [],\r\n \"publicNetworkAccess\": \"Enabled\"\r\n },\r\n \"location\": \"southeastasia\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/servers/sqlcrudtest-3000\",\r\n \"name\": \"sqlcrudtest-3000\",\r\n \"type\": \"Microsoft.Sql/servers\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/20dd0210-f0cf-4aba-8439-7d5972412384/resourceGroups/sqlcrudtest-8679/providers/Microsoft.Sql/servers/sqlcrudtest-1579?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjBkZDAyMTAtZjBjZi00YWJhLTg0MzktN2Q1OTcyNDEyMzg0L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg2NzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0xNTc5P2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", - "RequestMethod": "GET", - "RequestBody": "", + "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/servers/sqlcrudtest-3000/databases/sqlcrudtest-1701?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3ODEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zMDAwL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC0xNzAxP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"southeastasia\"\r\n}", "RequestHeaders": { + "x-ms-client-request-id": [ + "c5536b04-5dfa-4156-b2f1-dfdffbba54ee" + ], + "accept-language": [ + "en-US" + ], "User-Agent": [ "FxVersion/4.6.26614.01", "OSName/Windows", - "OSVersion/Microsoft.Windows.6.3.9600.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.35.0.0" + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.45.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "35" ] }, "ResponseHeaders": { @@ -582,25 +591,34 @@ "no-cache" ], "Date": [ - "Thu, 12 Sep 2019 20:03:38 GMT" + "Tue, 01 Sep 2020 20:23:30 GMT" ], "Pragma": [ "no-cache" ], + "Location": [ + "https://management.azure.com/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/locations/southeastasia/databaseOperationResults/f79e7f2d-b995-4fc9-a3b5-093cac35e5ab?api-version=2017-10-01-preview" + ], + "Retry-After": [ + "15" + ], "Server": [ "Microsoft-HTTPAPI/2.0" ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/locations/southeastasia/databaseAzureAsyncOperation/f79e7f2d-b995-4fc9-a3b5-093cac35e5ab?api-version=2017-10-01-preview" + ], "x-ms-request-id": [ - "32b2bc1a-f334-4a6e-a28f-36d909dc0c16" + "f79e7f2d-b995-4fc9-a3b5-093cac35e5ab" ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11992" + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" ], "x-ms-correlation-request-id": [ - "bbd5b878-49f6-4342-a27a-7ad8a5d91243" + "50104b3a-c8d9-49e4-aa66-1de3adb182e1" ], "x-ms-routing-request-id": [ - "WESTUS:20190912T200338Z:bbd5b878-49f6-4342-a27a-7ad8a5d91243" + "WESTUS:20200901T202330Z:50104b3a-c8d9-49e4-aa66-1de3adb182e1" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -609,7 +627,7 @@ "nosniff" ], "Content-Length": [ - "399" + "75" ], "Content-Type": [ "application/json; charset=utf-8" @@ -618,32 +636,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"kind\": \"v12.0\",\r\n \"properties\": {\r\n \"administratorLogin\": \"dummylogin\",\r\n \"version\": \"12.0\",\r\n \"state\": \"Ready\",\r\n \"fullyQualifiedDomainName\": \"sqlcrudtest-1579.database.windows.net\"\r\n },\r\n \"location\": \"canadacentral\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/20dd0210-f0cf-4aba-8439-7d5972412384/resourceGroups/sqlcrudtest-8679/providers/Microsoft.Sql/servers/sqlcrudtest-1579\",\r\n \"name\": \"sqlcrudtest-1579\",\r\n \"type\": \"Microsoft.Sql/servers\"\r\n}", - "StatusCode": 200 + "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2020-09-01T20:23:30.66Z\"\r\n}", + "StatusCode": 202 }, { - "RequestUri": "/subscriptions/20dd0210-f0cf-4aba-8439-7d5972412384/resourceGroups/sqlcrudtest-8679/providers/Microsoft.Sql/servers/sqlcrudtest-1579/databases/sqlcrudtest-6953?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjBkZDAyMTAtZjBjZi00YWJhLTg0MzktN2Q1OTcyNDEyMzg0L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg2NzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0xNTc5L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC02OTUzP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"location\": \"canadacentral\"\r\n}", + "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/locations/southeastasia/databaseAzureAsyncOperation/f79e7f2d-b995-4fc9-a3b5-093cac35e5ab?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3ODEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3NvdXRoZWFzdGFzaWEvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2Y3OWU3ZjJkLWI5OTUtNGZjOS1hM2I1LTA5M2NhYzM1ZTVhYj9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", "RequestHeaders": { - "x-ms-client-request-id": [ - "c933a31a-b49e-49db-a821-74b353a5d992" - ], - "accept-language": [ - "en-US" - ], "User-Agent": [ "FxVersion/4.6.26614.01", "OSName/Windows", - "OSVersion/Microsoft.Windows.6.3.9600.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.35.0.0" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "35" + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.45.0.0" ] }, "ResponseHeaders": { @@ -651,34 +657,28 @@ "no-cache" ], "Date": [ - "Thu, 12 Sep 2019 20:03:39 GMT" + "Tue, 01 Sep 2020 20:23:45 GMT" ], "Pragma": [ "no-cache" ], - "Location": [ - "https://management.azure.com/subscriptions/20dd0210-f0cf-4aba-8439-7d5972412384/resourceGroups/sqlcrudtest-8679/providers/Microsoft.Sql/locations/canadacentral/databaseOperationResults/442e5767-e251-445a-8bc4-ece51616548d?api-version=2017-10-01-preview" - ], "Retry-After": [ "15" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], - "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/20dd0210-f0cf-4aba-8439-7d5972412384/resourceGroups/sqlcrudtest-8679/providers/Microsoft.Sql/locations/canadacentral/databaseAzureAsyncOperation/442e5767-e251-445a-8bc4-ece51616548d?api-version=2017-10-01-preview" - ], "x-ms-request-id": [ - "442e5767-e251-445a-8bc4-ece51616548d" + "fdaf5dec-eda2-4c3f-9a4a-720c114d63f9" ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1198" + "x-ms-ratelimit-remaining-subscription-reads": [ + "11992" ], "x-ms-correlation-request-id": [ - "b9da3c66-c9ac-4ec3-9373-3663f4530d22" + "15d00a0c-df3b-4179-9ddf-45358b99a9b6" ], "x-ms-routing-request-id": [ - "WESTUS:20190912T200339Z:b9da3c66-c9ac-4ec3-9373-3663f4530d22" + "WESTUS:20200901T202346Z:15d00a0c-df3b-4179-9ddf-45358b99a9b6" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -687,7 +687,7 @@ "nosniff" ], "Content-Length": [ - "76" + "107" ], "Content-Type": [ "application/json; charset=utf-8" @@ -696,20 +696,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2019-09-12T20:03:39.343Z\"\r\n}", - "StatusCode": 202 + "ResponseBody": "{\r\n \"name\": \"f79e7f2d-b995-4fc9-a3b5-093cac35e5ab\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-01T20:23:30.66Z\"\r\n}", + "StatusCode": 200 }, { - "RequestUri": "/subscriptions/20dd0210-f0cf-4aba-8439-7d5972412384/resourceGroups/sqlcrudtest-8679/providers/Microsoft.Sql/locations/canadacentral/databaseAzureAsyncOperation/442e5767-e251-445a-8bc4-ece51616548d?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjBkZDAyMTAtZjBjZi00YWJhLTg0MzktN2Q1OTcyNDEyMzg0L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg2NzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2NhbmFkYWNlbnRyYWwvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzQ0MmU1NzY3LWUyNTEtNDQ1YS04YmM0LWVjZTUxNjE2NTQ4ZD9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/locations/southeastasia/databaseAzureAsyncOperation/f79e7f2d-b995-4fc9-a3b5-093cac35e5ab?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3ODEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3NvdXRoZWFzdGFzaWEvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2Y3OWU3ZjJkLWI5OTUtNGZjOS1hM2I1LTA5M2NhYzM1ZTVhYj9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.26614.01", "OSName/Windows", - "OSVersion/Microsoft.Windows.6.3.9600.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.35.0.0" + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.45.0.0" ] }, "ResponseHeaders": { @@ -717,7 +717,7 @@ "no-cache" ], "Date": [ - "Thu, 12 Sep 2019 20:03:54 GMT" + "Tue, 01 Sep 2020 20:24:01 GMT" ], "Pragma": [ "no-cache" @@ -729,16 +729,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "afbdfedf-2294-4282-83ab-069f5fe5de36" + "12e8ff1a-61f5-45a7-ac49-952bdcbc630a" ], "x-ms-ratelimit-remaining-subscription-reads": [ "11991" ], "x-ms-correlation-request-id": [ - "3a4f6624-935e-45d2-b4c4-0a4447311989" + "07c97179-7c95-4618-97e9-a6e7028bafdd" ], "x-ms-routing-request-id": [ - "WESTUS:20190912T200354Z:3a4f6624-935e-45d2-b4c4-0a4447311989" + "WESTUS:20200901T202401Z:07c97179-7c95-4618-97e9-a6e7028bafdd" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -747,7 +747,7 @@ "nosniff" ], "Content-Length": [ - "108" + "107" ], "Content-Type": [ "application/json; charset=utf-8" @@ -756,20 +756,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"442e5767-e251-445a-8bc4-ece51616548d\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-09-12T20:03:39.343Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"f79e7f2d-b995-4fc9-a3b5-093cac35e5ab\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-01T20:23:30.66Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/20dd0210-f0cf-4aba-8439-7d5972412384/resourceGroups/sqlcrudtest-8679/providers/Microsoft.Sql/locations/canadacentral/databaseAzureAsyncOperation/442e5767-e251-445a-8bc4-ece51616548d?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjBkZDAyMTAtZjBjZi00YWJhLTg0MzktN2Q1OTcyNDEyMzg0L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg2NzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2NhbmFkYWNlbnRyYWwvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzQ0MmU1NzY3LWUyNTEtNDQ1YS04YmM0LWVjZTUxNjE2NTQ4ZD9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/locations/southeastasia/databaseAzureAsyncOperation/f79e7f2d-b995-4fc9-a3b5-093cac35e5ab?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3ODEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3NvdXRoZWFzdGFzaWEvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2Y3OWU3ZjJkLWI5OTUtNGZjOS1hM2I1LTA5M2NhYzM1ZTVhYj9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.26614.01", "OSName/Windows", - "OSVersion/Microsoft.Windows.6.3.9600.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.35.0.0" + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.45.0.0" ] }, "ResponseHeaders": { @@ -777,7 +777,7 @@ "no-cache" ], "Date": [ - "Thu, 12 Sep 2019 20:04:09 GMT" + "Tue, 01 Sep 2020 20:24:16 GMT" ], "Pragma": [ "no-cache" @@ -789,16 +789,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "3fd73bc1-19a6-43c1-b70d-ca1f4103b92e" + "7f61a037-4886-4c0d-a294-531e9ae23d69" ], "x-ms-ratelimit-remaining-subscription-reads": [ "11990" ], "x-ms-correlation-request-id": [ - "c80ea2de-d9c8-4bc9-bdae-f3fe6aee7b1e" + "1bf6dab3-5043-4e6e-ae15-bdc069c96352" ], "x-ms-routing-request-id": [ - "WESTUS:20190912T200409Z:c80ea2de-d9c8-4bc9-bdae-f3fe6aee7b1e" + "WESTUS:20200901T202416Z:1bf6dab3-5043-4e6e-ae15-bdc069c96352" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -807,7 +807,7 @@ "nosniff" ], "Content-Length": [ - "107" + "106" ], "Content-Type": [ "application/json; charset=utf-8" @@ -816,20 +816,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"442e5767-e251-445a-8bc4-ece51616548d\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2019-09-12T20:03:39.343Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"f79e7f2d-b995-4fc9-a3b5-093cac35e5ab\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2020-09-01T20:23:30.66Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/20dd0210-f0cf-4aba-8439-7d5972412384/resourceGroups/sqlcrudtest-8679/providers/Microsoft.Sql/servers/sqlcrudtest-1579/databases/sqlcrudtest-6953?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjBkZDAyMTAtZjBjZi00YWJhLTg0MzktN2Q1OTcyNDEyMzg0L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg2NzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0xNTc5L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC02OTUzP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/servers/sqlcrudtest-3000/databases/sqlcrudtest-1701?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3ODEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zMDAwL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC0xNzAxP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.26614.01", "OSName/Windows", - "OSVersion/Microsoft.Windows.6.3.9600.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.35.0.0" + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.45.0.0" ] }, "ResponseHeaders": { @@ -837,7 +837,7 @@ "no-cache" ], "Date": [ - "Thu, 12 Sep 2019 20:04:09 GMT" + "Tue, 01 Sep 2020 20:24:16 GMT" ], "Pragma": [ "no-cache" @@ -846,16 +846,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "d2fa3556-ee5c-43d9-8f9f-541386787c9e" + "3d6fe7ae-baa3-4a19-8d0a-1289a400369a" ], "x-ms-ratelimit-remaining-subscription-reads": [ "11989" ], "x-ms-correlation-request-id": [ - "867b877e-e497-4a07-ad64-7fc86840a1c4" + "9f297e74-cd5b-4ea5-9407-41cd2ee4a0a4" ], "x-ms-routing-request-id": [ - "WESTUS:20190912T200409Z:867b877e-e497-4a07-ad64-7fc86840a1c4" + "WESTUS:20200901T202416Z:9f297e74-cd5b-4ea5-9407-41cd2ee4a0a4" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -864,7 +864,7 @@ "nosniff" ], "Content-Length": [ - "1001" + "999" ], "Content-Type": [ "application/json; charset=utf-8" @@ -873,17 +873,17 @@ "-1" ] }, - "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"GP_Gen5\",\r\n \"tier\": \"GeneralPurpose\",\r\n \"family\": \"Gen5\",\r\n \"capacity\": 2\r\n },\r\n \"kind\": \"v12.0,user,vcore\",\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": 34359738368,\r\n \"status\": \"Online\",\r\n \"databaseId\": \"15e40f80-3854-41aa-8bea-8e1f283d03cf\",\r\n \"creationDate\": \"2019-09-12T20:04:04.923Z\",\r\n \"currentServiceObjectiveName\": \"GP_Gen5_2\",\r\n \"requestedServiceObjectiveName\": \"GP_Gen5_2\",\r\n \"defaultSecondaryLocation\": \"canadaeast\",\r\n \"catalogCollation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"zoneRedundant\": false,\r\n \"licenseType\": \"LicenseIncluded\",\r\n \"maxLogSizeBytes\": 10307502080,\r\n \"earliestRestoreDate\": \"2019-09-12T20:34:04.923Z\",\r\n \"readScale\": \"Disabled\",\r\n \"readReplicaCount\": 0,\r\n \"currentSku\": {\r\n \"name\": \"GP_Gen5\",\r\n \"tier\": \"GeneralPurpose\",\r\n \"family\": \"Gen5\",\r\n \"capacity\": 2\r\n }\r\n },\r\n \"location\": \"canadacentral\",\r\n \"id\": \"/subscriptions/20dd0210-f0cf-4aba-8439-7d5972412384/resourceGroups/sqlcrudtest-8679/providers/Microsoft.Sql/servers/sqlcrudtest-1579/databases/sqlcrudtest-6953\",\r\n \"name\": \"sqlcrudtest-6953\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"GP_Gen5\",\r\n \"tier\": \"GeneralPurpose\",\r\n \"family\": \"Gen5\",\r\n \"capacity\": 2\r\n },\r\n \"kind\": \"v12.0,user,vcore\",\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": 34359738368,\r\n \"status\": \"Online\",\r\n \"databaseId\": \"6ebc0e05-63d9-4c42-a8dc-9722fd58828b\",\r\n \"creationDate\": \"2020-09-01T20:24:04.417Z\",\r\n \"currentServiceObjectiveName\": \"GP_Gen5_2\",\r\n \"requestedServiceObjectiveName\": \"GP_Gen5_2\",\r\n \"defaultSecondaryLocation\": \"eastasia\",\r\n \"catalogCollation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"zoneRedundant\": false,\r\n \"licenseType\": \"LicenseIncluded\",\r\n \"maxLogSizeBytes\": 10307502080,\r\n \"earliestRestoreDate\": \"2020-09-01T20:54:04.417Z\",\r\n \"readScale\": \"Disabled\",\r\n \"readReplicaCount\": 0,\r\n \"currentSku\": {\r\n \"name\": \"GP_Gen5\",\r\n \"tier\": \"GeneralPurpose\",\r\n \"family\": \"Gen5\",\r\n \"capacity\": 2\r\n }\r\n },\r\n \"location\": \"southeastasia\",\r\n \"id\": \"/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/servers/sqlcrudtest-3000/databases/sqlcrudtest-1701\",\r\n \"name\": \"sqlcrudtest-1701\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/20dd0210-f0cf-4aba-8439-7d5972412384/resourceGroups/sqlcrudtest-8679/providers/Microsoft.Sql/servers/sqlcrudtest-1579/databases/sqlcrudtest-7162?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjBkZDAyMTAtZjBjZi00YWJhLTg0MzktN2Q1OTcyNDEyMzg0L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg2NzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0xNTc5L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC03MTYyP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/servers/sqlcrudtest-3000/databases/sqlcrudtest-4254?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3ODEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zMDAwL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC00MjU0P2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"Basic\"\r\n },\r\n \"properties\": {\r\n \"createMode\": \"Default\",\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": 2147483648,\r\n \"sampleName\": \"AdventureWorksLT\"\r\n },\r\n \"location\": \"canadacentral\",\r\n \"tags\": {\r\n \"tagKey1\": \"TagValue1\"\r\n }\r\n}", + "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"Basic\"\r\n },\r\n \"properties\": {\r\n \"createMode\": \"Default\",\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": 2147483648,\r\n \"sampleName\": \"AdventureWorksLT\"\r\n },\r\n \"location\": \"southeastasia\",\r\n \"tags\": {\r\n \"tagKey1\": \"TagValue1\"\r\n }\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "0f642de5-2e68-401a-8c00-84da8461388c" + "2d9334f7-582b-46f6-a2a9-9741c47b894a" ], "accept-language": [ "en-US" @@ -891,8 +891,8 @@ "User-Agent": [ "FxVersion/4.6.26614.01", "OSName/Windows", - "OSVersion/Microsoft.Windows.6.3.9600.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.35.0.0" + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.45.0.0" ], "Content-Type": [ "application/json; charset=utf-8" @@ -906,13 +906,13 @@ "no-cache" ], "Date": [ - "Thu, 12 Sep 2019 20:04:09 GMT" + "Tue, 01 Sep 2020 20:24:21 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/20dd0210-f0cf-4aba-8439-7d5972412384/resourceGroups/sqlcrudtest-8679/providers/Microsoft.Sql/locations/canadacentral/databaseOperationResults/b743cde9-020a-4cb2-9795-0c52d2ff1209?api-version=2017-10-01-preview" + "https://management.azure.com/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/locations/southeastasia/databaseOperationResults/174fdc9f-ced6-4b56-b9bf-db12f0cb9d65?api-version=2017-10-01-preview" ], "Retry-After": [ "15" @@ -921,19 +921,19 @@ "Microsoft-HTTPAPI/2.0" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/20dd0210-f0cf-4aba-8439-7d5972412384/resourceGroups/sqlcrudtest-8679/providers/Microsoft.Sql/locations/canadacentral/databaseAzureAsyncOperation/b743cde9-020a-4cb2-9795-0c52d2ff1209?api-version=2017-10-01-preview" + "https://management.azure.com/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/locations/southeastasia/databaseAzureAsyncOperation/174fdc9f-ced6-4b56-b9bf-db12f0cb9d65?api-version=2017-10-01-preview" ], "x-ms-request-id": [ - "b743cde9-020a-4cb2-9795-0c52d2ff1209" + "174fdc9f-ced6-4b56-b9bf-db12f0cb9d65" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1197" ], "x-ms-correlation-request-id": [ - "18b85845-2deb-486f-bac3-2837603991b9" + "d078cbdb-d5b0-43d3-b9f4-c61d5e3886e1" ], "x-ms-routing-request-id": [ - "WESTUS:20190912T200410Z:18b85845-2deb-486f-bac3-2837603991b9" + "WESTUS:20200901T202421Z:d078cbdb-d5b0-43d3-b9f4-c61d5e3886e1" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -951,20 +951,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2019-09-12T20:04:10.343Z\"\r\n}", + "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2020-09-01T20:24:21.547Z\"\r\n}", "StatusCode": 202 }, { - "RequestUri": "/subscriptions/20dd0210-f0cf-4aba-8439-7d5972412384/resourceGroups/sqlcrudtest-8679/providers/Microsoft.Sql/locations/canadacentral/databaseAzureAsyncOperation/b743cde9-020a-4cb2-9795-0c52d2ff1209?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjBkZDAyMTAtZjBjZi00YWJhLTg0MzktN2Q1OTcyNDEyMzg0L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg2NzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2NhbmFkYWNlbnRyYWwvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2I3NDNjZGU5LTAyMGEtNGNiMi05Nzk1LTBjNTJkMmZmMTIwOT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/locations/southeastasia/databaseAzureAsyncOperation/174fdc9f-ced6-4b56-b9bf-db12f0cb9d65?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3ODEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3NvdXRoZWFzdGFzaWEvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzE3NGZkYzlmLWNlZDYtNGI1Ni1iOWJmLWRiMTJmMGNiOWQ2NT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.26614.01", "OSName/Windows", - "OSVersion/Microsoft.Windows.6.3.9600.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.35.0.0" + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.45.0.0" ] }, "ResponseHeaders": { @@ -972,7 +972,7 @@ "no-cache" ], "Date": [ - "Thu, 12 Sep 2019 20:04:24 GMT" + "Tue, 01 Sep 2020 20:24:36 GMT" ], "Pragma": [ "no-cache" @@ -984,16 +984,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "4ed2e43d-0480-45f5-ba17-96202f8fcdab" + "8d6d381d-28ae-4cab-baf1-685ec5c0c883" ], "x-ms-ratelimit-remaining-subscription-reads": [ "11988" ], "x-ms-correlation-request-id": [ - "d808a9b7-55d0-407b-8a0e-a2168810aa21" + "13aa6eb2-6d5d-4313-8397-2f96f701e666" ], "x-ms-routing-request-id": [ - "WESTUS:20190912T200425Z:d808a9b7-55d0-407b-8a0e-a2168810aa21" + "WESTUS:20200901T202436Z:13aa6eb2-6d5d-4313-8397-2f96f701e666" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1011,20 +1011,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"b743cde9-020a-4cb2-9795-0c52d2ff1209\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-09-12T20:04:10.343Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"174fdc9f-ced6-4b56-b9bf-db12f0cb9d65\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-01T20:24:21.547Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/20dd0210-f0cf-4aba-8439-7d5972412384/resourceGroups/sqlcrudtest-8679/providers/Microsoft.Sql/locations/canadacentral/databaseAzureAsyncOperation/b743cde9-020a-4cb2-9795-0c52d2ff1209?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjBkZDAyMTAtZjBjZi00YWJhLTg0MzktN2Q1OTcyNDEyMzg0L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg2NzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2NhbmFkYWNlbnRyYWwvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2I3NDNjZGU5LTAyMGEtNGNiMi05Nzk1LTBjNTJkMmZmMTIwOT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/locations/southeastasia/databaseAzureAsyncOperation/174fdc9f-ced6-4b56-b9bf-db12f0cb9d65?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3ODEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3NvdXRoZWFzdGFzaWEvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzE3NGZkYzlmLWNlZDYtNGI1Ni1iOWJmLWRiMTJmMGNiOWQ2NT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.26614.01", "OSName/Windows", - "OSVersion/Microsoft.Windows.6.3.9600.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.35.0.0" + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.45.0.0" ] }, "ResponseHeaders": { @@ -1032,7 +1032,7 @@ "no-cache" ], "Date": [ - "Thu, 12 Sep 2019 20:04:40 GMT" + "Tue, 01 Sep 2020 20:24:51 GMT" ], "Pragma": [ "no-cache" @@ -1044,16 +1044,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "6ece8c19-5a04-42a4-b1b2-6b64d908c21f" + "e5169cfc-eaa1-4e5d-8f99-1c5823ea6a39" ], "x-ms-ratelimit-remaining-subscription-reads": [ "11987" ], "x-ms-correlation-request-id": [ - "9ba69d5f-8db2-4724-9f86-20525d8dd97a" + "9cbb5a3c-f88c-4c89-9bda-54ddccb32222" ], "x-ms-routing-request-id": [ - "WESTUS:20190912T200440Z:9ba69d5f-8db2-4724-9f86-20525d8dd97a" + "WESTUS:20200901T202452Z:9cbb5a3c-f88c-4c89-9bda-54ddccb32222" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1071,20 +1071,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"b743cde9-020a-4cb2-9795-0c52d2ff1209\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-09-12T20:04:10.343Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"174fdc9f-ced6-4b56-b9bf-db12f0cb9d65\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-01T20:24:21.547Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/20dd0210-f0cf-4aba-8439-7d5972412384/resourceGroups/sqlcrudtest-8679/providers/Microsoft.Sql/locations/canadacentral/databaseAzureAsyncOperation/b743cde9-020a-4cb2-9795-0c52d2ff1209?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjBkZDAyMTAtZjBjZi00YWJhLTg0MzktN2Q1OTcyNDEyMzg0L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg2NzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2NhbmFkYWNlbnRyYWwvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2I3NDNjZGU5LTAyMGEtNGNiMi05Nzk1LTBjNTJkMmZmMTIwOT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/locations/southeastasia/databaseAzureAsyncOperation/174fdc9f-ced6-4b56-b9bf-db12f0cb9d65?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3ODEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3NvdXRoZWFzdGFzaWEvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzE3NGZkYzlmLWNlZDYtNGI1Ni1iOWJmLWRiMTJmMGNiOWQ2NT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.26614.01", "OSName/Windows", - "OSVersion/Microsoft.Windows.6.3.9600.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.35.0.0" + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.45.0.0" ] }, "ResponseHeaders": { @@ -1092,7 +1092,7 @@ "no-cache" ], "Date": [ - "Thu, 12 Sep 2019 20:04:55 GMT" + "Tue, 01 Sep 2020 20:25:06 GMT" ], "Pragma": [ "no-cache" @@ -1104,16 +1104,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "b453d404-d7a0-483d-abaf-89ea0f96834e" + "10591bce-674a-4b05-be3b-05cb1220643c" ], "x-ms-ratelimit-remaining-subscription-reads": [ "11986" ], "x-ms-correlation-request-id": [ - "0e3e32d2-2962-42c7-a293-950fd617e2a5" + "03381cc5-618c-470e-9a64-72bec411789a" ], "x-ms-routing-request-id": [ - "WESTUS:20190912T200456Z:0e3e32d2-2962-42c7-a293-950fd617e2a5" + "WESTUS:20200901T202507Z:03381cc5-618c-470e-9a64-72bec411789a" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1122,7 +1122,7 @@ "nosniff" ], "Content-Length": [ - "107" + "108" ], "Content-Type": [ "application/json; charset=utf-8" @@ -1131,20 +1131,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"b743cde9-020a-4cb2-9795-0c52d2ff1209\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2019-09-12T20:04:10.343Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"174fdc9f-ced6-4b56-b9bf-db12f0cb9d65\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-01T20:24:21.547Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/20dd0210-f0cf-4aba-8439-7d5972412384/resourceGroups/sqlcrudtest-8679/providers/Microsoft.Sql/servers/sqlcrudtest-1579/databases/sqlcrudtest-7162?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjBkZDAyMTAtZjBjZi00YWJhLTg0MzktN2Q1OTcyNDEyMzg0L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg2NzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0xNTc5L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC03MTYyP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/locations/southeastasia/databaseAzureAsyncOperation/174fdc9f-ced6-4b56-b9bf-db12f0cb9d65?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3ODEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3NvdXRoZWFzdGFzaWEvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzE3NGZkYzlmLWNlZDYtNGI1Ni1iOWJmLWRiMTJmMGNiOWQ2NT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.26614.01", "OSName/Windows", - "OSVersion/Microsoft.Windows.6.3.9600.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.35.0.0" + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.45.0.0" ] }, "ResponseHeaders": { @@ -1152,25 +1152,85 @@ "no-cache" ], "Date": [ - "Thu, 12 Sep 2019 20:04:55 GMT" + "Tue, 01 Sep 2020 20:25:21 GMT" ], "Pragma": [ "no-cache" ], + "Retry-After": [ + "15" + ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "fe9c9124-2fd0-4da0-a9d0-6ccd28d477ca" + "709d62b3-5400-482e-ba09-1253a3040297" ], "x-ms-ratelimit-remaining-subscription-reads": [ "11985" ], "x-ms-correlation-request-id": [ - "91f7437e-2854-483c-97c9-878d5f8f3b83" + "ccb14377-e080-40ce-8331-4f43118be088" ], "x-ms-routing-request-id": [ - "WESTUS:20190912T200456Z:91f7437e-2854-483c-97c9-878d5f8f3b83" + "WESTUS:20200901T202522Z:ccb14377-e080-40ce-8331-4f43118be088" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"174fdc9f-ced6-4b56-b9bf-db12f0cb9d65\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2020-09-01T20:24:21.547Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/servers/sqlcrudtest-3000/databases/sqlcrudtest-4254?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3ODEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zMDAwL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC00MjU0P2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.45.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 01 Sep 2020 20:25:22 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "6635badf-263a-41a9-8e84-4903bd5b42a7" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11984" + ], + "x-ms-correlation-request-id": [ + "cb5593cb-734e-4eff-8934-3e6aed7e7416" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200901T202522Z:cb5593cb-734e-4eff-8934-3e6aed7e7416" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1188,17 +1248,17 @@ "-1" ] }, - "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Basic\",\r\n \"tier\": \"Basic\",\r\n \"capacity\": 5\r\n },\r\n \"kind\": \"v12.0,user\",\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": 2147483648,\r\n \"status\": \"Online\",\r\n \"databaseId\": \"8922b15d-b757-42b9-a99d-b53246f8aec8\",\r\n \"creationDate\": \"2019-09-12T20:04:50.33Z\",\r\n \"currentServiceObjectiveName\": \"Basic\",\r\n \"requestedServiceObjectiveName\": \"Basic\",\r\n \"defaultSecondaryLocation\": \"canadaeast\",\r\n \"catalogCollation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"zoneRedundant\": false,\r\n \"earliestRestoreDate\": \"2019-09-12T20:34:50.33Z\",\r\n \"readScale\": \"Disabled\",\r\n \"readReplicaCount\": 0,\r\n \"currentSku\": {\r\n \"name\": \"Basic\",\r\n \"tier\": \"Basic\",\r\n \"capacity\": 5\r\n }\r\n },\r\n \"location\": \"canadacentral\",\r\n \"tags\": {\r\n \"tagKey1\": \"TagValue1\"\r\n },\r\n \"id\": \"/subscriptions/20dd0210-f0cf-4aba-8439-7d5972412384/resourceGroups/sqlcrudtest-8679/providers/Microsoft.Sql/servers/sqlcrudtest-1579/databases/sqlcrudtest-7162\",\r\n \"name\": \"sqlcrudtest-7162\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Basic\",\r\n \"tier\": \"Basic\",\r\n \"capacity\": 5\r\n },\r\n \"kind\": \"v12.0,user\",\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": 2147483648,\r\n \"status\": \"Online\",\r\n \"databaseId\": \"560beb01-c9c0-4a5f-997e-ba73f3e94d79\",\r\n \"creationDate\": \"2020-09-01T20:25:12.067Z\",\r\n \"currentServiceObjectiveName\": \"Basic\",\r\n \"requestedServiceObjectiveName\": \"Basic\",\r\n \"defaultSecondaryLocation\": \"eastasia\",\r\n \"catalogCollation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"zoneRedundant\": false,\r\n \"earliestRestoreDate\": \"2020-09-01T20:55:12.067Z\",\r\n \"readScale\": \"Disabled\",\r\n \"readReplicaCount\": 0,\r\n \"currentSku\": {\r\n \"name\": \"Basic\",\r\n \"tier\": \"Basic\",\r\n \"capacity\": 5\r\n }\r\n },\r\n \"location\": \"southeastasia\",\r\n \"tags\": {\r\n \"tagKey1\": \"TagValue1\"\r\n },\r\n \"id\": \"/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/servers/sqlcrudtest-3000/databases/sqlcrudtest-4254\",\r\n \"name\": \"sqlcrudtest-4254\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/20dd0210-f0cf-4aba-8439-7d5972412384/resourceGroups/sqlcrudtest-8679/providers/Microsoft.Sql/servers/sqlcrudtest-1579/databases/sqlcrudtest-3342?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjBkZDAyMTAtZjBjZi00YWJhLTg0MzktN2Q1OTcyNDEyMzg0L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg2NzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0xNTc5L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC0zMzQyP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/servers/sqlcrudtest-3000/databases/sqlcrudtest-7309?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3ODEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zMDAwL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC03MzA5P2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"S0\"\r\n },\r\n \"location\": \"canadacentral\",\r\n \"tags\": {\r\n \"tagKey1\": \"TagValue1\"\r\n }\r\n}", + "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"S0\"\r\n },\r\n \"location\": \"southeastasia\",\r\n \"tags\": {\r\n \"tagKey1\": \"TagValue1\"\r\n }\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "3acb0d3c-35c2-4f77-a28f-4715d9f7924d" + "6e8adf47-8580-4a1a-8863-42959bb7d9e4" ], "accept-language": [ "en-US" @@ -1206,8 +1266,8 @@ "User-Agent": [ "FxVersion/4.6.26614.01", "OSName/Windows", - "OSVersion/Microsoft.Windows.6.3.9600.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.35.0.0" + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.45.0.0" ], "Content-Type": [ "application/json; charset=utf-8" @@ -1221,13 +1281,13 @@ "no-cache" ], "Date": [ - "Thu, 12 Sep 2019 20:04:58 GMT" + "Tue, 01 Sep 2020 20:25:27 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/20dd0210-f0cf-4aba-8439-7d5972412384/resourceGroups/sqlcrudtest-8679/providers/Microsoft.Sql/locations/canadacentral/databaseOperationResults/9ea23f82-ba6f-41fe-9eab-1d6de284f27e?api-version=2017-10-01-preview" + "https://management.azure.com/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/locations/southeastasia/databaseOperationResults/da53b54f-6afb-44a3-9217-971a77e6691e?api-version=2017-10-01-preview" ], "Retry-After": [ "15" @@ -1236,19 +1296,19 @@ "Microsoft-HTTPAPI/2.0" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/20dd0210-f0cf-4aba-8439-7d5972412384/resourceGroups/sqlcrudtest-8679/providers/Microsoft.Sql/locations/canadacentral/databaseAzureAsyncOperation/9ea23f82-ba6f-41fe-9eab-1d6de284f27e?api-version=2017-10-01-preview" + "https://management.azure.com/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/locations/southeastasia/databaseAzureAsyncOperation/da53b54f-6afb-44a3-9217-971a77e6691e?api-version=2017-10-01-preview" ], "x-ms-request-id": [ - "9ea23f82-ba6f-41fe-9eab-1d6de284f27e" + "da53b54f-6afb-44a3-9217-971a77e6691e" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1196" ], "x-ms-correlation-request-id": [ - "4982d1b6-0016-419d-b993-f13c4fe2c039" + "ff6f2677-c7dc-4a1a-91bc-4d26a31437bb" ], "x-ms-routing-request-id": [ - "WESTUS:20190912T200458Z:4982d1b6-0016-419d-b993-f13c4fe2c039" + "WESTUS:20200901T202527Z:ff6f2677-c7dc-4a1a-91bc-4d26a31437bb" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1257,7 +1317,7 @@ "nosniff" ], "Content-Length": [ - "75" + "76" ], "Content-Type": [ "application/json; charset=utf-8" @@ -1266,20 +1326,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2019-09-12T20:04:58.34Z\"\r\n}", + "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2020-09-01T20:25:27.677Z\"\r\n}", "StatusCode": 202 }, { - "RequestUri": "/subscriptions/20dd0210-f0cf-4aba-8439-7d5972412384/resourceGroups/sqlcrudtest-8679/providers/Microsoft.Sql/locations/canadacentral/databaseAzureAsyncOperation/9ea23f82-ba6f-41fe-9eab-1d6de284f27e?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjBkZDAyMTAtZjBjZi00YWJhLTg0MzktN2Q1OTcyNDEyMzg0L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg2NzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2NhbmFkYWNlbnRyYWwvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzllYTIzZjgyLWJhNmYtNDFmZS05ZWFiLTFkNmRlMjg0ZjI3ZT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/locations/southeastasia/databaseAzureAsyncOperation/da53b54f-6afb-44a3-9217-971a77e6691e?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3ODEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3NvdXRoZWFzdGFzaWEvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2RhNTNiNTRmLTZhZmItNDRhMy05MjE3LTk3MWE3N2U2NjkxZT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.26614.01", "OSName/Windows", - "OSVersion/Microsoft.Windows.6.3.9600.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.35.0.0" + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.45.0.0" ] }, "ResponseHeaders": { @@ -1287,7 +1347,7 @@ "no-cache" ], "Date": [ - "Thu, 12 Sep 2019 20:05:12 GMT" + "Tue, 01 Sep 2020 20:25:42 GMT" ], "Pragma": [ "no-cache" @@ -1299,16 +1359,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "c9975872-29a5-4183-8e2c-f3c10574d4ad" + "1bcbe0d5-8770-49b4-b679-03d8d8a56db9" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11984" + "11983" ], "x-ms-correlation-request-id": [ - "0217415d-9d05-4525-bbba-b4c8fe4634cd" + "aef2b3b4-c718-4a5f-8f22-ef19c0d1253d" ], "x-ms-routing-request-id": [ - "WESTUS:20190912T200513Z:0217415d-9d05-4525-bbba-b4c8fe4634cd" + "WESTUS:20200901T202543Z:aef2b3b4-c718-4a5f-8f22-ef19c0d1253d" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1317,7 +1377,7 @@ "nosniff" ], "Content-Length": [ - "107" + "108" ], "Content-Type": [ "application/json; charset=utf-8" @@ -1326,20 +1386,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"9ea23f82-ba6f-41fe-9eab-1d6de284f27e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-09-12T20:04:58.34Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"da53b54f-6afb-44a3-9217-971a77e6691e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-01T20:25:27.677Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/20dd0210-f0cf-4aba-8439-7d5972412384/resourceGroups/sqlcrudtest-8679/providers/Microsoft.Sql/locations/canadacentral/databaseAzureAsyncOperation/9ea23f82-ba6f-41fe-9eab-1d6de284f27e?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjBkZDAyMTAtZjBjZi00YWJhLTg0MzktN2Q1OTcyNDEyMzg0L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg2NzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2NhbmFkYWNlbnRyYWwvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzllYTIzZjgyLWJhNmYtNDFmZS05ZWFiLTFkNmRlMjg0ZjI3ZT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/locations/southeastasia/databaseAzureAsyncOperation/da53b54f-6afb-44a3-9217-971a77e6691e?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3ODEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3NvdXRoZWFzdGFzaWEvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2RhNTNiNTRmLTZhZmItNDRhMy05MjE3LTk3MWE3N2U2NjkxZT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.26614.01", "OSName/Windows", - "OSVersion/Microsoft.Windows.6.3.9600.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.35.0.0" + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.45.0.0" ] }, "ResponseHeaders": { @@ -1347,7 +1407,7 @@ "no-cache" ], "Date": [ - "Thu, 12 Sep 2019 20:05:27 GMT" + "Tue, 01 Sep 2020 20:25:57 GMT" ], "Pragma": [ "no-cache" @@ -1359,16 +1419,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "e0bde6ed-927b-45e3-85a6-5b4fb71bd181" + "32b9509a-07a3-4190-ab62-6dc7af4cb69e" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11983" + "11982" ], "x-ms-correlation-request-id": [ - "97792f3f-40b0-4393-bd14-21853f428e49" + "27dda7a4-cb05-4478-b30b-90167067ba59" ], "x-ms-routing-request-id": [ - "WESTUS:20190912T200528Z:97792f3f-40b0-4393-bd14-21853f428e49" + "WESTUS:20200901T202558Z:27dda7a4-cb05-4478-b30b-90167067ba59" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1377,7 +1437,7 @@ "nosniff" ], "Content-Length": [ - "106" + "108" ], "Content-Type": [ "application/json; charset=utf-8" @@ -1386,20 +1446,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"9ea23f82-ba6f-41fe-9eab-1d6de284f27e\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2019-09-12T20:04:58.34Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"da53b54f-6afb-44a3-9217-971a77e6691e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-01T20:25:27.677Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/20dd0210-f0cf-4aba-8439-7d5972412384/resourceGroups/sqlcrudtest-8679/providers/Microsoft.Sql/servers/sqlcrudtest-1579/databases/sqlcrudtest-3342?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjBkZDAyMTAtZjBjZi00YWJhLTg0MzktN2Q1OTcyNDEyMzg0L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg2NzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0xNTc5L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC0zMzQyP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/locations/southeastasia/databaseAzureAsyncOperation/da53b54f-6afb-44a3-9217-971a77e6691e?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3ODEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3NvdXRoZWFzdGFzaWEvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2RhNTNiNTRmLTZhZmItNDRhMy05MjE3LTk3MWE3N2U2NjkxZT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.26614.01", "OSName/Windows", - "OSVersion/Microsoft.Windows.6.3.9600.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.35.0.0" + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.45.0.0" ] }, "ResponseHeaders": { @@ -1407,25 +1467,85 @@ "no-cache" ], "Date": [ - "Thu, 12 Sep 2019 20:05:28 GMT" + "Tue, 01 Sep 2020 20:26:12 GMT" ], "Pragma": [ "no-cache" ], + "Retry-After": [ + "15" + ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "5c4acf92-04e3-4adc-9056-ebacafa45fa2" + "3408cb0f-048c-4d58-b0a5-70eb83ec9877" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11982" + "11981" + ], + "x-ms-correlation-request-id": [ + "f888d66b-70e0-4002-9b91-12c44c7fcdae" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200901T202613Z:f888d66b-70e0-4002-9b91-12c44c7fcdae" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"da53b54f-6afb-44a3-9217-971a77e6691e\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2020-09-01T20:25:27.677Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/servers/sqlcrudtest-3000/databases/sqlcrudtest-7309?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3ODEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zMDAwL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC03MzA5P2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.45.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 01 Sep 2020 20:26:12 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "49177873-a9c6-4c09-95e5-bc1c040d8309" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11980" ], "x-ms-correlation-request-id": [ - "c04e70b3-b89b-4ec6-aae1-84c32a9c0bb7" + "fab4fc5b-76d5-4e32-aaa6-395c2ba09ec4" ], "x-ms-routing-request-id": [ - "WESTUS:20190912T200529Z:c04e70b3-b89b-4ec6-aae1-84c32a9c0bb7" + "WESTUS:20200901T202613Z:fab4fc5b-76d5-4e32-aaa6-395c2ba09ec4" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1434,7 +1554,7 @@ "nosniff" ], "Content-Length": [ - "911" + "909" ], "Content-Type": [ "application/json; charset=utf-8" @@ -1443,17 +1563,17 @@ "-1" ] }, - "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 10\r\n },\r\n \"kind\": \"v12.0,user\",\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": 268435456000,\r\n \"status\": \"Online\",\r\n \"databaseId\": \"40639a4b-eb7a-47ed-be36-57d2fb3e42ed\",\r\n \"creationDate\": \"2019-09-12T20:05:28.137Z\",\r\n \"currentServiceObjectiveName\": \"S0\",\r\n \"requestedServiceObjectiveName\": \"S0\",\r\n \"defaultSecondaryLocation\": \"canadaeast\",\r\n \"catalogCollation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"zoneRedundant\": false,\r\n \"earliestRestoreDate\": \"2019-09-12T20:35:28.137Z\",\r\n \"readScale\": \"Disabled\",\r\n \"readReplicaCount\": 0,\r\n \"currentSku\": {\r\n \"name\": \"Standard\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 10\r\n }\r\n },\r\n \"location\": \"canadacentral\",\r\n \"tags\": {\r\n \"tagKey1\": \"TagValue1\"\r\n },\r\n \"id\": \"/subscriptions/20dd0210-f0cf-4aba-8439-7d5972412384/resourceGroups/sqlcrudtest-8679/providers/Microsoft.Sql/servers/sqlcrudtest-1579/databases/sqlcrudtest-3342\",\r\n \"name\": \"sqlcrudtest-3342\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 10\r\n },\r\n \"kind\": \"v12.0,user\",\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": 268435456000,\r\n \"status\": \"Online\",\r\n \"databaseId\": \"863f7572-3d11-4845-9e05-8379aaa5f56a\",\r\n \"creationDate\": \"2020-09-01T20:26:08.273Z\",\r\n \"currentServiceObjectiveName\": \"S0\",\r\n \"requestedServiceObjectiveName\": \"S0\",\r\n \"defaultSecondaryLocation\": \"eastasia\",\r\n \"catalogCollation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"zoneRedundant\": false,\r\n \"earliestRestoreDate\": \"2020-09-01T20:56:08.273Z\",\r\n \"readScale\": \"Disabled\",\r\n \"readReplicaCount\": 0,\r\n \"currentSku\": {\r\n \"name\": \"Standard\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 10\r\n }\r\n },\r\n \"location\": \"southeastasia\",\r\n \"tags\": {\r\n \"tagKey1\": \"TagValue1\"\r\n },\r\n \"id\": \"/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/servers/sqlcrudtest-3000/databases/sqlcrudtest-7309\",\r\n \"name\": \"sqlcrudtest-7309\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/20dd0210-f0cf-4aba-8439-7d5972412384/resourceGroups/sqlcrudtest-8679/providers/Microsoft.Sql/servers/sqlcrudtest-1579/databases/sqlcrudtest-788?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjBkZDAyMTAtZjBjZi00YWJhLTg0MzktN2Q1OTcyNDEyMzg0L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg2NzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0xNTc5L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC03ODg/YXBpLXZlcnNpb249MjAxNy0xMC0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/servers/sqlcrudtest-3000/databases/sqlcrudtest-8833?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3ODEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zMDAwL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC04ODMzP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"GP_S_Gen5_2\"\r\n },\r\n \"properties\": {\r\n \"autoPauseDelay\": 360,\r\n \"minCapacity\": 0.5\r\n },\r\n \"location\": \"canadacentral\",\r\n \"tags\": {\r\n \"tagKey1\": \"TagValue1\"\r\n }\r\n}", + "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"GP_S_Gen5_2\"\r\n },\r\n \"properties\": {\r\n \"autoPauseDelay\": 360,\r\n \"minCapacity\": 0.5\r\n },\r\n \"location\": \"southeastasia\",\r\n \"tags\": {\r\n \"tagKey1\": \"TagValue1\"\r\n }\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "e6922d25-8d82-46a7-b79e-83768ecb893a" + "242dc36e-39d5-43ec-812f-50a102ea8bb6" ], "accept-language": [ "en-US" @@ -1461,8 +1581,8 @@ "User-Agent": [ "FxVersion/4.6.26614.01", "OSName/Windows", - "OSVersion/Microsoft.Windows.6.3.9600.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.35.0.0" + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.45.0.0" ], "Content-Type": [ "application/json; charset=utf-8" @@ -1476,13 +1596,13 @@ "no-cache" ], "Date": [ - "Thu, 12 Sep 2019 20:05:28 GMT" + "Tue, 01 Sep 2020 20:26:16 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/20dd0210-f0cf-4aba-8439-7d5972412384/resourceGroups/sqlcrudtest-8679/providers/Microsoft.Sql/locations/canadacentral/databaseOperationResults/83b5ee83-996d-403a-9985-00071f002af5?api-version=2017-10-01-preview" + "https://management.azure.com/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/locations/southeastasia/databaseOperationResults/91a6ccdd-a34f-4e58-b2c3-84a239fd32fe?api-version=2017-10-01-preview" ], "Retry-After": [ "15" @@ -1491,19 +1611,19 @@ "Microsoft-HTTPAPI/2.0" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/20dd0210-f0cf-4aba-8439-7d5972412384/resourceGroups/sqlcrudtest-8679/providers/Microsoft.Sql/locations/canadacentral/databaseAzureAsyncOperation/83b5ee83-996d-403a-9985-00071f002af5?api-version=2017-10-01-preview" + "https://management.azure.com/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/locations/southeastasia/databaseAzureAsyncOperation/91a6ccdd-a34f-4e58-b2c3-84a239fd32fe?api-version=2017-10-01-preview" ], "x-ms-request-id": [ - "83b5ee83-996d-403a-9985-00071f002af5" + "91a6ccdd-a34f-4e58-b2c3-84a239fd32fe" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1195" ], "x-ms-correlation-request-id": [ - "76f90a1b-4098-42b1-b69b-7b470136f8c6" + "609224cb-efd7-429e-bced-d43763dccd3b" ], "x-ms-routing-request-id": [ - "WESTUS:20190912T200529Z:76f90a1b-4098-42b1-b69b-7b470136f8c6" + "WESTUS:20200901T202617Z:609224cb-efd7-429e-bced-d43763dccd3b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1512,7 +1632,7 @@ "nosniff" ], "Content-Length": [ - "75" + "76" ], "Content-Type": [ "application/json; charset=utf-8" @@ -1521,20 +1641,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2019-09-12T20:05:29.59Z\"\r\n}", + "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2020-09-01T20:26:17.523Z\"\r\n}", "StatusCode": 202 }, { - "RequestUri": "/subscriptions/20dd0210-f0cf-4aba-8439-7d5972412384/resourceGroups/sqlcrudtest-8679/providers/Microsoft.Sql/locations/canadacentral/databaseAzureAsyncOperation/83b5ee83-996d-403a-9985-00071f002af5?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjBkZDAyMTAtZjBjZi00YWJhLTg0MzktN2Q1OTcyNDEyMzg0L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg2NzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2NhbmFkYWNlbnRyYWwvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzgzYjVlZTgzLTk5NmQtNDAzYS05OTg1LTAwMDcxZjAwMmFmNT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/locations/southeastasia/databaseAzureAsyncOperation/91a6ccdd-a34f-4e58-b2c3-84a239fd32fe?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3ODEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3NvdXRoZWFzdGFzaWEvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzkxYTZjY2RkLWEzNGYtNGU1OC1iMmMzLTg0YTIzOWZkMzJmZT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.26614.01", "OSName/Windows", - "OSVersion/Microsoft.Windows.6.3.9600.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.35.0.0" + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.45.0.0" ] }, "ResponseHeaders": { @@ -1542,7 +1662,7 @@ "no-cache" ], "Date": [ - "Thu, 12 Sep 2019 20:05:44 GMT" + "Tue, 01 Sep 2020 20:26:32 GMT" ], "Pragma": [ "no-cache" @@ -1554,16 +1674,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "d9dd5b61-4370-4fc0-9828-b1d02a438d24" + "74a605cc-71e1-4d19-9cea-0ce8ad2ac92a" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11981" + "11979" ], "x-ms-correlation-request-id": [ - "a158b839-34ed-4ecf-983a-edb01956b983" + "1faa771d-30e6-4df3-8c2b-a84fd391e1a8" ], "x-ms-routing-request-id": [ - "WESTUS:20190912T200544Z:a158b839-34ed-4ecf-983a-edb01956b983" + "WESTUS:20200901T202632Z:1faa771d-30e6-4df3-8c2b-a84fd391e1a8" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1572,7 +1692,7 @@ "nosniff" ], "Content-Length": [ - "107" + "108" ], "Content-Type": [ "application/json; charset=utf-8" @@ -1581,20 +1701,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"83b5ee83-996d-403a-9985-00071f002af5\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-09-12T20:05:29.59Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"91a6ccdd-a34f-4e58-b2c3-84a239fd32fe\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-01T20:26:17.523Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/20dd0210-f0cf-4aba-8439-7d5972412384/resourceGroups/sqlcrudtest-8679/providers/Microsoft.Sql/locations/canadacentral/databaseAzureAsyncOperation/83b5ee83-996d-403a-9985-00071f002af5?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjBkZDAyMTAtZjBjZi00YWJhLTg0MzktN2Q1OTcyNDEyMzg0L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg2NzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2NhbmFkYWNlbnRyYWwvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzgzYjVlZTgzLTk5NmQtNDAzYS05OTg1LTAwMDcxZjAwMmFmNT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/locations/southeastasia/databaseAzureAsyncOperation/91a6ccdd-a34f-4e58-b2c3-84a239fd32fe?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3ODEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3NvdXRoZWFzdGFzaWEvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzkxYTZjY2RkLWEzNGYtNGU1OC1iMmMzLTg0YTIzOWZkMzJmZT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.26614.01", "OSName/Windows", - "OSVersion/Microsoft.Windows.6.3.9600.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.35.0.0" + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.45.0.0" ] }, "ResponseHeaders": { @@ -1602,7 +1722,7 @@ "no-cache" ], "Date": [ - "Thu, 12 Sep 2019 20:05:59 GMT" + "Tue, 01 Sep 2020 20:26:48 GMT" ], "Pragma": [ "no-cache" @@ -1614,16 +1734,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "a4bf0fc8-42fd-40a2-9fdd-0bb1bd57a2c6" + "e46af2d9-55c5-45be-89ac-f49b2aba8e91" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11980" + "11978" ], "x-ms-correlation-request-id": [ - "7f14b9ac-5eef-4297-894b-6b770539e675" + "e357ea36-5fb5-48c1-bbf4-5e2c80deac5e" ], "x-ms-routing-request-id": [ - "WESTUS:20190912T200600Z:7f14b9ac-5eef-4297-894b-6b770539e675" + "WESTUS:20200901T202648Z:e357ea36-5fb5-48c1-bbf4-5e2c80deac5e" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1632,7 +1752,7 @@ "nosniff" ], "Content-Length": [ - "107" + "108" ], "Content-Type": [ "application/json; charset=utf-8" @@ -1641,20 +1761,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"83b5ee83-996d-403a-9985-00071f002af5\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-09-12T20:05:29.59Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"91a6ccdd-a34f-4e58-b2c3-84a239fd32fe\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-01T20:26:17.523Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/20dd0210-f0cf-4aba-8439-7d5972412384/resourceGroups/sqlcrudtest-8679/providers/Microsoft.Sql/locations/canadacentral/databaseAzureAsyncOperation/83b5ee83-996d-403a-9985-00071f002af5?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjBkZDAyMTAtZjBjZi00YWJhLTg0MzktN2Q1OTcyNDEyMzg0L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg2NzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2NhbmFkYWNlbnRyYWwvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzgzYjVlZTgzLTk5NmQtNDAzYS05OTg1LTAwMDcxZjAwMmFmNT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/locations/southeastasia/databaseAzureAsyncOperation/91a6ccdd-a34f-4e58-b2c3-84a239fd32fe?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3ODEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3NvdXRoZWFzdGFzaWEvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzkxYTZjY2RkLWEzNGYtNGU1OC1iMmMzLTg0YTIzOWZkMzJmZT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.26614.01", "OSName/Windows", - "OSVersion/Microsoft.Windows.6.3.9600.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.35.0.0" + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.45.0.0" ] }, "ResponseHeaders": { @@ -1662,7 +1782,7 @@ "no-cache" ], "Date": [ - "Thu, 12 Sep 2019 20:06:14 GMT" + "Tue, 01 Sep 2020 20:27:03 GMT" ], "Pragma": [ "no-cache" @@ -1674,16 +1794,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "96e72649-211a-4f50-bf9a-0ebe163a606a" + "908a08f5-ccc3-4dd9-a264-7080091fde19" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11979" + "11977" ], "x-ms-correlation-request-id": [ - "105d9bf9-9167-4b48-a0cb-a5e71343c262" + "8c7ee285-58e5-4513-b5cd-794bd049c03c" ], "x-ms-routing-request-id": [ - "WESTUS:20190912T200615Z:105d9bf9-9167-4b48-a0cb-a5e71343c262" + "WESTUS:20200901T202703Z:8c7ee285-58e5-4513-b5cd-794bd049c03c" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1692,7 +1812,7 @@ "nosniff" ], "Content-Length": [ - "106" + "107" ], "Content-Type": [ "application/json; charset=utf-8" @@ -1701,20 +1821,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"83b5ee83-996d-403a-9985-00071f002af5\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2019-09-12T20:05:29.59Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"91a6ccdd-a34f-4e58-b2c3-84a239fd32fe\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2020-09-01T20:26:17.523Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/20dd0210-f0cf-4aba-8439-7d5972412384/resourceGroups/sqlcrudtest-8679/providers/Microsoft.Sql/servers/sqlcrudtest-1579/databases/sqlcrudtest-788?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjBkZDAyMTAtZjBjZi00YWJhLTg0MzktN2Q1OTcyNDEyMzg0L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg2NzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0xNTc5L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC03ODg/YXBpLXZlcnNpb249MjAxNy0xMC0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/servers/sqlcrudtest-3000/databases/sqlcrudtest-8833?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3ODEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zMDAwL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC04ODMzP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.26614.01", "OSName/Windows", - "OSVersion/Microsoft.Windows.6.3.9600.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.35.0.0" + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.45.0.0" ] }, "ResponseHeaders": { @@ -1722,7 +1842,7 @@ "no-cache" ], "Date": [ - "Thu, 12 Sep 2019 20:06:15 GMT" + "Tue, 01 Sep 2020 20:27:03 GMT" ], "Pragma": [ "no-cache" @@ -1731,16 +1851,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "2fcd9a71-a382-4f66-aec6-a4dd0eb6ae13" + "0ae77b43-bf73-4a5f-894a-08f3cdd5d558" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11978" + "11976" ], "x-ms-correlation-request-id": [ - "4971da65-4cac-425a-a339-97db15ebd177" + "33f2b4e5-a059-4efc-b622-9604eef04d6a" ], "x-ms-routing-request-id": [ - "WESTUS:20190912T200615Z:4971da65-4cac-425a-a339-97db15ebd177" + "WESTUS:20200901T202703Z:33f2b4e5-a059-4efc-b622-9604eef04d6a" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1749,7 +1869,7 @@ "nosniff" ], "Content-Length": [ - "1091" + "1059" ], "Content-Type": [ "application/json; charset=utf-8" @@ -1758,17 +1878,17 @@ "-1" ] }, - "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"GP_S_Gen5\",\r\n \"tier\": \"GeneralPurpose\",\r\n \"family\": \"Gen5\",\r\n \"capacity\": 2\r\n },\r\n \"kind\": \"v12.0,user,vcore,serverless\",\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": 34359738368,\r\n \"status\": \"Online\",\r\n \"databaseId\": \"2b2ebe76-a75b-4780-b1d5-2fdb13e067f2\",\r\n \"creationDate\": \"2019-09-12T20:06:07.153Z\",\r\n \"currentServiceObjectiveName\": \"GP_S_Gen5_2\",\r\n \"requestedServiceObjectiveName\": \"GP_S_Gen5_2\",\r\n \"defaultSecondaryLocation\": \"canadaeast\",\r\n \"catalogCollation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"zoneRedundant\": false,\r\n \"licenseType\": \"LicenseIncluded\",\r\n \"maxLogSizeBytes\": 10307502080,\r\n \"earliestRestoreDate\": \"2019-09-12T20:36:07.153Z\",\r\n \"readScale\": \"Disabled\",\r\n \"readReplicaCount\": 0,\r\n \"currentSku\": {\r\n \"name\": \"GP_S_Gen5\",\r\n \"tier\": \"GeneralPurpose\",\r\n \"family\": \"Gen5\",\r\n \"capacity\": 2\r\n },\r\n \"autoPauseDelay\": 360,\r\n \"minCapacity\": 0.5\r\n },\r\n \"location\": \"canadacentral\",\r\n \"tags\": {\r\n \"tagKey1\": \"TagValue1\"\r\n },\r\n \"id\": \"/subscriptions/20dd0210-f0cf-4aba-8439-7d5972412384/resourceGroups/sqlcrudtest-8679/providers/Microsoft.Sql/servers/sqlcrudtest-1579/databases/sqlcrudtest-788\",\r\n \"name\": \"sqlcrudtest-788\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"GP_S_Gen5\",\r\n \"tier\": \"GeneralPurpose\",\r\n \"family\": \"Gen5\",\r\n \"capacity\": 2\r\n },\r\n \"kind\": \"v12.0,user,vcore,serverless\",\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": 34359738368,\r\n \"status\": \"Online\",\r\n \"databaseId\": \"0cc24350-b906-41bd-b2ea-9c32cb18e659\",\r\n \"creationDate\": \"2020-09-01T20:26:55.963Z\",\r\n \"currentServiceObjectiveName\": \"GP_S_Gen5_2\",\r\n \"requestedServiceObjectiveName\": \"GP_S_Gen5_2\",\r\n \"defaultSecondaryLocation\": \"eastasia\",\r\n \"catalogCollation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"zoneRedundant\": false,\r\n \"maxLogSizeBytes\": 10307502080,\r\n \"earliestRestoreDate\": \"2020-09-01T20:56:55.963Z\",\r\n \"readScale\": \"Disabled\",\r\n \"readReplicaCount\": 0,\r\n \"currentSku\": {\r\n \"name\": \"GP_S_Gen5\",\r\n \"tier\": \"GeneralPurpose\",\r\n \"family\": \"Gen5\",\r\n \"capacity\": 2\r\n },\r\n \"autoPauseDelay\": 360,\r\n \"minCapacity\": 0.5\r\n },\r\n \"location\": \"southeastasia\",\r\n \"tags\": {\r\n \"tagKey1\": \"TagValue1\"\r\n },\r\n \"id\": \"/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/servers/sqlcrudtest-3000/databases/sqlcrudtest-8833\",\r\n \"name\": \"sqlcrudtest-8833\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/20dd0210-f0cf-4aba-8439-7d5972412384/resourceGroups/sqlcrudtest-8679/providers/Microsoft.Sql/servers/sqlcrudtest-1579/databases/sqlcrudtest-4229?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjBkZDAyMTAtZjBjZi00YWJhLTg0MzktN2Q1OTcyNDEyMzg0L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg2NzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0xNTc5L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC00MjI5P2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/servers/sqlcrudtest-3000/databases/sqlcrudtest-6589?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3ODEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zMDAwL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC02NTg5P2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"P1\"\r\n },\r\n \"properties\": {\r\n \"readScale\": \"Enabled\"\r\n },\r\n \"location\": \"canadacentral\"\r\n}", + "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"P1\"\r\n },\r\n \"properties\": {\r\n \"readScale\": \"Enabled\"\r\n },\r\n \"location\": \"southeastasia\"\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "d53822dd-3823-47b7-9d1c-2ed5f5f25978" + "f1f5caed-a510-4f66-82ed-529cbf3893bb" ], "accept-language": [ "en-US" @@ -1776,8 +1896,8 @@ "User-Agent": [ "FxVersion/4.6.26614.01", "OSName/Windows", - "OSVersion/Microsoft.Windows.6.3.9600.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.35.0.0" + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.45.0.0" ], "Content-Type": [ "application/json; charset=utf-8" @@ -1791,13 +1911,13 @@ "no-cache" ], "Date": [ - "Thu, 12 Sep 2019 20:06:15 GMT" + "Tue, 01 Sep 2020 20:27:06 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/20dd0210-f0cf-4aba-8439-7d5972412384/resourceGroups/sqlcrudtest-8679/providers/Microsoft.Sql/locations/canadacentral/databaseOperationResults/0929878a-9073-4a8b-a90f-14ca5564b0df?api-version=2017-10-01-preview" + "https://management.azure.com/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/locations/southeastasia/databaseOperationResults/aff7fd74-8275-4417-9e98-32c0173efbf4?api-version=2017-10-01-preview" ], "Retry-After": [ "15" @@ -1806,19 +1926,19 @@ "Microsoft-HTTPAPI/2.0" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/20dd0210-f0cf-4aba-8439-7d5972412384/resourceGroups/sqlcrudtest-8679/providers/Microsoft.Sql/locations/canadacentral/databaseAzureAsyncOperation/0929878a-9073-4a8b-a90f-14ca5564b0df?api-version=2017-10-01-preview" + "https://management.azure.com/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/locations/southeastasia/databaseAzureAsyncOperation/aff7fd74-8275-4417-9e98-32c0173efbf4?api-version=2017-10-01-preview" ], "x-ms-request-id": [ - "0929878a-9073-4a8b-a90f-14ca5564b0df" + "aff7fd74-8275-4417-9e98-32c0173efbf4" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1194" ], "x-ms-correlation-request-id": [ - "6d297b75-232f-4ac9-a3ef-4d122c46464e" + "7b700e8c-84e6-4904-8c88-4b6b60986217" ], "x-ms-routing-request-id": [ - "WESTUS:20190912T200616Z:6d297b75-232f-4ac9-a3ef-4d122c46464e" + "WESTUS:20200901T202706Z:7b700e8c-84e6-4904-8c88-4b6b60986217" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1836,20 +1956,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2019-09-12T20:06:16.157Z\"\r\n}", + "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2020-09-01T20:27:06.383Z\"\r\n}", "StatusCode": 202 }, { - "RequestUri": "/subscriptions/20dd0210-f0cf-4aba-8439-7d5972412384/resourceGroups/sqlcrudtest-8679/providers/Microsoft.Sql/locations/canadacentral/databaseAzureAsyncOperation/0929878a-9073-4a8b-a90f-14ca5564b0df?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjBkZDAyMTAtZjBjZi00YWJhLTg0MzktN2Q1OTcyNDEyMzg0L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg2NzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2NhbmFkYWNlbnRyYWwvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzA5Mjk4NzhhLTkwNzMtNGE4Yi1hOTBmLTE0Y2E1NTY0YjBkZj9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/locations/southeastasia/databaseAzureAsyncOperation/aff7fd74-8275-4417-9e98-32c0173efbf4?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3ODEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3NvdXRoZWFzdGFzaWEvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2FmZjdmZDc0LTgyNzUtNDQxNy05ZTk4LTMyYzAxNzNlZmJmND9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.26614.01", "OSName/Windows", - "OSVersion/Microsoft.Windows.6.3.9600.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.35.0.0" + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.45.0.0" ] }, "ResponseHeaders": { @@ -1857,7 +1977,7 @@ "no-cache" ], "Date": [ - "Thu, 12 Sep 2019 20:06:30 GMT" + "Tue, 01 Sep 2020 20:27:21 GMT" ], "Pragma": [ "no-cache" @@ -1869,16 +1989,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "442ee2e8-f7d9-4a15-b2a5-6027d309ce36" + "17aab23c-a487-4cd3-a7b1-00451acb7937" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11977" + "11975" ], "x-ms-correlation-request-id": [ - "153f8118-e950-474f-ad7a-0ab22c22e316" + "87977b63-f16e-47c9-a50d-939f78c414cb" ], "x-ms-routing-request-id": [ - "WESTUS:20190912T200631Z:153f8118-e950-474f-ad7a-0ab22c22e316" + "WESTUS:20200901T202721Z:87977b63-f16e-47c9-a50d-939f78c414cb" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1896,20 +2016,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"0929878a-9073-4a8b-a90f-14ca5564b0df\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-09-12T20:06:16.157Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"aff7fd74-8275-4417-9e98-32c0173efbf4\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-01T20:27:06.383Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/20dd0210-f0cf-4aba-8439-7d5972412384/resourceGroups/sqlcrudtest-8679/providers/Microsoft.Sql/locations/canadacentral/databaseAzureAsyncOperation/0929878a-9073-4a8b-a90f-14ca5564b0df?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjBkZDAyMTAtZjBjZi00YWJhLTg0MzktN2Q1OTcyNDEyMzg0L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg2NzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2NhbmFkYWNlbnRyYWwvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzA5Mjk4NzhhLTkwNzMtNGE4Yi1hOTBmLTE0Y2E1NTY0YjBkZj9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/locations/southeastasia/databaseAzureAsyncOperation/aff7fd74-8275-4417-9e98-32c0173efbf4?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3ODEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3NvdXRoZWFzdGFzaWEvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2FmZjdmZDc0LTgyNzUtNDQxNy05ZTk4LTMyYzAxNzNlZmJmND9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.26614.01", "OSName/Windows", - "OSVersion/Microsoft.Windows.6.3.9600.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.35.0.0" + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.45.0.0" ] }, "ResponseHeaders": { @@ -1917,7 +2037,7 @@ "no-cache" ], "Date": [ - "Thu, 12 Sep 2019 20:06:45 GMT" + "Tue, 01 Sep 2020 20:27:36 GMT" ], "Pragma": [ "no-cache" @@ -1929,16 +2049,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "b9c705c9-0117-4986-bb8b-13be1bb67790" + "3ad901eb-bf59-4787-b002-b674bca76194" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11976" + "11974" ], "x-ms-correlation-request-id": [ - "9c2610fa-b18b-4338-9f07-055d83106cf9" + "cd126b72-bd78-4fc5-93ce-43c1c7645f9a" ], "x-ms-routing-request-id": [ - "WESTUS:20190912T200646Z:9c2610fa-b18b-4338-9f07-055d83106cf9" + "WESTUS:20200901T202736Z:cd126b72-bd78-4fc5-93ce-43c1c7645f9a" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1956,20 +2076,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"0929878a-9073-4a8b-a90f-14ca5564b0df\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-09-12T20:06:16.157Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"aff7fd74-8275-4417-9e98-32c0173efbf4\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-01T20:27:06.383Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/20dd0210-f0cf-4aba-8439-7d5972412384/resourceGroups/sqlcrudtest-8679/providers/Microsoft.Sql/locations/canadacentral/databaseAzureAsyncOperation/0929878a-9073-4a8b-a90f-14ca5564b0df?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjBkZDAyMTAtZjBjZi00YWJhLTg0MzktN2Q1OTcyNDEyMzg0L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg2NzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2NhbmFkYWNlbnRyYWwvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzA5Mjk4NzhhLTkwNzMtNGE4Yi1hOTBmLTE0Y2E1NTY0YjBkZj9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/locations/southeastasia/databaseAzureAsyncOperation/aff7fd74-8275-4417-9e98-32c0173efbf4?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3ODEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3NvdXRoZWFzdGFzaWEvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2FmZjdmZDc0LTgyNzUtNDQxNy05ZTk4LTMyYzAxNzNlZmJmND9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.26614.01", "OSName/Windows", - "OSVersion/Microsoft.Windows.6.3.9600.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.35.0.0" + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.45.0.0" ] }, "ResponseHeaders": { @@ -1977,7 +2097,7 @@ "no-cache" ], "Date": [ - "Thu, 12 Sep 2019 20:07:01 GMT" + "Tue, 01 Sep 2020 20:27:51 GMT" ], "Pragma": [ "no-cache" @@ -1989,16 +2109,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "bc485fff-df51-43c2-b757-7fce62f8aa4c" + "6b717ebf-63ef-4d41-a45c-e5930c331ad7" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11975" + "11973" ], "x-ms-correlation-request-id": [ - "7703d080-801a-4d30-80ce-9d5d327d6118" + "d9e27a93-ab59-4741-8520-e0c02b1d173f" ], "x-ms-routing-request-id": [ - "WESTUS:20190912T200701Z:7703d080-801a-4d30-80ce-9d5d327d6118" + "WESTUS:20200901T202752Z:d9e27a93-ab59-4741-8520-e0c02b1d173f" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -2016,20 +2136,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"0929878a-9073-4a8b-a90f-14ca5564b0df\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-09-12T20:06:16.157Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"aff7fd74-8275-4417-9e98-32c0173efbf4\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-01T20:27:06.383Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/20dd0210-f0cf-4aba-8439-7d5972412384/resourceGroups/sqlcrudtest-8679/providers/Microsoft.Sql/locations/canadacentral/databaseAzureAsyncOperation/0929878a-9073-4a8b-a90f-14ca5564b0df?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjBkZDAyMTAtZjBjZi00YWJhLTg0MzktN2Q1OTcyNDEyMzg0L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg2NzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2NhbmFkYWNlbnRyYWwvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzA5Mjk4NzhhLTkwNzMtNGE4Yi1hOTBmLTE0Y2E1NTY0YjBkZj9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/locations/southeastasia/databaseAzureAsyncOperation/aff7fd74-8275-4417-9e98-32c0173efbf4?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3ODEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3NvdXRoZWFzdGFzaWEvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2FmZjdmZDc0LTgyNzUtNDQxNy05ZTk4LTMyYzAxNzNlZmJmND9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.26614.01", "OSName/Windows", - "OSVersion/Microsoft.Windows.6.3.9600.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.35.0.0" + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.45.0.0" ] }, "ResponseHeaders": { @@ -2037,7 +2157,7 @@ "no-cache" ], "Date": [ - "Thu, 12 Sep 2019 20:07:16 GMT" + "Tue, 01 Sep 2020 20:28:06 GMT" ], "Pragma": [ "no-cache" @@ -2049,16 +2169,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "1a2d8e3d-4ead-46fe-ba28-624daa979c34" + "c4ff6815-2e4b-4c73-be4c-3766a94e6ada" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11974" + "11972" ], "x-ms-correlation-request-id": [ - "a3bf879d-8570-4a10-b8bd-28e7c9663bb5" + "14d1e159-17b4-4e7f-b087-14c6e387b936" ], "x-ms-routing-request-id": [ - "WESTUS:20190912T200717Z:a3bf879d-8570-4a10-b8bd-28e7c9663bb5" + "WESTUS:20200901T202807Z:14d1e159-17b4-4e7f-b087-14c6e387b936" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -2076,20 +2196,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"0929878a-9073-4a8b-a90f-14ca5564b0df\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2019-09-12T20:06:16.157Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"aff7fd74-8275-4417-9e98-32c0173efbf4\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2020-09-01T20:27:06.383Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/20dd0210-f0cf-4aba-8439-7d5972412384/resourceGroups/sqlcrudtest-8679/providers/Microsoft.Sql/servers/sqlcrudtest-1579/databases/sqlcrudtest-4229?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjBkZDAyMTAtZjBjZi00YWJhLTg0MzktN2Q1OTcyNDEyMzg0L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg2NzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0xNTc5L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC00MjI5P2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/servers/sqlcrudtest-3000/databases/sqlcrudtest-6589?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3ODEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zMDAwL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC02NTg5P2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.26614.01", "OSName/Windows", - "OSVersion/Microsoft.Windows.6.3.9600.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.35.0.0" + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.45.0.0" ] }, "ResponseHeaders": { @@ -2097,7 +2217,7 @@ "no-cache" ], "Date": [ - "Thu, 12 Sep 2019 20:07:17 GMT" + "Tue, 01 Sep 2020 20:28:07 GMT" ], "Pragma": [ "no-cache" @@ -2106,16 +2226,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "dbbaea90-50ea-4dbd-8672-0a166d724630" + "e6d20580-78d2-4425-a034-d0e4fdc540a9" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11973" + "11971" ], "x-ms-correlation-request-id": [ - "10b5443b-e45a-4004-a496-1b29e006103b" + "c2b7a748-45c1-43ff-b325-b91d41071b02" ], "x-ms-routing-request-id": [ - "WESTUS:20190912T200717Z:10b5443b-e45a-4004-a496-1b29e006103b" + "WESTUS:20200901T202807Z:c2b7a748-45c1-43ff-b325-b91d41071b02" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -2124,7 +2244,7 @@ "nosniff" ], "Content-Length": [ - "877" + "875" ], "Content-Type": [ "application/json; charset=utf-8" @@ -2133,17 +2253,17 @@ "-1" ] }, - "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Premium\",\r\n \"tier\": \"Premium\",\r\n \"capacity\": 125\r\n },\r\n \"kind\": \"v12.0,user\",\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": 536870912000,\r\n \"status\": \"Online\",\r\n \"databaseId\": \"46eecb7e-96ea-44a4-8437-6c8750fde998\",\r\n \"creationDate\": \"2019-09-12T20:07:07.423Z\",\r\n \"currentServiceObjectiveName\": \"P1\",\r\n \"requestedServiceObjectiveName\": \"P1\",\r\n \"defaultSecondaryLocation\": \"canadaeast\",\r\n \"catalogCollation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"zoneRedundant\": false,\r\n \"earliestRestoreDate\": \"2019-09-12T20:37:07.423Z\",\r\n \"readScale\": \"Enabled\",\r\n \"readReplicaCount\": 1,\r\n \"currentSku\": {\r\n \"name\": \"Premium\",\r\n \"tier\": \"Premium\",\r\n \"capacity\": 125\r\n }\r\n },\r\n \"location\": \"canadacentral\",\r\n \"id\": \"/subscriptions/20dd0210-f0cf-4aba-8439-7d5972412384/resourceGroups/sqlcrudtest-8679/providers/Microsoft.Sql/servers/sqlcrudtest-1579/databases/sqlcrudtest-4229\",\r\n \"name\": \"sqlcrudtest-4229\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Premium\",\r\n \"tier\": \"Premium\",\r\n \"capacity\": 125\r\n },\r\n \"kind\": \"v12.0,user\",\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": 536870912000,\r\n \"status\": \"Online\",\r\n \"databaseId\": \"44bfd167-f867-4124-8d35-ba533ad37e75\",\r\n \"creationDate\": \"2020-09-01T20:28:04.123Z\",\r\n \"currentServiceObjectiveName\": \"P1\",\r\n \"requestedServiceObjectiveName\": \"P1\",\r\n \"defaultSecondaryLocation\": \"eastasia\",\r\n \"catalogCollation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"zoneRedundant\": false,\r\n \"earliestRestoreDate\": \"2020-09-01T20:58:04.123Z\",\r\n \"readScale\": \"Enabled\",\r\n \"readReplicaCount\": 1,\r\n \"currentSku\": {\r\n \"name\": \"Premium\",\r\n \"tier\": \"Premium\",\r\n \"capacity\": 125\r\n }\r\n },\r\n \"location\": \"southeastasia\",\r\n \"id\": \"/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/servers/sqlcrudtest-3000/databases/sqlcrudtest-6589\",\r\n \"name\": \"sqlcrudtest-6589\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/20dd0210-f0cf-4aba-8439-7d5972412384/resourceGroups/sqlcrudtest-8679/providers/Microsoft.Sql/servers/sqlcrudtest-1579/databases/sqlcrudtest-6958?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjBkZDAyMTAtZjBjZi00YWJhLTg0MzktN2Q1OTcyNDEyMzg0L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg2NzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0xNTc5L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC02OTU4P2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/servers/sqlcrudtest-3000/databases/sqlcrudtest-1042?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3ODEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zMDAwL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC0xMDQyP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"HS_Gen5_4\",\r\n \"tier\": \"Hyperscale\"\r\n },\r\n \"properties\": {\r\n \"readReplicaCount\": 4\r\n },\r\n \"location\": \"canadacentral\"\r\n}", + "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"HS_Gen5_4\",\r\n \"tier\": \"Hyperscale\"\r\n },\r\n \"properties\": {\r\n \"readReplicaCount\": 4\r\n },\r\n \"location\": \"southeastasia\"\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "d8037348-6558-43aa-bb41-06fb46a98fcf" + "84d57482-b7a8-4e3a-8925-dbf39c823f21" ], "accept-language": [ "en-US" @@ -2151,8 +2271,8 @@ "User-Agent": [ "FxVersion/4.6.26614.01", "OSName/Windows", - "OSVersion/Microsoft.Windows.6.3.9600.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.35.0.0" + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.45.0.0" ], "Content-Type": [ "application/json; charset=utf-8" @@ -2166,13 +2286,13 @@ "no-cache" ], "Date": [ - "Thu, 12 Sep 2019 20:07:18 GMT" + "Tue, 01 Sep 2020 20:28:11 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/20dd0210-f0cf-4aba-8439-7d5972412384/resourceGroups/sqlcrudtest-8679/providers/Microsoft.Sql/locations/canadacentral/databaseOperationResults/67255308-65d7-4a36-bd9c-6f23c7e20f9e?api-version=2017-10-01-preview" + "https://management.azure.com/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/locations/southeastasia/databaseOperationResults/0aefb61e-9858-4673-9101-1e79461f0442?api-version=2017-10-01-preview" ], "Retry-After": [ "15" @@ -2181,19 +2301,19 @@ "Microsoft-HTTPAPI/2.0" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/20dd0210-f0cf-4aba-8439-7d5972412384/resourceGroups/sqlcrudtest-8679/providers/Microsoft.Sql/locations/canadacentral/databaseAzureAsyncOperation/67255308-65d7-4a36-bd9c-6f23c7e20f9e?api-version=2017-10-01-preview" + "https://management.azure.com/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/locations/southeastasia/databaseAzureAsyncOperation/0aefb61e-9858-4673-9101-1e79461f0442?api-version=2017-10-01-preview" ], "x-ms-request-id": [ - "67255308-65d7-4a36-bd9c-6f23c7e20f9e" + "0aefb61e-9858-4673-9101-1e79461f0442" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1193" ], "x-ms-correlation-request-id": [ - "8ecb7ff8-4526-4663-94f7-adfaa5fcf794" + "b868aeb4-6cf4-4fcb-be5d-797f6e7081ed" ], "x-ms-routing-request-id": [ - "WESTUS:20190912T200718Z:8ecb7ff8-4526-4663-94f7-adfaa5fcf794" + "WESTUS:20200901T202812Z:b868aeb4-6cf4-4fcb-be5d-797f6e7081ed" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -2202,7 +2322,7 @@ "nosniff" ], "Content-Length": [ - "75" + "76" ], "Content-Type": [ "application/json; charset=utf-8" @@ -2211,20 +2331,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2019-09-12T20:07:18.24Z\"\r\n}", + "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2020-09-01T20:28:12.187Z\"\r\n}", "StatusCode": 202 }, { - "RequestUri": "/subscriptions/20dd0210-f0cf-4aba-8439-7d5972412384/resourceGroups/sqlcrudtest-8679/providers/Microsoft.Sql/locations/canadacentral/databaseAzureAsyncOperation/67255308-65d7-4a36-bd9c-6f23c7e20f9e?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjBkZDAyMTAtZjBjZi00YWJhLTg0MzktN2Q1OTcyNDEyMzg0L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg2NzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2NhbmFkYWNlbnRyYWwvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzY3MjU1MzA4LTY1ZDctNGEzNi1iZDljLTZmMjNjN2UyMGY5ZT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/locations/southeastasia/databaseAzureAsyncOperation/0aefb61e-9858-4673-9101-1e79461f0442?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3ODEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3NvdXRoZWFzdGFzaWEvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzBhZWZiNjFlLTk4NTgtNDY3My05MTAxLTFlNzk0NjFmMDQ0Mj9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.26614.01", "OSName/Windows", - "OSVersion/Microsoft.Windows.6.3.9600.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.35.0.0" + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.45.0.0" ] }, "ResponseHeaders": { @@ -2232,7 +2352,7 @@ "no-cache" ], "Date": [ - "Thu, 12 Sep 2019 20:07:33 GMT" + "Tue, 01 Sep 2020 20:28:26 GMT" ], "Pragma": [ "no-cache" @@ -2244,16 +2364,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "40b763fa-564f-4ca0-a64a-7b51c0fd423b" + "810f3cfa-b6d4-464b-a753-e62d86587b32" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11972" + "11970" ], "x-ms-correlation-request-id": [ - "381e1453-f5da-40a6-a21e-d9f6f871cda2" + "4b56b99c-34d2-4185-9aba-0349b7c73293" ], "x-ms-routing-request-id": [ - "WESTUS:20190912T200733Z:381e1453-f5da-40a6-a21e-d9f6f871cda2" + "WESTUS:20200901T202827Z:4b56b99c-34d2-4185-9aba-0349b7c73293" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -2262,7 +2382,7 @@ "nosniff" ], "Content-Length": [ - "107" + "108" ], "Content-Type": [ "application/json; charset=utf-8" @@ -2271,20 +2391,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"67255308-65d7-4a36-bd9c-6f23c7e20f9e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-09-12T20:07:18.24Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"0aefb61e-9858-4673-9101-1e79461f0442\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-01T20:28:12.187Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/20dd0210-f0cf-4aba-8439-7d5972412384/resourceGroups/sqlcrudtest-8679/providers/Microsoft.Sql/locations/canadacentral/databaseAzureAsyncOperation/67255308-65d7-4a36-bd9c-6f23c7e20f9e?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjBkZDAyMTAtZjBjZi00YWJhLTg0MzktN2Q1OTcyNDEyMzg0L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg2NzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2NhbmFkYWNlbnRyYWwvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzY3MjU1MzA4LTY1ZDctNGEzNi1iZDljLTZmMjNjN2UyMGY5ZT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/locations/southeastasia/databaseAzureAsyncOperation/0aefb61e-9858-4673-9101-1e79461f0442?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3ODEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3NvdXRoZWFzdGFzaWEvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzBhZWZiNjFlLTk4NTgtNDY3My05MTAxLTFlNzk0NjFmMDQ0Mj9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.26614.01", "OSName/Windows", - "OSVersion/Microsoft.Windows.6.3.9600.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.35.0.0" + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.45.0.0" ] }, "ResponseHeaders": { @@ -2292,7 +2412,7 @@ "no-cache" ], "Date": [ - "Thu, 12 Sep 2019 20:07:47 GMT" + "Tue, 01 Sep 2020 20:28:42 GMT" ], "Pragma": [ "no-cache" @@ -2304,16 +2424,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "08b5878b-4f45-4479-968f-cb07f8191aa6" + "be9c20ee-9ef3-4c30-b6e3-a27f0ee28aae" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11971" + "11969" ], "x-ms-correlation-request-id": [ - "30b49769-f6c4-49ba-9787-dae181717854" + "90fe96ad-0e88-4267-a144-0e0db0805490" ], "x-ms-routing-request-id": [ - "WESTUS:20190912T200748Z:30b49769-f6c4-49ba-9787-dae181717854" + "WESTUS:20200901T202843Z:90fe96ad-0e88-4267-a144-0e0db0805490" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -2322,7 +2442,7 @@ "nosniff" ], "Content-Length": [ - "107" + "108" ], "Content-Type": [ "application/json; charset=utf-8" @@ -2331,20 +2451,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"67255308-65d7-4a36-bd9c-6f23c7e20f9e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-09-12T20:07:18.24Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"0aefb61e-9858-4673-9101-1e79461f0442\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-01T20:28:12.187Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/20dd0210-f0cf-4aba-8439-7d5972412384/resourceGroups/sqlcrudtest-8679/providers/Microsoft.Sql/locations/canadacentral/databaseAzureAsyncOperation/67255308-65d7-4a36-bd9c-6f23c7e20f9e?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjBkZDAyMTAtZjBjZi00YWJhLTg0MzktN2Q1OTcyNDEyMzg0L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg2NzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2NhbmFkYWNlbnRyYWwvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzY3MjU1MzA4LTY1ZDctNGEzNi1iZDljLTZmMjNjN2UyMGY5ZT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/locations/southeastasia/databaseAzureAsyncOperation/0aefb61e-9858-4673-9101-1e79461f0442?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3ODEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3NvdXRoZWFzdGFzaWEvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzBhZWZiNjFlLTk4NTgtNDY3My05MTAxLTFlNzk0NjFmMDQ0Mj9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.26614.01", "OSName/Windows", - "OSVersion/Microsoft.Windows.6.3.9600.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.35.0.0" + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.45.0.0" ] }, "ResponseHeaders": { @@ -2352,7 +2472,7 @@ "no-cache" ], "Date": [ - "Thu, 12 Sep 2019 20:08:02 GMT" + "Tue, 01 Sep 2020 20:28:57 GMT" ], "Pragma": [ "no-cache" @@ -2364,16 +2484,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "da0ad835-2a91-4c27-931e-07d62e4933ce" + "45d50f9a-4c92-4d3d-996d-1a015d1de64c" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11970" + "11968" ], "x-ms-correlation-request-id": [ - "90f44ee0-d30e-4d35-bba3-df1cb260f0e1" + "392b5a41-8ed3-41cc-8a9d-1500da25985f" ], "x-ms-routing-request-id": [ - "WESTUS:20190912T200803Z:90f44ee0-d30e-4d35-bba3-df1cb260f0e1" + "WESTUS:20200901T202858Z:392b5a41-8ed3-41cc-8a9d-1500da25985f" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -2382,7 +2502,7 @@ "nosniff" ], "Content-Length": [ - "107" + "108" ], "Content-Type": [ "application/json; charset=utf-8" @@ -2391,20 +2511,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"67255308-65d7-4a36-bd9c-6f23c7e20f9e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-09-12T20:07:18.24Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"0aefb61e-9858-4673-9101-1e79461f0442\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-01T20:28:12.187Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/20dd0210-f0cf-4aba-8439-7d5972412384/resourceGroups/sqlcrudtest-8679/providers/Microsoft.Sql/locations/canadacentral/databaseAzureAsyncOperation/67255308-65d7-4a36-bd9c-6f23c7e20f9e?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjBkZDAyMTAtZjBjZi00YWJhLTg0MzktN2Q1OTcyNDEyMzg0L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg2NzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2NhbmFkYWNlbnRyYWwvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzY3MjU1MzA4LTY1ZDctNGEzNi1iZDljLTZmMjNjN2UyMGY5ZT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/locations/southeastasia/databaseAzureAsyncOperation/0aefb61e-9858-4673-9101-1e79461f0442?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3ODEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3NvdXRoZWFzdGFzaWEvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzBhZWZiNjFlLTk4NTgtNDY3My05MTAxLTFlNzk0NjFmMDQ0Mj9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.26614.01", "OSName/Windows", - "OSVersion/Microsoft.Windows.6.3.9600.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.35.0.0" + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.45.0.0" ] }, "ResponseHeaders": { @@ -2412,7 +2532,7 @@ "no-cache" ], "Date": [ - "Thu, 12 Sep 2019 20:08:19 GMT" + "Tue, 01 Sep 2020 20:29:13 GMT" ], "Pragma": [ "no-cache" @@ -2424,16 +2544,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "5f59c57c-98df-4f32-9778-dc3b4f000dbb" + "d1430967-8614-4e3a-9498-fa7671813124" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11969" + "11967" ], "x-ms-correlation-request-id": [ - "e9598c2d-e975-477e-b73e-d9ea96eaedec" + "31613cdf-d16b-4d02-8339-c5ba3d6a0dae" ], "x-ms-routing-request-id": [ - "WESTUS:20190912T200819Z:e9598c2d-e975-477e-b73e-d9ea96eaedec" + "WESTUS:20200901T202913Z:31613cdf-d16b-4d02-8339-c5ba3d6a0dae" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -2442,7 +2562,7 @@ "nosniff" ], "Content-Length": [ - "107" + "108" ], "Content-Type": [ "application/json; charset=utf-8" @@ -2451,20 +2571,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"67255308-65d7-4a36-bd9c-6f23c7e20f9e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-09-12T20:07:18.24Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"0aefb61e-9858-4673-9101-1e79461f0442\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-01T20:28:12.187Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/20dd0210-f0cf-4aba-8439-7d5972412384/resourceGroups/sqlcrudtest-8679/providers/Microsoft.Sql/locations/canadacentral/databaseAzureAsyncOperation/67255308-65d7-4a36-bd9c-6f23c7e20f9e?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjBkZDAyMTAtZjBjZi00YWJhLTg0MzktN2Q1OTcyNDEyMzg0L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg2NzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2NhbmFkYWNlbnRyYWwvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzY3MjU1MzA4LTY1ZDctNGEzNi1iZDljLTZmMjNjN2UyMGY5ZT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/locations/southeastasia/databaseAzureAsyncOperation/0aefb61e-9858-4673-9101-1e79461f0442?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3ODEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3NvdXRoZWFzdGFzaWEvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzBhZWZiNjFlLTk4NTgtNDY3My05MTAxLTFlNzk0NjFmMDQ0Mj9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.26614.01", "OSName/Windows", - "OSVersion/Microsoft.Windows.6.3.9600.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.35.0.0" + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.45.0.0" ] }, "ResponseHeaders": { @@ -2472,7 +2592,7 @@ "no-cache" ], "Date": [ - "Thu, 12 Sep 2019 20:08:33 GMT" + "Tue, 01 Sep 2020 20:29:28 GMT" ], "Pragma": [ "no-cache" @@ -2484,16 +2604,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "032d65d9-0016-40f9-b49d-95247cbabfcb" + "d4e0a3cf-8549-44e7-b1f7-d36e75972c14" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11968" + "11966" ], "x-ms-correlation-request-id": [ - "55c59b29-4b8e-4ccb-9287-0490082b00e6" + "56c777be-b4a2-4574-9be3-2883471e2158" ], "x-ms-routing-request-id": [ - "WESTUS:20190912T200834Z:55c59b29-4b8e-4ccb-9287-0490082b00e6" + "WESTUS:20200901T202929Z:56c777be-b4a2-4574-9be3-2883471e2158" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -2502,7 +2622,7 @@ "nosniff" ], "Content-Length": [ - "107" + "108" ], "Content-Type": [ "application/json; charset=utf-8" @@ -2511,20 +2631,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"67255308-65d7-4a36-bd9c-6f23c7e20f9e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-09-12T20:07:18.24Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"0aefb61e-9858-4673-9101-1e79461f0442\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-01T20:28:12.187Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/20dd0210-f0cf-4aba-8439-7d5972412384/resourceGroups/sqlcrudtest-8679/providers/Microsoft.Sql/locations/canadacentral/databaseAzureAsyncOperation/67255308-65d7-4a36-bd9c-6f23c7e20f9e?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjBkZDAyMTAtZjBjZi00YWJhLTg0MzktN2Q1OTcyNDEyMzg0L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg2NzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2NhbmFkYWNlbnRyYWwvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzY3MjU1MzA4LTY1ZDctNGEzNi1iZDljLTZmMjNjN2UyMGY5ZT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/locations/southeastasia/databaseAzureAsyncOperation/0aefb61e-9858-4673-9101-1e79461f0442?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3ODEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3NvdXRoZWFzdGFzaWEvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzBhZWZiNjFlLTk4NTgtNDY3My05MTAxLTFlNzk0NjFmMDQ0Mj9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.26614.01", "OSName/Windows", - "OSVersion/Microsoft.Windows.6.3.9600.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.35.0.0" + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.45.0.0" ] }, "ResponseHeaders": { @@ -2532,7 +2652,7 @@ "no-cache" ], "Date": [ - "Thu, 12 Sep 2019 20:08:48 GMT" + "Tue, 01 Sep 2020 20:29:44 GMT" ], "Pragma": [ "no-cache" @@ -2544,16 +2664,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "f38c8027-e11c-4afe-8488-482a99e318b1" + "ae5e2a3f-4491-4f49-a41a-24d2730a6651" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11967" + "11965" ], "x-ms-correlation-request-id": [ - "63009549-bdc4-4f6c-a905-872d22dc96c3" + "c6c86195-1a5f-4cff-be75-55b77ec30011" ], "x-ms-routing-request-id": [ - "WESTUS:20190912T200849Z:63009549-bdc4-4f6c-a905-872d22dc96c3" + "WESTUS:20200901T202944Z:c6c86195-1a5f-4cff-be75-55b77ec30011" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -2562,7 +2682,7 @@ "nosniff" ], "Content-Length": [ - "107" + "108" ], "Content-Type": [ "application/json; charset=utf-8" @@ -2571,20 +2691,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"67255308-65d7-4a36-bd9c-6f23c7e20f9e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-09-12T20:07:18.24Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"0aefb61e-9858-4673-9101-1e79461f0442\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-01T20:28:12.187Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/20dd0210-f0cf-4aba-8439-7d5972412384/resourceGroups/sqlcrudtest-8679/providers/Microsoft.Sql/locations/canadacentral/databaseAzureAsyncOperation/67255308-65d7-4a36-bd9c-6f23c7e20f9e?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjBkZDAyMTAtZjBjZi00YWJhLTg0MzktN2Q1OTcyNDEyMzg0L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg2NzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2NhbmFkYWNlbnRyYWwvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzY3MjU1MzA4LTY1ZDctNGEzNi1iZDljLTZmMjNjN2UyMGY5ZT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/locations/southeastasia/databaseAzureAsyncOperation/0aefb61e-9858-4673-9101-1e79461f0442?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3ODEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3NvdXRoZWFzdGFzaWEvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzBhZWZiNjFlLTk4NTgtNDY3My05MTAxLTFlNzk0NjFmMDQ0Mj9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.26614.01", "OSName/Windows", - "OSVersion/Microsoft.Windows.6.3.9600.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.35.0.0" + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.45.0.0" ] }, "ResponseHeaders": { @@ -2592,7 +2712,7 @@ "no-cache" ], "Date": [ - "Thu, 12 Sep 2019 20:09:03 GMT" + "Tue, 01 Sep 2020 20:29:59 GMT" ], "Pragma": [ "no-cache" @@ -2604,16 +2724,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "626705d7-f422-43e7-87d2-7492d347d160" + "c57fe3ed-2ab4-4921-a815-fbe062209f21" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11966" + "11964" ], "x-ms-correlation-request-id": [ - "0e4e2c1d-d51d-4673-8a40-3f93296a90ed" + "c2cf97e4-411c-4d7b-b5b2-ca048748aa72" ], "x-ms-routing-request-id": [ - "WESTUS:20190912T200904Z:0e4e2c1d-d51d-4673-8a40-3f93296a90ed" + "WESTUS:20200901T202959Z:c2cf97e4-411c-4d7b-b5b2-ca048748aa72" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -2622,7 +2742,7 @@ "nosniff" ], "Content-Length": [ - "107" + "108" ], "Content-Type": [ "application/json; charset=utf-8" @@ -2631,20 +2751,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"67255308-65d7-4a36-bd9c-6f23c7e20f9e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2019-09-12T20:07:18.24Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"0aefb61e-9858-4673-9101-1e79461f0442\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-01T20:28:12.187Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/20dd0210-f0cf-4aba-8439-7d5972412384/resourceGroups/sqlcrudtest-8679/providers/Microsoft.Sql/locations/canadacentral/databaseAzureAsyncOperation/67255308-65d7-4a36-bd9c-6f23c7e20f9e?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjBkZDAyMTAtZjBjZi00YWJhLTg0MzktN2Q1OTcyNDEyMzg0L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg2NzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2NhbmFkYWNlbnRyYWwvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzY3MjU1MzA4LTY1ZDctNGEzNi1iZDljLTZmMjNjN2UyMGY5ZT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/locations/southeastasia/databaseAzureAsyncOperation/0aefb61e-9858-4673-9101-1e79461f0442?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3ODEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3NvdXRoZWFzdGFzaWEvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzBhZWZiNjFlLTk4NTgtNDY3My05MTAxLTFlNzk0NjFmMDQ0Mj9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.26614.01", "OSName/Windows", - "OSVersion/Microsoft.Windows.6.3.9600.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.35.0.0" + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.45.0.0" ] }, "ResponseHeaders": { @@ -2652,7 +2772,7 @@ "no-cache" ], "Date": [ - "Thu, 12 Sep 2019 20:09:18 GMT" + "Tue, 01 Sep 2020 20:30:14 GMT" ], "Pragma": [ "no-cache" @@ -2664,16 +2784,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "f71c6139-5b0c-4409-81a9-efadf3d368c1" + "73fbc815-a49a-4407-83d0-0738f7bdd273" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11965" + "11963" ], "x-ms-correlation-request-id": [ - "0dc1b7eb-f2f3-40b7-9605-6e25cf97465a" + "802514e7-aaca-429a-844c-fbd8d897e9e0" ], "x-ms-routing-request-id": [ - "WESTUS:20190912T200919Z:0dc1b7eb-f2f3-40b7-9605-6e25cf97465a" + "WESTUS:20200901T203014Z:802514e7-aaca-429a-844c-fbd8d897e9e0" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -2682,7 +2802,7 @@ "nosniff" ], "Content-Length": [ - "106" + "108" ], "Content-Type": [ "application/json; charset=utf-8" @@ -2691,20 +2811,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"67255308-65d7-4a36-bd9c-6f23c7e20f9e\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2019-09-12T20:07:18.24Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"0aefb61e-9858-4673-9101-1e79461f0442\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-01T20:28:12.187Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/20dd0210-f0cf-4aba-8439-7d5972412384/resourceGroups/sqlcrudtest-8679/providers/Microsoft.Sql/servers/sqlcrudtest-1579/databases/sqlcrudtest-6958?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjBkZDAyMTAtZjBjZi00YWJhLTg0MzktN2Q1OTcyNDEyMzg0L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg2NzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0xNTc5L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC02OTU4P2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/locations/southeastasia/databaseAzureAsyncOperation/0aefb61e-9858-4673-9101-1e79461f0442?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3ODEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3NvdXRoZWFzdGFzaWEvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzBhZWZiNjFlLTk4NTgtNDY3My05MTAxLTFlNzk0NjFmMDQ0Mj9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.26614.01", "OSName/Windows", - "OSVersion/Microsoft.Windows.6.3.9600.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.35.0.0" + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.45.0.0" ] }, "ResponseHeaders": { @@ -2712,25 +2832,28 @@ "no-cache" ], "Date": [ - "Thu, 12 Sep 2019 20:09:18 GMT" + "Tue, 01 Sep 2020 20:30:29 GMT" ], "Pragma": [ "no-cache" ], + "Retry-After": [ + "15" + ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "38ca6602-a53f-4268-b0fb-5a980e13add9" + "09b7a2ef-180e-4c6e-9967-936ad2662a67" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11964" + "11962" ], "x-ms-correlation-request-id": [ - "db09f185-23e6-4bce-8667-cdc4f1416b7b" + "3aa55bc0-3fa4-4d08-a30e-61792ae768fd" ], "x-ms-routing-request-id": [ - "WESTUS:20190912T200919Z:db09f185-23e6-4bce-8667-cdc4f1416b7b" + "WESTUS:20200901T203029Z:3aa55bc0-3fa4-4d08-a30e-61792ae768fd" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -2739,7 +2862,7 @@ "nosniff" ], "Content-Length": [ - "942" + "108" ], "Content-Type": [ "application/json; charset=utf-8" @@ -2748,17 +2871,194 @@ "-1" ] }, - "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"HS_Gen5\",\r\n \"tier\": \"Hyperscale\",\r\n \"family\": \"Gen5\",\r\n \"capacity\": 4\r\n },\r\n \"kind\": \"v12.0,user,vcore,hyperscale\",\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": -1,\r\n \"status\": \"Online\",\r\n \"databaseId\": \"6b3f43f7-019e-4800-b44d-8363b3ba01e8\",\r\n \"creationDate\": \"2019-09-12T20:09:11.147Z\",\r\n \"currentServiceObjectiveName\": \"HS_Gen5_4\",\r\n \"requestedServiceObjectiveName\": \"HS_Gen5_4\",\r\n \"defaultSecondaryLocation\": \"canadaeast\",\r\n \"catalogCollation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"licenseType\": \"LicenseIncluded\",\r\n \"earliestRestoreDate\": \"2019-09-12T20:09:11.147Z\",\r\n \"readScale\": \"Enabled\",\r\n \"readReplicaCount\": 4,\r\n \"currentSku\": {\r\n \"name\": \"HS_Gen5\",\r\n \"tier\": \"Hyperscale\",\r\n \"family\": \"Gen5\",\r\n \"capacity\": 4\r\n }\r\n },\r\n \"location\": \"canadacentral\",\r\n \"id\": \"/subscriptions/20dd0210-f0cf-4aba-8439-7d5972412384/resourceGroups/sqlcrudtest-8679/providers/Microsoft.Sql/servers/sqlcrudtest-1579/databases/sqlcrudtest-6958\",\r\n \"name\": \"sqlcrudtest-6958\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"0aefb61e-9858-4673-9101-1e79461f0442\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-01T20:28:12.187Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/20dd0210-f0cf-4aba-8439-7d5972412384/resourceGroups/sqlcrudtest-8679/providers/Microsoft.Sql/servers/sqlcrudtest-1579/databases/sqlcrudtest-6953?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjBkZDAyMTAtZjBjZi00YWJhLTg0MzktN2Q1OTcyNDEyMzg0L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg2NzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0xNTc5L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC02OTUzP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/locations/southeastasia/databaseAzureAsyncOperation/0aefb61e-9858-4673-9101-1e79461f0442?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3ODEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3NvdXRoZWFzdGFzaWEvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzBhZWZiNjFlLTk4NTgtNDY3My05MTAxLTFlNzk0NjFmMDQ0Mj9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.45.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 01 Sep 2020 20:30:44 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "75a0cc06-e217-4c78-ad6f-765e70e3f130" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11961" + ], + "x-ms-correlation-request-id": [ + "204e00ff-9d23-42f2-b1fa-237824fc2861" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200901T203045Z:204e00ff-9d23-42f2-b1fa-237824fc2861" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"0aefb61e-9858-4673-9101-1e79461f0442\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-01T20:28:12.187Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/locations/southeastasia/databaseAzureAsyncOperation/0aefb61e-9858-4673-9101-1e79461f0442?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3ODEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3NvdXRoZWFzdGFzaWEvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzBhZWZiNjFlLTk4NTgtNDY3My05MTAxLTFlNzk0NjFmMDQ0Mj9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.45.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 01 Sep 2020 20:30:59 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "e264a8ce-e717-437d-a202-950a0d6caf9e" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11960" + ], + "x-ms-correlation-request-id": [ + "c4d24652-d0e0-41dd-aa72-3947f8ca2d70" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200901T203100Z:c4d24652-d0e0-41dd-aa72-3947f8ca2d70" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"0aefb61e-9858-4673-9101-1e79461f0442\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2020-09-01T20:28:12.187Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/servers/sqlcrudtest-3000/databases/sqlcrudtest-1042?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3ODEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zMDAwL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC0xMDQyP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.45.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 01 Sep 2020 20:30:59 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "336ad5f6-926c-498c-93b0-1085c415c60c" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11959" + ], + "x-ms-correlation-request-id": [ + "f70a64e2-5170-46fe-94ed-80da43261d8e" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200901T203100Z:f70a64e2-5170-46fe-94ed-80da43261d8e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "938" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"HS_Gen5\",\r\n \"tier\": \"Hyperscale\",\r\n \"family\": \"Gen5\",\r\n \"capacity\": 4\r\n },\r\n \"kind\": \"v12.0,user,vcore,hyperscale\",\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": -1,\r\n \"status\": \"Online\",\r\n \"databaseId\": \"d2198703-f895-4c74-b1d5-f25200eed9d3\",\r\n \"creationDate\": \"2020-09-01T20:30:48.19Z\",\r\n \"currentServiceObjectiveName\": \"HS_Gen5_4\",\r\n \"requestedServiceObjectiveName\": \"HS_Gen5_4\",\r\n \"defaultSecondaryLocation\": \"eastasia\",\r\n \"catalogCollation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"licenseType\": \"LicenseIncluded\",\r\n \"earliestRestoreDate\": \"2020-09-01T20:30:48.19Z\",\r\n \"readScale\": \"Enabled\",\r\n \"readReplicaCount\": 4,\r\n \"currentSku\": {\r\n \"name\": \"HS_Gen5\",\r\n \"tier\": \"Hyperscale\",\r\n \"family\": \"Gen5\",\r\n \"capacity\": 4\r\n }\r\n },\r\n \"location\": \"southeastasia\",\r\n \"id\": \"/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/servers/sqlcrudtest-3000/databases/sqlcrudtest-1042\",\r\n \"name\": \"sqlcrudtest-1042\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/servers/sqlcrudtest-3000/databases/sqlcrudtest-1701?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3ODEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zMDAwL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC0xNzAxP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "ceefde21-553b-459d-a371-4bd9cdeffcf3" + "cd2af31a-4a7e-45a5-a918-7c8efece24ad" ], "accept-language": [ "en-US" @@ -2766,8 +3066,8 @@ "User-Agent": [ "FxVersion/4.6.26614.01", "OSName/Windows", - "OSVersion/Microsoft.Windows.6.3.9600.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.35.0.0" + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.45.0.0" ] }, "ResponseHeaders": { @@ -2775,13 +3075,13 @@ "no-cache" ], "Date": [ - "Thu, 12 Sep 2019 20:09:19 GMT" + "Tue, 01 Sep 2020 20:31:01 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/20dd0210-f0cf-4aba-8439-7d5972412384/resourceGroups/sqlcrudtest-8679/providers/Microsoft.Sql/locations/canadacentral/databaseOperationResults/9aeb9d53-c920-4843-966a-e9c2f58c2f4c?api-version=2017-10-01-preview" + "https://management.azure.com/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/locations/southeastasia/databaseOperationResults/9947dd1a-2710-4888-b7bb-5e95a33af83a?api-version=2017-10-01-preview" ], "Retry-After": [ "15" @@ -2790,19 +3090,19 @@ "Microsoft-HTTPAPI/2.0" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/20dd0210-f0cf-4aba-8439-7d5972412384/resourceGroups/sqlcrudtest-8679/providers/Microsoft.Sql/locations/canadacentral/databaseAzureAsyncOperation/9aeb9d53-c920-4843-966a-e9c2f58c2f4c?api-version=2017-10-01-preview" + "https://management.azure.com/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/locations/southeastasia/databaseAzureAsyncOperation/9947dd1a-2710-4888-b7bb-5e95a33af83a?api-version=2017-10-01-preview" ], "x-ms-request-id": [ - "9aeb9d53-c920-4843-966a-e9c2f58c2f4c" + "9947dd1a-2710-4888-b7bb-5e95a33af83a" ], "x-ms-ratelimit-remaining-subscription-deletes": [ "14999" ], "x-ms-correlation-request-id": [ - "f08e4fc1-21d3-4cf3-a6da-0b9fb5216825" + "260f35a5-74f7-4ed6-91a2-32f0d06b6de4" ], "x-ms-routing-request-id": [ - "WESTUS:20190912T200920Z:f08e4fc1-21d3-4cf3-a6da-0b9fb5216825" + "WESTUS:20200901T203101Z:260f35a5-74f7-4ed6-91a2-32f0d06b6de4" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -2811,7 +3111,7 @@ "nosniff" ], "Content-Length": [ - "73" + "74" ], "Content-Type": [ "application/json; charset=utf-8" @@ -2820,20 +3120,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"operation\": \"DropLogicalDatabase\",\r\n \"startTime\": \"2019-09-12T20:09:20.43Z\"\r\n}", + "ResponseBody": "{\r\n \"operation\": \"DropLogicalDatabase\",\r\n \"startTime\": \"2020-09-01T20:31:01.807Z\"\r\n}", "StatusCode": 202 }, { - "RequestUri": "/subscriptions/20dd0210-f0cf-4aba-8439-7d5972412384/resourceGroups/sqlcrudtest-8679/providers/Microsoft.Sql/locations/canadacentral/databaseAzureAsyncOperation/9aeb9d53-c920-4843-966a-e9c2f58c2f4c?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjBkZDAyMTAtZjBjZi00YWJhLTg0MzktN2Q1OTcyNDEyMzg0L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg2NzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2NhbmFkYWNlbnRyYWwvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzlhZWI5ZDUzLWM5MjAtNDg0My05NjZhLWU5YzJmNThjMmY0Yz9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/locations/southeastasia/databaseAzureAsyncOperation/9947dd1a-2710-4888-b7bb-5e95a33af83a?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3ODEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3NvdXRoZWFzdGFzaWEvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzk5NDdkZDFhLTI3MTAtNDg4OC1iN2JiLTVlOTVhMzNhZjgzYT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.26614.01", "OSName/Windows", - "OSVersion/Microsoft.Windows.6.3.9600.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.35.0.0" + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.45.0.0" ] }, "ResponseHeaders": { @@ -2841,7 +3141,7 @@ "no-cache" ], "Date": [ - "Thu, 12 Sep 2019 20:09:35 GMT" + "Tue, 01 Sep 2020 20:31:16 GMT" ], "Pragma": [ "no-cache" @@ -2853,16 +3153,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "375b0ac9-7747-444f-9781-b0eab5cf75bb" + "1a5f3317-89ec-4fc6-b063-6b151387edf9" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11963" + "11958" ], "x-ms-correlation-request-id": [ - "79f77c4b-de15-476d-b57a-e8faa0dee0d4" + "628d50d9-8c4d-4bee-96a7-5e6488acccf6" ], "x-ms-routing-request-id": [ - "WESTUS:20190912T200935Z:79f77c4b-de15-476d-b57a-e8faa0dee0d4" + "WESTUS:20200901T203117Z:628d50d9-8c4d-4bee-96a7-5e6488acccf6" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -2871,7 +3171,7 @@ "nosniff" ], "Content-Length": [ - "106" + "107" ], "Content-Type": [ "application/json; charset=utf-8" @@ -2880,20 +3180,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"9aeb9d53-c920-4843-966a-e9c2f58c2f4c\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2019-09-12T20:09:20.43Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"9947dd1a-2710-4888-b7bb-5e95a33af83a\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2020-09-01T20:31:01.807Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/20dd0210-f0cf-4aba-8439-7d5972412384/resourceGroups/sqlcrudtest-8679/providers/Microsoft.Sql/locations/canadacentral/databaseOperationResults/9aeb9d53-c920-4843-966a-e9c2f58c2f4c?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjBkZDAyMTAtZjBjZi00YWJhLTg0MzktN2Q1OTcyNDEyMzg0L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg2NzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2NhbmFkYWNlbnRyYWwvZGF0YWJhc2VPcGVyYXRpb25SZXN1bHRzLzlhZWI5ZDUzLWM5MjAtNDg0My05NjZhLWU5YzJmNThjMmY0Yz9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/locations/southeastasia/databaseOperationResults/9947dd1a-2710-4888-b7bb-5e95a33af83a?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3ODEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3NvdXRoZWFzdGFzaWEvZGF0YWJhc2VPcGVyYXRpb25SZXN1bHRzLzk5NDdkZDFhLTI3MTAtNDg4OC1iN2JiLTVlOTVhMzNhZjgzYT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.26614.01", "OSName/Windows", - "OSVersion/Microsoft.Windows.6.3.9600.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.35.0.0" + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.45.0.0" ] }, "ResponseHeaders": { @@ -2901,7 +3201,7 @@ "no-cache" ], "Date": [ - "Thu, 12 Sep 2019 20:09:35 GMT" + "Tue, 01 Sep 2020 20:31:16 GMT" ], "Pragma": [ "no-cache" @@ -2910,16 +3210,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "7004fcdb-a4ce-4b71-8112-9e08ef5e3dbb" + "041948cf-d8f0-4feb-adf4-90b8edfba708" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11962" + "11957" ], "x-ms-correlation-request-id": [ - "cd7b4dbd-8125-47aa-98e7-f4477a0dbad3" + "b8ac9a8a-dfe6-4943-a9e2-f1fbc9cfb593" ], "x-ms-routing-request-id": [ - "WESTUS:20190912T200935Z:cd7b4dbd-8125-47aa-98e7-f4477a0dbad3" + "WESTUS:20200901T203117Z:b8ac9a8a-dfe6-4943-a9e2-f1fbc9cfb593" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -2938,13 +3238,13 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/20dd0210-f0cf-4aba-8439-7d5972412384/resourceGroups/sqlcrudtest-8679/providers/Microsoft.Sql/servers/sqlcrudtest-1579/databases/sqlcrudtest-7162?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjBkZDAyMTAtZjBjZi00YWJhLTg0MzktN2Q1OTcyNDEyMzg0L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg2NzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0xNTc5L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC03MTYyP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/servers/sqlcrudtest-3000/databases/sqlcrudtest-4254?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3ODEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zMDAwL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC00MjU0P2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "bf7da1fd-97db-4751-9d34-0224de73cf74" + "1b14c034-b876-4e5d-a84b-bb483652dfc2" ], "accept-language": [ "en-US" @@ -2952,8 +3252,8 @@ "User-Agent": [ "FxVersion/4.6.26614.01", "OSName/Windows", - "OSVersion/Microsoft.Windows.6.3.9600.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.35.0.0" + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.45.0.0" ] }, "ResponseHeaders": { @@ -2961,13 +3261,13 @@ "no-cache" ], "Date": [ - "Thu, 12 Sep 2019 20:09:35 GMT" + "Tue, 01 Sep 2020 20:31:17 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/20dd0210-f0cf-4aba-8439-7d5972412384/resourceGroups/sqlcrudtest-8679/providers/Microsoft.Sql/locations/canadacentral/databaseOperationResults/9a1e236a-c03c-484b-b53d-e1b38bbc0206?api-version=2017-10-01-preview" + "https://management.azure.com/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/locations/southeastasia/databaseOperationResults/ebf3c649-7f05-4691-b7f4-7a0226c9d629?api-version=2017-10-01-preview" ], "Retry-After": [ "15" @@ -2976,19 +3276,19 @@ "Microsoft-HTTPAPI/2.0" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/20dd0210-f0cf-4aba-8439-7d5972412384/resourceGroups/sqlcrudtest-8679/providers/Microsoft.Sql/locations/canadacentral/databaseAzureAsyncOperation/9a1e236a-c03c-484b-b53d-e1b38bbc0206?api-version=2017-10-01-preview" + "https://management.azure.com/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/locations/southeastasia/databaseAzureAsyncOperation/ebf3c649-7f05-4691-b7f4-7a0226c9d629?api-version=2017-10-01-preview" ], "x-ms-request-id": [ - "9a1e236a-c03c-484b-b53d-e1b38bbc0206" + "ebf3c649-7f05-4691-b7f4-7a0226c9d629" ], "x-ms-ratelimit-remaining-subscription-deletes": [ "14998" ], "x-ms-correlation-request-id": [ - "275b10da-fd72-4065-9d61-cb972c8937d0" + "54d4579b-17f8-45e2-a1e6-34c2dd45b94b" ], "x-ms-routing-request-id": [ - "WESTUS:20190912T200936Z:275b10da-fd72-4065-9d61-cb972c8937d0" + "WESTUS:20200901T203118Z:54d4579b-17f8-45e2-a1e6-34c2dd45b94b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -3006,20 +3306,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"operation\": \"DropLogicalDatabase\",\r\n \"startTime\": \"2019-09-12T20:09:36.01Z\"\r\n}", + "ResponseBody": "{\r\n \"operation\": \"DropLogicalDatabase\",\r\n \"startTime\": \"2020-09-01T20:31:17.92Z\"\r\n}", "StatusCode": 202 }, { - "RequestUri": "/subscriptions/20dd0210-f0cf-4aba-8439-7d5972412384/resourceGroups/sqlcrudtest-8679/providers/Microsoft.Sql/locations/canadacentral/databaseAzureAsyncOperation/9a1e236a-c03c-484b-b53d-e1b38bbc0206?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjBkZDAyMTAtZjBjZi00YWJhLTg0MzktN2Q1OTcyNDEyMzg0L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg2NzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2NhbmFkYWNlbnRyYWwvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzlhMWUyMzZhLWMwM2MtNDg0Yi1iNTNkLWUxYjM4YmJjMDIwNj9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/locations/southeastasia/databaseAzureAsyncOperation/ebf3c649-7f05-4691-b7f4-7a0226c9d629?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3ODEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3NvdXRoZWFzdGFzaWEvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2ViZjNjNjQ5LTdmMDUtNDY5MS1iN2Y0LTdhMDIyNmM5ZDYyOT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.26614.01", "OSName/Windows", - "OSVersion/Microsoft.Windows.6.3.9600.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.35.0.0" + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.45.0.0" ] }, "ResponseHeaders": { @@ -3027,7 +3327,7 @@ "no-cache" ], "Date": [ - "Thu, 12 Sep 2019 20:09:50 GMT" + "Tue, 01 Sep 2020 20:31:32 GMT" ], "Pragma": [ "no-cache" @@ -3039,16 +3339,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "889de6d9-306f-4ed1-9fd8-455aabf5ccbc" + "6dde17f1-a568-41bd-be8c-8f2f37d026c1" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11961" + "11956" ], "x-ms-correlation-request-id": [ - "2979a0e6-833e-4ab6-af36-8a0dd4c56022" + "07639bb2-b22b-4460-984d-208c9b528f1d" ], "x-ms-routing-request-id": [ - "WESTUS:20190912T200951Z:2979a0e6-833e-4ab6-af36-8a0dd4c56022" + "WESTUS:20200901T203133Z:07639bb2-b22b-4460-984d-208c9b528f1d" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -3066,20 +3366,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"9a1e236a-c03c-484b-b53d-e1b38bbc0206\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2019-09-12T20:09:36.01Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"ebf3c649-7f05-4691-b7f4-7a0226c9d629\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2020-09-01T20:31:17.92Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/20dd0210-f0cf-4aba-8439-7d5972412384/resourceGroups/sqlcrudtest-8679/providers/Microsoft.Sql/locations/canadacentral/databaseOperationResults/9a1e236a-c03c-484b-b53d-e1b38bbc0206?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjBkZDAyMTAtZjBjZi00YWJhLTg0MzktN2Q1OTcyNDEyMzg0L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg2NzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2NhbmFkYWNlbnRyYWwvZGF0YWJhc2VPcGVyYXRpb25SZXN1bHRzLzlhMWUyMzZhLWMwM2MtNDg0Yi1iNTNkLWUxYjM4YmJjMDIwNj9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/locations/southeastasia/databaseOperationResults/ebf3c649-7f05-4691-b7f4-7a0226c9d629?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3ODEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3NvdXRoZWFzdGFzaWEvZGF0YWJhc2VPcGVyYXRpb25SZXN1bHRzL2ViZjNjNjQ5LTdmMDUtNDY5MS1iN2Y0LTdhMDIyNmM5ZDYyOT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.26614.01", "OSName/Windows", - "OSVersion/Microsoft.Windows.6.3.9600.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.35.0.0" + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.45.0.0" ] }, "ResponseHeaders": { @@ -3087,7 +3387,7 @@ "no-cache" ], "Date": [ - "Thu, 12 Sep 2019 20:09:50 GMT" + "Tue, 01 Sep 2020 20:31:32 GMT" ], "Pragma": [ "no-cache" @@ -3096,16 +3396,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "847174d4-70fa-49f2-8a27-62c904f9c3e8" + "065e99d2-143d-4785-b0a7-d9993cbcd1b4" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11960" + "11955" ], "x-ms-correlation-request-id": [ - "5ef56706-8ae9-4803-932f-9cf140e1b822" + "569b3090-7267-4b75-9b4a-495739105b9a" ], "x-ms-routing-request-id": [ - "WESTUS:20190912T200951Z:5ef56706-8ae9-4803-932f-9cf140e1b822" + "WESTUS:20200901T203133Z:569b3090-7267-4b75-9b4a-495739105b9a" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -3124,13 +3424,13 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/20dd0210-f0cf-4aba-8439-7d5972412384/resourceGroups/sqlcrudtest-8679/providers/Microsoft.Sql/servers/sqlcrudtest-1579/databases/sqlcrudtest-3342?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjBkZDAyMTAtZjBjZi00YWJhLTg0MzktN2Q1OTcyNDEyMzg0L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg2NzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0xNTc5L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC0zMzQyP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/servers/sqlcrudtest-3000/databases/sqlcrudtest-7309?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3ODEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zMDAwL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC03MzA5P2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "cfee5290-7d05-44d3-a55b-c3ce4479968f" + "990780fb-20e7-4e93-91f7-e7c790e28530" ], "accept-language": [ "en-US" @@ -3138,8 +3438,8 @@ "User-Agent": [ "FxVersion/4.6.26614.01", "OSName/Windows", - "OSVersion/Microsoft.Windows.6.3.9600.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.35.0.0" + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.45.0.0" ] }, "ResponseHeaders": { @@ -3147,13 +3447,13 @@ "no-cache" ], "Date": [ - "Thu, 12 Sep 2019 20:09:51 GMT" + "Tue, 01 Sep 2020 20:31:33 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/20dd0210-f0cf-4aba-8439-7d5972412384/resourceGroups/sqlcrudtest-8679/providers/Microsoft.Sql/locations/canadacentral/databaseOperationResults/701fb5b0-7991-491a-afe4-e82eca2dcfa9?api-version=2017-10-01-preview" + "https://management.azure.com/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/locations/southeastasia/databaseOperationResults/454677b7-39b9-4de3-ac05-9aa56913bec7?api-version=2017-10-01-preview" ], "Retry-After": [ "15" @@ -3162,19 +3462,19 @@ "Microsoft-HTTPAPI/2.0" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/20dd0210-f0cf-4aba-8439-7d5972412384/resourceGroups/sqlcrudtest-8679/providers/Microsoft.Sql/locations/canadacentral/databaseAzureAsyncOperation/701fb5b0-7991-491a-afe4-e82eca2dcfa9?api-version=2017-10-01-preview" + "https://management.azure.com/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/locations/southeastasia/databaseAzureAsyncOperation/454677b7-39b9-4de3-ac05-9aa56913bec7?api-version=2017-10-01-preview" ], "x-ms-request-id": [ - "701fb5b0-7991-491a-afe4-e82eca2dcfa9" + "454677b7-39b9-4de3-ac05-9aa56913bec7" ], "x-ms-ratelimit-remaining-subscription-deletes": [ "14997" ], "x-ms-correlation-request-id": [ - "fbc89c7a-1548-478a-99d8-2dd24a303c44" + "09c0f31b-e762-4b28-aae9-9fab229bbf8e" ], "x-ms-routing-request-id": [ - "WESTUS:20190912T200951Z:fbc89c7a-1548-478a-99d8-2dd24a303c44" + "WESTUS:20200901T203134Z:09c0f31b-e762-4b28-aae9-9fab229bbf8e" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -3183,7 +3483,7 @@ "nosniff" ], "Content-Length": [ - "74" + "73" ], "Content-Type": [ "application/json; charset=utf-8" @@ -3192,20 +3492,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"operation\": \"DropLogicalDatabase\",\r\n \"startTime\": \"2019-09-12T20:09:51.557Z\"\r\n}", + "ResponseBody": "{\r\n \"operation\": \"DropLogicalDatabase\",\r\n \"startTime\": \"2020-09-01T20:31:34.14Z\"\r\n}", "StatusCode": 202 }, { - "RequestUri": "/subscriptions/20dd0210-f0cf-4aba-8439-7d5972412384/resourceGroups/sqlcrudtest-8679/providers/Microsoft.Sql/locations/canadacentral/databaseAzureAsyncOperation/701fb5b0-7991-491a-afe4-e82eca2dcfa9?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjBkZDAyMTAtZjBjZi00YWJhLTg0MzktN2Q1OTcyNDEyMzg0L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg2NzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2NhbmFkYWNlbnRyYWwvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzcwMWZiNWIwLTc5OTEtNDkxYS1hZmU0LWU4MmVjYTJkY2ZhOT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/locations/southeastasia/databaseAzureAsyncOperation/454677b7-39b9-4de3-ac05-9aa56913bec7?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3ODEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3NvdXRoZWFzdGFzaWEvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzQ1NDY3N2I3LTM5YjktNGRlMy1hYzA1LTlhYTU2OTEzYmVjNz9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.26614.01", "OSName/Windows", - "OSVersion/Microsoft.Windows.6.3.9600.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.35.0.0" + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.45.0.0" ] }, "ResponseHeaders": { @@ -3213,7 +3513,7 @@ "no-cache" ], "Date": [ - "Thu, 12 Sep 2019 20:10:06 GMT" + "Tue, 01 Sep 2020 20:31:48 GMT" ], "Pragma": [ "no-cache" @@ -3225,16 +3525,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "054b7b68-b00e-441a-a3e3-b6e6ae7c3a8f" + "4120e250-dae8-46cf-94fe-3038fc873fc0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11959" + "11954" ], "x-ms-correlation-request-id": [ - "38a7a114-c6bc-4e5d-b039-576896a2855e" + "a3fb8207-6b46-47ee-928c-67df61d6bcad" ], "x-ms-routing-request-id": [ - "WESTUS:20190912T201006Z:38a7a114-c6bc-4e5d-b039-576896a2855e" + "WESTUS:20200901T203149Z:a3fb8207-6b46-47ee-928c-67df61d6bcad" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -3243,7 +3543,7 @@ "nosniff" ], "Content-Length": [ - "107" + "106" ], "Content-Type": [ "application/json; charset=utf-8" @@ -3252,20 +3552,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"701fb5b0-7991-491a-afe4-e82eca2dcfa9\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2019-09-12T20:09:51.557Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"454677b7-39b9-4de3-ac05-9aa56913bec7\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2020-09-01T20:31:34.14Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/20dd0210-f0cf-4aba-8439-7d5972412384/resourceGroups/sqlcrudtest-8679/providers/Microsoft.Sql/locations/canadacentral/databaseOperationResults/701fb5b0-7991-491a-afe4-e82eca2dcfa9?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjBkZDAyMTAtZjBjZi00YWJhLTg0MzktN2Q1OTcyNDEyMzg0L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg2NzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2NhbmFkYWNlbnRyYWwvZGF0YWJhc2VPcGVyYXRpb25SZXN1bHRzLzcwMWZiNWIwLTc5OTEtNDkxYS1hZmU0LWU4MmVjYTJkY2ZhOT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/locations/southeastasia/databaseOperationResults/454677b7-39b9-4de3-ac05-9aa56913bec7?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3ODEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3NvdXRoZWFzdGFzaWEvZGF0YWJhc2VPcGVyYXRpb25SZXN1bHRzLzQ1NDY3N2I3LTM5YjktNGRlMy1hYzA1LTlhYTU2OTEzYmVjNz9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.26614.01", "OSName/Windows", - "OSVersion/Microsoft.Windows.6.3.9600.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.35.0.0" + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.45.0.0" ] }, "ResponseHeaders": { @@ -3273,7 +3573,7 @@ "no-cache" ], "Date": [ - "Thu, 12 Sep 2019 20:10:06 GMT" + "Tue, 01 Sep 2020 20:31:48 GMT" ], "Pragma": [ "no-cache" @@ -3282,16 +3582,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "f95831a2-53f2-4c64-893e-00777586668a" + "ac7c52eb-37a9-4b36-9277-209b3dd077f5" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11958" + "11953" ], "x-ms-correlation-request-id": [ - "d5f54a0c-794a-4fd5-872a-b52834015f6e" + "f64c4d73-cf74-4a4e-84a5-2aa2004cd1f2" ], "x-ms-routing-request-id": [ - "WESTUS:20190912T201007Z:d5f54a0c-794a-4fd5-872a-b52834015f6e" + "WESTUS:20200901T203149Z:f64c4d73-cf74-4a4e-84a5-2aa2004cd1f2" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -3310,13 +3610,13 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/20dd0210-f0cf-4aba-8439-7d5972412384/resourceGroups/sqlcrudtest-8679/providers/Microsoft.Sql/servers/sqlcrudtest-1579/databases/sqlcrudtest-788?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjBkZDAyMTAtZjBjZi00YWJhLTg0MzktN2Q1OTcyNDEyMzg0L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg2NzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0xNTc5L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC03ODg/YXBpLXZlcnNpb249MjAxNy0xMC0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/servers/sqlcrudtest-3000/databases/sqlcrudtest-8833?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3ODEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zMDAwL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC04ODMzP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "fa64c8a1-d63b-488b-942b-3c808bd212a2" + "ee1072ca-38f3-4857-b612-addccda0d1e2" ], "accept-language": [ "en-US" @@ -3324,8 +3624,8 @@ "User-Agent": [ "FxVersion/4.6.26614.01", "OSName/Windows", - "OSVersion/Microsoft.Windows.6.3.9600.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.35.0.0" + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.45.0.0" ] }, "ResponseHeaders": { @@ -3333,13 +3633,13 @@ "no-cache" ], "Date": [ - "Thu, 12 Sep 2019 20:10:07 GMT" + "Tue, 01 Sep 2020 20:31:49 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/20dd0210-f0cf-4aba-8439-7d5972412384/resourceGroups/sqlcrudtest-8679/providers/Microsoft.Sql/locations/canadacentral/databaseOperationResults/a1391586-c464-4194-8c52-157dca2e74d6?api-version=2017-10-01-preview" + "https://management.azure.com/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/locations/southeastasia/databaseOperationResults/90085a8e-139a-45b2-a2a8-dd5c3fb21b10?api-version=2017-10-01-preview" ], "Retry-After": [ "15" @@ -3348,19 +3648,19 @@ "Microsoft-HTTPAPI/2.0" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/20dd0210-f0cf-4aba-8439-7d5972412384/resourceGroups/sqlcrudtest-8679/providers/Microsoft.Sql/locations/canadacentral/databaseAzureAsyncOperation/a1391586-c464-4194-8c52-157dca2e74d6?api-version=2017-10-01-preview" + "https://management.azure.com/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/locations/southeastasia/databaseAzureAsyncOperation/90085a8e-139a-45b2-a2a8-dd5c3fb21b10?api-version=2017-10-01-preview" ], "x-ms-request-id": [ - "a1391586-c464-4194-8c52-157dca2e74d6" + "90085a8e-139a-45b2-a2a8-dd5c3fb21b10" ], "x-ms-ratelimit-remaining-subscription-deletes": [ "14996" ], "x-ms-correlation-request-id": [ - "74133cdb-42ba-4f60-b526-57657a40de85" + "0456e2be-43a0-40f8-b897-eedb5935cf3f" ], "x-ms-routing-request-id": [ - "WESTUS:20190912T201007Z:74133cdb-42ba-4f60-b526-57657a40de85" + "WESTUS:20200901T203150Z:0456e2be-43a0-40f8-b897-eedb5935cf3f" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -3378,20 +3678,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"operation\": \"DropLogicalDatabase\",\r\n \"startTime\": \"2019-09-12T20:10:07.567Z\"\r\n}", + "ResponseBody": "{\r\n \"operation\": \"DropLogicalDatabase\",\r\n \"startTime\": \"2020-09-01T20:31:50.357Z\"\r\n}", "StatusCode": 202 }, { - "RequestUri": "/subscriptions/20dd0210-f0cf-4aba-8439-7d5972412384/resourceGroups/sqlcrudtest-8679/providers/Microsoft.Sql/locations/canadacentral/databaseAzureAsyncOperation/a1391586-c464-4194-8c52-157dca2e74d6?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjBkZDAyMTAtZjBjZi00YWJhLTg0MzktN2Q1OTcyNDEyMzg0L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg2NzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2NhbmFkYWNlbnRyYWwvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2ExMzkxNTg2LWM0NjQtNDE5NC04YzUyLTE1N2RjYTJlNzRkNj9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/locations/southeastasia/databaseAzureAsyncOperation/90085a8e-139a-45b2-a2a8-dd5c3fb21b10?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3ODEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3NvdXRoZWFzdGFzaWEvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzkwMDg1YThlLTEzOWEtNDViMi1hMmE4LWRkNWMzZmIyMWIxMD9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.26614.01", "OSName/Windows", - "OSVersion/Microsoft.Windows.6.3.9600.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.35.0.0" + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.45.0.0" ] }, "ResponseHeaders": { @@ -3399,7 +3699,7 @@ "no-cache" ], "Date": [ - "Thu, 12 Sep 2019 20:10:22 GMT" + "Tue, 01 Sep 2020 20:32:05 GMT" ], "Pragma": [ "no-cache" @@ -3411,16 +3711,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "4a9bb820-1cdb-4bf2-a8d0-c46a85611096" + "8eebf1af-812f-4438-902f-7acf362170b8" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11957" + "11952" ], "x-ms-correlation-request-id": [ - "ea263fc6-fcbc-46fd-8d04-bb1e3812b3e4" + "7ce1e825-76fe-4f7e-ad7e-c7489884c25d" ], "x-ms-routing-request-id": [ - "WESTUS:20190912T201022Z:ea263fc6-fcbc-46fd-8d04-bb1e3812b3e4" + "WESTUS:20200901T203205Z:7ce1e825-76fe-4f7e-ad7e-c7489884c25d" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -3438,20 +3738,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"a1391586-c464-4194-8c52-157dca2e74d6\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2019-09-12T20:10:07.567Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"90085a8e-139a-45b2-a2a8-dd5c3fb21b10\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2020-09-01T20:31:50.357Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/20dd0210-f0cf-4aba-8439-7d5972412384/resourceGroups/sqlcrudtest-8679/providers/Microsoft.Sql/locations/canadacentral/databaseOperationResults/a1391586-c464-4194-8c52-157dca2e74d6?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjBkZDAyMTAtZjBjZi00YWJhLTg0MzktN2Q1OTcyNDEyMzg0L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg2NzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2NhbmFkYWNlbnRyYWwvZGF0YWJhc2VPcGVyYXRpb25SZXN1bHRzL2ExMzkxNTg2LWM0NjQtNDE5NC04YzUyLTE1N2RjYTJlNzRkNj9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/locations/southeastasia/databaseOperationResults/90085a8e-139a-45b2-a2a8-dd5c3fb21b10?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3ODEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3NvdXRoZWFzdGFzaWEvZGF0YWJhc2VPcGVyYXRpb25SZXN1bHRzLzkwMDg1YThlLTEzOWEtNDViMi1hMmE4LWRkNWMzZmIyMWIxMD9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.26614.01", "OSName/Windows", - "OSVersion/Microsoft.Windows.6.3.9600.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.35.0.0" + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.45.0.0" ] }, "ResponseHeaders": { @@ -3459,7 +3759,7 @@ "no-cache" ], "Date": [ - "Thu, 12 Sep 2019 20:10:22 GMT" + "Tue, 01 Sep 2020 20:32:05 GMT" ], "Pragma": [ "no-cache" @@ -3468,16 +3768,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "721f86cf-52c8-4105-9aa5-3d0c5e6e3d4b" + "bb3e5913-3b19-43e7-a4a3-7685aacb0d76" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11956" + "11951" ], "x-ms-correlation-request-id": [ - "1e75438b-55e6-4d98-a8dc-0de1987f34bd" + "8b89d80d-1e4a-4ae5-920b-845739d89806" ], "x-ms-routing-request-id": [ - "WESTUS:20190912T201023Z:1e75438b-55e6-4d98-a8dc-0de1987f34bd" + "WESTUS:20200901T203205Z:8b89d80d-1e4a-4ae5-920b-845739d89806" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -3496,13 +3796,13 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/20dd0210-f0cf-4aba-8439-7d5972412384/resourceGroups/sqlcrudtest-8679/providers/Microsoft.Sql/servers/sqlcrudtest-1579/databases/sqlcrudtest-4229?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjBkZDAyMTAtZjBjZi00YWJhLTg0MzktN2Q1OTcyNDEyMzg0L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg2NzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0xNTc5L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC00MjI5P2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/servers/sqlcrudtest-3000/databases/sqlcrudtest-6589?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3ODEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zMDAwL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC02NTg5P2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "ea7debf2-76ba-4c5f-a26f-f99602acf744" + "ec2b693d-1b44-4bb6-8c87-6a01e4a99d5c" ], "accept-language": [ "en-US" @@ -3510,8 +3810,8 @@ "User-Agent": [ "FxVersion/4.6.26614.01", "OSName/Windows", - "OSVersion/Microsoft.Windows.6.3.9600.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.35.0.0" + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.45.0.0" ] }, "ResponseHeaders": { @@ -3519,13 +3819,13 @@ "no-cache" ], "Date": [ - "Thu, 12 Sep 2019 20:10:22 GMT" + "Tue, 01 Sep 2020 20:32:06 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/20dd0210-f0cf-4aba-8439-7d5972412384/resourceGroups/sqlcrudtest-8679/providers/Microsoft.Sql/locations/canadacentral/databaseOperationResults/7ddd3507-eedd-415a-be14-11e4d0eb44c8?api-version=2017-10-01-preview" + "https://management.azure.com/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/locations/southeastasia/databaseOperationResults/47209b6a-33a0-4fd1-8025-209b4793aca2?api-version=2017-10-01-preview" ], "Retry-After": [ "15" @@ -3534,19 +3834,19 @@ "Microsoft-HTTPAPI/2.0" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/20dd0210-f0cf-4aba-8439-7d5972412384/resourceGroups/sqlcrudtest-8679/providers/Microsoft.Sql/locations/canadacentral/databaseAzureAsyncOperation/7ddd3507-eedd-415a-be14-11e4d0eb44c8?api-version=2017-10-01-preview" + "https://management.azure.com/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/locations/southeastasia/databaseAzureAsyncOperation/47209b6a-33a0-4fd1-8025-209b4793aca2?api-version=2017-10-01-preview" ], "x-ms-request-id": [ - "7ddd3507-eedd-415a-be14-11e4d0eb44c8" + "47209b6a-33a0-4fd1-8025-209b4793aca2" ], "x-ms-ratelimit-remaining-subscription-deletes": [ "14995" ], "x-ms-correlation-request-id": [ - "9fe83c8c-1367-4624-9418-e13ba5718c42" + "044e1cab-52e9-48d2-9231-41183ef1d1d0" ], "x-ms-routing-request-id": [ - "WESTUS:20190912T201023Z:9fe83c8c-1367-4624-9418-e13ba5718c42" + "WESTUS:20200901T203206Z:044e1cab-52e9-48d2-9231-41183ef1d1d0" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -3564,20 +3864,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"operation\": \"DropLogicalDatabase\",\r\n \"startTime\": \"2019-09-12T20:10:23.347Z\"\r\n}", + "ResponseBody": "{\r\n \"operation\": \"DropLogicalDatabase\",\r\n \"startTime\": \"2020-09-01T20:32:06.543Z\"\r\n}", "StatusCode": 202 }, { - "RequestUri": "/subscriptions/20dd0210-f0cf-4aba-8439-7d5972412384/resourceGroups/sqlcrudtest-8679/providers/Microsoft.Sql/locations/canadacentral/databaseAzureAsyncOperation/7ddd3507-eedd-415a-be14-11e4d0eb44c8?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjBkZDAyMTAtZjBjZi00YWJhLTg0MzktN2Q1OTcyNDEyMzg0L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg2NzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2NhbmFkYWNlbnRyYWwvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzdkZGQzNTA3LWVlZGQtNDE1YS1iZTE0LTExZTRkMGViNDRjOD9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/locations/southeastasia/databaseAzureAsyncOperation/47209b6a-33a0-4fd1-8025-209b4793aca2?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3ODEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3NvdXRoZWFzdGFzaWEvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzQ3MjA5YjZhLTMzYTAtNGZkMS04MDI1LTIwOWI0NzkzYWNhMj9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.26614.01", "OSName/Windows", - "OSVersion/Microsoft.Windows.6.3.9600.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.35.0.0" + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.45.0.0" ] }, "ResponseHeaders": { @@ -3585,7 +3885,7 @@ "no-cache" ], "Date": [ - "Thu, 12 Sep 2019 20:10:38 GMT" + "Tue, 01 Sep 2020 20:32:21 GMT" ], "Pragma": [ "no-cache" @@ -3597,16 +3897,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "13079e5e-6a3c-4055-9ccf-0a95de25b9d3" + "1a4f6db9-8c20-4426-b6d9-9a1363e7dcbd" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11955" + "11950" ], "x-ms-correlation-request-id": [ - "d2c61e7a-36e0-440d-aa52-3d88110f1c4f" + "afe9d578-4bf5-4a17-aaf1-f0049e421acf" ], "x-ms-routing-request-id": [ - "WESTUS:20190912T201038Z:d2c61e7a-36e0-440d-aa52-3d88110f1c4f" + "WESTUS:20200901T203221Z:afe9d578-4bf5-4a17-aaf1-f0049e421acf" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -3624,20 +3924,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"7ddd3507-eedd-415a-be14-11e4d0eb44c8\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2019-09-12T20:10:23.347Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"47209b6a-33a0-4fd1-8025-209b4793aca2\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2020-09-01T20:32:06.543Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/20dd0210-f0cf-4aba-8439-7d5972412384/resourceGroups/sqlcrudtest-8679/providers/Microsoft.Sql/locations/canadacentral/databaseOperationResults/7ddd3507-eedd-415a-be14-11e4d0eb44c8?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjBkZDAyMTAtZjBjZi00YWJhLTg0MzktN2Q1OTcyNDEyMzg0L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg2NzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2NhbmFkYWNlbnRyYWwvZGF0YWJhc2VPcGVyYXRpb25SZXN1bHRzLzdkZGQzNTA3LWVlZGQtNDE1YS1iZTE0LTExZTRkMGViNDRjOD9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/locations/southeastasia/databaseOperationResults/47209b6a-33a0-4fd1-8025-209b4793aca2?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3ODEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3NvdXRoZWFzdGFzaWEvZGF0YWJhc2VPcGVyYXRpb25SZXN1bHRzLzQ3MjA5YjZhLTMzYTAtNGZkMS04MDI1LTIwOWI0NzkzYWNhMj9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.26614.01", "OSName/Windows", - "OSVersion/Microsoft.Windows.6.3.9600.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.35.0.0" + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.45.0.0" ] }, "ResponseHeaders": { @@ -3645,7 +3945,7 @@ "no-cache" ], "Date": [ - "Thu, 12 Sep 2019 20:10:38 GMT" + "Tue, 01 Sep 2020 20:32:22 GMT" ], "Pragma": [ "no-cache" @@ -3654,16 +3954,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "301b47e3-aa7c-4e54-8fe8-c459d8123df8" + "4d401121-3023-41df-a0c9-ef4b38e2f687" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11954" + "11949" ], "x-ms-correlation-request-id": [ - "dac8dc57-b842-4e87-86fc-9aacd39fa0ee" + "9098901c-3dda-48bc-af39-bfa4e2552b60" ], "x-ms-routing-request-id": [ - "WESTUS:20190912T201038Z:dac8dc57-b842-4e87-86fc-9aacd39fa0ee" + "WESTUS:20200901T203222Z:9098901c-3dda-48bc-af39-bfa4e2552b60" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -3682,13 +3982,13 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/20dd0210-f0cf-4aba-8439-7d5972412384/resourceGroups/sqlcrudtest-8679/providers/Microsoft.Sql/servers/sqlcrudtest-1579/databases/sqlcrudtest-6958?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjBkZDAyMTAtZjBjZi00YWJhLTg0MzktN2Q1OTcyNDEyMzg0L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg2NzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0xNTc5L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC02OTU4P2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/servers/sqlcrudtest-3000/databases/sqlcrudtest-1042?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3ODEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zMDAwL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC0xMDQyP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "b801237b-0699-49fc-ad81-39eafec16966" + "91c82ad1-7989-4d68-bedb-db8b88c1b629" ], "accept-language": [ "en-US" @@ -3696,8 +3996,8 @@ "User-Agent": [ "FxVersion/4.6.26614.01", "OSName/Windows", - "OSVersion/Microsoft.Windows.6.3.9600.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.35.0.0" + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.45.0.0" ] }, "ResponseHeaders": { @@ -3705,13 +4005,13 @@ "no-cache" ], "Date": [ - "Thu, 12 Sep 2019 20:10:38 GMT" + "Tue, 01 Sep 2020 20:32:22 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/20dd0210-f0cf-4aba-8439-7d5972412384/resourceGroups/sqlcrudtest-8679/providers/Microsoft.Sql/locations/canadacentral/databaseOperationResults/049e1487-84e5-43e8-82c7-5ff336e62ed7?api-version=2017-10-01-preview" + "https://management.azure.com/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/locations/southeastasia/databaseOperationResults/68975597-626a-4abb-8c26-706e6db2458d?api-version=2017-10-01-preview" ], "Retry-After": [ "15" @@ -3720,19 +4020,19 @@ "Microsoft-HTTPAPI/2.0" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/20dd0210-f0cf-4aba-8439-7d5972412384/resourceGroups/sqlcrudtest-8679/providers/Microsoft.Sql/locations/canadacentral/databaseAzureAsyncOperation/049e1487-84e5-43e8-82c7-5ff336e62ed7?api-version=2017-10-01-preview" + "https://management.azure.com/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/locations/southeastasia/databaseAzureAsyncOperation/68975597-626a-4abb-8c26-706e6db2458d?api-version=2017-10-01-preview" ], "x-ms-request-id": [ - "049e1487-84e5-43e8-82c7-5ff336e62ed7" + "68975597-626a-4abb-8c26-706e6db2458d" ], "x-ms-ratelimit-remaining-subscription-deletes": [ "14994" ], "x-ms-correlation-request-id": [ - "1d086ef5-5fd0-492d-b821-02301cdcf780" + "640a38e0-bc7b-4167-9648-5be0ca7ea828" ], "x-ms-routing-request-id": [ - "WESTUS:20190912T201039Z:1d086ef5-5fd0-492d-b821-02301cdcf780" + "WESTUS:20200901T203222Z:640a38e0-bc7b-4167-9648-5be0ca7ea828" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -3750,20 +4050,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"operation\": \"DropLogicalDatabase\",\r\n \"startTime\": \"2019-09-12T20:10:39.003Z\"\r\n}", + "ResponseBody": "{\r\n \"operation\": \"DropLogicalDatabase\",\r\n \"startTime\": \"2020-09-01T20:32:22.623Z\"\r\n}", "StatusCode": 202 }, { - "RequestUri": "/subscriptions/20dd0210-f0cf-4aba-8439-7d5972412384/resourceGroups/sqlcrudtest-8679/providers/Microsoft.Sql/locations/canadacentral/databaseAzureAsyncOperation/049e1487-84e5-43e8-82c7-5ff336e62ed7?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjBkZDAyMTAtZjBjZi00YWJhLTg0MzktN2Q1OTcyNDEyMzg0L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg2NzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2NhbmFkYWNlbnRyYWwvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzA0OWUxNDg3LTg0ZTUtNDNlOC04MmM3LTVmZjMzNmU2MmVkNz9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/locations/southeastasia/databaseAzureAsyncOperation/68975597-626a-4abb-8c26-706e6db2458d?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3ODEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3NvdXRoZWFzdGFzaWEvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzY4OTc1NTk3LTYyNmEtNGFiYi04YzI2LTcwNmU2ZGIyNDU4ZD9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.26614.01", "OSName/Windows", - "OSVersion/Microsoft.Windows.6.3.9600.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.35.0.0" + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.45.0.0" ] }, "ResponseHeaders": { @@ -3771,7 +4071,7 @@ "no-cache" ], "Date": [ - "Thu, 12 Sep 2019 20:10:53 GMT" + "Tue, 01 Sep 2020 20:32:37 GMT" ], "Pragma": [ "no-cache" @@ -3783,16 +4083,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "cf24e19e-f875-43ed-9a34-9339fb26664a" + "99f2428c-20f9-44e3-8a20-3cc701067304" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11953" + "11948" ], "x-ms-correlation-request-id": [ - "171264be-e620-42c9-b645-4cc13c5df025" + "b16beaea-d57a-4dd4-8d24-de0bf5b5ec5f" ], "x-ms-routing-request-id": [ - "WESTUS:20190912T201054Z:171264be-e620-42c9-b645-4cc13c5df025" + "WESTUS:20200901T203238Z:b16beaea-d57a-4dd4-8d24-de0bf5b5ec5f" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -3810,20 +4110,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"049e1487-84e5-43e8-82c7-5ff336e62ed7\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2019-09-12T20:10:39.003Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"68975597-626a-4abb-8c26-706e6db2458d\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2020-09-01T20:32:22.623Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/20dd0210-f0cf-4aba-8439-7d5972412384/resourceGroups/sqlcrudtest-8679/providers/Microsoft.Sql/locations/canadacentral/databaseOperationResults/049e1487-84e5-43e8-82c7-5ff336e62ed7?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjBkZDAyMTAtZjBjZi00YWJhLTg0MzktN2Q1OTcyNDEyMzg0L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg2NzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2NhbmFkYWNlbnRyYWwvZGF0YWJhc2VPcGVyYXRpb25SZXN1bHRzLzA0OWUxNDg3LTg0ZTUtNDNlOC04MmM3LTVmZjMzNmU2MmVkNz9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/locations/southeastasia/databaseOperationResults/68975597-626a-4abb-8c26-706e6db2458d?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3ODEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3NvdXRoZWFzdGFzaWEvZGF0YWJhc2VPcGVyYXRpb25SZXN1bHRzLzY4OTc1NTk3LTYyNmEtNGFiYi04YzI2LTcwNmU2ZGIyNDU4ZD9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.26614.01", "OSName/Windows", - "OSVersion/Microsoft.Windows.6.3.9600.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.35.0.0" + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.45.0.0" ] }, "ResponseHeaders": { @@ -3831,7 +4131,7 @@ "no-cache" ], "Date": [ - "Thu, 12 Sep 2019 20:10:54 GMT" + "Tue, 01 Sep 2020 20:32:38 GMT" ], "Pragma": [ "no-cache" @@ -3840,16 +4140,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "75f2b7ba-4396-4a2e-a119-ac741b93b473" + "c68b4525-7669-425f-808c-2a6e876681a8" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11952" + "11947" ], "x-ms-correlation-request-id": [ - "cfbde2e7-a6bb-4349-aae6-f69829d0e724" + "dcdae1c7-e722-48b3-9e3a-a3164e801450" ], "x-ms-routing-request-id": [ - "WESTUS:20190912T201054Z:cfbde2e7-a6bb-4349-aae6-f69829d0e724" + "WESTUS:20200901T203238Z:dcdae1c7-e722-48b3-9e3a-a3164e801450" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -3868,13 +4168,13 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/20dd0210-f0cf-4aba-8439-7d5972412384/resourcegroups/sqlcrudtest-8679?api-version=2017-05-10", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjBkZDAyMTAtZjBjZi00YWJhLTg0MzktN2Q1OTcyNDEyMzg0L3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTg2Nzk/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourcegroups/sqlcrudtest-8781?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTg3ODE/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "6fbce6e5-3819-4702-bc1f-5a732d5e7a3d" + "07548621-a07b-413c-a0ff-9ef85a4b085a" ], "accept-language": [ "en-US" @@ -3882,7 +4182,7 @@ "User-Agent": [ "FxVersion/4.6.26614.01", "OSName/Windows", - "OSVersion/Microsoft.Windows.6.3.9600.", + "OSVersion/Microsoft.Windows.10.0.14393.", "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" ] }, @@ -3891,13 +4191,13 @@ "no-cache" ], "Date": [ - "Thu, 12 Sep 2019 20:10:56 GMT" + "Tue, 01 Sep 2020 20:32:41 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/20dd0210-f0cf-4aba-8439-7d5972412384/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDg2NzktQ0FOQURBQ0VOVFJBTCIsImpvYkxvY2F0aW9uIjoiY2FuYWRhY2VudHJhbCJ9?api-version=2017-05-10" + "https://management.azure.com/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDg3ODEtU09VVEhFQVNUQVNJQSIsImpvYkxvY2F0aW9uIjoic291dGhlYXN0YXNpYSJ9?api-version=2017-05-10" ], "Retry-After": [ "15" @@ -3906,13 +4206,13 @@ "14999" ], "x-ms-request-id": [ - "cae5fc94-bc9d-42dc-b149-95554066fe5b" + "498adf67-8913-4e03-a3ab-e13d9a187352" ], "x-ms-correlation-request-id": [ - "cae5fc94-bc9d-42dc-b149-95554066fe5b" + "498adf67-8913-4e03-a3ab-e13d9a187352" ], "x-ms-routing-request-id": [ - "WESTUS:20190912T201057Z:cae5fc94-bc9d-42dc-b149-95554066fe5b" + "WESTUS:20200901T203242Z:498adf67-8913-4e03-a3ab-e13d9a187352" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -3933,22 +4233,22 @@ ], "Names": { "CreateResourceGroup": [ - "sqlcrudtest-8679" + "sqlcrudtest-8781" ], "CreateServer": [ - "sqlcrudtest-1579" + "sqlcrudtest-3000" ], "TestCreateDropDatabase": [ - "sqlcrudtest-6953", - "sqlcrudtest-7162", - "sqlcrudtest-3342", - "sqlcrudtest-788", - "sqlcrudtest-4229", - "sqlcrudtest-6958" + "sqlcrudtest-1701", + "sqlcrudtest-4254", + "sqlcrudtest-7309", + "sqlcrudtest-8833", + "sqlcrudtest-6589", + "sqlcrudtest-1042" ] }, "Variables": { - "SubscriptionId": "20dd0210-f0cf-4aba-8439-7d5972412384", - "DefaultLocation": "canada central" + "SubscriptionId": "11c44a64-fef8-4f3b-bd24-5fea1c769ed5", + "DefaultLocation": "Southeast Asia" } } \ No newline at end of file diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/tests/Utilities/SqlManagementTestUtilities.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/tests/Utilities/SqlManagementTestUtilities.cs index 8a5e7d1b0e8e..2c61370962f0 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/tests/Utilities/SqlManagementTestUtilities.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/tests/Utilities/SqlManagementTestUtilities.cs @@ -147,7 +147,7 @@ public static void ValidateManagedInstance(ManagedInstance actual, string name, // Location is being returned two different ways across different APIs. Assert.Equal(location.ToLower().Replace(" ", ""), actual.Location.ToLower().Replace(" ", "")); } - + public static void ValidateManagedInstanceOperation(ManagedInstanceOperation actual, string operationName, string operationFriendlyName, int percentComplete, string state, bool isCancellable) { Assert.NotNull(actual); @@ -222,6 +222,11 @@ public static void ValidateDatabase(dynamic expected, Database actual, string na { Assert.Equal(expected.ReadReplicaCount, actual.ReadReplicaCount); } + + if (!string.IsNullOrEmpty(expected.StorageAccountType)) + { + Assert.Equal(expected.StorageAccountType, actual.StorageAccountType); + } } public static void ValidateDatabaseEx(Database expected, Database actual) From 2886c9a92600f81a75598e376ed825fcbd4d0578 Mon Sep 17 00:00:00 2001 From: Brandon Greenwood Date: Thu, 3 Sep 2020 14:48:14 -0700 Subject: [PATCH 08/19] Fix the new ImportExportScenarioTests --- .../TestImportExistingDatabase.json | 2300 +++++++------- .../TestImportNewDatabase.json | 2431 +++++++++------ .../TestImportExistingDatabase.json | 2536 ---------------- .../SessionRecords/TestImportNewDatabase.json | 2637 ----------------- 4 files changed, 2732 insertions(+), 7172 deletions(-) delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/tests/SessionRecords/TestImportExistingDatabase.json delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/tests/SessionRecords/TestImportNewDatabase.json diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/tests/SessionRecords/ImportExportScenarioTests/TestImportExistingDatabase.json b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/tests/SessionRecords/ImportExportScenarioTests/TestImportExistingDatabase.json index 35b95d923d72..ab66e3924f3e 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/tests/SessionRecords/ImportExportScenarioTests/TestImportExistingDatabase.json +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/tests/SessionRecords/ImportExportScenarioTests/TestImportExistingDatabase.json @@ -1,114 +1,108 @@ { "Entries": [ { - "RequestUri": "/subscriptions/df7c055c-6310-4374-9852-10ef71ce5f85/resourcegroups/sqlcrudtest-8751?api-version=2017-05-10", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGY3YzA1NWMtNjMxMC00Mzc0LTk4NTItMTBlZjcxY2U1Zjg1L3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTg3NTE/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourcegroups/sqlcrudtest-7317?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTczMTc/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"location\": \"West Europe\",\r\n \"tags\": {\r\n \"sqlcrudtest-8751\": \"2018-03-28 19:12:22Z\"\r\n }\r\n}", + "RequestBody": "{\r\n \"location\": \"West Central US\",\r\n \"tags\": {\r\n \"sqlcrudtest-7317\": \"2020-09-03 19:47:14Z\"\r\n }\r\n}", "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "100" - ], "x-ms-client-request-id": [ - "07a86aa3-4bfa-410d-866b-72236d10728f" + "85c9997b-b877-419c-bfbe-19477b5a9ae3" ], "accept-language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.26201.01", + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/df7c055c-6310-4374-9852-10ef71ce5f85/resourceGroups/sqlcrudtest-8751\",\r\n \"name\": \"sqlcrudtest-8751\",\r\n \"location\": \"westeurope\",\r\n \"tags\": {\r\n \"sqlcrudtest-8751\": \"2018-03-28 19:12:22Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "240" ], "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ - "-1" - ], + "Content-Length": [ + "104" + ] + }, + "ResponseHeaders": { "Cache-Control": [ "no-cache" ], "Date": [ - "Wed, 28 Mar 2018 19:12:24 GMT" + "Thu, 03 Sep 2020 19:47:22 GMT" ], "Pragma": [ "no-cache" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1198" + "1195" ], "x-ms-request-id": [ - "10893448-c27f-4219-943d-f4c6e0e3b57d" + "fd37114f-b4ec-4e5e-a56d-338b9791bdf5" ], "x-ms-correlation-request-id": [ - "10893448-c27f-4219-943d-f4c6e0e3b57d" + "fd37114f-b4ec-4e5e-a56d-338b9791bdf5" ], "x-ms-routing-request-id": [ - "WESTUS2:20180328T191224Z:10893448-c27f-4219-943d-f4c6e0e3b57d" + "BRAZILUS:20200903T194722Z:fd37114f-b4ec-4e5e-a56d-338b9791bdf5" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" + ], + "Content-Length": [ + "243" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" ] }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317\",\r\n \"name\": \"sqlcrudtest-7317\",\r\n \"location\": \"westcentralus\",\r\n \"tags\": {\r\n \"sqlcrudtest-7317\": \"2020-09-03 19:47:14Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", "StatusCode": 201 }, { - "RequestUri": "/subscriptions/df7c055c-6310-4374-9852-10ef71ce5f85/resourceGroups/sqlcrudtest-8751/providers/Microsoft.Sql/servers/sqlcrudtest-4278?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGY3YzA1NWMtNjMxMC00Mzc0LTk4NTItMTBlZjcxY2U1Zjg1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3NTEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC00Mjc4P2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Sql/servers/sqlcrudtest-8696?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczMTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC04Njk2P2FwaS12ZXJzaW9uPTIwMTktMDYtMDEtcHJldmlldw==", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"administratorLogin\": \"dummylogin\",\r\n \"administratorLoginPassword\": \"Un53cuRE!\",\r\n \"version\": \"12.0\"\r\n },\r\n \"tags\": {},\r\n \"location\": \"West Europe\"\r\n}", + "RequestBody": "{\r\n \"properties\": {\r\n \"administratorLogin\": \"dummylogin\",\r\n \"administratorLoginPassword\": \"Un53cuRE!\",\r\n \"version\": \"12.0\"\r\n },\r\n \"location\": \"West Central US\",\r\n \"tags\": {}\r\n}", "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "185" - ], "x-ms-client-request-id": [ - "c500761e-70f2-45e9-abb5-43fdfb7520e6" + "ff5f86e5-acf2-4312-b1fd-8ce70dfac9a4" ], "accept-language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.26201.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.13.0.0" - ] - }, - "ResponseBody": "{\r\n \"operation\": \"UpsertLogicalServer\",\r\n \"startTime\": \"2018-03-28T19:12:29.993Z\"\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "74" + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" ], "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ - "-1" - ], + "Content-Length": [ + "189" + ] + }, + "ResponseHeaders": { "Cache-Control": [ "no-cache" ], "Date": [ - "Wed, 28 Mar 2018 19:12:29 GMT" + "Thu, 03 Sep 2020 19:47:31 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/df7c055c-6310-4374-9852-10ef71ce5f85/resourceGroups/sqlcrudtest-8751/providers/Microsoft.Sql/locations/westeurope/serverOperationResults/37f80e9f-4cd5-4351-9d83-e80a8f13e898?api-version=2015-05-01-preview" + "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Sql/locations/westcentralus/serverOperationResults/d3b266f9-ad6a-47d4-afd8-42d291ea8adc?api-version=2019-06-01-preview" ], "Retry-After": [ "1" @@ -117,520 +111,623 @@ "Microsoft-HTTPAPI/2.0" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/df7c055c-6310-4374-9852-10ef71ce5f85/resourceGroups/sqlcrudtest-8751/providers/Microsoft.Sql/locations/westeurope/serverAzureAsyncOperation/37f80e9f-4cd5-4351-9d83-e80a8f13e898?api-version=2015-05-01-preview" + "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Sql/locations/westcentralus/serverAzureAsyncOperation/d3b266f9-ad6a-47d4-afd8-42d291ea8adc?api-version=2019-06-01-preview" ], "x-ms-request-id": [ - "37f80e9f-4cd5-4351-9d83-e80a8f13e898" + "d3b266f9-ad6a-47d4-afd8-42d291ea8adc" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1195" + "1193" ], "x-ms-correlation-request-id": [ - "d472011c-239b-43f5-8c21-e31d46b39572" + "82aef4af-ffe9-45e3-8c8d-c61a7ac9d3e9" ], "x-ms-routing-request-id": [ - "WESTUS2:20180328T191230Z:d472011c-239b-43f5-8c21-e31d46b39572" + "BRAZILUS:20200903T194731Z:82aef4af-ffe9-45e3-8c8d-c61a7ac9d3e9" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" + ], + "Content-Length": [ + "73" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" ] }, + "ResponseBody": "{\r\n \"operation\": \"UpsertLogicalServer\",\r\n \"startTime\": \"2020-09-03T19:47:31.32Z\"\r\n}", "StatusCode": 202 }, { - "RequestUri": "/subscriptions/df7c055c-6310-4374-9852-10ef71ce5f85/resourceGroups/sqlcrudtest-8751/providers/Microsoft.Sql/locations/westeurope/serverAzureAsyncOperation/37f80e9f-4cd5-4351-9d83-e80a8f13e898?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGY3YzA1NWMtNjMxMC00Mzc0LTk4NTItMTBlZjcxY2U1Zjg1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3NTEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RldXJvcGUvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi8zN2Y4MGU5Zi00Y2Q1LTQzNTEtOWQ4My1lODBhOGYxM2U4OTg/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Sql/locations/westcentralus/serverAzureAsyncOperation/d3b266f9-ad6a-47d4-afd8-42d291ea8adc?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczMTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9kM2IyNjZmOS1hZDZhLTQ3ZDQtYWZkOC00MmQyOTFlYThhZGM/YXBpLXZlcnNpb249MjAxOS0wNi0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.26201.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.13.0.0" + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" ] }, - "ResponseBody": "{\r\n \"name\": \"37f80e9f-4cd5-4351-9d83-e80a8f13e898\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-03-28T19:12:29.993Z\"\r\n}", "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], "Cache-Control": [ "no-cache" ], "Date": [ - "Wed, 28 Mar 2018 19:12:39 GMT" + "Thu, 03 Sep 2020 19:47:32 GMT" ], "Pragma": [ "no-cache" ], - "Transfer-Encoding": [ - "chunked" - ], "Retry-After": [ - "20" + "1" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], - "Vary": [ - "Accept-Encoding" - ], "x-ms-request-id": [ - "727ae2a0-277e-4cab-9e57-11e9957a829a" + "99529140-904a-4709-a3da-b74bf7eb5805" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14997" + "11981" ], "x-ms-correlation-request-id": [ - "8aa0bc92-37d8-4dfe-88ec-542471775b59" + "5c2d5be8-a62e-44b4-8820-d603adf1fb6c" ], "x-ms-routing-request-id": [ - "WESTUS2:20180328T191240Z:8aa0bc92-37d8-4dfe-88ec-542471775b59" + "BRAZILUS:20200903T194732Z:5c2d5be8-a62e-44b4-8820-d603adf1fb6c" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" ] }, + "ResponseBody": "{\r\n \"name\": \"d3b266f9-ad6a-47d4-afd8-42d291ea8adc\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T19:47:31.32Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/df7c055c-6310-4374-9852-10ef71ce5f85/resourceGroups/sqlcrudtest-8751/providers/Microsoft.Sql/locations/westeurope/serverAzureAsyncOperation/37f80e9f-4cd5-4351-9d83-e80a8f13e898?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGY3YzA1NWMtNjMxMC00Mzc0LTk4NTItMTBlZjcxY2U1Zjg1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3NTEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RldXJvcGUvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi8zN2Y4MGU5Zi00Y2Q1LTQzNTEtOWQ4My1lODBhOGYxM2U4OTg/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Sql/locations/westcentralus/serverAzureAsyncOperation/d3b266f9-ad6a-47d4-afd8-42d291ea8adc?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczMTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9kM2IyNjZmOS1hZDZhLTQ3ZDQtYWZkOC00MmQyOTFlYThhZGM/YXBpLXZlcnNpb249MjAxOS0wNi0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.26201.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.13.0.0" + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" ] }, - "ResponseBody": "{\r\n \"name\": \"37f80e9f-4cd5-4351-9d83-e80a8f13e898\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-03-28T19:12:29.993Z\"\r\n}", "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], "Cache-Control": [ "no-cache" ], "Date": [ - "Wed, 28 Mar 2018 19:12:59 GMT" + "Thu, 03 Sep 2020 19:47:33 GMT" ], "Pragma": [ "no-cache" ], - "Transfer-Encoding": [ - "chunked" - ], "Retry-After": [ - "20" + "1" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], - "Vary": [ - "Accept-Encoding" - ], "x-ms-request-id": [ - "fcc8f17f-0884-4c30-a18f-874629fe2ae8" + "5cfc2c71-a682-4d56-bf62-3a54919f0ef0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14996" + "11980" ], "x-ms-correlation-request-id": [ - "78b466cd-17fc-47b3-a220-84d53480b73c" + "1a4c85fe-8c79-4fce-b17e-10073e67d046" ], "x-ms-routing-request-id": [ - "WESTUS2:20180328T191300Z:78b466cd-17fc-47b3-a220-84d53480b73c" + "BRAZILUS:20200903T194733Z:1a4c85fe-8c79-4fce-b17e-10073e67d046" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" ] }, + "ResponseBody": "{\r\n \"name\": \"d3b266f9-ad6a-47d4-afd8-42d291ea8adc\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T19:47:31.32Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/df7c055c-6310-4374-9852-10ef71ce5f85/resourceGroups/sqlcrudtest-8751/providers/Microsoft.Sql/locations/westeurope/serverAzureAsyncOperation/37f80e9f-4cd5-4351-9d83-e80a8f13e898?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGY3YzA1NWMtNjMxMC00Mzc0LTk4NTItMTBlZjcxY2U1Zjg1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3NTEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RldXJvcGUvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi8zN2Y4MGU5Zi00Y2Q1LTQzNTEtOWQ4My1lODBhOGYxM2U4OTg/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Sql/locations/westcentralus/serverAzureAsyncOperation/d3b266f9-ad6a-47d4-afd8-42d291ea8adc?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczMTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9kM2IyNjZmOS1hZDZhLTQ3ZDQtYWZkOC00MmQyOTFlYThhZGM/YXBpLXZlcnNpb249MjAxOS0wNi0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.26201.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.13.0.0" + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" ] }, - "ResponseBody": "{\r\n \"name\": \"37f80e9f-4cd5-4351-9d83-e80a8f13e898\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-03-28T19:12:29.993Z\"\r\n}", "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], "Cache-Control": [ "no-cache" ], "Date": [ - "Wed, 28 Mar 2018 19:13:19 GMT" + "Thu, 03 Sep 2020 19:47:34 GMT" ], "Pragma": [ "no-cache" ], - "Transfer-Encoding": [ - "chunked" - ], "Retry-After": [ - "20" + "1" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], - "Vary": [ - "Accept-Encoding" - ], "x-ms-request-id": [ - "f60daf5f-0f4d-49fb-8589-87edbb192387" + "cade43cc-6fad-463c-b4f5-a6f63f6ee3c1" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14995" + "11979" ], "x-ms-correlation-request-id": [ - "d2992cb0-98da-4021-883a-65ea11081e54" + "36b352ed-8bd8-4634-bb23-b725795144fd" ], "x-ms-routing-request-id": [ - "WESTUS2:20180328T191320Z:d2992cb0-98da-4021-883a-65ea11081e54" + "BRAZILUS:20200903T194734Z:36b352ed-8bd8-4634-bb23-b725795144fd" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" ] }, + "ResponseBody": "{\r\n \"name\": \"d3b266f9-ad6a-47d4-afd8-42d291ea8adc\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T19:47:31.32Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/df7c055c-6310-4374-9852-10ef71ce5f85/resourceGroups/sqlcrudtest-8751/providers/Microsoft.Sql/locations/westeurope/serverAzureAsyncOperation/37f80e9f-4cd5-4351-9d83-e80a8f13e898?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGY3YzA1NWMtNjMxMC00Mzc0LTk4NTItMTBlZjcxY2U1Zjg1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3NTEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RldXJvcGUvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi8zN2Y4MGU5Zi00Y2Q1LTQzNTEtOWQ4My1lODBhOGYxM2U4OTg/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Sql/locations/westcentralus/serverAzureAsyncOperation/d3b266f9-ad6a-47d4-afd8-42d291ea8adc?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczMTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9kM2IyNjZmOS1hZDZhLTQ3ZDQtYWZkOC00MmQyOTFlYThhZGM/YXBpLXZlcnNpb249MjAxOS0wNi0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.26201.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.13.0.0" + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" ] }, - "ResponseBody": "{\r\n \"name\": \"37f80e9f-4cd5-4351-9d83-e80a8f13e898\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-03-28T19:12:29.993Z\"\r\n}", "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], "Cache-Control": [ "no-cache" ], "Date": [ - "Wed, 28 Mar 2018 19:13:40 GMT" + "Thu, 03 Sep 2020 19:47:36 GMT" ], "Pragma": [ "no-cache" ], - "Transfer-Encoding": [ - "chunked" - ], "Retry-After": [ - "15" + "1" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], - "Vary": [ - "Accept-Encoding" - ], "x-ms-request-id": [ - "9aedbf12-ef0f-4081-8948-19d2f64f7481" + "532f7bb8-18dc-43be-936f-7d49ab209f8d" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14994" + "11978" ], "x-ms-correlation-request-id": [ - "4d5a52d8-ed74-47c0-ae31-335bdfbf7bb8" + "18368dc8-f720-4d2f-aa9f-9d4db9d1dcee" ], "x-ms-routing-request-id": [ - "WESTUS2:20180328T191340Z:4d5a52d8-ed74-47c0-ae31-335bdfbf7bb8" + "BRAZILUS:20200903T194736Z:18368dc8-f720-4d2f-aa9f-9d4db9d1dcee" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" ] }, + "ResponseBody": "{\r\n \"name\": \"d3b266f9-ad6a-47d4-afd8-42d291ea8adc\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T19:47:31.32Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/df7c055c-6310-4374-9852-10ef71ce5f85/resourceGroups/sqlcrudtest-8751/providers/Microsoft.Sql/servers/sqlcrudtest-4278?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGY3YzA1NWMtNjMxMC00Mzc0LTk4NTItMTBlZjcxY2U1Zjg1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3NTEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC00Mjc4P2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Sql/locations/westcentralus/serverAzureAsyncOperation/d3b266f9-ad6a-47d4-afd8-42d291ea8adc?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczMTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9kM2IyNjZmOS1hZDZhLTQ3ZDQtYWZkOC00MmQyOTFlYThhZGM/YXBpLXZlcnNpb249MjAxOS0wNi0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.26201.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.13.0.0" + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" ] }, - "ResponseBody": "{\r\n \"kind\": \"v12.0\",\r\n \"properties\": {\r\n \"administratorLogin\": \"dummylogin\",\r\n \"version\": \"12.0\",\r\n \"state\": \"Ready\",\r\n \"fullyQualifiedDomainName\": \"sqlcrudtest-4278.database.windows.net\"\r\n },\r\n \"location\": \"westeurope\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/df7c055c-6310-4374-9852-10ef71ce5f85/resourceGroups/sqlcrudtest-8751/providers/Microsoft.Sql/servers/sqlcrudtest-4278\",\r\n \"name\": \"sqlcrudtest-4278\",\r\n \"type\": \"Microsoft.Sql/servers\"\r\n}", "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], "Cache-Control": [ "no-cache" ], "Date": [ - "Wed, 28 Mar 2018 19:13:40 GMT" + "Thu, 03 Sep 2020 19:47:37 GMT" ], "Pragma": [ "no-cache" ], - "Transfer-Encoding": [ - "chunked" + "Retry-After": [ + "20" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], - "Vary": [ - "Accept-Encoding" - ], "x-ms-request-id": [ - "580eafa7-cbfa-4d7c-9339-5d5a629e39dc" + "59cba294-d5f3-41a7-a5b2-c6774d55b035" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14993" + "11977" ], "x-ms-correlation-request-id": [ - "dbdfac73-af9c-45a1-8cd2-9f3710844a25" + "6dd20abf-b72e-4575-8104-2c50fd30296c" ], "x-ms-routing-request-id": [ - "WESTUS2:20180328T191341Z:dbdfac73-af9c-45a1-8cd2-9f3710844a25" + "BRAZILUS:20200903T194737Z:6dd20abf-b72e-4575-8104-2c50fd30296c" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" ] }, + "ResponseBody": "{\r\n \"name\": \"d3b266f9-ad6a-47d4-afd8-42d291ea8adc\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T19:47:31.32Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/df7c055c-6310-4374-9852-10ef71ce5f85/resourceGroups/sqlcrudtest-8751/providers/Microsoft.Sql/servers/sqlcrudtest-4278/firewallRules/sqlcrudtest-7057?api-version=2014-04-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGY3YzA1NWMtNjMxMC00Mzc0LTk4NTItMTBlZjcxY2U1Zjg1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3NTEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC00Mjc4L2ZpcmV3YWxsUnVsZXMvc3FsY3J1ZHRlc3QtNzA1Nz9hcGktdmVyc2lvbj0yMDE0LTA0LTAx", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"startIpAddress\": \"0.0.0.0\",\r\n \"endIpAddress\": \"255.255.255.255\"\r\n }\r\n}", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Sql/locations/westcentralus/serverAzureAsyncOperation/d3b266f9-ad6a-47d4-afd8-42d291ea8adc?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczMTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9kM2IyNjZmOS1hZDZhLTQ3ZDQtYWZkOC00MmQyOTFlYThhZGM/YXBpLXZlcnNpb249MjAxOS0wNi0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "101" - ], - "x-ms-client-request-id": [ - "b4e9f5a0-2228-4527-aaae-ad4434f42bff" - ], - "accept-language": [ - "en-US" - ], "User-Agent": [ - "FxVersion/4.6.26201.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.13.0.0" + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/df7c055c-6310-4374-9852-10ef71ce5f85/resourceGroups/sqlcrudtest-8751/providers/Microsoft.Sql/servers/sqlcrudtest-4278/firewallRules/sqlcrudtest-7057\",\r\n \"name\": \"sqlcrudtest-7057\",\r\n \"type\": \"Microsoft.Sql/servers/firewallRules\",\r\n \"location\": \"West Europe\",\r\n \"kind\": \"v12.0\",\r\n \"properties\": {\r\n \"startIpAddress\": \"0.0.0.0\",\r\n \"endIpAddress\": \"255.255.255.255\"\r\n }\r\n}", "ResponseHeaders": { - "Content-Length": [ - "358" - ], - "Content-Type": [ - "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" - ], "Cache-Control": [ - "no-store, no-cache" + "no-cache" ], "Date": [ - "Wed, 28 Mar 2018 19:13:43 GMT" + "Thu, 03 Sep 2020 19:47:56 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "20" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "5a551969-297c-4f05-a4fa-e1f9848bd9ed" + "aaa26fad-fda1-44d9-9c63-2c037f7e967a" ], - "X-Content-Type-Options": [ - "nosniff" + "x-ms-ratelimit-remaining-subscription-reads": [ + "11976" ], - "Preference-Applied": [ - "return-content" + "x-ms-correlation-request-id": [ + "2b0cda4b-cb45-4586-b51f-d30ef28f17d6" ], - "DataServiceVersion": [ - "3.0;" + "x-ms-routing-request-id": [ + "BRAZILUS:20200903T194757Z:2b0cda4b-cb45-4586-b51f-d30ef28f17d6" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1194" + "X-Content-Type-Options": [ + "nosniff" ], - "x-ms-correlation-request-id": [ - "30197b27-02ff-4bf2-8d70-24cffed7cd43" + "Content-Length": [ + "107" ], - "x-ms-routing-request-id": [ - "WESTUS2:20180328T191343Z:30197b27-02ff-4bf2-8d70-24cffed7cd43" + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" ] }, - "StatusCode": 201 + "ResponseBody": "{\r\n \"name\": \"d3b266f9-ad6a-47d4-afd8-42d291ea8adc\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T19:47:31.32Z\"\r\n}", + "StatusCode": 200 }, { - "RequestUri": "/subscriptions/df7c055c-6310-4374-9852-10ef71ce5f85/resourceGroups/sqlcrudtest-8751/providers/Microsoft.Sql/servers/sqlcrudtest-4278/databases/sqlcrudtest-3359?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGY3YzA1NWMtNjMxMC00Mzc0LTk4NTItMTBlZjcxY2U1Zjg1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3NTEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC00Mjc4L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC0zMzU5P2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"location\": \"westeurope\"\r\n}", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Sql/locations/westcentralus/serverAzureAsyncOperation/d3b266f9-ad6a-47d4-afd8-42d291ea8adc?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczMTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9kM2IyNjZmOS1hZDZhLTQ3ZDQtYWZkOC00MmQyOTFlYThhZGM/YXBpLXZlcnNpb249MjAxOS0wNi0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "32" - ], - "x-ms-client-request-id": [ - "b5a79248-2955-4212-8122-0df445f4a2ce" - ], - "accept-language": [ - "en-US" - ], "User-Agent": [ - "FxVersion/4.6.26201.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.13.0.0" + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" ] }, - "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2018-03-28T19:13:45.933Z\"\r\n}", "ResponseHeaders": { - "Content-Length": [ - "76" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], "Cache-Control": [ "no-cache" ], "Date": [ - "Wed, 28 Mar 2018 19:13:45 GMT" + "Thu, 03 Sep 2020 19:48:17 GMT" ], "Pragma": [ "no-cache" ], - "Location": [ - "https://management.azure.com/subscriptions/df7c055c-6310-4374-9852-10ef71ce5f85/resourceGroups/sqlcrudtest-8751/providers/Microsoft.Sql/locations/westeurope/databaseOperationResults/6b7c3651-ae54-401c-a697-c8ac49f5c0eb?api-version=2017-10-01-preview" - ], "Retry-After": [ "15" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], - "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/df7c055c-6310-4374-9852-10ef71ce5f85/resourceGroups/sqlcrudtest-8751/providers/Microsoft.Sql/locations/westeurope/databaseAzureAsyncOperation/6b7c3651-ae54-401c-a697-c8ac49f5c0eb?api-version=2017-10-01-preview" - ], "x-ms-request-id": [ - "6b7c3651-ae54-401c-a697-c8ac49f5c0eb" + "275604e6-5e7b-4051-8c0c-9b13793de976" ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1193" + "x-ms-ratelimit-remaining-subscription-reads": [ + "11975" ], "x-ms-correlation-request-id": [ - "26e572f0-91e6-4c74-a91e-494093d6719f" + "d408d72b-4339-4b71-82c9-381b79e1436a" ], "x-ms-routing-request-id": [ - "WESTUS2:20180328T191346Z:26e572f0-91e6-4c74-a91e-494093d6719f" + "BRAZILUS:20200903T194817Z:d408d72b-4339-4b71-82c9-381b79e1436a" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" + ], + "Content-Length": [ + "106" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" ] }, - "StatusCode": 202 + "ResponseBody": "{\r\n \"name\": \"d3b266f9-ad6a-47d4-afd8-42d291ea8adc\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2020-09-03T19:47:31.32Z\"\r\n}", + "StatusCode": 200 }, { - "RequestUri": "/subscriptions/df7c055c-6310-4374-9852-10ef71ce5f85/resourceGroups/sqlcrudtest-8751/providers/Microsoft.Storage/storageAccounts/sqlcrudtest7398?api-version=2017-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGY3YzA1NWMtNjMxMC00Mzc0LTk4NTItMTBlZjcxY2U1Zjg1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3NTEvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9zcWxjcnVkdGVzdDczOTg/YXBpLXZlcnNpb249MjAxNy0wNi0wMQ==", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\"\r\n },\r\n \"kind\": \"BlobStorage\",\r\n \"location\": \"westeurope\",\r\n \"properties\": {\r\n \"accessTier\": \"Cool\"\r\n }\r\n}", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Sql/servers/sqlcrudtest-8696?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczMTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC04Njk2P2FwaS12ZXJzaW9uPTIwMTktMDYtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "155" - ], - "x-ms-client-request-id": [ - "03b50abf-83f3-48e4-b809-f8c78eb7b6a6" - ], - "accept-language": [ - "en-US" - ], "User-Agent": [ - "FxVersion/4.6.26201.01", - "Microsoft.Azure.Management.Storage.StorageManagementClient/6.5.0.0" + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" ] }, - "ResponseBody": "", "ResponseHeaders": { - "Content-Length": [ - "0" - ], - "Content-Type": [ - "text/plain; charset=utf-8" - ], - "Expires": [ - "-1" - ], "Cache-Control": [ "no-cache" ], "Date": [ - "Wed, 28 Mar 2018 19:13:46 GMT" + "Thu, 03 Sep 2020 19:48:17 GMT" ], "Pragma": [ "no-cache" ], - "Location": [ - "https://management.azure.com/subscriptions/df7c055c-6310-4374-9852-10ef71ce5f85/providers/Microsoft.Storage/locations/westeurope/asyncoperations/c3edd3cf-93e6-4849-9b07-c12529829436?monitor=true&api-version=2017-06-01" - ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "b0316944-205b-437b-9cbe-af24e018a9ca" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11974" + ], + "x-ms-correlation-request-id": [ + "6778cbaf-5947-4457-aef6-6d66aae67083" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200903T194817Z:6778cbaf-5947-4457-aef6-6d66aae67083" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "463" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"kind\": \"v12.0\",\r\n \"properties\": {\r\n \"administratorLogin\": \"dummylogin\",\r\n \"version\": \"12.0\",\r\n \"state\": \"Ready\",\r\n \"fullyQualifiedDomainName\": \"sqlcrudtest-8696.database.windows.net\",\r\n \"privateEndpointConnections\": [],\r\n \"publicNetworkAccess\": \"Enabled\"\r\n },\r\n \"location\": \"westcentralus\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Sql/servers/sqlcrudtest-8696\",\r\n \"name\": \"sqlcrudtest-8696\",\r\n \"type\": \"Microsoft.Sql/servers\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Sql/servers/sqlcrudtest-8696/firewallRules/sqlcrudtest-9835?api-version=2014-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczMTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC04Njk2L2ZpcmV3YWxsUnVsZXMvc3FsY3J1ZHRlc3QtOTgzNT9hcGktdmVyc2lvbj0yMDE0LTA0LTAx", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"startIpAddress\": \"0.0.0.0\",\r\n \"endIpAddress\": \"255.255.255.255\"\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "fd5ac752-afb7-4a8e-baf9-fc5978f8d05f" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "101" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Thu, 03 Sep 2020 19:48:18 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "105f6b91-ba8b-4819-87be-38322b324110" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Preference-Applied": [ + "return-content" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1191" + ], + "x-ms-correlation-request-id": [ + "8fbea0c0-6130-4a2f-be80-b72e8d2c1c22" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200903T194818Z:8fbea0c0-6130-4a2f-be80-b72e8d2c1c22" + ], + "Content-Length": [ + "362" + ], + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Sql/servers/sqlcrudtest-8696/firewallRules/sqlcrudtest-9835\",\r\n \"name\": \"sqlcrudtest-9835\",\r\n \"type\": \"Microsoft.Sql/servers/firewallRules\",\r\n \"location\": \"West Central US\",\r\n \"kind\": \"v12.0\",\r\n \"properties\": {\r\n \"startIpAddress\": \"0.0.0.0\",\r\n \"endIpAddress\": \"255.255.255.255\"\r\n }\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Storage/storageAccounts/sqlcrudtest8107?api-version=2017-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczMTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9zcWxjcnVkdGVzdDgxMDc/YXBpLXZlcnNpb249MjAxNy0wNi0wMQ==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\"\r\n },\r\n \"kind\": \"BlobStorage\",\r\n \"location\": \"westcentralus\",\r\n \"properties\": {\r\n \"accessTier\": \"Cool\"\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "5025ef45-a537-498b-9cd9-7bb91adca563" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Storage.StorageManagementClient/6.5.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "158" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 03 Sep 2020 19:48:18 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Storage/locations/westcentralus/asyncoperations/14a0d35c-cda7-440b-bb20-6e0f130237ff?monitor=true&api-version=2017-06-01" + ], "Retry-After": [ "17" ], @@ -638,56 +735,73 @@ "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "c3edd3cf-93e6-4849-9b07-c12529829436" + "14a0d35c-cda7-440b-bb20-6e0f130237ff" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1197" + "1190" ], "x-ms-correlation-request-id": [ - "21db8528-5620-42ac-817d-51119a90e592" + "c9b7419c-2a3a-4e29-9991-2a0690a0159e" ], "x-ms-routing-request-id": [ - "WESTUS2:20180328T191347Z:21db8528-5620-42ac-817d-51119a90e592" + "BRAZILUS:20200903T194819Z:c9b7419c-2a3a-4e29-9991-2a0690a0159e" ], "X-Content-Type-Options": [ "nosniff" + ], + "Content-Length": [ + "0" + ], + "Content-Type": [ + "text/plain; charset=utf-8" + ], + "Expires": [ + "-1" ] }, + "ResponseBody": "", "StatusCode": 202 }, { - "RequestUri": "/subscriptions/df7c055c-6310-4374-9852-10ef71ce5f85/resourceGroups/sqlcrudtest-8751/providers/Microsoft.Sql/locations/westeurope/databaseAzureAsyncOperation/6b7c3651-ae54-401c-a697-c8ac49f5c0eb?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGY3YzA1NWMtNjMxMC00Mzc0LTk4NTItMTBlZjcxY2U1Zjg1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3NTEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RldXJvcGUvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzZiN2MzNjUxLWFlNTQtNDAxYy1hNjk3LWM4YWM0OWY1YzBlYj9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", - "RequestMethod": "GET", - "RequestBody": "", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Sql/servers/sqlcrudtest-8696/databases/sqlcrudtest-6275?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczMTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC04Njk2L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC02Mjc1P2FwaS12ZXJzaW9uPTIwMTktMDYtMDEtcHJldmlldw==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"westcentralus\"\r\n}", "RequestHeaders": { + "x-ms-client-request-id": [ + "8f29be30-b246-4969-91f6-4168d42878a6" + ], + "accept-language": [ + "en-US" + ], "User-Agent": [ - "FxVersion/4.6.26201.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.13.0.0" - ] - }, - "ResponseBody": "{\r\n \"name\": \"6b7c3651-ae54-401c-a697-c8ac49f5c0eb\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-03-28T19:13:45.933Z\"\r\n}", - "ResponseHeaders": { + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ], "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ - "-1" - ], + "Content-Length": [ + "35" + ] + }, + "ResponseHeaders": { "Cache-Control": [ "no-cache" ], "Date": [ - "Wed, 28 Mar 2018 19:14:00 GMT" + "Thu, 03 Sep 2020 19:48:19 GMT" ], "Pragma": [ "no-cache" ], - "Transfer-Encoding": [ - "chunked" + "Location": [ + "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Sql/locations/westcentralus/databaseOperationResults/3ea7ce3e-0523-40fd-8b9e-5e0e41acfb5f?api-version=2019-06-01-preview" ], "Retry-After": [ "15" @@ -695,438 +809,434 @@ "Server": [ "Microsoft-HTTPAPI/2.0" ], - "Vary": [ - "Accept-Encoding" + "Azure-AsyncOperation": [ + "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Sql/locations/westcentralus/databaseAzureAsyncOperation/3ea7ce3e-0523-40fd-8b9e-5e0e41acfb5f?api-version=2019-06-01-preview" ], "x-ms-request-id": [ - "4a064ab8-33bf-4a7c-ba73-3e8349803a0e" + "3ea7ce3e-0523-40fd-8b9e-5e0e41acfb5f" ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14992" + "x-ms-ratelimit-remaining-subscription-writes": [ + "1190" ], "x-ms-correlation-request-id": [ - "99273c73-8f12-42d2-aa96-00e7b374bede" + "ab847a7d-faa0-4b84-8ddb-edb844b0c355" ], "x-ms-routing-request-id": [ - "WESTUS2:20180328T191401Z:99273c73-8f12-42d2-aa96-00e7b374bede" + "BRAZILUS:20200903T194819Z:ab847a7d-faa0-4b84-8ddb-edb844b0c355" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" + ], + "Content-Length": [ + "76" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" ] }, - "StatusCode": 200 + "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2020-09-03T19:48:19.303Z\"\r\n}", + "StatusCode": 202 }, { - "RequestUri": "/subscriptions/df7c055c-6310-4374-9852-10ef71ce5f85/resourceGroups/sqlcrudtest-8751/providers/Microsoft.Sql/locations/westeurope/databaseAzureAsyncOperation/6b7c3651-ae54-401c-a697-c8ac49f5c0eb?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGY3YzA1NWMtNjMxMC00Mzc0LTk4NTItMTBlZjcxY2U1Zjg1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3NTEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RldXJvcGUvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzZiN2MzNjUxLWFlNTQtNDAxYy1hNjk3LWM4YWM0OWY1YzBlYj9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Sql/locations/westcentralus/databaseAzureAsyncOperation/3ea7ce3e-0523-40fd-8b9e-5e0e41acfb5f?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczMTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzNlYTdjZTNlLTA1MjMtNDBmZC04YjllLTVlMGU0MWFjZmI1Zj9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.26201.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.13.0.0" + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" ] }, - "ResponseBody": "{\r\n \"name\": \"6b7c3651-ae54-401c-a697-c8ac49f5c0eb\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-03-28T19:13:45.933Z\"\r\n}", "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], "Cache-Control": [ "no-cache" ], "Date": [ - "Wed, 28 Mar 2018 19:14:15 GMT" + "Thu, 03 Sep 2020 19:48:33 GMT" ], "Pragma": [ "no-cache" ], - "Transfer-Encoding": [ - "chunked" - ], "Retry-After": [ "15" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], - "Vary": [ - "Accept-Encoding" - ], "x-ms-request-id": [ - "2500d7e8-a97e-4b24-8c28-aa53f3b0ccf6" + "af69403f-491c-4358-a869-e066573e1912" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14991" + "11973" ], "x-ms-correlation-request-id": [ - "5a5ab2c2-e809-4445-b6dc-16020168e3e4" + "3ab16e18-e1f5-4eaf-87c7-d68c27d1482f" ], "x-ms-routing-request-id": [ - "WESTUS2:20180328T191416Z:5a5ab2c2-e809-4445-b6dc-16020168e3e4" + "BRAZILUS:20200903T194834Z:3ab16e18-e1f5-4eaf-87c7-d68c27d1482f" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" ] }, + "ResponseBody": "{\r\n \"name\": \"3ea7ce3e-0523-40fd-8b9e-5e0e41acfb5f\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T19:48:19.303Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/df7c055c-6310-4374-9852-10ef71ce5f85/resourceGroups/sqlcrudtest-8751/providers/Microsoft.Sql/locations/westeurope/databaseAzureAsyncOperation/6b7c3651-ae54-401c-a697-c8ac49f5c0eb?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGY3YzA1NWMtNjMxMC00Mzc0LTk4NTItMTBlZjcxY2U1Zjg1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3NTEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RldXJvcGUvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzZiN2MzNjUxLWFlNTQtNDAxYy1hNjk3LWM4YWM0OWY1YzBlYj9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Sql/locations/westcentralus/databaseAzureAsyncOperation/3ea7ce3e-0523-40fd-8b9e-5e0e41acfb5f?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczMTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzNlYTdjZTNlLTA1MjMtNDBmZC04YjllLTVlMGU0MWFjZmI1Zj9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.26201.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.13.0.0" + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" ] }, - "ResponseBody": "{\r\n \"name\": \"6b7c3651-ae54-401c-a697-c8ac49f5c0eb\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-03-28T19:13:45.933Z\"\r\n}", "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], "Cache-Control": [ "no-cache" ], "Date": [ - "Wed, 28 Mar 2018 19:14:31 GMT" + "Thu, 03 Sep 2020 19:48:48 GMT" ], "Pragma": [ "no-cache" ], - "Transfer-Encoding": [ - "chunked" - ], "Retry-After": [ "15" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], - "Vary": [ - "Accept-Encoding" - ], "x-ms-request-id": [ - "6c933659-55e7-44c5-8077-7c6cb70eff4a" + "46f4f51e-5bc9-4878-8ee3-860ae09eb15b" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14990" + "11971" ], "x-ms-correlation-request-id": [ - "5de05147-514d-4056-8cb3-7892de215ac0" + "5e3f6ca0-d2ef-4c0f-9d89-9ed306ed0b08" ], "x-ms-routing-request-id": [ - "WESTUS2:20180328T191431Z:5de05147-514d-4056-8cb3-7892de215ac0" + "BRAZILUS:20200903T194849Z:5e3f6ca0-d2ef-4c0f-9d89-9ed306ed0b08" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" ] }, + "ResponseBody": "{\r\n \"name\": \"3ea7ce3e-0523-40fd-8b9e-5e0e41acfb5f\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T19:48:19.303Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/df7c055c-6310-4374-9852-10ef71ce5f85/providers/Microsoft.Storage/locations/westeurope/asyncoperations/c3edd3cf-93e6-4849-9b07-c12529829436?monitor=true&api-version=2017-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGY3YzA1NWMtNjMxMC00Mzc0LTk4NTItMTBlZjcxY2U1Zjg1L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZS9sb2NhdGlvbnMvd2VzdGV1cm9wZS9hc3luY29wZXJhdGlvbnMvYzNlZGQzY2YtOTNlNi00ODQ5LTliMDctYzEyNTI5ODI5NDM2P21vbml0b3I9dHJ1ZSZhcGktdmVyc2lvbj0yMDE3LTA2LTAx", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Sql/locations/westcentralus/databaseAzureAsyncOperation/3ea7ce3e-0523-40fd-8b9e-5e0e41acfb5f?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczMTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzNlYTdjZTNlLTA1MjMtNDBmZC04YjllLTVlMGU0MWFjZmI1Zj9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.26201.01", - "Microsoft.Azure.Management.Storage.StorageManagementClient/6.5.0.0" + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" ] }, - "ResponseBody": "", "ResponseHeaders": { - "Content-Length": [ - "0" - ], - "Content-Type": [ - "text/plain; charset=utf-8" - ], - "Expires": [ - "-1" - ], "Cache-Control": [ "no-cache" ], "Date": [ - "Wed, 28 Mar 2018 19:14:03 GMT" + "Thu, 03 Sep 2020 19:49:04 GMT" ], "Pragma": [ "no-cache" ], - "Location": [ - "https://management.azure.com/subscriptions/df7c055c-6310-4374-9852-10ef71ce5f85/providers/Microsoft.Storage/locations/westeurope/asyncoperations/c3edd3cf-93e6-4849-9b07-c12529829436?monitor=true&api-version=2017-06-01" - ], "Retry-After": [ - "17" + "15" ], "Server": [ - "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" + "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "e2fc2a5a-b36c-4996-b84f-4755fc256a92" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" + "56fb74bb-a8b1-4a02-b88e-6a461c9e0a62" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14994" + "11970" ], "x-ms-correlation-request-id": [ - "2d662e27-3a02-4a13-81f5-4f5f52075d57" + "8db46b44-6a84-49bb-9934-1c0038f8cd5d" ], "x-ms-routing-request-id": [ - "WESTUS2:20180328T191404Z:2d662e27-3a02-4a13-81f5-4f5f52075d57" + "BRAZILUS:20200903T194904Z:8db46b44-6a84-49bb-9934-1c0038f8cd5d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" ] }, - "StatusCode": 202 + "ResponseBody": "{\r\n \"name\": \"3ea7ce3e-0523-40fd-8b9e-5e0e41acfb5f\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2020-09-03T19:48:19.303Z\"\r\n}", + "StatusCode": 200 }, { - "RequestUri": "/subscriptions/df7c055c-6310-4374-9852-10ef71ce5f85/providers/Microsoft.Storage/locations/westeurope/asyncoperations/c3edd3cf-93e6-4849-9b07-c12529829436?monitor=true&api-version=2017-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGY3YzA1NWMtNjMxMC00Mzc0LTk4NTItMTBlZjcxY2U1Zjg1L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZS9sb2NhdGlvbnMvd2VzdGV1cm9wZS9hc3luY29wZXJhdGlvbnMvYzNlZGQzY2YtOTNlNi00ODQ5LTliMDctYzEyNTI5ODI5NDM2P21vbml0b3I9dHJ1ZSZhcGktdmVyc2lvbj0yMDE3LTA2LTAx", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Storage/locations/westcentralus/asyncoperations/14a0d35c-cda7-440b-bb20-6e0f130237ff?monitor=true&api-version=2017-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZS9sb2NhdGlvbnMvd2VzdGNlbnRyYWx1cy9hc3luY29wZXJhdGlvbnMvMTRhMGQzNWMtY2RhNy00NDBiLWJiMjAtNmUwZjEzMDIzN2ZmP21vbml0b3I9dHJ1ZSZhcGktdmVyc2lvbj0yMDE3LTA2LTAx", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.26201.01", + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", "Microsoft.Azure.Management.Storage.StorageManagementClient/6.5.0.0" ] }, - "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"kind\": \"BlobStorage\",\r\n \"id\": \"/subscriptions/df7c055c-6310-4374-9852-10ef71ce5f85/resourceGroups/sqlcrudtest-8751/providers/Microsoft.Storage/storageAccounts/sqlcrudtest7398\",\r\n \"name\": \"sqlcrudtest7398\",\r\n \"type\": \"Microsoft.Storage/storageAccounts\",\r\n \"location\": \"westeurope\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"networkAcls\": {\r\n \"bypass\": \"AzureServices\",\r\n \"virtualNetworkRules\": [],\r\n \"ipRules\": [],\r\n \"defaultAction\": \"Allow\"\r\n },\r\n \"trustedDirectories\": [\r\n \"72f988bf-86f1-41af-91ab-2d7cd011db47\"\r\n ],\r\n \"supportsHttpsTrafficOnly\": false,\r\n \"encryption\": {\r\n \"services\": {\r\n \"file\": {\r\n \"enabled\": true,\r\n \"lastEnabledTime\": \"2018-03-28T19:13:46.1049016Z\"\r\n },\r\n \"blob\": {\r\n \"enabled\": true,\r\n \"lastEnabledTime\": \"2018-03-28T19:13:46.1049016Z\"\r\n }\r\n },\r\n \"keySource\": \"Microsoft.Storage\"\r\n },\r\n \"accessTier\": \"Cool\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"creationTime\": \"2018-03-28T19:13:46.0580272Z\",\r\n \"primaryEndpoints\": {\r\n \"blob\": \"https://sqlcrudtest7398.blob.core.windows.net/\",\r\n \"table\": \"https://sqlcrudtest7398.table.core.windows.net/\"\r\n },\r\n \"primaryLocation\": \"westeurope\",\r\n \"statusOfPrimary\": \"available\"\r\n }\r\n}", "ResponseHeaders": { - "Content-Type": [ - "application/json" - ], - "Expires": [ - "-1" - ], "Cache-Control": [ "no-cache" ], "Date": [ - "Wed, 28 Mar 2018 19:14:20 GMT" + "Thu, 03 Sep 2020 19:48:36 GMT" ], "Pragma": [ "no-cache" ], - "Transfer-Encoding": [ - "chunked" - ], "Server": [ "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" ], - "Vary": [ - "Accept-Encoding" - ], "x-ms-request-id": [ - "f6fb3636-dc04-40e3-9085-d131e8d5d4cc" + "29240870-9f87-41d6-96f4-740d63b4e96e" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14993" + "11972" ], "x-ms-correlation-request-id": [ - "b56b2175-d3d4-45bd-a7b8-f7beb1cbb9da" + "4871f842-ec5e-4320-83ed-825314087f35" ], "x-ms-routing-request-id": [ - "WESTUS2:20180328T191421Z:b56b2175-d3d4-45bd-a7b8-f7beb1cbb9da" + "BRAZILUS:20200903T194836Z:4871f842-ec5e-4320-83ed-825314087f35" ], "X-Content-Type-Options": [ "nosniff" + ], + "Content-Length": [ + "980" + ], + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" ] }, + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"kind\": \"BlobStorage\",\r\n \"id\": \"/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Storage/storageAccounts/sqlcrudtest8107\",\r\n \"name\": \"sqlcrudtest8107\",\r\n \"type\": \"Microsoft.Storage/storageAccounts\",\r\n \"location\": \"westcentralus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"networkAcls\": {\r\n \"bypass\": \"AzureServices\",\r\n \"virtualNetworkRules\": [],\r\n \"ipRules\": [],\r\n \"defaultAction\": \"Allow\"\r\n },\r\n \"supportsHttpsTrafficOnly\": false,\r\n \"encryption\": {\r\n \"services\": {\r\n \"file\": {\r\n \"enabled\": true,\r\n \"lastEnabledTime\": \"2020-09-03T19:48:18.5571988Z\"\r\n },\r\n \"blob\": {\r\n \"enabled\": true,\r\n \"lastEnabledTime\": \"2020-09-03T19:48:18.5571988Z\"\r\n }\r\n },\r\n \"keySource\": \"Microsoft.Storage\"\r\n },\r\n \"accessTier\": \"Cool\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"creationTime\": \"2020-09-03T19:48:18.4946934Z\",\r\n \"primaryEndpoints\": {\r\n \"blob\": \"https://sqlcrudtest8107.blob.core.windows.net/\",\r\n \"table\": \"https://sqlcrudtest8107.table.core.windows.net/\"\r\n },\r\n \"primaryLocation\": \"westcentralus\",\r\n \"statusOfPrimary\": \"available\"\r\n }\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/df7c055c-6310-4374-9852-10ef71ce5f85/resourceGroups/sqlcrudtest-8751/providers/Microsoft.Storage/storageAccounts/sqlcrudtest7398/listKeys?api-version=2017-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGY3YzA1NWMtNjMxMC00Mzc0LTk4NTItMTBlZjcxY2U1Zjg1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3NTEvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9zcWxjcnVkdGVzdDczOTgvbGlzdEtleXM/YXBpLXZlcnNpb249MjAxNy0wNi0wMQ==", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Storage/storageAccounts/sqlcrudtest8107/listKeys?api-version=2017-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczMTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9zcWxjcnVkdGVzdDgxMDcvbGlzdEtleXM/YXBpLXZlcnNpb249MjAxNy0wNi0wMQ==", "RequestMethod": "POST", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "ec9fca46-c525-4d61-9992-4ef755e8a43a" + "25ef7341-6c35-4612-a855-185ea641b4be" ], "accept-language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.26201.01", + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", "Microsoft.Azure.Management.Storage.StorageManagementClient/6.5.0.0" ] }, - "ResponseBody": "{\r\n \"keys\": [\r\n {\r\n \"keyName\": \"key1\",\r\n \"value\": \"0DIUmzA/jkRMHz1GYH+VIvW4FREPFYcuvglCojJvFynLWjYqPR/a06JyQ9jkUeflTExSfF9snssScCd+OfkxoQ==\",\r\n \"permissions\": \"FULL\"\r\n },\r\n {\r\n \"keyName\": \"key2\",\r\n \"value\": \"DFG1FvQvEoT/gB0toUI5zrbOE+3h/RdetROy5xqD0IUvh/C7i57QIF7DlUoEHf0+zCFlqaWNgVB6c6CS95iLjQ==\",\r\n \"permissions\": \"FULL\"\r\n }\r\n ]\r\n}", "ResponseHeaders": { - "Content-Type": [ - "application/json" - ], - "Expires": [ - "-1" - ], "Cache-Control": [ "no-cache" ], "Date": [ - "Wed, 28 Mar 2018 19:14:20 GMT" + "Thu, 03 Sep 2020 19:48:36 GMT" ], "Pragma": [ "no-cache" ], - "Transfer-Encoding": [ - "chunked" - ], "Server": [ "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" ], - "Vary": [ - "Accept-Encoding" - ], "x-ms-request-id": [ - "95942140-8f03-4d00-83bd-65861dba1fb0" + "d0e6518a-7ed3-45c9-8518-c57e4061e2b0" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1196" + "x-ms-ratelimit-remaining-subscription-resource-requests": [ + "11999" ], "x-ms-correlation-request-id": [ - "b6920065-9bd3-492e-a337-dd5cc589042f" + "0b0be66c-e3ea-4783-8380-06c9dba3dbcb" ], "x-ms-routing-request-id": [ - "WESTUS2:20180328T191421Z:b6920065-9bd3-492e-a337-dd5cc589042f" + "BRAZILUS:20200903T194836Z:0b0be66c-e3ea-4783-8380-06c9dba3dbcb" ], "X-Content-Type-Options": [ "nosniff" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/df7c055c-6310-4374-9852-10ef71ce5f85/resourceGroups/sqlcrudtest-8751/providers/Microsoft.Sql/servers/sqlcrudtest-4278/databases/sqlcrudtest-3359?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGY3YzA1NWMtNjMxMC00Mzc0LTk4NTItMTBlZjcxY2U1Zjg1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3NTEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC00Mjc4L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC0zMzU5P2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", - "RequestMethod": "GET", + ], + "Content-Length": [ + "288" + ], + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"keys\": [\r\n {\r\n \"keyName\": \"key1\",\r\n \"value\": \"ZPMelgVaCQ+kNB1JHAO/hRWbaXRfH9/zUy6IHjXanuKhY/EcPWiz1TVp2s/9kAB1hJUN8x2A5QWtEvvxeUv6Lg==\",\r\n \"permissions\": \"FULL\"\r\n },\r\n {\r\n \"keyName\": \"key2\",\r\n \"value\": \"pEuRmQswFlf4DFnqsKX7UL/brob5QtmWleumJyYw0+dtiCtqxGThTnxhkfzat512kd4M/CpexFxwczoU24k9Sg==\",\r\n \"permissions\": \"FULL\"\r\n }\r\n ]\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Sql/servers/sqlcrudtest-8696/databases/sqlcrudtest-6275?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczMTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC04Njk2L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC02Mjc1P2FwaS12ZXJzaW9uPTIwMTktMDYtMDEtcHJldmlldw==", + "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.26201.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.13.0.0" + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" ] }, - "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 10\r\n },\r\n \"kind\": \"v12.0,user\",\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": 268435456000,\r\n \"status\": \"Online\",\r\n \"databaseId\": \"7ab34298-8625-4e40-86c1-ab12696fbe39\",\r\n \"creationDate\": \"2018-03-28T19:13:46.153Z\",\r\n \"currentServiceObjectiveName\": \"S0\",\r\n \"requestedServiceObjectiveName\": \"S0\",\r\n \"defaultSecondaryLocation\": \"North Europe\",\r\n \"catalogCollation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"zoneRedundant\": false,\r\n \"earliestRestoreDate\": \"2018-03-28T19:44:23.34Z\",\r\n \"readScale\": \"Disabled\"\r\n },\r\n \"location\": \"westeurope\",\r\n \"id\": \"/subscriptions/df7c055c-6310-4374-9852-10ef71ce5f85/resourceGroups/sqlcrudtest-8751/providers/Microsoft.Sql/servers/sqlcrudtest-4278/databases/sqlcrudtest-3359\",\r\n \"name\": \"sqlcrudtest-3359\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], "Cache-Control": [ "no-cache" ], "Date": [ - "Wed, 28 Mar 2018 19:14:31 GMT" + "Thu, 03 Sep 2020 19:49:04 GMT" ], "Pragma": [ "no-cache" ], - "Transfer-Encoding": [ - "chunked" - ], "Server": [ "Microsoft-HTTPAPI/2.0" ], - "Vary": [ - "Accept-Encoding" - ], "x-ms-request-id": [ - "0fca1819-80a1-49b3-b048-a2bdbb36b033" + "9c8fb028-0d78-42c0-954c-8c7a32aa0865" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14989" + "11969" ], "x-ms-correlation-request-id": [ - "f599a3e0-49b0-48c7-8db7-e093c8259f8e" + "f34ec010-c4cd-4374-9d24-85e24f312d5e" ], "x-ms-routing-request-id": [ - "WESTUS2:20180328T191431Z:f599a3e0-49b0-48c7-8db7-e093c8259f8e" + "BRAZILUS:20200903T194904Z:f34ec010-c4cd-4374-9d24-85e24f312d5e" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" + ], + "Content-Length": [ + "1023" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" ] }, + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"GP_Gen5\",\r\n \"tier\": \"GeneralPurpose\",\r\n \"family\": \"Gen5\",\r\n \"capacity\": 2\r\n },\r\n \"kind\": \"v12.0,user,vcore\",\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": 34359738368,\r\n \"status\": \"Online\",\r\n \"databaseId\": \"2abecd08-7474-4ef4-8500-0a079748f038\",\r\n \"creationDate\": \"2020-09-03T19:48:54.46Z\",\r\n \"currentServiceObjectiveName\": \"GP_Gen5_2\",\r\n \"requestedServiceObjectiveName\": \"GP_Gen5_2\",\r\n \"defaultSecondaryLocation\": \"westus2\",\r\n \"catalogCollation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"zoneRedundant\": false,\r\n \"licenseType\": \"LicenseIncluded\",\r\n \"maxLogSizeBytes\": 10307502080,\r\n \"earliestRestoreDate\": \"2020-09-03T20:18:54.46Z\",\r\n \"readScale\": \"Disabled\",\r\n \"readReplicaCount\": 0,\r\n \"currentSku\": {\r\n \"name\": \"GP_Gen5\",\r\n \"tier\": \"GeneralPurpose\",\r\n \"family\": \"Gen5\",\r\n \"capacity\": 2\r\n },\r\n \"storageAccountType\": \"GRS\"\r\n },\r\n \"location\": \"westcentralus\",\r\n \"id\": \"/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Sql/servers/sqlcrudtest-8696/databases/sqlcrudtest-6275\",\r\n \"name\": \"sqlcrudtest-6275\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/df7c055c-6310-4374-9852-10ef71ce5f85/resourceGroups/sqlcrudtest-8751/providers/Microsoft.Sql/servers/sqlcrudtest-4278/databases/sqlcrudtest-5696?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGY3YzA1NWMtNjMxMC00Mzc0LTk4NTItMTBlZjcxY2U1Zjg1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3NTEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC00Mjc4L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC01Njk2P2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Sql/servers/sqlcrudtest-8696/databases/sqlcrudtest-9440?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczMTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC04Njk2L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC05NDQwP2FwaS12ZXJzaW9uPTIwMTktMDYtMDEtcHJldmlldw==", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"location\": \"westeurope\"\r\n}", + "RequestBody": "{\r\n \"location\": \"westcentralus\"\r\n}", "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "32" - ], "x-ms-client-request-id": [ - "27a5f743-1736-4ec9-a91b-cf10978560c7" + "5ba658c1-7b60-40f0-ba6b-50ed6254bbbc" ], "accept-language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.26201.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.13.0.0" - ] - }, - "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2018-03-28T19:14:32.95Z\"\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "75" + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" ], "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ - "-1" - ], + "Content-Length": [ + "35" + ] + }, + "ResponseHeaders": { "Cache-Control": [ "no-cache" ], "Date": [ - "Wed, 28 Mar 2018 19:14:33 GMT" + "Thu, 03 Sep 2020 19:49:05 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/df7c055c-6310-4374-9852-10ef71ce5f85/resourceGroups/sqlcrudtest-8751/providers/Microsoft.Sql/locations/westeurope/databaseOperationResults/25c383e9-9fd5-4a82-9321-7f3da80edc70?api-version=2017-10-01-preview" + "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Sql/locations/westcentralus/databaseOperationResults/6dfb69ba-8c9c-41f8-bab2-dcce1801fdad?api-version=2019-06-01-preview" ], "Retry-After": [ "15" @@ -1135,364 +1245,376 @@ "Microsoft-HTTPAPI/2.0" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/df7c055c-6310-4374-9852-10ef71ce5f85/resourceGroups/sqlcrudtest-8751/providers/Microsoft.Sql/locations/westeurope/databaseAzureAsyncOperation/25c383e9-9fd5-4a82-9321-7f3da80edc70?api-version=2017-10-01-preview" + "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Sql/locations/westcentralus/databaseAzureAsyncOperation/6dfb69ba-8c9c-41f8-bab2-dcce1801fdad?api-version=2019-06-01-preview" ], "x-ms-request-id": [ - "25c383e9-9fd5-4a82-9321-7f3da80edc70" + "6dfb69ba-8c9c-41f8-bab2-dcce1801fdad" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1192" + "1189" ], "x-ms-correlation-request-id": [ - "58a55582-e80d-4ec7-9eba-b34632064522" + "e062c977-2915-4c50-bd7c-861d3395c07a" ], "x-ms-routing-request-id": [ - "WESTUS2:20180328T191433Z:58a55582-e80d-4ec7-9eba-b34632064522" + "BRAZILUS:20200903T194906Z:e062c977-2915-4c50-bd7c-861d3395c07a" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" + ], + "Content-Length": [ + "75" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" ] }, + "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2020-09-03T19:49:06.24Z\"\r\n}", "StatusCode": 202 }, { - "RequestUri": "/subscriptions/df7c055c-6310-4374-9852-10ef71ce5f85/resourceGroups/sqlcrudtest-8751/providers/Microsoft.Sql/locations/westeurope/databaseAzureAsyncOperation/25c383e9-9fd5-4a82-9321-7f3da80edc70?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGY3YzA1NWMtNjMxMC00Mzc0LTk4NTItMTBlZjcxY2U1Zjg1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3NTEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RldXJvcGUvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzI1YzM4M2U5LTlmZDUtNGE4Mi05MzIxLTdmM2RhODBlZGM3MD9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Sql/locations/westcentralus/databaseAzureAsyncOperation/6dfb69ba-8c9c-41f8-bab2-dcce1801fdad?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczMTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzZkZmI2OWJhLThjOWMtNDFmOC1iYWIyLWRjY2UxODAxZmRhZD9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.26201.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.13.0.0" + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" ] }, - "ResponseBody": "{\r\n \"name\": \"25c383e9-9fd5-4a82-9321-7f3da80edc70\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-03-28T19:14:32.95Z\"\r\n}", "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], "Cache-Control": [ "no-cache" ], "Date": [ - "Wed, 28 Mar 2018 19:14:48 GMT" + "Thu, 03 Sep 2020 19:49:21 GMT" ], "Pragma": [ "no-cache" ], - "Transfer-Encoding": [ - "chunked" - ], "Retry-After": [ "15" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], - "Vary": [ - "Accept-Encoding" - ], "x-ms-request-id": [ - "402c8934-2029-4467-a84a-d73d6e8936b5" + "f18561f5-6841-420c-896d-c0fda2051fc7" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14988" + "11968" ], "x-ms-correlation-request-id": [ - "674238d9-1a0e-4a2e-aebf-e352de13e3a5" + "4d36c6fe-4206-4421-b438-e0a172b0c9a1" ], "x-ms-routing-request-id": [ - "WESTUS2:20180328T191448Z:674238d9-1a0e-4a2e-aebf-e352de13e3a5" + "BRAZILUS:20200903T194921Z:4d36c6fe-4206-4421-b438-e0a172b0c9a1" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" ] }, + "ResponseBody": "{\r\n \"name\": \"6dfb69ba-8c9c-41f8-bab2-dcce1801fdad\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T19:49:06.24Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/df7c055c-6310-4374-9852-10ef71ce5f85/resourceGroups/sqlcrudtest-8751/providers/Microsoft.Sql/locations/westeurope/databaseAzureAsyncOperation/25c383e9-9fd5-4a82-9321-7f3da80edc70?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGY3YzA1NWMtNjMxMC00Mzc0LTk4NTItMTBlZjcxY2U1Zjg1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3NTEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RldXJvcGUvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzI1YzM4M2U5LTlmZDUtNGE4Mi05MzIxLTdmM2RhODBlZGM3MD9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Sql/locations/westcentralus/databaseAzureAsyncOperation/6dfb69ba-8c9c-41f8-bab2-dcce1801fdad?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczMTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzZkZmI2OWJhLThjOWMtNDFmOC1iYWIyLWRjY2UxODAxZmRhZD9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.26201.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.13.0.0" + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" ] }, - "ResponseBody": "{\r\n \"name\": \"25c383e9-9fd5-4a82-9321-7f3da80edc70\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-03-28T19:14:32.95Z\"\r\n}", "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], "Cache-Control": [ "no-cache" ], "Date": [ - "Wed, 28 Mar 2018 19:15:03 GMT" + "Thu, 03 Sep 2020 19:49:36 GMT" ], "Pragma": [ "no-cache" ], - "Transfer-Encoding": [ - "chunked" - ], "Retry-After": [ "15" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], - "Vary": [ - "Accept-Encoding" - ], "x-ms-request-id": [ - "0cc4b0e6-6821-4c72-85c5-e291330328a8" + "64227361-95d3-4e0f-a422-57e5b5ea7a54" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14987" + "11967" ], "x-ms-correlation-request-id": [ - "b839d947-90a7-4ae2-82df-af698bee604f" + "d67ab929-c461-4ccb-b35a-3739ebd7880f" ], "x-ms-routing-request-id": [ - "WESTUS2:20180328T191503Z:b839d947-90a7-4ae2-82df-af698bee604f" + "BRAZILUS:20200903T194936Z:d67ab929-c461-4ccb-b35a-3739ebd7880f" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" ] }, + "ResponseBody": "{\r\n \"name\": \"6dfb69ba-8c9c-41f8-bab2-dcce1801fdad\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T19:49:06.24Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/df7c055c-6310-4374-9852-10ef71ce5f85/resourceGroups/sqlcrudtest-8751/providers/Microsoft.Sql/locations/westeurope/databaseAzureAsyncOperation/25c383e9-9fd5-4a82-9321-7f3da80edc70?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGY3YzA1NWMtNjMxMC00Mzc0LTk4NTItMTBlZjcxY2U1Zjg1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3NTEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RldXJvcGUvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzI1YzM4M2U5LTlmZDUtNGE4Mi05MzIxLTdmM2RhODBlZGM3MD9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Sql/locations/westcentralus/databaseAzureAsyncOperation/6dfb69ba-8c9c-41f8-bab2-dcce1801fdad?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczMTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzZkZmI2OWJhLThjOWMtNDFmOC1iYWIyLWRjY2UxODAxZmRhZD9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.26201.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.13.0.0" + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" ] }, - "ResponseBody": "{\r\n \"name\": \"25c383e9-9fd5-4a82-9321-7f3da80edc70\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-03-28T19:14:32.95Z\"\r\n}", "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], "Cache-Control": [ "no-cache" ], "Date": [ - "Wed, 28 Mar 2018 19:15:18 GMT" + "Thu, 03 Sep 2020 19:49:50 GMT" ], "Pragma": [ "no-cache" ], - "Transfer-Encoding": [ - "chunked" - ], "Retry-After": [ "15" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], - "Vary": [ - "Accept-Encoding" - ], "x-ms-request-id": [ - "a562048a-88e7-4f50-8b0f-dac05c939dd1" + "c48a243d-cde8-44dc-9b9e-ff822ae10bc7" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14986" + "11966" ], "x-ms-correlation-request-id": [ - "b7c83fb1-0b7a-4fbf-9ba8-26b49d70c891" + "ee6a445a-36fc-4c12-90bd-0f69fbd94328" ], "x-ms-routing-request-id": [ - "WESTUS2:20180328T191519Z:b7c83fb1-0b7a-4fbf-9ba8-26b49d70c891" + "BRAZILUS:20200903T194951Z:ee6a445a-36fc-4c12-90bd-0f69fbd94328" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" + ], + "Content-Length": [ + "106" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" ] }, + "ResponseBody": "{\r\n \"name\": \"6dfb69ba-8c9c-41f8-bab2-dcce1801fdad\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2020-09-03T19:49:06.24Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/df7c055c-6310-4374-9852-10ef71ce5f85/resourceGroups/sqlcrudtest-8751/providers/Microsoft.Sql/locations/westeurope/databaseAzureAsyncOperation/25c383e9-9fd5-4a82-9321-7f3da80edc70?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGY3YzA1NWMtNjMxMC00Mzc0LTk4NTItMTBlZjcxY2U1Zjg1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3NTEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RldXJvcGUvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzI1YzM4M2U5LTlmZDUtNGE4Mi05MzIxLTdmM2RhODBlZGM3MD9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Sql/servers/sqlcrudtest-8696/databases/sqlcrudtest-9440?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczMTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC04Njk2L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC05NDQwP2FwaS12ZXJzaW9uPTIwMTktMDYtMDEtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.26201.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.13.0.0" + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" ] }, - "ResponseBody": "{\r\n \"name\": \"25c383e9-9fd5-4a82-9321-7f3da80edc70\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-03-28T19:14:32.95Z\"\r\n}", "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], "Cache-Control": [ "no-cache" ], "Date": [ - "Wed, 28 Mar 2018 19:15:33 GMT" + "Thu, 03 Sep 2020 19:49:50 GMT" ], "Pragma": [ "no-cache" ], - "Transfer-Encoding": [ - "chunked" - ], - "Retry-After": [ - "15" - ], "Server": [ "Microsoft-HTTPAPI/2.0" ], - "Vary": [ - "Accept-Encoding" - ], "x-ms-request-id": [ - "bd07805e-7e75-4ede-be2b-281e25b8f3c4" + "0fc64241-0db1-474e-96e6-2a4ddb026a77" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14985" + "11965" ], "x-ms-correlation-request-id": [ - "bb803874-f56a-496b-8001-623bc4f81791" + "d8935d7d-4564-42a6-b7e3-2e19c9fa7234" ], "x-ms-routing-request-id": [ - "WESTUS2:20180328T191534Z:bb803874-f56a-496b-8001-623bc4f81791" + "BRAZILUS:20200903T194951Z:d8935d7d-4564-42a6-b7e3-2e19c9fa7234" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" + ], + "Content-Length": [ + "1023" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" ] }, + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"GP_Gen5\",\r\n \"tier\": \"GeneralPurpose\",\r\n \"family\": \"Gen5\",\r\n \"capacity\": 2\r\n },\r\n \"kind\": \"v12.0,user,vcore\",\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": 34359738368,\r\n \"status\": \"Online\",\r\n \"databaseId\": \"db7590f9-8677-41ab-8667-87589338a140\",\r\n \"creationDate\": \"2020-09-03T19:49:38.82Z\",\r\n \"currentServiceObjectiveName\": \"GP_Gen5_2\",\r\n \"requestedServiceObjectiveName\": \"GP_Gen5_2\",\r\n \"defaultSecondaryLocation\": \"westus2\",\r\n \"catalogCollation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"zoneRedundant\": false,\r\n \"licenseType\": \"LicenseIncluded\",\r\n \"maxLogSizeBytes\": 10307502080,\r\n \"earliestRestoreDate\": \"2020-09-03T20:19:38.82Z\",\r\n \"readScale\": \"Disabled\",\r\n \"readReplicaCount\": 0,\r\n \"currentSku\": {\r\n \"name\": \"GP_Gen5\",\r\n \"tier\": \"GeneralPurpose\",\r\n \"family\": \"Gen5\",\r\n \"capacity\": 2\r\n },\r\n \"storageAccountType\": \"GRS\"\r\n },\r\n \"location\": \"westcentralus\",\r\n \"id\": \"/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Sql/servers/sqlcrudtest-8696/databases/sqlcrudtest-9440\",\r\n \"name\": \"sqlcrudtest-9440\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/df7c055c-6310-4374-9852-10ef71ce5f85/resourceGroups/sqlcrudtest-8751/providers/Microsoft.Sql/locations/westeurope/databaseAzureAsyncOperation/25c383e9-9fd5-4a82-9321-7f3da80edc70?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGY3YzA1NWMtNjMxMC00Mzc0LTk4NTItMTBlZjcxY2U1Zjg1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3NTEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RldXJvcGUvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzI1YzM4M2U5LTlmZDUtNGE4Mi05MzIxLTdmM2RhODBlZGM3MD9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Sql/servers/sqlcrudtest-8696/databases/sqlcrudtest-9440?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczMTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC04Njk2L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC05NDQwP2FwaS12ZXJzaW9uPTIwMTktMDYtMDEtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { + "x-ms-client-request-id": [ + "46497a8a-c830-4595-aca8-bca9766bac15" + ], + "accept-language": [ + "en-US" + ], "User-Agent": [ - "FxVersion/4.6.26201.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.13.0.0" + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" ] }, - "ResponseBody": "{\r\n \"name\": \"25c383e9-9fd5-4a82-9321-7f3da80edc70\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-03-28T19:14:32.95Z\"\r\n}", "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], "Cache-Control": [ "no-cache" ], "Date": [ - "Wed, 28 Mar 2018 19:15:48 GMT" + "Thu, 03 Sep 2020 19:49:51 GMT" ], "Pragma": [ "no-cache" ], - "Transfer-Encoding": [ - "chunked" - ], - "Retry-After": [ - "15" - ], "Server": [ "Microsoft-HTTPAPI/2.0" ], - "Vary": [ - "Accept-Encoding" - ], "x-ms-request-id": [ - "171c1cbd-3ae1-4ab8-8eb0-ba0b53b54993" + "13af7c98-7f25-47be-bd0c-18d724207af9" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14984" + "11964" ], "x-ms-correlation-request-id": [ - "c73fe020-9d0e-4436-8a8a-04e0bcd09b86" + "af17d5e6-3fe6-45f5-9d9c-dad88e6a5e11" ], "x-ms-routing-request-id": [ - "WESTUS2:20180328T191549Z:c73fe020-9d0e-4436-8a8a-04e0bcd09b86" + "BRAZILUS:20200903T194951Z:af17d5e6-3fe6-45f5-9d9c-dad88e6a5e11" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" + ], + "Content-Length": [ + "1023" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" ] }, + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"GP_Gen5\",\r\n \"tier\": \"GeneralPurpose\",\r\n \"family\": \"Gen5\",\r\n \"capacity\": 2\r\n },\r\n \"kind\": \"v12.0,user,vcore\",\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": 34359738368,\r\n \"status\": \"Online\",\r\n \"databaseId\": \"db7590f9-8677-41ab-8667-87589338a140\",\r\n \"creationDate\": \"2020-09-03T19:49:38.82Z\",\r\n \"currentServiceObjectiveName\": \"GP_Gen5_2\",\r\n \"requestedServiceObjectiveName\": \"GP_Gen5_2\",\r\n \"defaultSecondaryLocation\": \"westus2\",\r\n \"catalogCollation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"zoneRedundant\": false,\r\n \"licenseType\": \"LicenseIncluded\",\r\n \"maxLogSizeBytes\": 10307502080,\r\n \"earliestRestoreDate\": \"2020-09-03T20:19:38.82Z\",\r\n \"readScale\": \"Disabled\",\r\n \"readReplicaCount\": 0,\r\n \"currentSku\": {\r\n \"name\": \"GP_Gen5\",\r\n \"tier\": \"GeneralPurpose\",\r\n \"family\": \"Gen5\",\r\n \"capacity\": 2\r\n },\r\n \"storageAccountType\": \"GRS\"\r\n },\r\n \"location\": \"westcentralus\",\r\n \"id\": \"/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Sql/servers/sqlcrudtest-8696/databases/sqlcrudtest-9440\",\r\n \"name\": \"sqlcrudtest-9440\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/df7c055c-6310-4374-9852-10ef71ce5f85/resourceGroups/sqlcrudtest-8751/providers/Microsoft.Sql/locations/westeurope/databaseAzureAsyncOperation/25c383e9-9fd5-4a82-9321-7f3da80edc70?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGY3YzA1NWMtNjMxMC00Mzc0LTk4NTItMTBlZjcxY2U1Zjg1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3NTEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RldXJvcGUvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzI1YzM4M2U5LTlmZDUtNGE4Mi05MzIxLTdmM2RhODBlZGM3MD9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", - "RequestMethod": "GET", - "RequestBody": "", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Sql/servers/sqlcrudtest-8696/databases/sqlcrudtest-6275/export?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczMTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC04Njk2L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC02Mjc1L2V4cG9ydD9hcGktdmVyc2lvbj0yMDIwLTAyLTAyLXByZXZpZXc=", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"storageKeyType\": \"StorageAccessKey\",\r\n \"storageKey\": \"ZPMelgVaCQ+kNB1JHAO/hRWbaXRfH9/zUy6IHjXanuKhY/EcPWiz1TVp2s/9kAB1hJUN8x2A5QWtEvvxeUv6Lg==\",\r\n \"storageUri\": \"https://sqlcrudtest8107.blob.core.windows.net/container/sqlcrudtest-6275.bacpac\",\r\n \"administratorLogin\": \"dummylogin\",\r\n \"administratorLoginPassword\": \"Un53cuRE!\",\r\n \"authenticationType\": \"SQL\"\r\n}", "RequestHeaders": { + "x-ms-client-request-id": [ + "e8cd1ba5-3c5c-4ff2-8a03-5b21516dda0f" + ], + "accept-language": [ + "en-US" + ], "User-Agent": [ - "FxVersion/4.6.26201.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.13.0.0" - ] - }, - "ResponseBody": "{\r\n \"name\": \"25c383e9-9fd5-4a82-9321-7f3da80edc70\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-03-28T19:14:32.95Z\"\r\n}", - "ResponseHeaders": { + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ], "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ - "-1" - ], + "Content-Length": [ + "370" + ] + }, + "ResponseHeaders": { "Cache-Control": [ "no-cache" ], "Date": [ - "Wed, 28 Mar 2018 19:16:04 GMT" + "Thu, 03 Sep 2020 19:49:52 GMT" ], "Pragma": [ "no-cache" ], - "Transfer-Encoding": [ - "chunked" + "Location": [ + "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportOperationResults/04b001c4-b057-4625-a69f-fc97ef4d255b-sqlcrudtest-8696?api-version=2020-02-02-preview" ], "Retry-After": [ "15" @@ -1500,1005 +1622,915 @@ "Server": [ "Microsoft-HTTPAPI/2.0" ], - "Vary": [ - "Accept-Encoding" + "Azure-AsyncOperation": [ + "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/04b001c4-b057-4625-a69f-fc97ef4d255b-sqlcrudtest-8696?api-version=2020-02-02-preview" ], "x-ms-request-id": [ - "dfa5dc6e-72cc-439f-8753-7d10890ed4a0" + "c5a827c0-957d-4d06-bb80-c4562c3bb7ff" ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14983" + "x-ms-ratelimit-remaining-subscription-writes": [ + "1197" ], "x-ms-correlation-request-id": [ - "97090bdd-830d-4181-9e6b-3d5acf9c3a2f" + "48cdd245-0b65-4aaf-aef9-26807a3edccc" ], "x-ms-routing-request-id": [ - "WESTUS2:20180328T191604Z:97090bdd-830d-4181-9e6b-3d5acf9c3a2f" + "BRAZILUS:20200903T194953Z:48cdd245-0b65-4aaf-aef9-26807a3edccc" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" + ], + "Content-Length": [ + "65" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" ] }, - "StatusCode": 200 + "ResponseBody": "{\r\n \"operation\": \"Export\",\r\n \"startTime\": \"2020-09-03T19:49:53.3506604Z\"\r\n}", + "StatusCode": 202 }, { - "RequestUri": "/subscriptions/df7c055c-6310-4374-9852-10ef71ce5f85/resourceGroups/sqlcrudtest-8751/providers/Microsoft.Sql/servers/sqlcrudtest-4278/databases/sqlcrudtest-5696?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGY3YzA1NWMtNjMxMC00Mzc0LTk4NTItMTBlZjcxY2U1Zjg1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3NTEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC00Mjc4L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC01Njk2P2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/04b001c4-b057-4625-a69f-fc97ef4d255b-sqlcrudtest-8696?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vMDRiMDAxYzQtYjA1Ny00NjI1LWE2OWYtZmM5N2VmNGQyNTViLXNxbGNydWR0ZXN0LTg2OTY/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.26201.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.13.0.0" + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" ] }, - "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 10\r\n },\r\n \"kind\": \"v12.0,user\",\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": 268435456000,\r\n \"status\": \"Online\",\r\n \"databaseId\": \"bea3e64b-35cb-4e93-85d1-a8166d0562ed\",\r\n \"creationDate\": \"2018-03-28T19:14:33.153Z\",\r\n \"currentServiceObjectiveName\": \"S0\",\r\n \"requestedServiceObjectiveName\": \"S0\",\r\n \"defaultSecondaryLocation\": \"North Europe\",\r\n \"catalogCollation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"zoneRedundant\": false,\r\n \"earliestRestoreDate\": \"2018-03-28T19:46:02.423Z\",\r\n \"readScale\": \"Disabled\"\r\n },\r\n \"location\": \"westeurope\",\r\n \"id\": \"/subscriptions/df7c055c-6310-4374-9852-10ef71ce5f85/resourceGroups/sqlcrudtest-8751/providers/Microsoft.Sql/servers/sqlcrudtest-4278/databases/sqlcrudtest-5696\",\r\n \"name\": \"sqlcrudtest-5696\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], "Cache-Control": [ "no-cache" ], "Date": [ - "Wed, 28 Mar 2018 19:16:04 GMT" + "Thu, 03 Sep 2020 19:50:10 GMT" ], "Pragma": [ "no-cache" ], - "Transfer-Encoding": [ - "chunked" + "Retry-After": [ + "15" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], - "Vary": [ - "Accept-Encoding" - ], "x-ms-request-id": [ - "9be1930a-e9a5-49c5-a301-72f2c3d958bd" + "08943fd7-1e79-4dc6-a379-998398d77e51" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14982" + "11963" ], "x-ms-correlation-request-id": [ - "e6cf5cd0-6a91-4a3d-86d4-3dd8b1cbb359" + "a571f6d8-c97e-4623-a621-cee7656b52f8" ], "x-ms-routing-request-id": [ - "WESTUS2:20180328T191604Z:e6cf5cd0-6a91-4a3d-86d4-3dd8b1cbb359" + "BRAZILUS:20200903T195010Z:a571f6d8-c97e-4623-a621-cee7656b52f8" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" + ], + "Content-Length": [ + "104" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" ] }, + "ResponseBody": "{\r\n \"name\": \"04b001c4-b057-4625-a69f-fc97ef4d255b\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T19:49:52Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/df7c055c-6310-4374-9852-10ef71ce5f85/resourceGroups/sqlcrudtest-8751/providers/Microsoft.Sql/servers/sqlcrudtest-4278/databases/sqlcrudtest-5696?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGY3YzA1NWMtNjMxMC00Mzc0LTk4NTItMTBlZjcxY2U1Zjg1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3NTEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC00Mjc4L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC01Njk2P2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/04b001c4-b057-4625-a69f-fc97ef4d255b-sqlcrudtest-8696?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vMDRiMDAxYzQtYjA1Ny00NjI1LWE2OWYtZmM5N2VmNGQyNTViLXNxbGNydWR0ZXN0LTg2OTY/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { - "x-ms-client-request-id": [ - "ef55e84c-e381-4fa9-b4b3-5742e0788e8f" - ], - "accept-language": [ - "en-US" - ], "User-Agent": [ - "FxVersion/4.6.26201.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.13.0.0" + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" ] }, - "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 10\r\n },\r\n \"kind\": \"v12.0,user\",\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": 268435456000,\r\n \"status\": \"Online\",\r\n \"databaseId\": \"bea3e64b-35cb-4e93-85d1-a8166d0562ed\",\r\n \"creationDate\": \"2018-03-28T19:14:33.153Z\",\r\n \"currentServiceObjectiveName\": \"S0\",\r\n \"requestedServiceObjectiveName\": \"S0\",\r\n \"defaultSecondaryLocation\": \"North Europe\",\r\n \"catalogCollation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"zoneRedundant\": false,\r\n \"earliestRestoreDate\": \"2018-03-28T19:46:02.423Z\",\r\n \"readScale\": \"Disabled\"\r\n },\r\n \"location\": \"westeurope\",\r\n \"id\": \"/subscriptions/df7c055c-6310-4374-9852-10ef71ce5f85/resourceGroups/sqlcrudtest-8751/providers/Microsoft.Sql/servers/sqlcrudtest-4278/databases/sqlcrudtest-5696\",\r\n \"name\": \"sqlcrudtest-5696\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], "Cache-Control": [ "no-cache" ], "Date": [ - "Wed, 28 Mar 2018 19:16:05 GMT" + "Thu, 03 Sep 2020 19:50:24 GMT" ], "Pragma": [ "no-cache" ], - "Transfer-Encoding": [ - "chunked" + "Retry-After": [ + "15" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], - "Vary": [ - "Accept-Encoding" - ], "x-ms-request-id": [ - "f28fe078-d879-4f0e-9e35-f372875b36e3" + "b3dd9abe-1bbd-4c6c-acc8-7128bc4c8c83" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14981" + "11962" ], "x-ms-correlation-request-id": [ - "017ecf6b-430c-4ab1-85fd-9f76efbfdc2e" + "643d4e8f-b362-4b0c-90e9-78574d03f0a4" ], "x-ms-routing-request-id": [ - "WESTUS2:20180328T191605Z:017ecf6b-430c-4ab1-85fd-9f76efbfdc2e" + "BRAZILUS:20200903T195025Z:643d4e8f-b362-4b0c-90e9-78574d03f0a4" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" + ], + "Content-Length": [ + "104" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" ] }, + "ResponseBody": "{\r\n \"name\": \"04b001c4-b057-4625-a69f-fc97ef4d255b\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T19:49:52Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/df7c055c-6310-4374-9852-10ef71ce5f85/resourceGroups/sqlcrudtest-8751/providers/Microsoft.Sql/servers/sqlcrudtest-4278/databases/sqlcrudtest-3359/export?api-version=2014-04-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGY3YzA1NWMtNjMxMC00Mzc0LTk4NTItMTBlZjcxY2U1Zjg1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3NTEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC00Mjc4L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC0zMzU5L2V4cG9ydD9hcGktdmVyc2lvbj0yMDE0LTA0LTAx", - "RequestMethod": "POST", - "RequestBody": "{\r\n \"storageKeyType\": \"StorageAccessKey\",\r\n \"storageKey\": \"0DIUmzA/jkRMHz1GYH+VIvW4FREPFYcuvglCojJvFynLWjYqPR/a06JyQ9jkUeflTExSfF9snssScCd+OfkxoQ==\",\r\n \"storageUri\": \"https://sqlcrudtest7398.blob.core.windows.net/container/sqlcrudtest-3359.bacpac\",\r\n \"administratorLogin\": \"dummylogin\",\r\n \"administratorLoginPassword\": \"Un53cuRE!\",\r\n \"authenticationType\": \"SQL\"\r\n}", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/04b001c4-b057-4625-a69f-fc97ef4d255b-sqlcrudtest-8696?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vMDRiMDAxYzQtYjA1Ny00NjI1LWE2OWYtZmM5N2VmNGQyNTViLXNxbGNydWR0ZXN0LTg2OTY/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "370" - ], - "x-ms-client-request-id": [ - "6a91d491-7251-4913-8246-7634302a5db5" - ], - "accept-language": [ - "en-US" - ], "User-Agent": [ - "FxVersion/4.6.26201.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.13.0.0" + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" ] }, - "ResponseBody": "{\r\n \"operation\": \"Export\",\r\n \"startTime\": \"2018-03-28T19:16:06.708Z\"\r\n}", "ResponseHeaders": { - "Content-Length": [ - "60" - ], - "Content-Type": [ - "application/xml; charset=utf-8" - ], "Cache-Control": [ - "no-store, no-cache" + "no-cache" ], "Date": [ - "Wed, 28 Mar 2018 19:16:06 GMT" + "Thu, 03 Sep 2020 19:50:40 GMT" ], - "Location": [ - "https://management.azure.com/subscriptions/df7c055c-6310-4374-9852-10ef71ce5f85/resourceGroups/sqlcrudtest-8751/providers/Microsoft.Sql/servers/sqlcrudtest-4278/databases/sqlcrudtest-3359/importExportOperationResults/c6d3eaa3-e654-47aa-bca9-bbf7e5a67676?api-version=2014-04-01-Preview" + "Pragma": [ + "no-cache" ], "Retry-After": [ - "30" + "15" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "ad7e754d-e40c-443f-8b06-d3e1f7fef51e" + "18e9cf39-5d5d-4f01-b66d-7b99a355bc96" ], - "X-Content-Type-Options": [ - "nosniff" + "x-ms-ratelimit-remaining-subscription-reads": [ + "11961" ], - "Preference-Applied": [ - "return-content" + "x-ms-correlation-request-id": [ + "a2a78021-d22e-457e-a901-64ce953f1f90" ], - "DataServiceVersion": [ - "3.0;" + "x-ms-routing-request-id": [ + "BRAZILUS:20200903T195040Z:a2a78021-d22e-457e-a901-64ce953f1f90" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1191" + "X-Content-Type-Options": [ + "nosniff" ], - "x-ms-correlation-request-id": [ - "4aeea79e-f809-4c49-806c-99c63ab04e3e" + "Content-Length": [ + "104" ], - "x-ms-routing-request-id": [ - "WESTUS2:20180328T191606Z:4aeea79e-f809-4c49-806c-99c63ab04e3e" + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" ] }, - "StatusCode": 202 + "ResponseBody": "{\r\n \"name\": \"04b001c4-b057-4625-a69f-fc97ef4d255b\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T19:49:52Z\"\r\n}", + "StatusCode": 200 }, { - "RequestUri": "/subscriptions/df7c055c-6310-4374-9852-10ef71ce5f85/resourceGroups/sqlcrudtest-8751/providers/Microsoft.Sql/servers/sqlcrudtest-4278/databases/sqlcrudtest-3359/importExportOperationResults/c6d3eaa3-e654-47aa-bca9-bbf7e5a67676?api-version=2014-04-01-Preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGY3YzA1NWMtNjMxMC00Mzc0LTk4NTItMTBlZjcxY2U1Zjg1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3NTEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC00Mjc4L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC0zMzU5L2ltcG9ydEV4cG9ydE9wZXJhdGlvblJlc3VsdHMvYzZkM2VhYTMtZTY1NC00N2FhLWJjYTktYmJmN2U1YTY3Njc2P2FwaS12ZXJzaW9uPTIwMTQtMDQtMDEtUHJldmlldw==", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/04b001c4-b057-4625-a69f-fc97ef4d255b-sqlcrudtest-8696?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vMDRiMDAxYzQtYjA1Ny00NjI1LWE2OWYtZmM5N2VmNGQyNTViLXNxbGNydWR0ZXN0LTg2OTY/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.26201.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.13.0.0" + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" ] }, - "ResponseBody": "{\r\n \"blobUri\": \"https://sqlcrudtest7398.blob.core.windows.net/container/sqlcrudtest-3359.bacpac\",\r\n \"databaseName\": \"sqlcrudtest-3359\",\r\n \"errorMessage\": null,\r\n \"lastModifiedTime\": \"3/28/2018 7:16:11 PM\",\r\n \"queuedTime\": \"3/28/2018 7:16:06 PM\",\r\n \"requestId\": \"c6d3eaa3-e654-47aa-bca9-bbf7e5a67676\",\r\n \"requestType\": \"Export\",\r\n \"serverName\": \"sqlcrudtest-4278.database.windows.net\",\r\n \"status\": \"Running, Progress = 0%\"\r\n}", "ResponseHeaders": { - "Content-Length": [ - "394" - ], - "Content-Type": [ - "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" - ], "Cache-Control": [ - "no-store, no-cache" + "no-cache" ], "Date": [ - "Wed, 28 Mar 2018 19:16:36 GMT" + "Thu, 03 Sep 2020 19:50:55 GMT" ], - "Location": [ - "https://management.azure.com/subscriptions/df7c055c-6310-4374-9852-10ef71ce5f85/resourceGroups/sqlcrudtest-8751/providers/Microsoft.Sql/servers/sqlcrudtest-4278/databases/sqlcrudtest-3359/importExportOperationResults/c6d3eaa3-e654-47aa-bca9-bbf7e5a67676?api-version=2014-04-01-Preview" + "Pragma": [ + "no-cache" ], "Retry-After": [ - "30" + "15" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "4131ea70-d5b2-4b47-994a-33de9bd34659" + "3e928851-443c-4c10-90ab-e2c6dd92243a" ], - "X-Content-Type-Options": [ - "nosniff" + "x-ms-ratelimit-remaining-subscription-reads": [ + "11960" ], - "DataServiceVersion": [ - "3.0;" + "x-ms-correlation-request-id": [ + "3ee5d140-0639-4aa0-97ae-01fc09a60432" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200903T195056Z:3ee5d140-0639-4aa0-97ae-01fc09a60432" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14980" + "X-Content-Type-Options": [ + "nosniff" ], - "x-ms-correlation-request-id": [ - "274f3d0c-aae9-426e-8a9f-bcedd51ece82" + "Content-Length": [ + "104" ], - "x-ms-routing-request-id": [ - "WESTUS2:20180328T191637Z:274f3d0c-aae9-426e-8a9f-bcedd51ece82" + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" ] }, - "StatusCode": 202 + "ResponseBody": "{\r\n \"name\": \"04b001c4-b057-4625-a69f-fc97ef4d255b\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T19:50:53Z\"\r\n}", + "StatusCode": 200 }, { - "RequestUri": "/subscriptions/df7c055c-6310-4374-9852-10ef71ce5f85/resourceGroups/sqlcrudtest-8751/providers/Microsoft.Sql/servers/sqlcrudtest-4278/databases/sqlcrudtest-3359/importExportOperationResults/c6d3eaa3-e654-47aa-bca9-bbf7e5a67676?api-version=2014-04-01-Preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGY3YzA1NWMtNjMxMC00Mzc0LTk4NTItMTBlZjcxY2U1Zjg1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3NTEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC00Mjc4L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC0zMzU5L2ltcG9ydEV4cG9ydE9wZXJhdGlvblJlc3VsdHMvYzZkM2VhYTMtZTY1NC00N2FhLWJjYTktYmJmN2U1YTY3Njc2P2FwaS12ZXJzaW9uPTIwMTQtMDQtMDEtUHJldmlldw==", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/04b001c4-b057-4625-a69f-fc97ef4d255b-sqlcrudtest-8696?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vMDRiMDAxYzQtYjA1Ny00NjI1LWE2OWYtZmM5N2VmNGQyNTViLXNxbGNydWR0ZXN0LTg2OTY/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.26201.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.13.0.0" + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" ] }, - "ResponseBody": "{\r\n \"blobUri\": \"https://sqlcrudtest7398.blob.core.windows.net/container/sqlcrudtest-3359.bacpac\",\r\n \"databaseName\": \"sqlcrudtest-3359\",\r\n \"errorMessage\": null,\r\n \"lastModifiedTime\": \"3/28/2018 7:16:11 PM\",\r\n \"queuedTime\": \"3/28/2018 7:16:06 PM\",\r\n \"requestId\": \"c6d3eaa3-e654-47aa-bca9-bbf7e5a67676\",\r\n \"requestType\": \"Export\",\r\n \"serverName\": \"sqlcrudtest-4278.database.windows.net\",\r\n \"status\": \"Running, Progress = 0%\"\r\n}", "ResponseHeaders": { - "Content-Length": [ - "394" - ], - "Content-Type": [ - "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" - ], "Cache-Control": [ - "no-store, no-cache" + "no-cache" ], "Date": [ - "Wed, 28 Mar 2018 19:17:07 GMT" + "Thu, 03 Sep 2020 19:51:10 GMT" ], - "Location": [ - "https://management.azure.com/subscriptions/df7c055c-6310-4374-9852-10ef71ce5f85/resourceGroups/sqlcrudtest-8751/providers/Microsoft.Sql/servers/sqlcrudtest-4278/databases/sqlcrudtest-3359/importExportOperationResults/c6d3eaa3-e654-47aa-bca9-bbf7e5a67676?api-version=2014-04-01-Preview" + "Pragma": [ + "no-cache" ], "Retry-After": [ - "30" + "15" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "45203057-9e6b-461b-b4d4-fefb5073cf94" + "839d10b0-1135-4d39-9036-17785e694ff2" ], - "X-Content-Type-Options": [ - "nosniff" + "x-ms-ratelimit-remaining-subscription-reads": [ + "11959" ], - "DataServiceVersion": [ - "3.0;" + "x-ms-correlation-request-id": [ + "8f2a8fd4-5305-4dd3-8566-3985c79a3050" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200903T195111Z:8f2a8fd4-5305-4dd3-8566-3985c79a3050" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14979" + "X-Content-Type-Options": [ + "nosniff" ], - "x-ms-correlation-request-id": [ - "192f2509-fa73-416b-8fd5-cf6497f20ed6" + "Content-Length": [ + "103" ], - "x-ms-routing-request-id": [ - "WESTUS2:20180328T191707Z:192f2509-fa73-416b-8fd5-cf6497f20ed6" + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" ] }, - "StatusCode": 202 + "ResponseBody": "{\r\n \"name\": \"04b001c4-b057-4625-a69f-fc97ef4d255b\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2020-09-03T19:51:05Z\"\r\n}", + "StatusCode": 200 }, { - "RequestUri": "/subscriptions/df7c055c-6310-4374-9852-10ef71ce5f85/resourceGroups/sqlcrudtest-8751/providers/Microsoft.Sql/servers/sqlcrudtest-4278/databases/sqlcrudtest-3359/importExportOperationResults/c6d3eaa3-e654-47aa-bca9-bbf7e5a67676?api-version=2014-04-01-Preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGY3YzA1NWMtNjMxMC00Mzc0LTk4NTItMTBlZjcxY2U1Zjg1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3NTEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC00Mjc4L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC0zMzU5L2ltcG9ydEV4cG9ydE9wZXJhdGlvblJlc3VsdHMvYzZkM2VhYTMtZTY1NC00N2FhLWJjYTktYmJmN2U1YTY3Njc2P2FwaS12ZXJzaW9uPTIwMTQtMDQtMDEtUHJldmlldw==", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportOperationResults/04b001c4-b057-4625-a69f-fc97ef4d255b-sqlcrudtest-8696?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydE9wZXJhdGlvblJlc3VsdHMvMDRiMDAxYzQtYjA1Ny00NjI1LWE2OWYtZmM5N2VmNGQyNTViLXNxbGNydWR0ZXN0LTg2OTY/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.26201.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.13.0.0" + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" ] }, - "ResponseBody": "{\r\n \"blobUri\": \"https://sqlcrudtest7398.blob.core.windows.net/container/sqlcrudtest-3359.bacpac\",\r\n \"databaseName\": \"sqlcrudtest-3359\",\r\n \"errorMessage\": null,\r\n \"lastModifiedTime\": \"3/28/2018 7:16:11 PM\",\r\n \"queuedTime\": \"3/28/2018 7:16:06 PM\",\r\n \"requestId\": \"c6d3eaa3-e654-47aa-bca9-bbf7e5a67676\",\r\n \"requestType\": \"Export\",\r\n \"serverName\": \"sqlcrudtest-4278.database.windows.net\",\r\n \"status\": \"Running, Progress = 0%\"\r\n}", "ResponseHeaders": { - "Content-Length": [ - "394" - ], - "Content-Type": [ - "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" - ], "Cache-Control": [ - "no-store, no-cache" + "no-cache" ], "Date": [ - "Wed, 28 Mar 2018 19:17:36 GMT" + "Thu, 03 Sep 2020 19:51:10 GMT" ], - "Location": [ - "https://management.azure.com/subscriptions/df7c055c-6310-4374-9852-10ef71ce5f85/resourceGroups/sqlcrudtest-8751/providers/Microsoft.Sql/servers/sqlcrudtest-4278/databases/sqlcrudtest-3359/importExportOperationResults/c6d3eaa3-e654-47aa-bca9-bbf7e5a67676?api-version=2014-04-01-Preview" - ], - "Retry-After": [ - "30" + "Pragma": [ + "no-cache" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "ea7fa149-2643-4f68-b52c-dfb4e4120c21" + "0021a2d0-c723-493c-9067-a0a5f531bb37" ], - "X-Content-Type-Options": [ - "nosniff" + "x-ms-ratelimit-remaining-subscription-reads": [ + "11958" ], - "DataServiceVersion": [ - "3.0;" + "x-ms-correlation-request-id": [ + "85ddb0db-131a-479c-b9a2-8d102ce0da07" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200903T195111Z:85ddb0db-131a-479c-b9a2-8d102ce0da07" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14978" + "X-Content-Type-Options": [ + "nosniff" ], - "x-ms-correlation-request-id": [ - "0366a121-84c2-41da-be51-fc89e106e8c9" + "Content-Length": [ + "545" ], - "x-ms-routing-request-id": [ - "WESTUS2:20180328T191737Z:0366a121-84c2-41da-be51-fc89e106e8c9" + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" ] }, - "StatusCode": 202 + "ResponseBody": "{\r\n \"properties\": {\r\n \"requestId\": \"04b001c4-b057-4625-a69f-fc97ef4d255b\",\r\n \"requestType\": \"ExportDatabase\",\r\n \"queuedTime\": \"9/3/2020 7:49:52 PM\",\r\n \"lastModifiedTime\": \"9/3/2020 7:51:05 PM\",\r\n \"blobUri\": \"https://sqlcrudtest8107.blob.core.windows.net/container/sqlcrudtest-6275.bacpac\",\r\n \"serverName\": \"sqlcrudtest-8696\",\r\n \"databaseName\": \"sqlcrudtest-6275\",\r\n \"status\": \"Completed\",\r\n \"privateEndpointConnections\": []\r\n },\r\n \"id\": \"04b001c4-b057-4625-a69f-fc97ef4d255b\",\r\n \"name\": \"04b001c4-b057-4625-a69f-fc97ef4d255b\",\r\n \"type\": \"Microsoft.Sql/servers/databases/importExportOperationResults\"\r\n}", + "StatusCode": 200 }, { - "RequestUri": "/subscriptions/df7c055c-6310-4374-9852-10ef71ce5f85/resourceGroups/sqlcrudtest-8751/providers/Microsoft.Sql/servers/sqlcrudtest-4278/databases/sqlcrudtest-3359/importExportOperationResults/c6d3eaa3-e654-47aa-bca9-bbf7e5a67676?api-version=2014-04-01-Preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGY3YzA1NWMtNjMxMC00Mzc0LTk4NTItMTBlZjcxY2U1Zjg1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3NTEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC00Mjc4L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC0zMzU5L2ltcG9ydEV4cG9ydE9wZXJhdGlvblJlc3VsdHMvYzZkM2VhYTMtZTY1NC00N2FhLWJjYTktYmJmN2U1YTY3Njc2P2FwaS12ZXJzaW9uPTIwMTQtMDQtMDEtUHJldmlldw==", - "RequestMethod": "GET", - "RequestBody": "", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Sql/servers/sqlcrudtest-8696/databases/sqlcrudtest-9440/import?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczMTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC04Njk2L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC05NDQwL2ltcG9ydD9hcGktdmVyc2lvbj0yMDIwLTAyLTAyLXByZXZpZXc=", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"storageKeyType\": \"StorageAccessKey\",\r\n \"storageKey\": \"ZPMelgVaCQ+kNB1JHAO/hRWbaXRfH9/zUy6IHjXanuKhY/EcPWiz1TVp2s/9kAB1hJUN8x2A5QWtEvvxeUv6Lg==\",\r\n \"storageUri\": \"https://sqlcrudtest8107.blob.core.windows.net/container/sqlcrudtest-6275.bacpac\",\r\n \"administratorLogin\": \"dummylogin\",\r\n \"administratorLoginPassword\": \"Un53cuRE!\",\r\n \"authenticationType\": \"SQL\"\r\n}", "RequestHeaders": { + "x-ms-client-request-id": [ + "5cf743b5-b721-43f1-9cd0-a79439cde0a1" + ], + "accept-language": [ + "en-US" + ], "User-Agent": [ - "FxVersion/4.6.26201.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.13.0.0" - ] - }, - "ResponseBody": "{\r\n \"blobUri\": \"https://sqlcrudtest7398.blob.core.windows.net/container/sqlcrudtest-3359.bacpac\",\r\n \"databaseName\": \"sqlcrudtest-3359\",\r\n \"errorMessage\": null,\r\n \"lastModifiedTime\": \"3/28/2018 7:16:11 PM\",\r\n \"queuedTime\": \"3/28/2018 7:16:06 PM\",\r\n \"requestId\": \"c6d3eaa3-e654-47aa-bca9-bbf7e5a67676\",\r\n \"requestType\": \"Export\",\r\n \"serverName\": \"sqlcrudtest-4278.database.windows.net\",\r\n \"status\": \"Running, Progress = 0%\"\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "394" + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" ], "Content-Type": [ - "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + "application/json; charset=utf-8" ], + "Content-Length": [ + "370" + ] + }, + "ResponseHeaders": { "Cache-Control": [ - "no-store, no-cache" + "no-cache" ], "Date": [ - "Wed, 28 Mar 2018 19:18:07 GMT" + "Thu, 03 Sep 2020 19:51:11 GMT" + ], + "Pragma": [ + "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/df7c055c-6310-4374-9852-10ef71ce5f85/resourceGroups/sqlcrudtest-8751/providers/Microsoft.Sql/servers/sqlcrudtest-4278/databases/sqlcrudtest-3359/importExportOperationResults/c6d3eaa3-e654-47aa-bca9-bbf7e5a67676?api-version=2014-04-01-Preview" + "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportOperationResults/75746ddf-2544-4bba-9d43-78eb5ca5d6e2-sqlcrudtest-8696?api-version=2020-02-02-preview" ], "Retry-After": [ - "30" + "15" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], + "Azure-AsyncOperation": [ + "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/75746ddf-2544-4bba-9d43-78eb5ca5d6e2-sqlcrudtest-8696?api-version=2020-02-02-preview" + ], "x-ms-request-id": [ - "29de4cf6-5a56-4d34-b242-2f9f14bed5f7" + "c8c6dba8-f959-41f3-bf55-a94c790f38a5" ], - "X-Content-Type-Options": [ - "nosniff" + "x-ms-ratelimit-remaining-subscription-writes": [ + "1196" ], - "DataServiceVersion": [ - "3.0;" + "x-ms-correlation-request-id": [ + "7513af2f-fd6b-49ae-9315-5b568be843d7" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200903T195112Z:7513af2f-fd6b-49ae-9315-5b568be843d7" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14977" + "X-Content-Type-Options": [ + "nosniff" ], - "x-ms-correlation-request-id": [ - "25569d36-2e2d-4061-b8e0-94bc20ea2581" + "Content-Length": [ + "65" ], - "x-ms-routing-request-id": [ - "WESTUS2:20180328T191807Z:25569d36-2e2d-4061-b8e0-94bc20ea2581" + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" ] }, + "ResponseBody": "{\r\n \"operation\": \"Import\",\r\n \"startTime\": \"2020-09-03T19:51:12.5385611Z\"\r\n}", "StatusCode": 202 }, { - "RequestUri": "/subscriptions/df7c055c-6310-4374-9852-10ef71ce5f85/resourceGroups/sqlcrudtest-8751/providers/Microsoft.Sql/servers/sqlcrudtest-4278/databases/sqlcrudtest-3359/importExportOperationResults/c6d3eaa3-e654-47aa-bca9-bbf7e5a67676?api-version=2014-04-01-Preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGY3YzA1NWMtNjMxMC00Mzc0LTk4NTItMTBlZjcxY2U1Zjg1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3NTEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC00Mjc4L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC0zMzU5L2ltcG9ydEV4cG9ydE9wZXJhdGlvblJlc3VsdHMvYzZkM2VhYTMtZTY1NC00N2FhLWJjYTktYmJmN2U1YTY3Njc2P2FwaS12ZXJzaW9uPTIwMTQtMDQtMDEtUHJldmlldw==", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/75746ddf-2544-4bba-9d43-78eb5ca5d6e2-sqlcrudtest-8696?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vNzU3NDZkZGYtMjU0NC00YmJhLTlkNDMtNzhlYjVjYTVkNmUyLXNxbGNydWR0ZXN0LTg2OTY/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.26201.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.13.0.0" + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/df7c055c-6310-4374-9852-10ef71ce5f85/resourceGroups/sqlcrudtest-8751/providers/Microsoft.Sql/servers/sqlcrudtest-4278/databases/sqlcrudtest-3359/importExportOperationResults/c6d3eaa3-e654-47aa-bca9-bbf7e5a67676\",\r\n \"name\": \"c6d3eaa3-e654-47aa-bca9-bbf7e5a67676\",\r\n \"type\": \"Microsoft.Sql/servers/databases/importExportOperationResults\",\r\n \"properties\": {\r\n \"requestId\": \"c6d3eaa3-e654-47aa-bca9-bbf7e5a67676\",\r\n \"requestType\": \"Export\",\r\n \"queuedTime\": \"3/28/2018 7:16:06 PM\",\r\n \"lastModifiedTime\": \"3/28/2018 7:18:30 PM\",\r\n \"blobUri\": \"https://sqlcrudtest7398.blob.core.windows.net/container/sqlcrudtest-3359.bacpac\",\r\n \"serverName\": \"sqlcrudtest-4278\",\r\n \"databaseName\": \"sqlcrudtest-3359\",\r\n \"status\": \"Completed\",\r\n \"errorMessage\": null\r\n }\r\n}", "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" - ], "Cache-Control": [ - "no-store, no-cache" + "no-cache" ], "Date": [ - "Wed, 28 Mar 2018 19:18:37 GMT" + "Thu, 03 Sep 2020 19:51:27 GMT" + ], + "Pragma": [ + "no-cache" ], - "Transfer-Encoding": [ - "chunked" + "Retry-After": [ + "15" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], - "Vary": [ - "Accept-Encoding" - ], "x-ms-request-id": [ - "9c2c9f7e-113c-4182-be84-433a42fecb66" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "DataServiceVersion": [ - "3.0;" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" + "51fb6293-94b6-4058-9b11-a9280e475a07" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14976" + "11957" ], "x-ms-correlation-request-id": [ - "1e912e36-1693-4721-841f-487f0943dcf4" + "c9112a76-1b37-4e09-a0a4-a3e3356f9ee7" ], "x-ms-routing-request-id": [ - "WESTUS2:20180328T191838Z:1e912e36-1693-4721-841f-487f0943dcf4" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/df7c055c-6310-4374-9852-10ef71ce5f85/resourceGroups/sqlcrudtest-8751/providers/Microsoft.Sql/servers/sqlcrudtest-4278/databases/sqlcrudtest-3359/importExportOperationResults/c6d3eaa3-e654-47aa-bca9-bbf7e5a67676?api-version=2014-04-01-Preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGY3YzA1NWMtNjMxMC00Mzc0LTk4NTItMTBlZjcxY2U1Zjg1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3NTEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC00Mjc4L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC0zMzU5L2ltcG9ydEV4cG9ydE9wZXJhdGlvblJlc3VsdHMvYzZkM2VhYTMtZTY1NC00N2FhLWJjYTktYmJmN2U1YTY3Njc2P2FwaS12ZXJzaW9uPTIwMTQtMDQtMDEtUHJldmlldw==", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.26201.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.13.0.0" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/df7c055c-6310-4374-9852-10ef71ce5f85/resourceGroups/sqlcrudtest-8751/providers/Microsoft.Sql/servers/sqlcrudtest-4278/databases/sqlcrudtest-3359/importExportOperationResults/c6d3eaa3-e654-47aa-bca9-bbf7e5a67676\",\r\n \"name\": \"c6d3eaa3-e654-47aa-bca9-bbf7e5a67676\",\r\n \"type\": \"Microsoft.Sql/servers/databases/importExportOperationResults\",\r\n \"properties\": {\r\n \"requestId\": \"c6d3eaa3-e654-47aa-bca9-bbf7e5a67676\",\r\n \"requestType\": \"Export\",\r\n \"queuedTime\": \"3/28/2018 7:16:06 PM\",\r\n \"lastModifiedTime\": \"3/28/2018 7:18:30 PM\",\r\n \"blobUri\": \"https://sqlcrudtest7398.blob.core.windows.net/container/sqlcrudtest-3359.bacpac\",\r\n \"serverName\": \"sqlcrudtest-4278\",\r\n \"databaseName\": \"sqlcrudtest-3359\",\r\n \"status\": \"Completed\",\r\n \"errorMessage\": null\r\n }\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" - ], - "Cache-Control": [ - "no-store, no-cache" + "BRAZILUS:20200903T195127Z:c9112a76-1b37-4e09-a0a4-a3e3356f9ee7" ], - "Date": [ - "Wed, 28 Mar 2018 19:18:38 GMT" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "Vary": [ - "Accept-Encoding" - ], - "x-ms-request-id": [ - "ce58ab75-edea-4c15-b5f1-015f8901e4ff" + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "DataServiceVersion": [ - "3.0;" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14975" + "Content-Length": [ + "104" ], - "x-ms-correlation-request-id": [ - "9f076a2d-3926-4fa9-9738-6799824b4c4d" + "Content-Type": [ + "application/json; charset=utf-8" ], - "x-ms-routing-request-id": [ - "WESTUS2:20180328T191838Z:9f076a2d-3926-4fa9-9738-6799824b4c4d" + "Expires": [ + "-1" ] }, + "ResponseBody": "{\r\n \"name\": \"75746ddf-2544-4bba-9d43-78eb5ca5d6e2\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T19:51:11Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/df7c055c-6310-4374-9852-10ef71ce5f85/resourceGroups/sqlcrudtest-8751/providers/Microsoft.Sql/servers/sqlcrudtest-4278/databases/sqlcrudtest-5696/extensions/import?api-version=2014-04-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGY3YzA1NWMtNjMxMC00Mzc0LTk4NTItMTBlZjcxY2U1Zjg1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3NTEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC00Mjc4L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC01Njk2L2V4dGVuc2lvbnMvaW1wb3J0P2FwaS12ZXJzaW9uPTIwMTQtMDQtMDE=", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"storageKeyType\": \"StorageAccessKey\",\r\n \"storageKey\": \"0DIUmzA/jkRMHz1GYH+VIvW4FREPFYcuvglCojJvFynLWjYqPR/a06JyQ9jkUeflTExSfF9snssScCd+OfkxoQ==\",\r\n \"storageUri\": \"https://sqlcrudtest7398.blob.core.windows.net/container/sqlcrudtest-3359.bacpac\",\r\n \"administratorLogin\": \"dummylogin\",\r\n \"administratorLoginPassword\": \"Un53cuRE!\",\r\n \"authenticationType\": \"SQL\",\r\n \"operationMode\": \"Import\"\r\n }\r\n}", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/75746ddf-2544-4bba-9d43-78eb5ca5d6e2-sqlcrudtest-8696?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vNzU3NDZkZGYtMjU0NC00YmJhLTlkNDMtNzhlYjVjYTVkNmUyLXNxbGNydWR0ZXN0LTg2OTY/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "438" - ], - "x-ms-client-request-id": [ - "1c85c1e0-0765-4bc1-9063-696e3c1981f8" - ], - "accept-language": [ - "en-US" - ], "User-Agent": [ - "FxVersion/4.6.26201.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.13.0.0" + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" ] }, - "ResponseBody": "{\r\n \"operation\": \"Import\",\r\n \"startTime\": \"2018-03-28T19:18:39.616Z\"\r\n}", "ResponseHeaders": { - "Content-Length": [ - "60" - ], - "Content-Type": [ - "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" - ], "Cache-Control": [ - "no-store, no-cache" + "no-cache" ], "Date": [ - "Wed, 28 Mar 2018 19:18:39 GMT" + "Thu, 03 Sep 2020 19:51:42 GMT" ], - "Location": [ - "https://management.azure.com/subscriptions/df7c055c-6310-4374-9852-10ef71ce5f85/resourceGroups/sqlcrudtest-8751/providers/Microsoft.Sql/servers/sqlcrudtest-4278/databases/sqlcrudtest-5696/extensions/import/importExtensionOperationResults/e7dfb2b0-9c96-43e6-aa3a-1dda49b67470?api-version=2014-04-01-Preview" + "Pragma": [ + "no-cache" ], "Retry-After": [ - "30" + "15" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "20ceabc8-786b-4ea8-94c7-78f70f556ace" + "7f6a9d2f-621f-4076-b503-60e66aa97d9f" ], - "X-Content-Type-Options": [ - "nosniff" + "x-ms-ratelimit-remaining-subscription-reads": [ + "11956" ], - "Preference-Applied": [ - "return-content" + "x-ms-correlation-request-id": [ + "b58a5e59-0bca-4557-80fe-1ff9a8c0fbc0" ], - "DataServiceVersion": [ - "3.0;" + "x-ms-routing-request-id": [ + "BRAZILUS:20200903T195142Z:b58a5e59-0bca-4557-80fe-1ff9a8c0fbc0" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1190" + "X-Content-Type-Options": [ + "nosniff" ], - "x-ms-correlation-request-id": [ - "01985b9e-7e88-43c1-af32-9072c431782f" + "Content-Length": [ + "104" ], - "x-ms-routing-request-id": [ - "WESTUS2:20180328T191839Z:01985b9e-7e88-43c1-af32-9072c431782f" + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" ] }, - "StatusCode": 202 + "ResponseBody": "{\r\n \"name\": \"75746ddf-2544-4bba-9d43-78eb5ca5d6e2\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T19:51:11Z\"\r\n}", + "StatusCode": 200 }, { - "RequestUri": "/subscriptions/df7c055c-6310-4374-9852-10ef71ce5f85/resourceGroups/sqlcrudtest-8751/providers/Microsoft.Sql/servers/sqlcrudtest-4278/databases/sqlcrudtest-5696/extensions/import/importExtensionOperationResults/e7dfb2b0-9c96-43e6-aa3a-1dda49b67470?api-version=2014-04-01-Preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGY3YzA1NWMtNjMxMC00Mzc0LTk4NTItMTBlZjcxY2U1Zjg1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3NTEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC00Mjc4L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC01Njk2L2V4dGVuc2lvbnMvaW1wb3J0L2ltcG9ydEV4dGVuc2lvbk9wZXJhdGlvblJlc3VsdHMvZTdkZmIyYjAtOWM5Ni00M2U2LWFhM2EtMWRkYTQ5YjY3NDcwP2FwaS12ZXJzaW9uPTIwMTQtMDQtMDEtUHJldmlldw==", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/75746ddf-2544-4bba-9d43-78eb5ca5d6e2-sqlcrudtest-8696?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vNzU3NDZkZGYtMjU0NC00YmJhLTlkNDMtNzhlYjVjYTVkNmUyLXNxbGNydWR0ZXN0LTg2OTY/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.26201.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.13.0.0" + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" ] }, - "ResponseBody": "{\r\n \"blobUri\": \"https://sqlcrudtest7398.blob.core.windows.net/container/sqlcrudtest-3359.bacpac\",\r\n \"databaseName\": \"sqlcrudtest-5696\",\r\n \"errorMessage\": null,\r\n \"lastModifiedTime\": \"3/28/2018 7:18:41 PM\",\r\n \"queuedTime\": \"3/28/2018 7:18:39 PM\",\r\n \"requestId\": \"e7dfb2b0-9c96-43e6-aa3a-1dda49b67470\",\r\n \"requestType\": \"Import\",\r\n \"serverName\": \"sqlcrudtest-4278.database.windows.net\",\r\n \"status\": \"Running, Progress = 5.00 %\"\r\n}", "ResponseHeaders": { - "Content-Length": [ - "398" - ], - "Content-Type": [ - "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" - ], "Cache-Control": [ - "no-store, no-cache" + "no-cache" ], "Date": [ - "Wed, 28 Mar 2018 19:19:09 GMT" + "Thu, 03 Sep 2020 19:51:57 GMT" ], - "Location": [ - "https://management.azure.com/subscriptions/df7c055c-6310-4374-9852-10ef71ce5f85/resourceGroups/sqlcrudtest-8751/providers/Microsoft.Sql/servers/sqlcrudtest-4278/databases/sqlcrudtest-5696/extensions/import/importExtensionOperationResults/e7dfb2b0-9c96-43e6-aa3a-1dda49b67470?api-version=2014-04-01-Preview" + "Pragma": [ + "no-cache" ], "Retry-After": [ - "30" + "15" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "da960106-f466-4ce2-a66d-fb2dda8622e9" + "f0424faf-5b03-45d4-9e92-e130d06e2607" ], - "X-Content-Type-Options": [ - "nosniff" + "x-ms-ratelimit-remaining-subscription-reads": [ + "11955" ], - "DataServiceVersion": [ - "3.0;" + "x-ms-correlation-request-id": [ + "184b40dc-fd22-4d26-ba64-6f32ae700189" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200903T195158Z:184b40dc-fd22-4d26-ba64-6f32ae700189" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14974" + "X-Content-Type-Options": [ + "nosniff" ], - "x-ms-correlation-request-id": [ - "99d81dc8-71c3-4f70-b046-fc6c426ab81b" + "Content-Length": [ + "104" ], - "x-ms-routing-request-id": [ - "WESTUS2:20180328T191910Z:99d81dc8-71c3-4f70-b046-fc6c426ab81b" + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" ] }, - "StatusCode": 202 + "ResponseBody": "{\r\n \"name\": \"75746ddf-2544-4bba-9d43-78eb5ca5d6e2\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T19:51:11Z\"\r\n}", + "StatusCode": 200 }, { - "RequestUri": "/subscriptions/df7c055c-6310-4374-9852-10ef71ce5f85/resourceGroups/sqlcrudtest-8751/providers/Microsoft.Sql/servers/sqlcrudtest-4278/databases/sqlcrudtest-5696/extensions/import/importExtensionOperationResults/e7dfb2b0-9c96-43e6-aa3a-1dda49b67470?api-version=2014-04-01-Preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGY3YzA1NWMtNjMxMC00Mzc0LTk4NTItMTBlZjcxY2U1Zjg1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3NTEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC00Mjc4L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC01Njk2L2V4dGVuc2lvbnMvaW1wb3J0L2ltcG9ydEV4dGVuc2lvbk9wZXJhdGlvblJlc3VsdHMvZTdkZmIyYjAtOWM5Ni00M2U2LWFhM2EtMWRkYTQ5YjY3NDcwP2FwaS12ZXJzaW9uPTIwMTQtMDQtMDEtUHJldmlldw==", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/75746ddf-2544-4bba-9d43-78eb5ca5d6e2-sqlcrudtest-8696?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vNzU3NDZkZGYtMjU0NC00YmJhLTlkNDMtNzhlYjVjYTVkNmUyLXNxbGNydWR0ZXN0LTg2OTY/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.26201.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.13.0.0" + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" ] }, - "ResponseBody": "{\r\n \"blobUri\": \"https://sqlcrudtest7398.blob.core.windows.net/container/sqlcrudtest-3359.bacpac\",\r\n \"databaseName\": \"sqlcrudtest-5696\",\r\n \"errorMessage\": null,\r\n \"lastModifiedTime\": \"3/28/2018 7:18:41 PM\",\r\n \"queuedTime\": \"3/28/2018 7:18:39 PM\",\r\n \"requestId\": \"e7dfb2b0-9c96-43e6-aa3a-1dda49b67470\",\r\n \"requestType\": \"Import\",\r\n \"serverName\": \"sqlcrudtest-4278.database.windows.net\",\r\n \"status\": \"Running, Progress = 5.00 %\"\r\n}", "ResponseHeaders": { - "Content-Length": [ - "398" - ], - "Content-Type": [ - "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" - ], "Cache-Control": [ - "no-store, no-cache" + "no-cache" ], "Date": [ - "Wed, 28 Mar 2018 19:19:39 GMT" + "Thu, 03 Sep 2020 19:52:12 GMT" ], - "Location": [ - "https://management.azure.com/subscriptions/df7c055c-6310-4374-9852-10ef71ce5f85/resourceGroups/sqlcrudtest-8751/providers/Microsoft.Sql/servers/sqlcrudtest-4278/databases/sqlcrudtest-5696/extensions/import/importExtensionOperationResults/e7dfb2b0-9c96-43e6-aa3a-1dda49b67470?api-version=2014-04-01-Preview" + "Pragma": [ + "no-cache" ], "Retry-After": [ - "30" + "15" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "36ea80c6-c495-472e-a821-ad20bc87611c" + "e35cd2fe-3113-4476-8e79-1a82ad369e06" ], - "X-Content-Type-Options": [ - "nosniff" + "x-ms-ratelimit-remaining-subscription-reads": [ + "11954" ], - "DataServiceVersion": [ - "3.0;" + "x-ms-correlation-request-id": [ + "489aeb3e-c8f3-45fb-8f28-b4d37dedb5bf" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200903T195213Z:489aeb3e-c8f3-45fb-8f28-b4d37dedb5bf" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14973" + "X-Content-Type-Options": [ + "nosniff" ], - "x-ms-correlation-request-id": [ - "b38f8288-4922-4b2d-b5fb-2823f1571911" + "Content-Length": [ + "104" ], - "x-ms-routing-request-id": [ - "WESTUS2:20180328T191940Z:b38f8288-4922-4b2d-b5fb-2823f1571911" + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" ] }, - "StatusCode": 202 + "ResponseBody": "{\r\n \"name\": \"75746ddf-2544-4bba-9d43-78eb5ca5d6e2\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T19:52:11Z\"\r\n}", + "StatusCode": 200 }, { - "RequestUri": "/subscriptions/df7c055c-6310-4374-9852-10ef71ce5f85/resourceGroups/sqlcrudtest-8751/providers/Microsoft.Sql/servers/sqlcrudtest-4278/databases/sqlcrudtest-5696/extensions/import/importExtensionOperationResults/e7dfb2b0-9c96-43e6-aa3a-1dda49b67470?api-version=2014-04-01-Preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGY3YzA1NWMtNjMxMC00Mzc0LTk4NTItMTBlZjcxY2U1Zjg1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3NTEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC00Mjc4L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC01Njk2L2V4dGVuc2lvbnMvaW1wb3J0L2ltcG9ydEV4dGVuc2lvbk9wZXJhdGlvblJlc3VsdHMvZTdkZmIyYjAtOWM5Ni00M2U2LWFhM2EtMWRkYTQ5YjY3NDcwP2FwaS12ZXJzaW9uPTIwMTQtMDQtMDEtUHJldmlldw==", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/75746ddf-2544-4bba-9d43-78eb5ca5d6e2-sqlcrudtest-8696?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vNzU3NDZkZGYtMjU0NC00YmJhLTlkNDMtNzhlYjVjYTVkNmUyLXNxbGNydWR0ZXN0LTg2OTY/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.26201.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.13.0.0" + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" ] }, - "ResponseBody": "{\r\n \"blobUri\": \"https://sqlcrudtest7398.blob.core.windows.net/container/sqlcrudtest-3359.bacpac\",\r\n \"databaseName\": \"sqlcrudtest-5696\",\r\n \"errorMessage\": null,\r\n \"lastModifiedTime\": \"3/28/2018 7:18:41 PM\",\r\n \"queuedTime\": \"3/28/2018 7:18:39 PM\",\r\n \"requestId\": \"e7dfb2b0-9c96-43e6-aa3a-1dda49b67470\",\r\n \"requestType\": \"Import\",\r\n \"serverName\": \"sqlcrudtest-4278.database.windows.net\",\r\n \"status\": \"Running, Progress = 5.00 %\"\r\n}", "ResponseHeaders": { - "Content-Length": [ - "398" - ], - "Content-Type": [ - "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" - ], "Cache-Control": [ - "no-store, no-cache" + "no-cache" ], "Date": [ - "Wed, 28 Mar 2018 19:20:10 GMT" + "Thu, 03 Sep 2020 19:52:27 GMT" ], - "Location": [ - "https://management.azure.com/subscriptions/df7c055c-6310-4374-9852-10ef71ce5f85/resourceGroups/sqlcrudtest-8751/providers/Microsoft.Sql/servers/sqlcrudtest-4278/databases/sqlcrudtest-5696/extensions/import/importExtensionOperationResults/e7dfb2b0-9c96-43e6-aa3a-1dda49b67470?api-version=2014-04-01-Preview" + "Pragma": [ + "no-cache" ], "Retry-After": [ - "30" + "15" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "80a93bad-ee51-43ba-8e10-e34afdd06210" + "747143f8-6772-48c2-8491-fff2a3d4ebb7" ], - "X-Content-Type-Options": [ - "nosniff" + "x-ms-ratelimit-remaining-subscription-reads": [ + "11953" ], - "DataServiceVersion": [ - "3.0;" + "x-ms-correlation-request-id": [ + "083c5497-9848-4698-9539-8df0541066d2" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200903T195228Z:083c5497-9848-4698-9539-8df0541066d2" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14972" + "X-Content-Type-Options": [ + "nosniff" ], - "x-ms-correlation-request-id": [ - "3455eb4c-8009-42c3-8eb3-f2ac8cef71aa" + "Content-Length": [ + "103" ], - "x-ms-routing-request-id": [ - "WESTUS2:20180328T192010Z:3455eb4c-8009-42c3-8eb3-f2ac8cef71aa" + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" ] }, - "StatusCode": 202 + "ResponseBody": "{\r\n \"name\": \"75746ddf-2544-4bba-9d43-78eb5ca5d6e2\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2020-09-03T19:52:24Z\"\r\n}", + "StatusCode": 200 }, { - "RequestUri": "/subscriptions/df7c055c-6310-4374-9852-10ef71ce5f85/resourceGroups/sqlcrudtest-8751/providers/Microsoft.Sql/servers/sqlcrudtest-4278/databases/sqlcrudtest-5696/extensions/import/importExtensionOperationResults/e7dfb2b0-9c96-43e6-aa3a-1dda49b67470?api-version=2014-04-01-Preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGY3YzA1NWMtNjMxMC00Mzc0LTk4NTItMTBlZjcxY2U1Zjg1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3NTEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC00Mjc4L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC01Njk2L2V4dGVuc2lvbnMvaW1wb3J0L2ltcG9ydEV4dGVuc2lvbk9wZXJhdGlvblJlc3VsdHMvZTdkZmIyYjAtOWM5Ni00M2U2LWFhM2EtMWRkYTQ5YjY3NDcwP2FwaS12ZXJzaW9uPTIwMTQtMDQtMDEtUHJldmlldw==", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportOperationResults/75746ddf-2544-4bba-9d43-78eb5ca5d6e2-sqlcrudtest-8696?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydE9wZXJhdGlvblJlc3VsdHMvNzU3NDZkZGYtMjU0NC00YmJhLTlkNDMtNzhlYjVjYTVkNmUyLXNxbGNydWR0ZXN0LTg2OTY/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.26201.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.13.0.0" + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" ] }, - "ResponseBody": "{\r\n \"blobUri\": \"https://sqlcrudtest7398.blob.core.windows.net/container/sqlcrudtest-3359.bacpac\",\r\n \"databaseName\": \"sqlcrudtest-5696\",\r\n \"errorMessage\": null,\r\n \"lastModifiedTime\": \"3/28/2018 7:18:41 PM\",\r\n \"queuedTime\": \"3/28/2018 7:18:39 PM\",\r\n \"requestId\": \"e7dfb2b0-9c96-43e6-aa3a-1dda49b67470\",\r\n \"requestType\": \"Import\",\r\n \"serverName\": \"sqlcrudtest-4278.database.windows.net\",\r\n \"status\": \"Running, Progress = 5.00 %\"\r\n}", "ResponseHeaders": { - "Content-Length": [ - "398" - ], - "Content-Type": [ - "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" - ], "Cache-Control": [ - "no-store, no-cache" + "no-cache" ], "Date": [ - "Wed, 28 Mar 2018 19:20:40 GMT" - ], - "Location": [ - "https://management.azure.com/subscriptions/df7c055c-6310-4374-9852-10ef71ce5f85/resourceGroups/sqlcrudtest-8751/providers/Microsoft.Sql/servers/sqlcrudtest-4278/databases/sqlcrudtest-5696/extensions/import/importExtensionOperationResults/e7dfb2b0-9c96-43e6-aa3a-1dda49b67470?api-version=2014-04-01-Preview" + "Thu, 03 Sep 2020 19:52:27 GMT" ], - "Retry-After": [ - "30" + "Pragma": [ + "no-cache" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "93c6cafb-9b69-4002-ae65-ad17b4fb7782" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "DataServiceVersion": [ - "3.0;" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" + "a38aa245-bcc6-4909-b112-a11ce3d8856b" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14971" + "11952" ], "x-ms-correlation-request-id": [ - "38dc17fd-ead0-4c7b-8f00-1f4c4c0d4339" + "37fac928-66b9-4e3d-a49d-b3e8e30e0acb" ], "x-ms-routing-request-id": [ - "WESTUS2:20180328T192040Z:38dc17fd-ead0-4c7b-8f00-1f4c4c0d4339" - ] - }, - "StatusCode": 202 - }, - { - "RequestUri": "/subscriptions/df7c055c-6310-4374-9852-10ef71ce5f85/resourceGroups/sqlcrudtest-8751/providers/Microsoft.Sql/servers/sqlcrudtest-4278/databases/sqlcrudtest-5696/extensions/import/importExtensionOperationResults/e7dfb2b0-9c96-43e6-aa3a-1dda49b67470?api-version=2014-04-01-Preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGY3YzA1NWMtNjMxMC00Mzc0LTk4NTItMTBlZjcxY2U1Zjg1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3NTEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC00Mjc4L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC01Njk2L2V4dGVuc2lvbnMvaW1wb3J0L2ltcG9ydEV4dGVuc2lvbk9wZXJhdGlvblJlc3VsdHMvZTdkZmIyYjAtOWM5Ni00M2U2LWFhM2EtMWRkYTQ5YjY3NDcwP2FwaS12ZXJzaW9uPTIwMTQtMDQtMDEtUHJldmlldw==", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.26201.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.13.0.0" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/df7c055c-6310-4374-9852-10ef71ce5f85/resourceGroups/sqlcrudtest-8751/providers/Microsoft.Sql/servers/sqlcrudtest-4278/databases/sqlcrudtest-5696/extensions/import\",\r\n \"name\": \"import\",\r\n \"type\": \"Microsoft.Sql/servers/databases/extensions\",\r\n \"properties\": {\r\n \"requestId\": \"e7dfb2b0-9c96-43e6-aa3a-1dda49b67470\",\r\n \"requestType\": \"Import\",\r\n \"queuedTime\": \"3/28/2018 7:18:39 PM\",\r\n \"lastModifiedTime\": \"3/28/2018 7:20:59 PM\",\r\n \"blobUri\": \"https://sqlcrudtest7398.blob.core.windows.net/container/sqlcrudtest-3359.bacpac\",\r\n \"serverName\": \"sqlcrudtest-4278\",\r\n \"databaseName\": \"sqlcrudtest-5696\",\r\n \"status\": \"Completed\",\r\n \"errorMessage\": null\r\n }\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "620" - ], - "Content-Type": [ - "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" - ], - "Cache-Control": [ - "no-store, no-cache" - ], - "Date": [ - "Wed, 28 Mar 2018 19:21:10 GMT" + "BRAZILUS:20200903T195228Z:37fac928-66b9-4e3d-a49d-b3e8e30e0acb" ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-request-id": [ - "19e6542d-bfd9-4da8-8852-412d10408ef4" + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "DataServiceVersion": [ - "3.0;" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14970" + "Content-Length": [ + "555" ], - "x-ms-correlation-request-id": [ - "67c491a7-9194-4a11-983c-4f5c316bf682" + "Content-Type": [ + "application/json; charset=utf-8" ], - "x-ms-routing-request-id": [ - "WESTUS2:20180328T192111Z:67c491a7-9194-4a11-983c-4f5c316bf682" + "Expires": [ + "-1" ] }, - "StatusCode": 201 + "ResponseBody": "{\r\n \"properties\": {\r\n \"requestId\": \"75746ddf-2544-4bba-9d43-78eb5ca5d6e2\",\r\n \"requestType\": \"ImportToExistingDatabase\",\r\n \"queuedTime\": \"9/3/2020 7:51:11 PM\",\r\n \"lastModifiedTime\": \"9/3/2020 7:52:24 PM\",\r\n \"blobUri\": \"https://sqlcrudtest8107.blob.core.windows.net/container/sqlcrudtest-6275.bacpac\",\r\n \"serverName\": \"sqlcrudtest-8696\",\r\n \"databaseName\": \"sqlcrudtest-9440\",\r\n \"status\": \"Completed\",\r\n \"privateEndpointConnections\": []\r\n },\r\n \"id\": \"75746ddf-2544-4bba-9d43-78eb5ca5d6e2\",\r\n \"name\": \"75746ddf-2544-4bba-9d43-78eb5ca5d6e2\",\r\n \"type\": \"Microsoft.Sql/servers/databases/importExportOperationResults\"\r\n}", + "StatusCode": 200 }, { - "RequestUri": "/subscriptions/df7c055c-6310-4374-9852-10ef71ce5f85/resourcegroups/sqlcrudtest-8751?api-version=2017-05-10", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGY3YzA1NWMtNjMxMC00Mzc0LTk4NTItMTBlZjcxY2U1Zjg1L3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTg3NTE/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourcegroups/sqlcrudtest-7317?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTczMTc/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "9dcf76da-4148-48a8-a4b8-e1b39db98b8d" + "1a5cb181-3260-49fb-b230-e1720645a209" ], "accept-language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.26201.01", + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" ] }, - "ResponseBody": "", "ResponseHeaders": { - "Content-Length": [ - "0" - ], - "Expires": [ - "-1" - ], "Cache-Control": [ "no-cache" ], "Date": [ - "Wed, 28 Mar 2018 19:21:13 GMT" + "Thu, 03 Sep 2020 19:52:28 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/df7c055c-6310-4374-9852-10ef71ce5f85/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDg3NTEtV0VTVEVVUk9QRSIsImpvYkxvY2F0aW9uIjoid2VzdGV1cm9wZSJ9?api-version=2017-05-10" + "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDczMTctV0VTVENFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoid2VzdGNlbnRyYWx1cyJ9?api-version=2017-05-10" ], "Retry-After": [ "15" ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1198" + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14996" ], "x-ms-request-id": [ - "516563ff-d062-4846-8f75-8fc2b67bc3de" + "06215777-378c-4b5d-aede-e13673fc161d" ], "x-ms-correlation-request-id": [ - "516563ff-d062-4846-8f75-8fc2b67bc3de" + "06215777-378c-4b5d-aede-e13673fc161d" ], "x-ms-routing-request-id": [ - "WESTUS2:20180328T192113Z:516563ff-d062-4846-8f75-8fc2b67bc3de" + "BRAZILUS:20200903T195229Z:06215777-378c-4b5d-aede-e13673fc161d" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" ] }, + "ResponseBody": "", "StatusCode": 202 } ], "Names": { "CreateResourceGroup": [ - "sqlcrudtest-8751" + "sqlcrudtest-7317" ], "CreateServer": [ - "sqlcrudtest-4278" + "sqlcrudtest-8696" ], "CreateStorageContainer": [ - "sqlcrudtest7398" + "sqlcrudtest8107" ], "TestImportExport": [ - "sqlcrudtest-3359", - "sqlcrudtest-5696", - "sqlcrudstorage2090", - "sqlcrudtest-7057" + "sqlcrudtest-6275", + "sqlcrudtest-9440", + "sqlcrudstorage5937", + "sqlcrudtest-9835" ] }, "Variables": { - "SubscriptionId": "df7c055c-6310-4374-9852-10ef71ce5f85", - "DefaultLocation": "West Europe" + "SubscriptionId": "b75889fa-6661-44e0-a844-cd96ec938991", + "DefaultLocation": "West Central US" } } \ No newline at end of file diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/tests/SessionRecords/ImportExportScenarioTests/TestImportNewDatabase.json b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/tests/SessionRecords/ImportExportScenarioTests/TestImportNewDatabase.json index c80dbf512e60..a172de485e40 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/tests/SessionRecords/ImportExportScenarioTests/TestImportNewDatabase.json +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/tests/SessionRecords/ImportExportScenarioTests/TestImportNewDatabase.json @@ -1,44 +1,36 @@ { "Entries": [ { - "RequestUri": "/subscriptions/df7c055c-6310-4374-9852-10ef71ce5f85/resourcegroups/sqlcrudtest-8943?api-version=2017-05-10", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGY3YzA1NWMtNjMxMC00Mzc0LTk4NTItMTBlZjcxY2U1Zjg1L3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTg5NDM/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourcegroups/sqlcrudtest-9508?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTk1MDg/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"location\": \"West Europe\",\r\n \"tags\": {\r\n \"sqlcrudtest-8943\": \"2018-03-28 20:14:08Z\"\r\n }\r\n}", + "RequestBody": "{\r\n \"location\": \"West Central US\",\r\n \"tags\": {\r\n \"sqlcrudtest-9508\": \"2020-09-03 21:36:27Z\"\r\n }\r\n}", "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "100" - ], "x-ms-client-request-id": [ - "c38919bd-5e5d-4a60-8df0-3472490df552" + "b3ee1e31-64a0-48b0-8445-9bc9c4e5975f" ], "accept-language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.26201.01", + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/df7c055c-6310-4374-9852-10ef71ce5f85/resourceGroups/sqlcrudtest-8943\",\r\n \"name\": \"sqlcrudtest-8943\",\r\n \"location\": \"westeurope\",\r\n \"tags\": {\r\n \"sqlcrudtest-8943\": \"2018-03-28 20:14:08Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "240" ], "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ - "-1" - ], + "Content-Length": [ + "104" + ] + }, + "ResponseHeaders": { "Cache-Control": [ "no-cache" ], "Date": [ - "Wed, 28 Mar 2018 20:14:10 GMT" + "Thu, 03 Sep 2020 21:36:29 GMT" ], "Pragma": [ "no-cache" @@ -47,68 +39,70 @@ "1199" ], "x-ms-request-id": [ - "c470f580-5bb5-43a8-8ea6-0dbf744d8412" + "ab55f953-3462-4154-a8d9-f0c1ea9704d4" ], "x-ms-correlation-request-id": [ - "c470f580-5bb5-43a8-8ea6-0dbf744d8412" + "ab55f953-3462-4154-a8d9-f0c1ea9704d4" ], "x-ms-routing-request-id": [ - "WESTUS2:20180328T201411Z:c470f580-5bb5-43a8-8ea6-0dbf744d8412" + "BRAZILUS:20200903T213629Z:ab55f953-3462-4154-a8d9-f0c1ea9704d4" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" + ], + "Content-Length": [ + "243" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" ] }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-9508\",\r\n \"name\": \"sqlcrudtest-9508\",\r\n \"location\": \"westcentralus\",\r\n \"tags\": {\r\n \"sqlcrudtest-9508\": \"2020-09-03 21:36:27Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", "StatusCode": 201 }, { - "RequestUri": "/subscriptions/df7c055c-6310-4374-9852-10ef71ce5f85/resourceGroups/sqlcrudtest-8943/providers/Microsoft.Sql/servers/sqlcrudtest-7286?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGY3YzA1NWMtNjMxMC00Mzc0LTk4NTItMTBlZjcxY2U1Zjg1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg5NDMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03Mjg2P2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-9508/providers/Microsoft.Sql/servers/sqlcrudtest-4858?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTk1MDgvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC00ODU4P2FwaS12ZXJzaW9uPTIwMTktMDYtMDEtcHJldmlldw==", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"administratorLogin\": \"dummylogin\",\r\n \"administratorLoginPassword\": \"Un53cuRE!\",\r\n \"version\": \"12.0\"\r\n },\r\n \"tags\": {},\r\n \"location\": \"West Europe\"\r\n}", + "RequestBody": "{\r\n \"properties\": {\r\n \"administratorLogin\": \"dummylogin\",\r\n \"administratorLoginPassword\": \"Un53cuRE!\",\r\n \"version\": \"12.0\"\r\n },\r\n \"location\": \"West Central US\",\r\n \"tags\": {}\r\n}", "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "185" - ], "x-ms-client-request-id": [ - "dad34009-4c13-43d8-a78e-f77d90e6dc19" + "beb50051-79a4-4913-a25a-cc0e0465b31a" ], "accept-language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.26201.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.13.0.0" - ] - }, - "ResponseBody": "{\r\n \"operation\": \"UpsertLogicalServer\",\r\n \"startTime\": \"2018-03-28T20:14:16.677Z\"\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "74" + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" ], "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ - "-1" - ], + "Content-Length": [ + "189" + ] + }, + "ResponseHeaders": { "Cache-Control": [ "no-cache" ], "Date": [ - "Wed, 28 Mar 2018 20:14:16 GMT" + "Thu, 03 Sep 2020 21:36:33 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/df7c055c-6310-4374-9852-10ef71ce5f85/resourceGroups/sqlcrudtest-8943/providers/Microsoft.Sql/locations/westeurope/serverOperationResults/37eb91b8-3261-43a0-ba7d-1443e643ff4f?api-version=2015-05-01-preview" + "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-9508/providers/Microsoft.Sql/locations/westcentralus/serverOperationResults/025ca6cb-1066-4372-bc91-62427b99129c?api-version=2019-06-01-preview" ], "Retry-After": [ "1" @@ -117,516 +111,562 @@ "Microsoft-HTTPAPI/2.0" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/df7c055c-6310-4374-9852-10ef71ce5f85/resourceGroups/sqlcrudtest-8943/providers/Microsoft.Sql/locations/westeurope/serverAzureAsyncOperation/37eb91b8-3261-43a0-ba7d-1443e643ff4f?api-version=2015-05-01-preview" + "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-9508/providers/Microsoft.Sql/locations/westcentralus/serverAzureAsyncOperation/025ca6cb-1066-4372-bc91-62427b99129c?api-version=2019-06-01-preview" ], "x-ms-request-id": [ - "37eb91b8-3261-43a0-ba7d-1443e643ff4f" + "025ca6cb-1066-4372-bc91-62427b99129c" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1199" ], "x-ms-correlation-request-id": [ - "22a856c3-58d7-420c-9a10-874fbc5781ac" + "e80a64cb-3a08-4df7-a739-6b6fc64938b5" ], "x-ms-routing-request-id": [ - "WESTUS2:20180328T201416Z:22a856c3-58d7-420c-9a10-874fbc5781ac" + "BRAZILUS:20200903T213634Z:e80a64cb-3a08-4df7-a739-6b6fc64938b5" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" + ], + "Content-Length": [ + "73" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" ] }, + "ResponseBody": "{\r\n \"operation\": \"UpsertLogicalServer\",\r\n \"startTime\": \"2020-09-03T21:36:33.18Z\"\r\n}", "StatusCode": 202 }, { - "RequestUri": "/subscriptions/df7c055c-6310-4374-9852-10ef71ce5f85/resourceGroups/sqlcrudtest-8943/providers/Microsoft.Sql/locations/westeurope/serverAzureAsyncOperation/37eb91b8-3261-43a0-ba7d-1443e643ff4f?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGY3YzA1NWMtNjMxMC00Mzc0LTk4NTItMTBlZjcxY2U1Zjg1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg5NDMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RldXJvcGUvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi8zN2ViOTFiOC0zMjYxLTQzYTAtYmE3ZC0xNDQzZTY0M2ZmNGY/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-9508/providers/Microsoft.Sql/locations/westcentralus/serverAzureAsyncOperation/025ca6cb-1066-4372-bc91-62427b99129c?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTk1MDgvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi8wMjVjYTZjYi0xMDY2LTQzNzItYmM5MS02MjQyN2I5OTEyOWM/YXBpLXZlcnNpb249MjAxOS0wNi0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.26201.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.13.0.0" + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" ] }, - "ResponseBody": "{\r\n \"name\": \"37eb91b8-3261-43a0-ba7d-1443e643ff4f\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-03-28T20:14:16.677Z\"\r\n}", "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], "Cache-Control": [ "no-cache" ], "Date": [ - "Wed, 28 Mar 2018 20:14:26 GMT" + "Thu, 03 Sep 2020 21:36:34 GMT" ], "Pragma": [ "no-cache" ], - "Transfer-Encoding": [ - "chunked" - ], "Retry-After": [ - "20" + "1" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], - "Vary": [ - "Accept-Encoding" - ], "x-ms-request-id": [ - "328aab6e-5dec-45f7-89d2-a360f84edc7b" + "f49ca6b0-0af9-42b9-ade2-d43141987b25" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14999" + "11999" ], "x-ms-correlation-request-id": [ - "6e196cdd-2541-45eb-857b-d5384651cfe8" + "f78beecf-3dea-4250-b8ab-dc69599f5585" ], "x-ms-routing-request-id": [ - "WESTUS2:20180328T201427Z:6e196cdd-2541-45eb-857b-d5384651cfe8" + "BRAZILUS:20200903T213635Z:f78beecf-3dea-4250-b8ab-dc69599f5585" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" ] }, + "ResponseBody": "{\r\n \"name\": \"025ca6cb-1066-4372-bc91-62427b99129c\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T21:36:33.18Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/df7c055c-6310-4374-9852-10ef71ce5f85/resourceGroups/sqlcrudtest-8943/providers/Microsoft.Sql/locations/westeurope/serverAzureAsyncOperation/37eb91b8-3261-43a0-ba7d-1443e643ff4f?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGY3YzA1NWMtNjMxMC00Mzc0LTk4NTItMTBlZjcxY2U1Zjg1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg5NDMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RldXJvcGUvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi8zN2ViOTFiOC0zMjYxLTQzYTAtYmE3ZC0xNDQzZTY0M2ZmNGY/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-9508/providers/Microsoft.Sql/locations/westcentralus/serverAzureAsyncOperation/025ca6cb-1066-4372-bc91-62427b99129c?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTk1MDgvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi8wMjVjYTZjYi0xMDY2LTQzNzItYmM5MS02MjQyN2I5OTEyOWM/YXBpLXZlcnNpb249MjAxOS0wNi0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.26201.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.13.0.0" + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" ] }, - "ResponseBody": "{\r\n \"name\": \"37eb91b8-3261-43a0-ba7d-1443e643ff4f\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-03-28T20:14:16.677Z\"\r\n}", "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], "Cache-Control": [ "no-cache" ], "Date": [ - "Wed, 28 Mar 2018 20:14:47 GMT" + "Thu, 03 Sep 2020 21:36:35 GMT" ], "Pragma": [ "no-cache" ], - "Transfer-Encoding": [ - "chunked" - ], "Retry-After": [ - "20" + "1" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], - "Vary": [ - "Accept-Encoding" - ], "x-ms-request-id": [ - "9406761a-7761-4413-a546-bdcbe0880026" + "14cae04c-242b-443d-ab62-e7f56e552bb7" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14998" + "11998" ], "x-ms-correlation-request-id": [ - "d71acfc9-1aec-452b-94c8-1c22b00e1e22" + "2d969ee3-1e5e-40c2-931c-8c0c2ab9de37" ], "x-ms-routing-request-id": [ - "WESTUS2:20180328T201447Z:d71acfc9-1aec-452b-94c8-1c22b00e1e22" + "BRAZILUS:20200903T213636Z:2d969ee3-1e5e-40c2-931c-8c0c2ab9de37" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" ] }, + "ResponseBody": "{\r\n \"name\": \"025ca6cb-1066-4372-bc91-62427b99129c\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T21:36:33.18Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/df7c055c-6310-4374-9852-10ef71ce5f85/resourceGroups/sqlcrudtest-8943/providers/Microsoft.Sql/locations/westeurope/serverAzureAsyncOperation/37eb91b8-3261-43a0-ba7d-1443e643ff4f?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGY3YzA1NWMtNjMxMC00Mzc0LTk4NTItMTBlZjcxY2U1Zjg1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg5NDMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RldXJvcGUvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi8zN2ViOTFiOC0zMjYxLTQzYTAtYmE3ZC0xNDQzZTY0M2ZmNGY/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-9508/providers/Microsoft.Sql/locations/westcentralus/serverAzureAsyncOperation/025ca6cb-1066-4372-bc91-62427b99129c?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTk1MDgvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi8wMjVjYTZjYi0xMDY2LTQzNzItYmM5MS02MjQyN2I5OTEyOWM/YXBpLXZlcnNpb249MjAxOS0wNi0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.26201.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.13.0.0" + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" ] }, - "ResponseBody": "{\r\n \"name\": \"37eb91b8-3261-43a0-ba7d-1443e643ff4f\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-03-28T20:14:16.677Z\"\r\n}", "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], "Cache-Control": [ "no-cache" ], "Date": [ - "Wed, 28 Mar 2018 20:15:07 GMT" + "Thu, 03 Sep 2020 21:36:36 GMT" ], "Pragma": [ "no-cache" ], - "Transfer-Encoding": [ - "chunked" - ], "Retry-After": [ - "15" + "1" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], - "Vary": [ - "Accept-Encoding" - ], "x-ms-request-id": [ - "9799486c-6b08-44b2-8777-c441146ed6c2" + "f828d2bf-c6a2-478d-b9d4-39d636a208b3" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14997" + "11997" ], "x-ms-correlation-request-id": [ - "1d95ebee-cb12-4d5f-b764-7d9f52cf6bf4" + "32df33ae-9eba-4bda-9cbf-5206a743cb45" ], "x-ms-routing-request-id": [ - "WESTUS2:20180328T201507Z:1d95ebee-cb12-4d5f-b764-7d9f52cf6bf4" + "BRAZILUS:20200903T213637Z:32df33ae-9eba-4bda-9cbf-5206a743cb45" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" ] }, + "ResponseBody": "{\r\n \"name\": \"025ca6cb-1066-4372-bc91-62427b99129c\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T21:36:33.18Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/df7c055c-6310-4374-9852-10ef71ce5f85/resourceGroups/sqlcrudtest-8943/providers/Microsoft.Sql/servers/sqlcrudtest-7286?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGY3YzA1NWMtNjMxMC00Mzc0LTk4NTItMTBlZjcxY2U1Zjg1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg5NDMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03Mjg2P2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-9508/providers/Microsoft.Sql/locations/westcentralus/serverAzureAsyncOperation/025ca6cb-1066-4372-bc91-62427b99129c?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTk1MDgvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi8wMjVjYTZjYi0xMDY2LTQzNzItYmM5MS02MjQyN2I5OTEyOWM/YXBpLXZlcnNpb249MjAxOS0wNi0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.26201.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.13.0.0" + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" ] }, - "ResponseBody": "{\r\n \"kind\": \"v12.0\",\r\n \"properties\": {\r\n \"administratorLogin\": \"dummylogin\",\r\n \"version\": \"12.0\",\r\n \"state\": \"Ready\",\r\n \"fullyQualifiedDomainName\": \"sqlcrudtest-7286.database.windows.net\"\r\n },\r\n \"location\": \"westeurope\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/df7c055c-6310-4374-9852-10ef71ce5f85/resourceGroups/sqlcrudtest-8943/providers/Microsoft.Sql/servers/sqlcrudtest-7286\",\r\n \"name\": \"sqlcrudtest-7286\",\r\n \"type\": \"Microsoft.Sql/servers\"\r\n}", "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], "Cache-Control": [ "no-cache" ], "Date": [ - "Wed, 28 Mar 2018 20:15:07 GMT" + "Thu, 03 Sep 2020 21:36:37 GMT" ], "Pragma": [ "no-cache" ], - "Transfer-Encoding": [ - "chunked" + "Retry-After": [ + "20" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], - "Vary": [ - "Accept-Encoding" - ], "x-ms-request-id": [ - "97a7872d-fce5-40e2-b65a-6fe495f9efb3" + "0798ee9c-ae9b-405e-a49b-262c9b3f38c0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14996" + "11996" ], "x-ms-correlation-request-id": [ - "81bd894c-e9a1-4c8b-b838-1175dcb400fa" + "8e74a5f5-ca5a-4253-a0ea-039e8cfd5760" ], "x-ms-routing-request-id": [ - "WESTUS2:20180328T201507Z:81bd894c-e9a1-4c8b-b838-1175dcb400fa" + "BRAZILUS:20200903T213638Z:8e74a5f5-ca5a-4253-a0ea-039e8cfd5760" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" ] }, + "ResponseBody": "{\r\n \"name\": \"025ca6cb-1066-4372-bc91-62427b99129c\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T21:36:33.18Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/df7c055c-6310-4374-9852-10ef71ce5f85/resourceGroups/sqlcrudtest-8943/providers/Microsoft.Sql/servers/sqlcrudtest-7286/firewallRules/sqlcrudtest-9372?api-version=2014-04-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGY3YzA1NWMtNjMxMC00Mzc0LTk4NTItMTBlZjcxY2U1Zjg1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg5NDMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03Mjg2L2ZpcmV3YWxsUnVsZXMvc3FsY3J1ZHRlc3QtOTM3Mj9hcGktdmVyc2lvbj0yMDE0LTA0LTAx", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"startIpAddress\": \"0.0.0.0\",\r\n \"endIpAddress\": \"255.255.255.255\"\r\n }\r\n}", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-9508/providers/Microsoft.Sql/locations/westcentralus/serverAzureAsyncOperation/025ca6cb-1066-4372-bc91-62427b99129c?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTk1MDgvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi8wMjVjYTZjYi0xMDY2LTQzNzItYmM5MS02MjQyN2I5OTEyOWM/YXBpLXZlcnNpb249MjAxOS0wNi0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "101" - ], - "x-ms-client-request-id": [ - "3f34eedd-f547-4df9-aa4a-b620a0cb4c54" - ], - "accept-language": [ - "en-US" - ], "User-Agent": [ - "FxVersion/4.6.26201.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.13.0.0" + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/df7c055c-6310-4374-9852-10ef71ce5f85/resourceGroups/sqlcrudtest-8943/providers/Microsoft.Sql/servers/sqlcrudtest-7286/firewallRules/sqlcrudtest-9372\",\r\n \"name\": \"sqlcrudtest-9372\",\r\n \"type\": \"Microsoft.Sql/servers/firewallRules\",\r\n \"location\": \"West Europe\",\r\n \"kind\": \"v12.0\",\r\n \"properties\": {\r\n \"startIpAddress\": \"0.0.0.0\",\r\n \"endIpAddress\": \"255.255.255.255\"\r\n }\r\n}", "ResponseHeaders": { - "Content-Length": [ - "358" - ], - "Content-Type": [ - "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" - ], "Cache-Control": [ - "no-store, no-cache" + "no-cache" ], "Date": [ - "Wed, 28 Mar 2018 20:15:13 GMT" + "Thu, 03 Sep 2020 21:36:58 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "20" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "63a647f8-95f2-4efe-bc49-8396a559e542" + "bba3e68e-2849-4f60-8d75-ff1fe3b22801" ], - "X-Content-Type-Options": [ - "nosniff" + "x-ms-ratelimit-remaining-subscription-reads": [ + "11995" ], - "Preference-Applied": [ - "return-content" + "x-ms-correlation-request-id": [ + "cb0cd472-54ac-49cc-9836-ef32af5bfe1f" ], - "DataServiceVersion": [ - "3.0;" + "x-ms-routing-request-id": [ + "BRAZILUS:20200903T213658Z:cb0cd472-54ac-49cc-9836-ef32af5bfe1f" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1198" + "X-Content-Type-Options": [ + "nosniff" ], - "x-ms-correlation-request-id": [ - "229658b9-0b05-471e-ab9f-d9290147cb7d" + "Content-Length": [ + "107" ], - "x-ms-routing-request-id": [ - "WESTUS2:20180328T201514Z:229658b9-0b05-471e-ab9f-d9290147cb7d" + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" ] }, - "StatusCode": 201 + "ResponseBody": "{\r\n \"name\": \"025ca6cb-1066-4372-bc91-62427b99129c\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T21:36:33.18Z\"\r\n}", + "StatusCode": 200 }, { - "RequestUri": "/subscriptions/df7c055c-6310-4374-9852-10ef71ce5f85/resourceGroups/sqlcrudtest-8943/providers/Microsoft.Storage/storageAccounts/sqlcrudtest5639?api-version=2017-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGY3YzA1NWMtNjMxMC00Mzc0LTk4NTItMTBlZjcxY2U1Zjg1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg5NDMvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9zcWxjcnVkdGVzdDU2Mzk/YXBpLXZlcnNpb249MjAxNy0wNi0wMQ==", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\"\r\n },\r\n \"kind\": \"BlobStorage\",\r\n \"location\": \"westeurope\",\r\n \"properties\": {\r\n \"accessTier\": \"Cool\"\r\n }\r\n}", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-9508/providers/Microsoft.Sql/locations/westcentralus/serverAzureAsyncOperation/025ca6cb-1066-4372-bc91-62427b99129c?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTk1MDgvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi8wMjVjYTZjYi0xMDY2LTQzNzItYmM5MS02MjQyN2I5OTEyOWM/YXBpLXZlcnNpb249MjAxOS0wNi0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "155" - ], - "x-ms-client-request-id": [ - "69eca864-f513-4889-9c22-6786af1222f0" - ], - "accept-language": [ - "en-US" - ], "User-Agent": [ - "FxVersion/4.6.26201.01", - "Microsoft.Azure.Management.Storage.StorageManagementClient/6.5.0.0" + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" ] }, - "ResponseBody": "", "ResponseHeaders": { - "Content-Length": [ - "0" - ], - "Content-Type": [ - "text/plain; charset=utf-8" - ], - "Expires": [ - "-1" - ], "Cache-Control": [ "no-cache" ], "Date": [ - "Wed, 28 Mar 2018 20:15:15 GMT" + "Thu, 03 Sep 2020 21:37:18 GMT" ], "Pragma": [ "no-cache" ], - "Location": [ - "https://management.azure.com/subscriptions/df7c055c-6310-4374-9852-10ef71ce5f85/providers/Microsoft.Storage/locations/westeurope/asyncoperations/6e6103ba-2dfc-43f4-820b-254cc208d22c?monitor=true&api-version=2017-06-01" - ], "Retry-After": [ - "17" + "15" ], "Server": [ - "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" + "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "6e6103ba-2dfc-43f4-820b-254cc208d22c" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" + "e81f35dc-6bed-403f-8a6f-32b0a5c30286" ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1199" + "x-ms-ratelimit-remaining-subscription-reads": [ + "11994" ], "x-ms-correlation-request-id": [ - "dfda19fa-ac0c-40cf-9426-d67d09e2c6d4" + "920efd78-3fd3-4cc9-8ebe-b77953c6da75" ], "x-ms-routing-request-id": [ - "WESTUS2:20180328T201516Z:dfda19fa-ac0c-40cf-9426-d67d09e2c6d4" + "BRAZILUS:20200903T213719Z:920efd78-3fd3-4cc9-8ebe-b77953c6da75" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" + ], + "Content-Length": [ + "106" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" ] }, - "StatusCode": 202 + "ResponseBody": "{\r\n \"name\": \"025ca6cb-1066-4372-bc91-62427b99129c\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2020-09-03T21:36:33.18Z\"\r\n}", + "StatusCode": 200 }, { - "RequestUri": "/subscriptions/df7c055c-6310-4374-9852-10ef71ce5f85/resourceGroups/sqlcrudtest-8943/providers/Microsoft.Sql/servers/sqlcrudtest-7286/databases/sqlcrudtest-2200?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGY3YzA1NWMtNjMxMC00Mzc0LTk4NTItMTBlZjcxY2U1Zjg1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg5NDMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03Mjg2L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC0yMjAwP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"location\": \"westeurope\"\r\n}", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-9508/providers/Microsoft.Sql/servers/sqlcrudtest-4858?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTk1MDgvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC00ODU4P2FwaS12ZXJzaW9uPTIwMTktMDYtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "32" - ], - "x-ms-client-request-id": [ - "036db67d-675f-4c23-8019-82cb98195b0a" - ], - "accept-language": [ - "en-US" - ], "User-Agent": [ - "FxVersion/4.6.26201.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.13.0.0" + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" ] }, - "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2018-03-28T20:15:17.973Z\"\r\n}", "ResponseHeaders": { - "Content-Length": [ - "76" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], "Cache-Control": [ "no-cache" ], "Date": [ - "Wed, 28 Mar 2018 20:15:17 GMT" + "Thu, 03 Sep 2020 21:37:18 GMT" ], "Pragma": [ "no-cache" ], - "Location": [ - "https://management.azure.com/subscriptions/df7c055c-6310-4374-9852-10ef71ce5f85/resourceGroups/sqlcrudtest-8943/providers/Microsoft.Sql/locations/westeurope/databaseOperationResults/f755ab2a-f79b-4015-9062-81faa03bdd11?api-version=2017-10-01-preview" - ], - "Retry-After": [ - "15" - ], "Server": [ "Microsoft-HTTPAPI/2.0" ], - "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/df7c055c-6310-4374-9852-10ef71ce5f85/resourceGroups/sqlcrudtest-8943/providers/Microsoft.Sql/locations/westeurope/databaseAzureAsyncOperation/f755ab2a-f79b-4015-9062-81faa03bdd11?api-version=2017-10-01-preview" - ], "x-ms-request-id": [ - "f755ab2a-f79b-4015-9062-81faa03bdd11" + "61d32618-ada3-4aa7-be86-405a60197698" ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1197" + "x-ms-ratelimit-remaining-subscription-reads": [ + "11993" ], "x-ms-correlation-request-id": [ - "84b4b228-4aa2-4d3d-b9aa-48be83aebe87" + "88304929-9014-4301-86b9-cc1c9987fa11" ], "x-ms-routing-request-id": [ - "WESTUS2:20180328T201518Z:84b4b228-4aa2-4d3d-b9aa-48be83aebe87" + "BRAZILUS:20200903T213719Z:88304929-9014-4301-86b9-cc1c9987fa11" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" - ] - }, - "StatusCode": 202 - }, - { - "RequestUri": "/subscriptions/df7c055c-6310-4374-9852-10ef71ce5f85/resourceGroups/sqlcrudtest-8943/providers/Microsoft.Sql/locations/westeurope/databaseAzureAsyncOperation/f755ab2a-f79b-4015-9062-81faa03bdd11?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGY3YzA1NWMtNjMxMC00Mzc0LTk4NTItMTBlZjcxY2U1Zjg1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg5NDMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RldXJvcGUvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2Y3NTVhYjJhLWY3OWItNDAxNS05MDYyLTgxZmFhMDNiZGQxMT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", - "RequestMethod": "GET", - "RequestBody": "", + ], + "Content-Length": [ + "463" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"kind\": \"v12.0\",\r\n \"properties\": {\r\n \"administratorLogin\": \"dummylogin\",\r\n \"version\": \"12.0\",\r\n \"state\": \"Ready\",\r\n \"fullyQualifiedDomainName\": \"sqlcrudtest-4858.database.windows.net\",\r\n \"privateEndpointConnections\": [],\r\n \"publicNetworkAccess\": \"Enabled\"\r\n },\r\n \"location\": \"westcentralus\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-9508/providers/Microsoft.Sql/servers/sqlcrudtest-4858\",\r\n \"name\": \"sqlcrudtest-4858\",\r\n \"type\": \"Microsoft.Sql/servers\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-9508/providers/Microsoft.Sql/servers/sqlcrudtest-4858/firewallRules/sqlcrudtest-303?api-version=2014-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTk1MDgvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC00ODU4L2ZpcmV3YWxsUnVsZXMvc3FsY3J1ZHRlc3QtMzAzP2FwaS12ZXJzaW9uPTIwMTQtMDQtMDE=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"startIpAddress\": \"0.0.0.0\",\r\n \"endIpAddress\": \"255.255.255.255\"\r\n }\r\n}", "RequestHeaders": { + "x-ms-client-request-id": [ + "fb1979a0-542a-44d7-9e0b-81d052d30f76" + ], + "accept-language": [ + "en-US" + ], "User-Agent": [ - "FxVersion/4.6.26201.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.13.0.0" + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "101" ] }, - "ResponseBody": "{\r\n \"name\": \"f755ab2a-f79b-4015-9062-81faa03bdd11\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-03-28T20:15:17.973Z\"\r\n}", "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Thu, 03 Sep 2020 21:37:20 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "ca50f7c8-2c7f-40cf-8d7c-b15a79406463" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Preference-Applied": [ + "return-content" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-correlation-request-id": [ + "ace330d6-f2f6-4627-80be-aeac211b7c3b" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200903T213720Z:ace330d6-f2f6-4627-80be-aeac211b7c3b" + ], + "Content-Length": [ + "360" + ], "Content-Type": [ - "application/json; charset=utf-8" + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-9508/providers/Microsoft.Sql/servers/sqlcrudtest-4858/firewallRules/sqlcrudtest-303\",\r\n \"name\": \"sqlcrudtest-303\",\r\n \"type\": \"Microsoft.Sql/servers/firewallRules\",\r\n \"location\": \"West Central US\",\r\n \"kind\": \"v12.0\",\r\n \"properties\": {\r\n \"startIpAddress\": \"0.0.0.0\",\r\n \"endIpAddress\": \"255.255.255.255\"\r\n }\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-9508/providers/Microsoft.Sql/servers/sqlcrudtest-4858/databases/sqlcrudtest-2319?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTk1MDgvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC00ODU4L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC0yMzE5P2FwaS12ZXJzaW9uPTIwMTktMDYtMDEtcHJldmlldw==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"westcentralus\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "23fc8876-4d7e-4f7f-a442-50ef11a2c912" ], - "Expires": [ - "-1" + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" ], + "Content-Length": [ + "35" + ] + }, + "ResponseHeaders": { "Cache-Control": [ "no-cache" ], "Date": [ - "Wed, 28 Mar 2018 20:15:33 GMT" + "Thu, 03 Sep 2020 21:37:20 GMT" ], "Pragma": [ "no-cache" ], - "Transfer-Encoding": [ - "chunked" + "Location": [ + "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-9508/providers/Microsoft.Sql/locations/westcentralus/databaseOperationResults/e444f9fc-71a9-4abf-9f59-ff0f86838750?api-version=2019-06-01-preview" ], "Retry-After": [ "15" @@ -634,1304 +674,1965 @@ "Server": [ "Microsoft-HTTPAPI/2.0" ], - "Vary": [ - "Accept-Encoding" + "Azure-AsyncOperation": [ + "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-9508/providers/Microsoft.Sql/locations/westcentralus/databaseAzureAsyncOperation/e444f9fc-71a9-4abf-9f59-ff0f86838750?api-version=2019-06-01-preview" ], "x-ms-request-id": [ - "b7bfc771-0b2f-47bc-bdab-1dc95f2824df" + "e444f9fc-71a9-4abf-9f59-ff0f86838750" ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14995" + "x-ms-ratelimit-remaining-subscription-writes": [ + "1197" ], "x-ms-correlation-request-id": [ - "0d08baa6-5a31-4610-a8ff-2e7ac5e9981f" + "3f1a4182-08c6-464b-914e-aa884a7fdc5a" ], "x-ms-routing-request-id": [ - "WESTUS2:20180328T201533Z:0d08baa6-5a31-4610-a8ff-2e7ac5e9981f" + "BRAZILUS:20200903T213720Z:3f1a4182-08c6-464b-914e-aa884a7fdc5a" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" + ], + "Content-Length": [ + "75" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" ] }, - "StatusCode": 200 + "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2020-09-03T21:37:20.82Z\"\r\n}", + "StatusCode": 202 }, { - "RequestUri": "/subscriptions/df7c055c-6310-4374-9852-10ef71ce5f85/resourceGroups/sqlcrudtest-8943/providers/Microsoft.Sql/locations/westeurope/databaseAzureAsyncOperation/f755ab2a-f79b-4015-9062-81faa03bdd11?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGY3YzA1NWMtNjMxMC00Mzc0LTk4NTItMTBlZjcxY2U1Zjg1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg5NDMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RldXJvcGUvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2Y3NTVhYjJhLWY3OWItNDAxNS05MDYyLTgxZmFhMDNiZGQxMT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", - "RequestMethod": "GET", - "RequestBody": "", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-9508/providers/Microsoft.Storage/storageAccounts/sqlcrudtest4377?api-version=2017-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTk1MDgvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9zcWxjcnVkdGVzdDQzNzc/YXBpLXZlcnNpb249MjAxNy0wNi0wMQ==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\"\r\n },\r\n \"kind\": \"BlobStorage\",\r\n \"location\": \"westcentralus\",\r\n \"properties\": {\r\n \"accessTier\": \"Cool\"\r\n }\r\n}", "RequestHeaders": { + "x-ms-client-request-id": [ + "059667f8-0311-4d26-92dc-7059c918e937" + ], + "accept-language": [ + "en-US" + ], "User-Agent": [ - "FxVersion/4.6.26201.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.13.0.0" + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Storage.StorageManagementClient/6.5.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "158" ] }, - "ResponseBody": "{\r\n \"name\": \"f755ab2a-f79b-4015-9062-81faa03bdd11\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-03-28T20:15:17.973Z\"\r\n}", "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 03 Sep 2020 21:37:22 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Storage/locations/westcentralus/asyncoperations/e9d18fc6-9566-40eb-b4d5-f6d325a22a01?monitor=true&api-version=2017-06-01" + ], + "Retry-After": [ + "17" + ], + "Server": [ + "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "e9d18fc6-9566-40eb-b4d5-f6d325a22a01" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-correlation-request-id": [ + "dfeb233e-3c1f-4726-b06f-031ad27fc7a7" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200903T213722Z:dfeb233e-3c1f-4726-b06f-031ad27fc7a7" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "0" + ], "Content-Type": [ - "application/json; charset=utf-8" + "text/plain; charset=utf-8" ], "Expires": [ "-1" - ], + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-9508/providers/Microsoft.Sql/locations/westcentralus/databaseAzureAsyncOperation/e444f9fc-71a9-4abf-9f59-ff0f86838750?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTk1MDgvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2U0NDRmOWZjLTcxYTktNGFiZi05ZjU5LWZmMGY4NjgzODc1MD9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { "Cache-Control": [ "no-cache" ], "Date": [ - "Wed, 28 Mar 2018 20:15:47 GMT" + "Thu, 03 Sep 2020 21:37:36 GMT" ], "Pragma": [ "no-cache" ], - "Transfer-Encoding": [ - "chunked" - ], "Retry-After": [ "15" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], - "Vary": [ - "Accept-Encoding" - ], "x-ms-request-id": [ - "e057a42c-8647-4575-9faa-16eb42bf27d6" + "0daf427f-f22e-4012-9f28-b0050286418f" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14994" + "11992" ], "x-ms-correlation-request-id": [ - "2f0eb52d-aaa3-4c5b-b622-67060b451a94" + "922cb03c-ce5a-4a21-afab-7de7e6178abe" ], "x-ms-routing-request-id": [ - "WESTUS2:20180328T201548Z:2f0eb52d-aaa3-4c5b-b622-67060b451a94" + "BRAZILUS:20200903T213736Z:922cb03c-ce5a-4a21-afab-7de7e6178abe" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" ] }, + "ResponseBody": "{\r\n \"name\": \"e444f9fc-71a9-4abf-9f59-ff0f86838750\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T21:37:20.82Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/df7c055c-6310-4374-9852-10ef71ce5f85/resourceGroups/sqlcrudtest-8943/providers/Microsoft.Sql/locations/westeurope/databaseAzureAsyncOperation/f755ab2a-f79b-4015-9062-81faa03bdd11?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGY3YzA1NWMtNjMxMC00Mzc0LTk4NTItMTBlZjcxY2U1Zjg1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg5NDMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RldXJvcGUvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2Y3NTVhYjJhLWY3OWItNDAxNS05MDYyLTgxZmFhMDNiZGQxMT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-9508/providers/Microsoft.Sql/locations/westcentralus/databaseAzureAsyncOperation/e444f9fc-71a9-4abf-9f59-ff0f86838750?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTk1MDgvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2U0NDRmOWZjLTcxYTktNGFiZi05ZjU5LWZmMGY4NjgzODc1MD9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.26201.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.13.0.0" + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" ] }, - "ResponseBody": "{\r\n \"name\": \"f755ab2a-f79b-4015-9062-81faa03bdd11\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-03-28T20:15:17.973Z\"\r\n}", "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], "Cache-Control": [ "no-cache" ], "Date": [ - "Wed, 28 Mar 2018 20:16:02 GMT" + "Thu, 03 Sep 2020 21:37:50 GMT" ], "Pragma": [ "no-cache" ], - "Transfer-Encoding": [ - "chunked" - ], "Retry-After": [ "15" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], - "Vary": [ - "Accept-Encoding" - ], "x-ms-request-id": [ - "b5f97c63-611b-465c-a9a7-7a035c8861cc" + "d597c2dd-ee66-4602-bd10-ce2c7c9d6914" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14993" + "11991" ], "x-ms-correlation-request-id": [ - "e5d8de87-c623-431d-9491-57b2cb838f56" + "0d9ff311-338f-47c5-8119-943668b6ec05" ], "x-ms-routing-request-id": [ - "WESTUS2:20180328T201603Z:e5d8de87-c623-431d-9491-57b2cb838f56" + "BRAZILUS:20200903T213751Z:0d9ff311-338f-47c5-8119-943668b6ec05" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" ] }, + "ResponseBody": "{\r\n \"name\": \"e444f9fc-71a9-4abf-9f59-ff0f86838750\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T21:37:20.82Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/df7c055c-6310-4374-9852-10ef71ce5f85/providers/Microsoft.Storage/locations/westeurope/asyncoperations/6e6103ba-2dfc-43f4-820b-254cc208d22c?monitor=true&api-version=2017-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGY3YzA1NWMtNjMxMC00Mzc0LTk4NTItMTBlZjcxY2U1Zjg1L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZS9sb2NhdGlvbnMvd2VzdGV1cm9wZS9hc3luY29wZXJhdGlvbnMvNmU2MTAzYmEtMmRmYy00M2Y0LTgyMGItMjU0Y2MyMDhkMjJjP21vbml0b3I9dHJ1ZSZhcGktdmVyc2lvbj0yMDE3LTA2LTAx", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-9508/providers/Microsoft.Sql/locations/westcentralus/databaseAzureAsyncOperation/e444f9fc-71a9-4abf-9f59-ff0f86838750?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTk1MDgvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2U0NDRmOWZjLTcxYTktNGFiZi05ZjU5LWZmMGY4NjgzODc1MD9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.26201.01", - "Microsoft.Azure.Management.Storage.StorageManagementClient/6.5.0.0" + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" ] }, - "ResponseBody": "", "ResponseHeaders": { - "Content-Length": [ - "0" - ], - "Content-Type": [ - "text/plain; charset=utf-8" - ], - "Expires": [ - "-1" - ], "Cache-Control": [ "no-cache" ], "Date": [ - "Wed, 28 Mar 2018 20:15:33 GMT" + "Thu, 03 Sep 2020 21:38:06 GMT" ], "Pragma": [ "no-cache" ], - "Location": [ - "https://management.azure.com/subscriptions/df7c055c-6310-4374-9852-10ef71ce5f85/providers/Microsoft.Storage/locations/westeurope/asyncoperations/6e6103ba-2dfc-43f4-820b-254cc208d22c?monitor=true&api-version=2017-06-01" - ], "Retry-After": [ - "17" + "15" ], "Server": [ - "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" + "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "2b90a225-58cd-457e-83c6-63d609409981" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" + "853dd823-886c-4064-a053-af7ee8ad4139" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14999" + "11990" ], "x-ms-correlation-request-id": [ - "d504d263-3cf2-42ec-b46a-c1bafa2fb431" + "65d386ad-bf04-4322-b6d2-3445f054465f" ], "x-ms-routing-request-id": [ - "WESTUS2:20180328T201533Z:d504d263-3cf2-42ec-b46a-c1bafa2fb431" + "BRAZILUS:20200903T213806Z:65d386ad-bf04-4322-b6d2-3445f054465f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" + ], + "Content-Length": [ + "106" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" ] }, - "StatusCode": 202 + "ResponseBody": "{\r\n \"name\": \"e444f9fc-71a9-4abf-9f59-ff0f86838750\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2020-09-03T21:37:20.82Z\"\r\n}", + "StatusCode": 200 }, { - "RequestUri": "/subscriptions/df7c055c-6310-4374-9852-10ef71ce5f85/providers/Microsoft.Storage/locations/westeurope/asyncoperations/6e6103ba-2dfc-43f4-820b-254cc208d22c?monitor=true&api-version=2017-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGY3YzA1NWMtNjMxMC00Mzc0LTk4NTItMTBlZjcxY2U1Zjg1L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZS9sb2NhdGlvbnMvd2VzdGV1cm9wZS9hc3luY29wZXJhdGlvbnMvNmU2MTAzYmEtMmRmYy00M2Y0LTgyMGItMjU0Y2MyMDhkMjJjP21vbml0b3I9dHJ1ZSZhcGktdmVyc2lvbj0yMDE3LTA2LTAx", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Storage/locations/westcentralus/asyncoperations/e9d18fc6-9566-40eb-b4d5-f6d325a22a01?monitor=true&api-version=2017-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZS9sb2NhdGlvbnMvd2VzdGNlbnRyYWx1cy9hc3luY29wZXJhdGlvbnMvZTlkMThmYzYtOTU2Ni00MGViLWI0ZDUtZjZkMzI1YTIyYTAxP21vbml0b3I9dHJ1ZSZhcGktdmVyc2lvbj0yMDE3LTA2LTAx", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.26201.01", + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", "Microsoft.Azure.Management.Storage.StorageManagementClient/6.5.0.0" ] }, - "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"kind\": \"BlobStorage\",\r\n \"id\": \"/subscriptions/df7c055c-6310-4374-9852-10ef71ce5f85/resourceGroups/sqlcrudtest-8943/providers/Microsoft.Storage/storageAccounts/sqlcrudtest5639\",\r\n \"name\": \"sqlcrudtest5639\",\r\n \"type\": \"Microsoft.Storage/storageAccounts\",\r\n \"location\": \"westeurope\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"networkAcls\": {\r\n \"bypass\": \"AzureServices\",\r\n \"virtualNetworkRules\": [],\r\n \"ipRules\": [],\r\n \"defaultAction\": \"Allow\"\r\n },\r\n \"trustedDirectories\": [\r\n \"72f988bf-86f1-41af-91ab-2d7cd011db47\"\r\n ],\r\n \"supportsHttpsTrafficOnly\": false,\r\n \"encryption\": {\r\n \"services\": {\r\n \"file\": {\r\n \"enabled\": true,\r\n \"lastEnabledTime\": \"2018-03-28T20:15:15.2727682Z\"\r\n },\r\n \"blob\": {\r\n \"enabled\": true,\r\n \"lastEnabledTime\": \"2018-03-28T20:15:15.2727682Z\"\r\n }\r\n },\r\n \"keySource\": \"Microsoft.Storage\"\r\n },\r\n \"accessTier\": \"Cool\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"creationTime\": \"2018-03-28T20:15:15.225909Z\",\r\n \"primaryEndpoints\": {\r\n \"blob\": \"https://sqlcrudtest5639.blob.core.windows.net/\",\r\n \"table\": \"https://sqlcrudtest5639.table.core.windows.net/\"\r\n },\r\n \"primaryLocation\": \"westeurope\",\r\n \"statusOfPrimary\": \"available\"\r\n }\r\n}", "ResponseHeaders": { - "Content-Type": [ - "application/json" - ], - "Expires": [ - "-1" - ], "Cache-Control": [ "no-cache" ], "Date": [ - "Wed, 28 Mar 2018 20:15:50 GMT" + "Thu, 03 Sep 2020 21:37:39 GMT" ], "Pragma": [ "no-cache" ], - "Transfer-Encoding": [ - "chunked" - ], "Server": [ "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" ], - "Vary": [ - "Accept-Encoding" - ], "x-ms-request-id": [ - "af788bd0-5841-4b8b-ab6d-31048b687ba8" + "fe09bcfe-9da8-409a-a338-33dfcf2545d0" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14998" + "11999" ], "x-ms-correlation-request-id": [ - "f66917a2-aa52-4b86-9a2f-4b9e2f1cb95f" + "7ac50e23-b06d-4def-9b50-5eab03eeee5b" ], "x-ms-routing-request-id": [ - "WESTUS2:20180328T201550Z:f66917a2-aa52-4b86-9a2f-4b9e2f1cb95f" + "BRAZILUS:20200903T213739Z:7ac50e23-b06d-4def-9b50-5eab03eeee5b" ], "X-Content-Type-Options": [ "nosniff" + ], + "Content-Length": [ + "980" + ], + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" ] }, + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"kind\": \"BlobStorage\",\r\n \"id\": \"/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-9508/providers/Microsoft.Storage/storageAccounts/sqlcrudtest4377\",\r\n \"name\": \"sqlcrudtest4377\",\r\n \"type\": \"Microsoft.Storage/storageAccounts\",\r\n \"location\": \"westcentralus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"networkAcls\": {\r\n \"bypass\": \"AzureServices\",\r\n \"virtualNetworkRules\": [],\r\n \"ipRules\": [],\r\n \"defaultAction\": \"Allow\"\r\n },\r\n \"supportsHttpsTrafficOnly\": false,\r\n \"encryption\": {\r\n \"services\": {\r\n \"file\": {\r\n \"enabled\": true,\r\n \"lastEnabledTime\": \"2020-09-03T21:37:22.1808007Z\"\r\n },\r\n \"blob\": {\r\n \"enabled\": true,\r\n \"lastEnabledTime\": \"2020-09-03T21:37:22.1808007Z\"\r\n }\r\n },\r\n \"keySource\": \"Microsoft.Storage\"\r\n },\r\n \"accessTier\": \"Cool\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"creationTime\": \"2020-09-03T21:37:22.118282Z\",\r\n \"primaryEndpoints\": {\r\n \"blob\": \"https://sqlcrudtest4377.blob.core.windows.net/\",\r\n \"table\": \"https://sqlcrudtest4377.table.core.windows.net/\"\r\n },\r\n \"primaryLocation\": \"westcentralus\",\r\n \"statusOfPrimary\": \"available\"\r\n }\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/df7c055c-6310-4374-9852-10ef71ce5f85/resourceGroups/sqlcrudtest-8943/providers/Microsoft.Storage/storageAccounts/sqlcrudtest5639/listKeys?api-version=2017-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGY3YzA1NWMtNjMxMC00Mzc0LTk4NTItMTBlZjcxY2U1Zjg1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg5NDMvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9zcWxjcnVkdGVzdDU2MzkvbGlzdEtleXM/YXBpLXZlcnNpb249MjAxNy0wNi0wMQ==", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-9508/providers/Microsoft.Storage/storageAccounts/sqlcrudtest4377/listKeys?api-version=2017-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTk1MDgvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9zcWxjcnVkdGVzdDQzNzcvbGlzdEtleXM/YXBpLXZlcnNpb249MjAxNy0wNi0wMQ==", "RequestMethod": "POST", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "d000665a-a095-4a21-9fb8-f5416abade59" + "97dcb495-e046-4996-8bf6-e83a82212444" ], "accept-language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.26201.01", + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", "Microsoft.Azure.Management.Storage.StorageManagementClient/6.5.0.0" ] }, - "ResponseBody": "{\r\n \"keys\": [\r\n {\r\n \"keyName\": \"key1\",\r\n \"value\": \"/ecn75SYaOXflaEtrTpGvlrbvhR2F9mcr2hjHjiNN61n0i8/WENGspPZt8JBjz6cdDmkJtjuwwwtmiy28wKQ0Q==\",\r\n \"permissions\": \"FULL\"\r\n },\r\n {\r\n \"keyName\": \"key2\",\r\n \"value\": \"4CdSPmr1tr8YGaLr5yzpcYgtJmVMV055xGD01NcZAOcWHPrhEmAISd0iu8WRizwG/j/oh1xXWXr8WA/6EUvBMg==\",\r\n \"permissions\": \"FULL\"\r\n }\r\n ]\r\n}", "ResponseHeaders": { - "Content-Type": [ - "application/json" - ], - "Expires": [ - "-1" - ], "Cache-Control": [ "no-cache" ], "Date": [ - "Wed, 28 Mar 2018 20:15:50 GMT" + "Thu, 03 Sep 2020 21:37:39 GMT" ], "Pragma": [ "no-cache" ], - "Transfer-Encoding": [ - "chunked" - ], "Server": [ "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" ], - "Vary": [ - "Accept-Encoding" - ], "x-ms-request-id": [ - "0e8e5cc6-ea50-438c-81ed-e38a7925267a" + "9fdd9e64-cfa1-4884-99b6-69d10b9bf67a" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1198" + "x-ms-ratelimit-remaining-subscription-resource-requests": [ + "11999" ], "x-ms-correlation-request-id": [ - "608945af-422e-4668-bd94-9f3d7af2768f" + "0084f9ae-7d83-4da4-9184-61dc3c1519b8" ], "x-ms-routing-request-id": [ - "WESTUS2:20180328T201551Z:608945af-422e-4668-bd94-9f3d7af2768f" + "BRAZILUS:20200903T213739Z:0084f9ae-7d83-4da4-9184-61dc3c1519b8" ], "X-Content-Type-Options": [ "nosniff" + ], + "Content-Length": [ + "288" + ], + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" ] }, + "ResponseBody": "{\r\n \"keys\": [\r\n {\r\n \"keyName\": \"key1\",\r\n \"value\": \"GyT8d7TmvZwTBTSk0BZXlM5QsQxqlhwnTUGUAcliOmrviA9EG5rq58DKaq7465GQh9cflutV0+NmL9jOV9dYSQ==\",\r\n \"permissions\": \"FULL\"\r\n },\r\n {\r\n \"keyName\": \"key2\",\r\n \"value\": \"5x0E+iQp6EpcLoKKOIo6wqLFeWa3MPWn03obeJJ8c4K18cExu/wqEQkEu2SW0j+wzVQq1Wp414GIKVb4iV3NQQ==\",\r\n \"permissions\": \"FULL\"\r\n }\r\n ]\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/df7c055c-6310-4374-9852-10ef71ce5f85/resourceGroups/sqlcrudtest-8943/providers/Microsoft.Sql/servers/sqlcrudtest-7286/databases/sqlcrudtest-2200?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGY3YzA1NWMtNjMxMC00Mzc0LTk4NTItMTBlZjcxY2U1Zjg1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg5NDMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03Mjg2L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC0yMjAwP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-9508/providers/Microsoft.Sql/servers/sqlcrudtest-4858/databases/sqlcrudtest-2319?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTk1MDgvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC00ODU4L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC0yMzE5P2FwaS12ZXJzaW9uPTIwMTktMDYtMDEtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.26201.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.13.0.0" + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" ] }, - "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 10\r\n },\r\n \"kind\": \"v12.0,user\",\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": 268435456000,\r\n \"status\": \"Online\",\r\n \"databaseId\": \"a8b3abb9-d8ae-408c-8cde-43b292a8e1b3\",\r\n \"creationDate\": \"2018-03-28T20:15:18.237Z\",\r\n \"currentServiceObjectiveName\": \"S0\",\r\n \"requestedServiceObjectiveName\": \"S0\",\r\n \"defaultSecondaryLocation\": \"North Europe\",\r\n \"catalogCollation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"zoneRedundant\": false,\r\n \"earliestRestoreDate\": \"2018-03-28T20:45:53.003Z\",\r\n \"readScale\": \"Disabled\"\r\n },\r\n \"location\": \"westeurope\",\r\n \"id\": \"/subscriptions/df7c055c-6310-4374-9852-10ef71ce5f85/resourceGroups/sqlcrudtest-8943/providers/Microsoft.Sql/servers/sqlcrudtest-7286/databases/sqlcrudtest-2200\",\r\n \"name\": \"sqlcrudtest-2200\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], "Cache-Control": [ "no-cache" ], "Date": [ - "Wed, 28 Mar 2018 20:16:02 GMT" + "Thu, 03 Sep 2020 21:38:06 GMT" ], "Pragma": [ "no-cache" ], - "Transfer-Encoding": [ - "chunked" - ], "Server": [ "Microsoft-HTTPAPI/2.0" ], - "Vary": [ - "Accept-Encoding" - ], "x-ms-request-id": [ - "d6e5d154-8f8d-4ba5-a6c0-467dcdce5c1f" + "7e9028a9-f006-4b96-b15b-cd04c9377909" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14992" + "11989" ], "x-ms-correlation-request-id": [ - "d01834a8-ced0-4dcd-b353-a487c8df76d0" + "0b1e8f88-387a-4b39-a7ab-9960bc92c12d" ], "x-ms-routing-request-id": [ - "WESTUS2:20180328T201603Z:d01834a8-ced0-4dcd-b353-a487c8df76d0" + "BRAZILUS:20200903T213806Z:0b1e8f88-387a-4b39-a7ab-9960bc92c12d" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" + ], + "Content-Length": [ + "1025" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" ] }, + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"GP_Gen5\",\r\n \"tier\": \"GeneralPurpose\",\r\n \"family\": \"Gen5\",\r\n \"capacity\": 2\r\n },\r\n \"kind\": \"v12.0,user,vcore\",\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": 34359738368,\r\n \"status\": \"Online\",\r\n \"databaseId\": \"bfee7e34-702d-49b7-9a1e-36983121e096\",\r\n \"creationDate\": \"2020-09-03T21:37:57.663Z\",\r\n \"currentServiceObjectiveName\": \"GP_Gen5_2\",\r\n \"requestedServiceObjectiveName\": \"GP_Gen5_2\",\r\n \"defaultSecondaryLocation\": \"westus2\",\r\n \"catalogCollation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"zoneRedundant\": false,\r\n \"licenseType\": \"LicenseIncluded\",\r\n \"maxLogSizeBytes\": 10307502080,\r\n \"earliestRestoreDate\": \"2020-09-03T22:07:57.663Z\",\r\n \"readScale\": \"Disabled\",\r\n \"readReplicaCount\": 0,\r\n \"currentSku\": {\r\n \"name\": \"GP_Gen5\",\r\n \"tier\": \"GeneralPurpose\",\r\n \"family\": \"Gen5\",\r\n \"capacity\": 2\r\n },\r\n \"storageAccountType\": \"GRS\"\r\n },\r\n \"location\": \"westcentralus\",\r\n \"id\": \"/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-9508/providers/Microsoft.Sql/servers/sqlcrudtest-4858/databases/sqlcrudtest-2319\",\r\n \"name\": \"sqlcrudtest-2319\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/df7c055c-6310-4374-9852-10ef71ce5f85/resourceGroups/sqlcrudtest-8943/providers/Microsoft.Sql/servers/sqlcrudtest-7286/databases/sqlcrudtest-2200/export?api-version=2014-04-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGY3YzA1NWMtNjMxMC00Mzc0LTk4NTItMTBlZjcxY2U1Zjg1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg5NDMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03Mjg2L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC0yMjAwL2V4cG9ydD9hcGktdmVyc2lvbj0yMDE0LTA0LTAx", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-9508/providers/Microsoft.Sql/servers/sqlcrudtest-4858/databases/sqlcrudtest-2319/export?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTk1MDgvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC00ODU4L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC0yMzE5L2V4cG9ydD9hcGktdmVyc2lvbj0yMDIwLTAyLTAyLXByZXZpZXc=", "RequestMethod": "POST", - "RequestBody": "{\r\n \"storageKeyType\": \"StorageAccessKey\",\r\n \"storageKey\": \"/ecn75SYaOXflaEtrTpGvlrbvhR2F9mcr2hjHjiNN61n0i8/WENGspPZt8JBjz6cdDmkJtjuwwwtmiy28wKQ0Q==\",\r\n \"storageUri\": \"https://sqlcrudtest5639.blob.core.windows.net/container/sqlcrudtest-2200.bacpac\",\r\n \"administratorLogin\": \"dummylogin\",\r\n \"administratorLoginPassword\": \"Un53cuRE!\",\r\n \"authenticationType\": \"SQL\"\r\n}", + "RequestBody": "{\r\n \"storageKeyType\": \"StorageAccessKey\",\r\n \"storageKey\": \"GyT8d7TmvZwTBTSk0BZXlM5QsQxqlhwnTUGUAcliOmrviA9EG5rq58DKaq7465GQh9cflutV0+NmL9jOV9dYSQ==\",\r\n \"storageUri\": \"https://sqlcrudtest4377.blob.core.windows.net/container/sqlcrudtest-2319.bacpac\",\r\n \"administratorLogin\": \"dummylogin\",\r\n \"administratorLoginPassword\": \"Un53cuRE!\",\r\n \"authenticationType\": \"SQL\"\r\n}", "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "370" - ], "x-ms-client-request-id": [ - "3612d820-fd1a-48f4-87ea-25755ec8f9a4" + "02ae35c4-ac90-45e1-9910-1664797127d5" ], "accept-language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.26201.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.13.0.0" - ] - }, - "ResponseBody": "{\r\n \"operation\": \"Export\",\r\n \"startTime\": \"2018-03-28T20:16:04.861Z\"\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "60" + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" ], "Content-Type": [ - "application/xml; charset=utf-8" + "application/json; charset=utf-8" ], + "Content-Length": [ + "370" + ] + }, + "ResponseHeaders": { "Cache-Control": [ - "no-store, no-cache" + "no-cache" ], "Date": [ - "Wed, 28 Mar 2018 20:16:05 GMT" + "Thu, 03 Sep 2020 21:38:07 GMT" + ], + "Pragma": [ + "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/df7c055c-6310-4374-9852-10ef71ce5f85/resourceGroups/sqlcrudtest-8943/providers/Microsoft.Sql/servers/sqlcrudtest-7286/databases/sqlcrudtest-2200/importExportOperationResults/b8947e8a-90e1-4b3a-8d30-42ebd07d61b6?api-version=2014-04-01-Preview" + "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportOperationResults/e5bef22a-fadf-46b8-ac1a-1c6051631f88-sqlcrudtest-4858?api-version=2020-02-02-preview" ], "Retry-After": [ - "30" + "15" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], + "Azure-AsyncOperation": [ + "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/e5bef22a-fadf-46b8-ac1a-1c6051631f88-sqlcrudtest-4858?api-version=2020-02-02-preview" + ], "x-ms-request-id": [ - "0f5d9d96-23a3-4e63-b475-0d64ce209ac9" + "746b4392-ef43-49f0-b73a-ee3819d648ae" ], - "X-Content-Type-Options": [ - "nosniff" + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" ], - "Preference-Applied": [ - "return-content" + "x-ms-correlation-request-id": [ + "30d93e76-d8d2-451b-9ffa-d8b005fd2021" ], - "DataServiceVersion": [ - "3.0;" + "x-ms-routing-request-id": [ + "BRAZILUS:20200903T213808Z:30d93e76-d8d2-451b-9ffa-d8b005fd2021" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1196" + "X-Content-Type-Options": [ + "nosniff" ], - "x-ms-correlation-request-id": [ - "ba9dd74f-4b81-4753-9df7-85eb5258334e" + "Content-Length": [ + "65" ], - "x-ms-routing-request-id": [ - "WESTUS2:20180328T201605Z:ba9dd74f-4b81-4753-9df7-85eb5258334e" + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" ] }, + "ResponseBody": "{\r\n \"operation\": \"Export\",\r\n \"startTime\": \"2020-09-03T21:38:07.9603008Z\"\r\n}", "StatusCode": 202 }, { - "RequestUri": "/subscriptions/df7c055c-6310-4374-9852-10ef71ce5f85/resourceGroups/sqlcrudtest-8943/providers/Microsoft.Sql/servers/sqlcrudtest-7286/databases/sqlcrudtest-2200/importExportOperationResults/b8947e8a-90e1-4b3a-8d30-42ebd07d61b6?api-version=2014-04-01-Preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGY3YzA1NWMtNjMxMC00Mzc0LTk4NTItMTBlZjcxY2U1Zjg1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg5NDMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03Mjg2L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC0yMjAwL2ltcG9ydEV4cG9ydE9wZXJhdGlvblJlc3VsdHMvYjg5NDdlOGEtOTBlMS00YjNhLThkMzAtNDJlYmQwN2Q2MWI2P2FwaS12ZXJzaW9uPTIwMTQtMDQtMDEtUHJldmlldw==", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/e5bef22a-fadf-46b8-ac1a-1c6051631f88-sqlcrudtest-4858?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vZTViZWYyMmEtZmFkZi00NmI4LWFjMWEtMWM2MDUxNjMxZjg4LXNxbGNydWR0ZXN0LTQ4NTg/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.26201.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.13.0.0" + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" ] }, - "ResponseBody": "{\r\n \"blobUri\": \"https://sqlcrudtest5639.blob.core.windows.net/container/sqlcrudtest-2200.bacpac\",\r\n \"databaseName\": \"sqlcrudtest-2200\",\r\n \"errorMessage\": null,\r\n \"lastModifiedTime\": \"3/28/2018 8:16:06 PM\",\r\n \"queuedTime\": \"3/28/2018 8:16:04 PM\",\r\n \"requestId\": \"b8947e8a-90e1-4b3a-8d30-42ebd07d61b6\",\r\n \"requestType\": \"Export\",\r\n \"serverName\": \"sqlcrudtest-7286.database.windows.net\",\r\n \"status\": \"Running, Progress = 0%\"\r\n}", "ResponseHeaders": { - "Content-Length": [ - "394" - ], - "Content-Type": [ - "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" - ], "Cache-Control": [ - "no-store, no-cache" + "no-cache" ], "Date": [ - "Wed, 28 Mar 2018 20:16:34 GMT" + "Thu, 03 Sep 2020 21:38:24 GMT" ], - "Location": [ - "https://management.azure.com/subscriptions/df7c055c-6310-4374-9852-10ef71ce5f85/resourceGroups/sqlcrudtest-8943/providers/Microsoft.Sql/servers/sqlcrudtest-7286/databases/sqlcrudtest-2200/importExportOperationResults/b8947e8a-90e1-4b3a-8d30-42ebd07d61b6?api-version=2014-04-01-Preview" + "Pragma": [ + "no-cache" ], "Retry-After": [ - "30" + "15" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "b3619d0d-e4fd-4f49-b492-67332edd6e6b" + "b23c6703-9774-46bf-8a1d-ff5bcb7531f1" ], - "X-Content-Type-Options": [ - "nosniff" + "x-ms-ratelimit-remaining-subscription-reads": [ + "11988" ], - "DataServiceVersion": [ - "3.0;" + "x-ms-correlation-request-id": [ + "5f8c603a-9203-4825-9fc6-8d979f40ab76" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200903T213825Z:5f8c603a-9203-4825-9fc6-8d979f40ab76" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14991" + "X-Content-Type-Options": [ + "nosniff" ], - "x-ms-correlation-request-id": [ - "0c07b8a4-0131-4b18-8b54-c4a9d9bb9890" + "Content-Length": [ + "104" ], - "x-ms-routing-request-id": [ - "WESTUS2:20180328T201635Z:0c07b8a4-0131-4b18-8b54-c4a9d9bb9890" + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" ] }, - "StatusCode": 202 + "ResponseBody": "{\r\n \"name\": \"e5bef22a-fadf-46b8-ac1a-1c6051631f88\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T21:38:07Z\"\r\n}", + "StatusCode": 200 }, { - "RequestUri": "/subscriptions/df7c055c-6310-4374-9852-10ef71ce5f85/resourceGroups/sqlcrudtest-8943/providers/Microsoft.Sql/servers/sqlcrudtest-7286/databases/sqlcrudtest-2200/importExportOperationResults/b8947e8a-90e1-4b3a-8d30-42ebd07d61b6?api-version=2014-04-01-Preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGY3YzA1NWMtNjMxMC00Mzc0LTk4NTItMTBlZjcxY2U1Zjg1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg5NDMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03Mjg2L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC0yMjAwL2ltcG9ydEV4cG9ydE9wZXJhdGlvblJlc3VsdHMvYjg5NDdlOGEtOTBlMS00YjNhLThkMzAtNDJlYmQwN2Q2MWI2P2FwaS12ZXJzaW9uPTIwMTQtMDQtMDEtUHJldmlldw==", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/e5bef22a-fadf-46b8-ac1a-1c6051631f88-sqlcrudtest-4858?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vZTViZWYyMmEtZmFkZi00NmI4LWFjMWEtMWM2MDUxNjMxZjg4LXNxbGNydWR0ZXN0LTQ4NTg/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.26201.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.13.0.0" + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" ] }, - "ResponseBody": "{\r\n \"blobUri\": \"https://sqlcrudtest5639.blob.core.windows.net/container/sqlcrudtest-2200.bacpac\",\r\n \"databaseName\": \"sqlcrudtest-2200\",\r\n \"errorMessage\": null,\r\n \"lastModifiedTime\": \"3/28/2018 8:16:06 PM\",\r\n \"queuedTime\": \"3/28/2018 8:16:04 PM\",\r\n \"requestId\": \"b8947e8a-90e1-4b3a-8d30-42ebd07d61b6\",\r\n \"requestType\": \"Export\",\r\n \"serverName\": \"sqlcrudtest-7286.database.windows.net\",\r\n \"status\": \"Running, Progress = 0%\"\r\n}", "ResponseHeaders": { - "Content-Length": [ - "394" - ], - "Content-Type": [ - "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" - ], "Cache-Control": [ - "no-store, no-cache" + "no-cache" ], "Date": [ - "Wed, 28 Mar 2018 20:17:05 GMT" + "Thu, 03 Sep 2020 21:38:39 GMT" ], - "Location": [ - "https://management.azure.com/subscriptions/df7c055c-6310-4374-9852-10ef71ce5f85/resourceGroups/sqlcrudtest-8943/providers/Microsoft.Sql/servers/sqlcrudtest-7286/databases/sqlcrudtest-2200/importExportOperationResults/b8947e8a-90e1-4b3a-8d30-42ebd07d61b6?api-version=2014-04-01-Preview" + "Pragma": [ + "no-cache" ], "Retry-After": [ - "30" + "15" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "19fc6872-7128-4b32-a204-b0a633fd5da6" + "fa5fc5ca-936b-4588-a0cb-1664f716dab3" ], - "X-Content-Type-Options": [ - "nosniff" + "x-ms-ratelimit-remaining-subscription-reads": [ + "11987" ], - "DataServiceVersion": [ - "3.0;" + "x-ms-correlation-request-id": [ + "d012cce7-a204-4308-9bcc-8c1d1058e6e3" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200903T213840Z:d012cce7-a204-4308-9bcc-8c1d1058e6e3" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14990" + "X-Content-Type-Options": [ + "nosniff" ], - "x-ms-correlation-request-id": [ - "6bd48e81-846b-4f55-8e4f-ac596d69aa84" + "Content-Length": [ + "104" ], - "x-ms-routing-request-id": [ - "WESTUS2:20180328T201705Z:6bd48e81-846b-4f55-8e4f-ac596d69aa84" + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" ] }, - "StatusCode": 202 + "ResponseBody": "{\r\n \"name\": \"e5bef22a-fadf-46b8-ac1a-1c6051631f88\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T21:38:07Z\"\r\n}", + "StatusCode": 200 }, { - "RequestUri": "/subscriptions/df7c055c-6310-4374-9852-10ef71ce5f85/resourceGroups/sqlcrudtest-8943/providers/Microsoft.Sql/servers/sqlcrudtest-7286/databases/sqlcrudtest-2200/importExportOperationResults/b8947e8a-90e1-4b3a-8d30-42ebd07d61b6?api-version=2014-04-01-Preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGY3YzA1NWMtNjMxMC00Mzc0LTk4NTItMTBlZjcxY2U1Zjg1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg5NDMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03Mjg2L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC0yMjAwL2ltcG9ydEV4cG9ydE9wZXJhdGlvblJlc3VsdHMvYjg5NDdlOGEtOTBlMS00YjNhLThkMzAtNDJlYmQwN2Q2MWI2P2FwaS12ZXJzaW9uPTIwMTQtMDQtMDEtUHJldmlldw==", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/e5bef22a-fadf-46b8-ac1a-1c6051631f88-sqlcrudtest-4858?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vZTViZWYyMmEtZmFkZi00NmI4LWFjMWEtMWM2MDUxNjMxZjg4LXNxbGNydWR0ZXN0LTQ4NTg/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.26201.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.13.0.0" + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" ] }, - "ResponseBody": "{\r\n \"blobUri\": \"https://sqlcrudtest5639.blob.core.windows.net/container/sqlcrudtest-2200.bacpac\",\r\n \"databaseName\": \"sqlcrudtest-2200\",\r\n \"errorMessage\": null,\r\n \"lastModifiedTime\": \"3/28/2018 8:16:06 PM\",\r\n \"queuedTime\": \"3/28/2018 8:16:04 PM\",\r\n \"requestId\": \"b8947e8a-90e1-4b3a-8d30-42ebd07d61b6\",\r\n \"requestType\": \"Export\",\r\n \"serverName\": \"sqlcrudtest-7286.database.windows.net\",\r\n \"status\": \"Running, Progress = 0%\"\r\n}", "ResponseHeaders": { - "Content-Length": [ - "394" - ], - "Content-Type": [ - "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" - ], "Cache-Control": [ - "no-store, no-cache" + "no-cache" ], "Date": [ - "Wed, 28 Mar 2018 20:17:35 GMT" + "Thu, 03 Sep 2020 21:38:55 GMT" ], - "Location": [ - "https://management.azure.com/subscriptions/df7c055c-6310-4374-9852-10ef71ce5f85/resourceGroups/sqlcrudtest-8943/providers/Microsoft.Sql/servers/sqlcrudtest-7286/databases/sqlcrudtest-2200/importExportOperationResults/b8947e8a-90e1-4b3a-8d30-42ebd07d61b6?api-version=2014-04-01-Preview" + "Pragma": [ + "no-cache" ], "Retry-After": [ - "30" + "15" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "3a864840-1378-4132-86b1-44808f960241" + "8670c95e-d01a-40f6-9ce6-5faddca1d984" ], - "X-Content-Type-Options": [ - "nosniff" + "x-ms-ratelimit-remaining-subscription-reads": [ + "11986" ], - "DataServiceVersion": [ - "3.0;" + "x-ms-correlation-request-id": [ + "ea9085f5-1f34-45f5-86c6-5e6168e7de8c" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200903T213856Z:ea9085f5-1f34-45f5-86c6-5e6168e7de8c" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14989" + "X-Content-Type-Options": [ + "nosniff" ], - "x-ms-correlation-request-id": [ - "1af8d277-2045-4015-8e26-47a158972bd3" + "Content-Length": [ + "104" ], - "x-ms-routing-request-id": [ - "WESTUS2:20180328T201736Z:1af8d277-2045-4015-8e26-47a158972bd3" + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" ] }, - "StatusCode": 202 + "ResponseBody": "{\r\n \"name\": \"e5bef22a-fadf-46b8-ac1a-1c6051631f88\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T21:38:07Z\"\r\n}", + "StatusCode": 200 }, { - "RequestUri": "/subscriptions/df7c055c-6310-4374-9852-10ef71ce5f85/resourceGroups/sqlcrudtest-8943/providers/Microsoft.Sql/servers/sqlcrudtest-7286/databases/sqlcrudtest-2200/importExportOperationResults/b8947e8a-90e1-4b3a-8d30-42ebd07d61b6?api-version=2014-04-01-Preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGY3YzA1NWMtNjMxMC00Mzc0LTk4NTItMTBlZjcxY2U1Zjg1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg5NDMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03Mjg2L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC0yMjAwL2ltcG9ydEV4cG9ydE9wZXJhdGlvblJlc3VsdHMvYjg5NDdlOGEtOTBlMS00YjNhLThkMzAtNDJlYmQwN2Q2MWI2P2FwaS12ZXJzaW9uPTIwMTQtMDQtMDEtUHJldmlldw==", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/e5bef22a-fadf-46b8-ac1a-1c6051631f88-sqlcrudtest-4858?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vZTViZWYyMmEtZmFkZi00NmI4LWFjMWEtMWM2MDUxNjMxZjg4LXNxbGNydWR0ZXN0LTQ4NTg/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.26201.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.13.0.0" + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" ] }, - "ResponseBody": "{\r\n \"blobUri\": \"https://sqlcrudtest5639.blob.core.windows.net/container/sqlcrudtest-2200.bacpac\",\r\n \"databaseName\": \"sqlcrudtest-2200\",\r\n \"errorMessage\": null,\r\n \"lastModifiedTime\": \"3/28/2018 8:16:06 PM\",\r\n \"queuedTime\": \"3/28/2018 8:16:04 PM\",\r\n \"requestId\": \"b8947e8a-90e1-4b3a-8d30-42ebd07d61b6\",\r\n \"requestType\": \"Export\",\r\n \"serverName\": \"sqlcrudtest-7286.database.windows.net\",\r\n \"status\": \"Running, Progress = 0%\"\r\n}", "ResponseHeaders": { - "Content-Length": [ - "394" - ], - "Content-Type": [ - "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" - ], "Cache-Control": [ - "no-store, no-cache" + "no-cache" ], "Date": [ - "Wed, 28 Mar 2018 20:18:05 GMT" + "Thu, 03 Sep 2020 21:39:10 GMT" ], - "Location": [ - "https://management.azure.com/subscriptions/df7c055c-6310-4374-9852-10ef71ce5f85/resourceGroups/sqlcrudtest-8943/providers/Microsoft.Sql/servers/sqlcrudtest-7286/databases/sqlcrudtest-2200/importExportOperationResults/b8947e8a-90e1-4b3a-8d30-42ebd07d61b6?api-version=2014-04-01-Preview" + "Pragma": [ + "no-cache" ], "Retry-After": [ - "30" + "15" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "fbd651eb-90aa-4603-ba0d-c77f8ed26762" + "bea62593-258a-48ab-8192-28848deedd7f" ], - "X-Content-Type-Options": [ - "nosniff" + "x-ms-ratelimit-remaining-subscription-reads": [ + "11985" ], - "DataServiceVersion": [ - "3.0;" + "x-ms-correlation-request-id": [ + "db18d9b5-95eb-4ebb-9cb9-f76a1b9910a1" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200903T213911Z:db18d9b5-95eb-4ebb-9cb9-f76a1b9910a1" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14988" + "X-Content-Type-Options": [ + "nosniff" ], - "x-ms-correlation-request-id": [ - "b80aceee-d41a-4304-ab88-f542c678197e" + "Content-Length": [ + "104" ], - "x-ms-routing-request-id": [ - "WESTUS2:20180328T201806Z:b80aceee-d41a-4304-ab88-f542c678197e" + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" ] }, - "StatusCode": 202 + "ResponseBody": "{\r\n \"name\": \"e5bef22a-fadf-46b8-ac1a-1c6051631f88\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T21:39:07Z\"\r\n}", + "StatusCode": 200 }, { - "RequestUri": "/subscriptions/df7c055c-6310-4374-9852-10ef71ce5f85/resourceGroups/sqlcrudtest-8943/providers/Microsoft.Sql/servers/sqlcrudtest-7286/databases/sqlcrudtest-2200/importExportOperationResults/b8947e8a-90e1-4b3a-8d30-42ebd07d61b6?api-version=2014-04-01-Preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGY3YzA1NWMtNjMxMC00Mzc0LTk4NTItMTBlZjcxY2U1Zjg1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg5NDMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03Mjg2L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC0yMjAwL2ltcG9ydEV4cG9ydE9wZXJhdGlvblJlc3VsdHMvYjg5NDdlOGEtOTBlMS00YjNhLThkMzAtNDJlYmQwN2Q2MWI2P2FwaS12ZXJzaW9uPTIwMTQtMDQtMDEtUHJldmlldw==", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/e5bef22a-fadf-46b8-ac1a-1c6051631f88-sqlcrudtest-4858?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vZTViZWYyMmEtZmFkZi00NmI4LWFjMWEtMWM2MDUxNjMxZjg4LXNxbGNydWR0ZXN0LTQ4NTg/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.26201.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.13.0.0" + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/df7c055c-6310-4374-9852-10ef71ce5f85/resourceGroups/sqlcrudtest-8943/providers/Microsoft.Sql/servers/sqlcrudtest-7286/databases/sqlcrudtest-2200/importExportOperationResults/b8947e8a-90e1-4b3a-8d30-42ebd07d61b6\",\r\n \"name\": \"b8947e8a-90e1-4b3a-8d30-42ebd07d61b6\",\r\n \"type\": \"Microsoft.Sql/servers/databases/importExportOperationResults\",\r\n \"properties\": {\r\n \"requestId\": \"b8947e8a-90e1-4b3a-8d30-42ebd07d61b6\",\r\n \"requestType\": \"Export\",\r\n \"queuedTime\": \"3/28/2018 8:16:04 PM\",\r\n \"lastModifiedTime\": \"3/28/2018 8:18:23 PM\",\r\n \"blobUri\": \"https://sqlcrudtest5639.blob.core.windows.net/container/sqlcrudtest-2200.bacpac\",\r\n \"serverName\": \"sqlcrudtest-7286\",\r\n \"databaseName\": \"sqlcrudtest-2200\",\r\n \"status\": \"Completed\",\r\n \"errorMessage\": null\r\n }\r\n}", "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" - ], "Cache-Control": [ - "no-store, no-cache" + "no-cache" ], "Date": [ - "Wed, 28 Mar 2018 20:18:36 GMT" + "Thu, 03 Sep 2020 21:39:26 GMT" + ], + "Pragma": [ + "no-cache" ], - "Transfer-Encoding": [ - "chunked" + "Retry-After": [ + "15" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], - "Vary": [ - "Accept-Encoding" - ], "x-ms-request-id": [ - "b4efe153-432d-4760-8e2e-9939a5a40e17" + "f2b9ca4f-4316-4347-afe7-94939efe4de6" ], - "X-Content-Type-Options": [ - "nosniff" + "x-ms-ratelimit-remaining-subscription-reads": [ + "11984" ], - "DataServiceVersion": [ - "3.0;" + "x-ms-correlation-request-id": [ + "fb72bb52-36c7-42d8-a83c-dfb8deb7fd40" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200903T213926Z:fb72bb52-36c7-42d8-a83c-dfb8deb7fd40" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14987" + "X-Content-Type-Options": [ + "nosniff" ], - "x-ms-correlation-request-id": [ - "fe4aa672-aa2f-4427-a8fb-d5da86089406" + "Content-Length": [ + "104" ], - "x-ms-routing-request-id": [ - "WESTUS2:20180328T201836Z:fe4aa672-aa2f-4427-a8fb-d5da86089406" + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" ] }, + "ResponseBody": "{\r\n \"name\": \"e5bef22a-fadf-46b8-ac1a-1c6051631f88\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T21:39:07Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/df7c055c-6310-4374-9852-10ef71ce5f85/resourceGroups/sqlcrudtest-8943/providers/Microsoft.Sql/servers/sqlcrudtest-7286/databases/sqlcrudtest-2200/importExportOperationResults/b8947e8a-90e1-4b3a-8d30-42ebd07d61b6?api-version=2014-04-01-Preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGY3YzA1NWMtNjMxMC00Mzc0LTk4NTItMTBlZjcxY2U1Zjg1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg5NDMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03Mjg2L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC0yMjAwL2ltcG9ydEV4cG9ydE9wZXJhdGlvblJlc3VsdHMvYjg5NDdlOGEtOTBlMS00YjNhLThkMzAtNDJlYmQwN2Q2MWI2P2FwaS12ZXJzaW9uPTIwMTQtMDQtMDEtUHJldmlldw==", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/e5bef22a-fadf-46b8-ac1a-1c6051631f88-sqlcrudtest-4858?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vZTViZWYyMmEtZmFkZi00NmI4LWFjMWEtMWM2MDUxNjMxZjg4LXNxbGNydWR0ZXN0LTQ4NTg/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.26201.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.13.0.0" + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/df7c055c-6310-4374-9852-10ef71ce5f85/resourceGroups/sqlcrudtest-8943/providers/Microsoft.Sql/servers/sqlcrudtest-7286/databases/sqlcrudtest-2200/importExportOperationResults/b8947e8a-90e1-4b3a-8d30-42ebd07d61b6\",\r\n \"name\": \"b8947e8a-90e1-4b3a-8d30-42ebd07d61b6\",\r\n \"type\": \"Microsoft.Sql/servers/databases/importExportOperationResults\",\r\n \"properties\": {\r\n \"requestId\": \"b8947e8a-90e1-4b3a-8d30-42ebd07d61b6\",\r\n \"requestType\": \"Export\",\r\n \"queuedTime\": \"3/28/2018 8:16:04 PM\",\r\n \"lastModifiedTime\": \"3/28/2018 8:18:23 PM\",\r\n \"blobUri\": \"https://sqlcrudtest5639.blob.core.windows.net/container/sqlcrudtest-2200.bacpac\",\r\n \"serverName\": \"sqlcrudtest-7286\",\r\n \"databaseName\": \"sqlcrudtest-2200\",\r\n \"status\": \"Completed\",\r\n \"errorMessage\": null\r\n }\r\n}", "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" - ], "Cache-Control": [ - "no-store, no-cache" + "no-cache" ], "Date": [ - "Wed, 28 Mar 2018 20:18:36 GMT" + "Thu, 03 Sep 2020 21:39:41 GMT" + ], + "Pragma": [ + "no-cache" ], - "Transfer-Encoding": [ - "chunked" + "Retry-After": [ + "15" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], - "Vary": [ - "Accept-Encoding" - ], "x-ms-request-id": [ - "a07bf0fd-6883-4979-9836-7ad7f92cd4c5" + "148d936c-b1cb-4db7-8466-a72862d87ee7" ], - "X-Content-Type-Options": [ - "nosniff" + "x-ms-ratelimit-remaining-subscription-reads": [ + "11983" ], - "DataServiceVersion": [ - "3.0;" + "x-ms-correlation-request-id": [ + "5ed39353-d8f6-4066-9197-7be93ec4e541" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200903T213941Z:5ed39353-d8f6-4066-9197-7be93ec4e541" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14986" + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "103" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"e5bef22a-fadf-46b8-ac1a-1c6051631f88\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2020-09-03T21:39:31Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportOperationResults/e5bef22a-fadf-46b8-ac1a-1c6051631f88-sqlcrudtest-4858?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydE9wZXJhdGlvblJlc3VsdHMvZTViZWYyMmEtZmFkZi00NmI4LWFjMWEtMWM2MDUxNjMxZjg4LXNxbGNydWR0ZXN0LTQ4NTg/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 03 Sep 2020 21:39:42 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "96001b64-fade-443a-b55a-e75f9c978995" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11982" + ], + "x-ms-correlation-request-id": [ + "a1be0308-d4de-45e9-b25e-692df827bc5b" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200903T213942Z:a1be0308-d4de-45e9-b25e-692df827bc5b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "545" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"requestId\": \"e5bef22a-fadf-46b8-ac1a-1c6051631f88\",\r\n \"requestType\": \"ExportDatabase\",\r\n \"queuedTime\": \"9/3/2020 9:38:06 PM\",\r\n \"lastModifiedTime\": \"9/3/2020 9:39:31 PM\",\r\n \"blobUri\": \"https://sqlcrudtest4377.blob.core.windows.net/container/sqlcrudtest-2319.bacpac\",\r\n \"serverName\": \"sqlcrudtest-4858\",\r\n \"databaseName\": \"sqlcrudtest-2319\",\r\n \"status\": \"Completed\",\r\n \"privateEndpointConnections\": []\r\n },\r\n \"id\": \"e5bef22a-fadf-46b8-ac1a-1c6051631f88\",\r\n \"name\": \"e5bef22a-fadf-46b8-ac1a-1c6051631f88\",\r\n \"type\": \"Microsoft.Sql/servers/databases/importExportOperationResults\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-9508/providers/Microsoft.Sql/servers/sqlcrudtest-4858/import?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTk1MDgvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC00ODU4L2ltcG9ydD9hcGktdmVyc2lvbj0yMDIwLTAyLTAyLXByZXZpZXc=", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"databaseName\": \"sqlcrudtest-9526\",\r\n \"edition\": \"Basic\",\r\n \"serviceObjectiveName\": \"Basic\",\r\n \"maxSizeBytes\": \"2147483648\",\r\n \"storageKeyType\": \"StorageAccessKey\",\r\n \"storageKey\": \"GyT8d7TmvZwTBTSk0BZXlM5QsQxqlhwnTUGUAcliOmrviA9EG5rq58DKaq7465GQh9cflutV0+NmL9jOV9dYSQ==\",\r\n \"storageUri\": \"https://sqlcrudtest4377.blob.core.windows.net/container/sqlcrudtest-2319.bacpac\",\r\n \"administratorLogin\": \"dummylogin\",\r\n \"administratorLoginPassword\": \"Un53cuRE!\",\r\n \"authenticationType\": \"SQL\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "8602c89d-823d-4944-9c4f-2378d5eeb130" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "501" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 03 Sep 2020 21:39:43 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportOperationResults/4142cd42-8ecf-45d8-8951-727e0090770e-sqlcrudtest-4858?api-version=2020-02-02-preview" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/4142cd42-8ecf-45d8-8951-727e0090770e-sqlcrudtest-4858?api-version=2020-02-02-preview" + ], + "x-ms-request-id": [ + "f4149f66-e1b7-47dd-958c-d8704613384b" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-correlation-request-id": [ + "11492f8c-5437-4f36-98b6-e3add896ee9c" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200903T213944Z:11492f8c-5437-4f36-98b6-e3add896ee9c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "65" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"Import\",\r\n \"startTime\": \"2020-09-03T21:39:43.8351996Z\"\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/4142cd42-8ecf-45d8-8951-727e0090770e-sqlcrudtest-4858?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vNDE0MmNkNDItOGVjZi00NWQ4LTg5NTEtNzI3ZTAwOTA3NzBlLXNxbGNydWR0ZXN0LTQ4NTg/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 03 Sep 2020 21:39:58 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "d7fd5976-a0f0-4e54-960f-26b3eaba52b2" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11981" + ], + "x-ms-correlation-request-id": [ + "c52cbda7-2788-4794-acee-611d1d9ccf10" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200903T213959Z:c52cbda7-2788-4794-acee-611d1d9ccf10" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "104" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"4142cd42-8ecf-45d8-8951-727e0090770e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T21:39:42Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/4142cd42-8ecf-45d8-8951-727e0090770e-sqlcrudtest-4858?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vNDE0MmNkNDItOGVjZi00NWQ4LTg5NTEtNzI3ZTAwOTA3NzBlLXNxbGNydWR0ZXN0LTQ4NTg/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 03 Sep 2020 21:40:14 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "43613ed4-f247-4a98-b3e8-1c4566bde1ac" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11980" + ], + "x-ms-correlation-request-id": [ + "aed3dca2-dc8c-4526-a146-4b80289b7a6e" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200903T214014Z:aed3dca2-dc8c-4526-a146-4b80289b7a6e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "104" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"4142cd42-8ecf-45d8-8951-727e0090770e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T21:39:42Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/4142cd42-8ecf-45d8-8951-727e0090770e-sqlcrudtest-4858?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vNDE0MmNkNDItOGVjZi00NWQ4LTg5NTEtNzI3ZTAwOTA3NzBlLXNxbGNydWR0ZXN0LTQ4NTg/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 03 Sep 2020 21:40:29 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "be72aefa-3095-416d-a290-038efd7c3a94" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11979" + ], + "x-ms-correlation-request-id": [ + "78489adc-ff2a-4622-82a5-5bff09c4fb26" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200903T214029Z:78489adc-ff2a-4622-82a5-5bff09c4fb26" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "104" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"4142cd42-8ecf-45d8-8951-727e0090770e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T21:39:42Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/4142cd42-8ecf-45d8-8951-727e0090770e-sqlcrudtest-4858?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vNDE0MmNkNDItOGVjZi00NWQ4LTg5NTEtNzI3ZTAwOTA3NzBlLXNxbGNydWR0ZXN0LTQ4NTg/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 03 Sep 2020 21:40:44 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "8134a5a2-368a-47fd-8754-23e4fc1fdaff" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11978" + ], + "x-ms-correlation-request-id": [ + "9b54c9ce-085a-473f-8a82-73b1dd129aeb" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200903T214044Z:9b54c9ce-085a-473f-8a82-73b1dd129aeb" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "104" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"4142cd42-8ecf-45d8-8951-727e0090770e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T21:40:43Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/4142cd42-8ecf-45d8-8951-727e0090770e-sqlcrudtest-4858?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vNDE0MmNkNDItOGVjZi00NWQ4LTg5NTEtNzI3ZTAwOTA3NzBlLXNxbGNydWR0ZXN0LTQ4NTg/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 03 Sep 2020 21:40:59 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "565f7e7f-9e0e-4308-bb01-2c921d9c0bbd" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11977" + ], + "x-ms-correlation-request-id": [ + "62c4df48-43c2-4217-aa0e-ebaf9f258d7d" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200903T214100Z:62c4df48-43c2-4217-aa0e-ebaf9f258d7d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "104" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"4142cd42-8ecf-45d8-8951-727e0090770e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T21:40:43Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/4142cd42-8ecf-45d8-8951-727e0090770e-sqlcrudtest-4858?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vNDE0MmNkNDItOGVjZi00NWQ4LTg5NTEtNzI3ZTAwOTA3NzBlLXNxbGNydWR0ZXN0LTQ4NTg/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 03 Sep 2020 21:41:14 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "90c81d7e-acad-4818-86e6-43f83a38751e" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11976" + ], + "x-ms-correlation-request-id": [ + "dc884dc3-b730-42fa-8097-f0a65dcf36d6" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200903T214115Z:dc884dc3-b730-42fa-8097-f0a65dcf36d6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "104" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"4142cd42-8ecf-45d8-8951-727e0090770e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T21:40:43Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/4142cd42-8ecf-45d8-8951-727e0090770e-sqlcrudtest-4858?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vNDE0MmNkNDItOGVjZi00NWQ4LTg5NTEtNzI3ZTAwOTA3NzBlLXNxbGNydWR0ZXN0LTQ4NTg/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 03 Sep 2020 21:41:30 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "babe5bac-3acc-4847-8886-8409dca318d7" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11975" + ], + "x-ms-correlation-request-id": [ + "e187e19d-ac80-497d-8b26-33eca1471841" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200903T214130Z:e187e19d-ac80-497d-8b26-33eca1471841" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "104" ], - "x-ms-correlation-request-id": [ - "ae24b6ab-e2e8-4e1b-b399-05bd5be9be6e" + "Content-Type": [ + "application/json; charset=utf-8" ], - "x-ms-routing-request-id": [ - "WESTUS2:20180328T201836Z:ae24b6ab-e2e8-4e1b-b399-05bd5be9be6e" + "Expires": [ + "-1" ] }, + "ResponseBody": "{\r\n \"name\": \"4142cd42-8ecf-45d8-8951-727e0090770e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T21:40:43Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/df7c055c-6310-4374-9852-10ef71ce5f85/resourceGroups/sqlcrudtest-8943/providers/Microsoft.Sql/servers/sqlcrudtest-7286/import?api-version=2014-04-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGY3YzA1NWMtNjMxMC00Mzc0LTk4NTItMTBlZjcxY2U1Zjg1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg5NDMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03Mjg2L2ltcG9ydD9hcGktdmVyc2lvbj0yMDE0LTA0LTAx", - "RequestMethod": "POST", - "RequestBody": "{\r\n \"databaseName\": \"sqlcrudtest-7251\",\r\n \"edition\": \"Basic\",\r\n \"serviceObjectiveName\": \"Basic\",\r\n \"maxSizeBytes\": \"2147483648\",\r\n \"storageKeyType\": \"StorageAccessKey\",\r\n \"storageKey\": \"/ecn75SYaOXflaEtrTpGvlrbvhR2F9mcr2hjHjiNN61n0i8/WENGspPZt8JBjz6cdDmkJtjuwwwtmiy28wKQ0Q==\",\r\n \"storageUri\": \"https://sqlcrudtest5639.blob.core.windows.net/container/sqlcrudtest-2200.bacpac\",\r\n \"administratorLogin\": \"dummylogin\",\r\n \"administratorLoginPassword\": \"Un53cuRE!\",\r\n \"authenticationType\": \"SQL\"\r\n}", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/4142cd42-8ecf-45d8-8951-727e0090770e-sqlcrudtest-4858?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vNDE0MmNkNDItOGVjZi00NWQ4LTg5NTEtNzI3ZTAwOTA3NzBlLXNxbGNydWR0ZXN0LTQ4NTg/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "501" - ], - "x-ms-client-request-id": [ - "5e268b14-4a14-4e1e-9587-6244ac53a3d0" - ], - "accept-language": [ - "en-US" - ], "User-Agent": [ - "FxVersion/4.6.26201.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.13.0.0" + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" ] }, - "ResponseBody": "{\r\n \"operation\": \"Import\",\r\n \"startTime\": \"2018-03-28T20:18:37.565Z\"\r\n}", "ResponseHeaders": { - "Content-Length": [ - "60" - ], - "Content-Type": [ - "application/xml; charset=utf-8" - ], "Cache-Control": [ - "no-store, no-cache" + "no-cache" ], "Date": [ - "Wed, 28 Mar 2018 20:18:37 GMT" + "Thu, 03 Sep 2020 21:41:44 GMT" ], - "Location": [ - "https://management.azure.com/subscriptions/df7c055c-6310-4374-9852-10ef71ce5f85/resourceGroups/sqlcrudtest-8943/providers/Microsoft.Sql/servers/sqlcrudtest-7286/importExportOperationResults/e8105d08-6aee-421b-a513-ffa416f06d66?api-version=2014-04-01-Preview" + "Pragma": [ + "no-cache" ], "Retry-After": [ - "30" + "15" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "0903adbd-c215-4d5d-976b-3c9e00f38fa6" + "0f0e8084-da20-48e5-903d-7849a8675598" ], - "X-Content-Type-Options": [ - "nosniff" + "x-ms-ratelimit-remaining-subscription-reads": [ + "11974" ], - "Preference-Applied": [ - "return-content" + "x-ms-correlation-request-id": [ + "8061edc7-bfc3-4f08-a599-2429b9045ec2" ], - "DataServiceVersion": [ - "3.0;" + "x-ms-routing-request-id": [ + "BRAZILUS:20200903T214145Z:8061edc7-bfc3-4f08-a599-2429b9045ec2" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1195" + "X-Content-Type-Options": [ + "nosniff" ], - "x-ms-correlation-request-id": [ - "2932dc37-cfee-47ca-b56a-a3222a0223d3" + "Content-Length": [ + "104" ], - "x-ms-routing-request-id": [ - "WESTUS2:20180328T201837Z:2932dc37-cfee-47ca-b56a-a3222a0223d3" + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" ] }, - "StatusCode": 202 + "ResponseBody": "{\r\n \"name\": \"4142cd42-8ecf-45d8-8951-727e0090770e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T21:41:43Z\"\r\n}", + "StatusCode": 200 }, { - "RequestUri": "/subscriptions/df7c055c-6310-4374-9852-10ef71ce5f85/resourceGroups/sqlcrudtest-8943/providers/Microsoft.Sql/servers/sqlcrudtest-7286/importExportOperationResults/e8105d08-6aee-421b-a513-ffa416f06d66?api-version=2014-04-01-Preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGY3YzA1NWMtNjMxMC00Mzc0LTk4NTItMTBlZjcxY2U1Zjg1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg5NDMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03Mjg2L2ltcG9ydEV4cG9ydE9wZXJhdGlvblJlc3VsdHMvZTgxMDVkMDgtNmFlZS00MjFiLWE1MTMtZmZhNDE2ZjA2ZDY2P2FwaS12ZXJzaW9uPTIwMTQtMDQtMDEtUHJldmlldw==", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/4142cd42-8ecf-45d8-8951-727e0090770e-sqlcrudtest-4858?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vNDE0MmNkNDItOGVjZi00NWQ4LTg5NTEtNzI3ZTAwOTA3NzBlLXNxbGNydWR0ZXN0LTQ4NTg/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.26201.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.13.0.0" + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" ] }, - "ResponseBody": "{\r\n \"blobUri\": \"https://sqlcrudtest5639.blob.core.windows.net/container/sqlcrudtest-2200.bacpac\",\r\n \"databaseName\": \"sqlcrudtest-7251\",\r\n \"errorMessage\": null,\r\n \"lastModifiedTime\": \"3/28/2018 8:18:37 PM\",\r\n \"queuedTime\": \"3/28/2018 8:18:37 PM\",\r\n \"requestId\": \"e8105d08-6aee-421b-a513-ffa416f06d66\",\r\n \"requestType\": \"Import\",\r\n \"serverName\": \"sqlcrudtest-7286.database.windows.net\",\r\n \"status\": \"Running, Progress = 5.00 %\"\r\n}", "ResponseHeaders": { - "Content-Length": [ - "398" - ], - "Content-Type": [ - "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" - ], "Cache-Control": [ - "no-store, no-cache" + "no-cache" ], "Date": [ - "Wed, 28 Mar 2018 20:19:07 GMT" + "Thu, 03 Sep 2020 21:42:00 GMT" ], - "Location": [ - "https://management.azure.com/subscriptions/df7c055c-6310-4374-9852-10ef71ce5f85/resourceGroups/sqlcrudtest-8943/providers/Microsoft.Sql/servers/sqlcrudtest-7286/importExportOperationResults/e8105d08-6aee-421b-a513-ffa416f06d66?api-version=2014-04-01-Preview" + "Pragma": [ + "no-cache" ], "Retry-After": [ - "30" + "15" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "1c41dde6-c266-4aa0-9d10-57d3ebe625a4" + "20a6217b-58d3-4c6b-a4a4-c07fb41ead83" ], - "X-Content-Type-Options": [ - "nosniff" + "x-ms-ratelimit-remaining-subscription-reads": [ + "11973" ], - "DataServiceVersion": [ - "3.0;" + "x-ms-correlation-request-id": [ + "115ca721-ee43-4790-85ca-2e8a573064f9" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200903T214200Z:115ca721-ee43-4790-85ca-2e8a573064f9" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14985" + "X-Content-Type-Options": [ + "nosniff" ], - "x-ms-correlation-request-id": [ - "145f2faf-db65-4cfb-ace0-37d9abcaea0a" + "Content-Length": [ + "104" ], - "x-ms-routing-request-id": [ - "WESTUS2:20180328T201907Z:145f2faf-db65-4cfb-ace0-37d9abcaea0a" + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" ] }, - "StatusCode": 202 + "ResponseBody": "{\r\n \"name\": \"4142cd42-8ecf-45d8-8951-727e0090770e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T21:41:43Z\"\r\n}", + "StatusCode": 200 }, { - "RequestUri": "/subscriptions/df7c055c-6310-4374-9852-10ef71ce5f85/resourceGroups/sqlcrudtest-8943/providers/Microsoft.Sql/servers/sqlcrudtest-7286/importExportOperationResults/e8105d08-6aee-421b-a513-ffa416f06d66?api-version=2014-04-01-Preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGY3YzA1NWMtNjMxMC00Mzc0LTk4NTItMTBlZjcxY2U1Zjg1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg5NDMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03Mjg2L2ltcG9ydEV4cG9ydE9wZXJhdGlvblJlc3VsdHMvZTgxMDVkMDgtNmFlZS00MjFiLWE1MTMtZmZhNDE2ZjA2ZDY2P2FwaS12ZXJzaW9uPTIwMTQtMDQtMDEtUHJldmlldw==", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/4142cd42-8ecf-45d8-8951-727e0090770e-sqlcrudtest-4858?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vNDE0MmNkNDItOGVjZi00NWQ4LTg5NTEtNzI3ZTAwOTA3NzBlLXNxbGNydWR0ZXN0LTQ4NTg/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.26201.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.13.0.0" + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" ] }, - "ResponseBody": "{\r\n \"blobUri\": \"https://sqlcrudtest5639.blob.core.windows.net/container/sqlcrudtest-2200.bacpac\",\r\n \"databaseName\": \"sqlcrudtest-7251\",\r\n \"errorMessage\": null,\r\n \"lastModifiedTime\": \"3/28/2018 8:18:37 PM\",\r\n \"queuedTime\": \"3/28/2018 8:18:37 PM\",\r\n \"requestId\": \"e8105d08-6aee-421b-a513-ffa416f06d66\",\r\n \"requestType\": \"Import\",\r\n \"serverName\": \"sqlcrudtest-7286.database.windows.net\",\r\n \"status\": \"Running, Progress = 5.00 %\"\r\n}", "ResponseHeaders": { - "Content-Length": [ - "398" - ], - "Content-Type": [ - "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" - ], "Cache-Control": [ - "no-store, no-cache" + "no-cache" ], "Date": [ - "Wed, 28 Mar 2018 20:19:37 GMT" + "Thu, 03 Sep 2020 21:42:15 GMT" ], - "Location": [ - "https://management.azure.com/subscriptions/df7c055c-6310-4374-9852-10ef71ce5f85/resourceGroups/sqlcrudtest-8943/providers/Microsoft.Sql/servers/sqlcrudtest-7286/importExportOperationResults/e8105d08-6aee-421b-a513-ffa416f06d66?api-version=2014-04-01-Preview" + "Pragma": [ + "no-cache" ], "Retry-After": [ - "30" + "15" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "76aef5d5-ce44-4220-96e1-5f2493d248d8" + "0bf97d58-430b-4f9c-90b2-32a32823b31d" ], - "X-Content-Type-Options": [ - "nosniff" + "x-ms-ratelimit-remaining-subscription-reads": [ + "11972" ], - "DataServiceVersion": [ - "3.0;" + "x-ms-correlation-request-id": [ + "9bf69bfd-b409-48a3-ad3c-7ceadef64e98" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200903T214215Z:9bf69bfd-b409-48a3-ad3c-7ceadef64e98" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14984" + "X-Content-Type-Options": [ + "nosniff" ], - "x-ms-correlation-request-id": [ - "b1c27bc7-8fd0-4111-b95c-cc7acf21b3f6" + "Content-Length": [ + "104" ], - "x-ms-routing-request-id": [ - "WESTUS2:20180328T201938Z:b1c27bc7-8fd0-4111-b95c-cc7acf21b3f6" + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" ] }, - "StatusCode": 202 + "ResponseBody": "{\r\n \"name\": \"4142cd42-8ecf-45d8-8951-727e0090770e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T21:41:43Z\"\r\n}", + "StatusCode": 200 }, { - "RequestUri": "/subscriptions/df7c055c-6310-4374-9852-10ef71ce5f85/resourceGroups/sqlcrudtest-8943/providers/Microsoft.Sql/servers/sqlcrudtest-7286/importExportOperationResults/e8105d08-6aee-421b-a513-ffa416f06d66?api-version=2014-04-01-Preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGY3YzA1NWMtNjMxMC00Mzc0LTk4NTItMTBlZjcxY2U1Zjg1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg5NDMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03Mjg2L2ltcG9ydEV4cG9ydE9wZXJhdGlvblJlc3VsdHMvZTgxMDVkMDgtNmFlZS00MjFiLWE1MTMtZmZhNDE2ZjA2ZDY2P2FwaS12ZXJzaW9uPTIwMTQtMDQtMDEtUHJldmlldw==", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/4142cd42-8ecf-45d8-8951-727e0090770e-sqlcrudtest-4858?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vNDE0MmNkNDItOGVjZi00NWQ4LTg5NTEtNzI3ZTAwOTA3NzBlLXNxbGNydWR0ZXN0LTQ4NTg/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.26201.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.13.0.0" + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" ] }, - "ResponseBody": "{\r\n \"blobUri\": \"https://sqlcrudtest5639.blob.core.windows.net/container/sqlcrudtest-2200.bacpac\",\r\n \"databaseName\": \"sqlcrudtest-7251\",\r\n \"errorMessage\": null,\r\n \"lastModifiedTime\": \"3/28/2018 8:18:37 PM\",\r\n \"queuedTime\": \"3/28/2018 8:18:37 PM\",\r\n \"requestId\": \"e8105d08-6aee-421b-a513-ffa416f06d66\",\r\n \"requestType\": \"Import\",\r\n \"serverName\": \"sqlcrudtest-7286.database.windows.net\",\r\n \"status\": \"Running, Progress = 5.00 %\"\r\n}", "ResponseHeaders": { - "Content-Length": [ - "398" - ], - "Content-Type": [ - "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" - ], "Cache-Control": [ - "no-store, no-cache" + "no-cache" ], "Date": [ - "Wed, 28 Mar 2018 20:20:07 GMT" + "Thu, 03 Sep 2020 21:42:34 GMT" ], - "Location": [ - "https://management.azure.com/subscriptions/df7c055c-6310-4374-9852-10ef71ce5f85/resourceGroups/sqlcrudtest-8943/providers/Microsoft.Sql/servers/sqlcrudtest-7286/importExportOperationResults/e8105d08-6aee-421b-a513-ffa416f06d66?api-version=2014-04-01-Preview" + "Pragma": [ + "no-cache" ], "Retry-After": [ - "30" + "15" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "9cbff77f-baad-4001-a54a-ad1e59f430be" + "4aea3003-c7c3-4027-a349-e5741b1fc99e" ], - "X-Content-Type-Options": [ - "nosniff" + "x-ms-ratelimit-remaining-subscription-reads": [ + "11971" ], - "DataServiceVersion": [ - "3.0;" + "x-ms-correlation-request-id": [ + "29b89df7-0819-4acd-9333-16826d873e7d" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200903T214234Z:29b89df7-0819-4acd-9333-16826d873e7d" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14983" + "X-Content-Type-Options": [ + "nosniff" ], - "x-ms-correlation-request-id": [ - "92829051-1184-47d5-b3ea-705ecc0d19bc" + "Content-Length": [ + "104" ], - "x-ms-routing-request-id": [ - "WESTUS2:20180328T202008Z:92829051-1184-47d5-b3ea-705ecc0d19bc" + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" ] }, - "StatusCode": 202 + "ResponseBody": "{\r\n \"name\": \"4142cd42-8ecf-45d8-8951-727e0090770e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T21:41:43Z\"\r\n}", + "StatusCode": 200 }, { - "RequestUri": "/subscriptions/df7c055c-6310-4374-9852-10ef71ce5f85/resourceGroups/sqlcrudtest-8943/providers/Microsoft.Sql/servers/sqlcrudtest-7286/importExportOperationResults/e8105d08-6aee-421b-a513-ffa416f06d66?api-version=2014-04-01-Preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGY3YzA1NWMtNjMxMC00Mzc0LTk4NTItMTBlZjcxY2U1Zjg1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg5NDMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03Mjg2L2ltcG9ydEV4cG9ydE9wZXJhdGlvblJlc3VsdHMvZTgxMDVkMDgtNmFlZS00MjFiLWE1MTMtZmZhNDE2ZjA2ZDY2P2FwaS12ZXJzaW9uPTIwMTQtMDQtMDEtUHJldmlldw==", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/4142cd42-8ecf-45d8-8951-727e0090770e-sqlcrudtest-4858?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vNDE0MmNkNDItOGVjZi00NWQ4LTg5NTEtNzI3ZTAwOTA3NzBlLXNxbGNydWR0ZXN0LTQ4NTg/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.26201.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.13.0.0" + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" ] }, - "ResponseBody": "{\r\n \"blobUri\": \"https://sqlcrudtest5639.blob.core.windows.net/container/sqlcrudtest-2200.bacpac\",\r\n \"databaseName\": \"sqlcrudtest-7251\",\r\n \"errorMessage\": null,\r\n \"lastModifiedTime\": \"3/28/2018 8:18:37 PM\",\r\n \"queuedTime\": \"3/28/2018 8:18:37 PM\",\r\n \"requestId\": \"e8105d08-6aee-421b-a513-ffa416f06d66\",\r\n \"requestType\": \"Import\",\r\n \"serverName\": \"sqlcrudtest-7286.database.windows.net\",\r\n \"status\": \"Running, Progress = 5.00 %\"\r\n}", "ResponseHeaders": { - "Content-Length": [ - "398" - ], - "Content-Type": [ - "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" - ], "Cache-Control": [ - "no-store, no-cache" + "no-cache" ], "Date": [ - "Wed, 28 Mar 2018 20:20:38 GMT" + "Thu, 03 Sep 2020 21:42:49 GMT" ], - "Location": [ - "https://management.azure.com/subscriptions/df7c055c-6310-4374-9852-10ef71ce5f85/resourceGroups/sqlcrudtest-8943/providers/Microsoft.Sql/servers/sqlcrudtest-7286/importExportOperationResults/e8105d08-6aee-421b-a513-ffa416f06d66?api-version=2014-04-01-Preview" + "Pragma": [ + "no-cache" ], "Retry-After": [ - "30" + "15" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "b3bc0002-0799-42fc-ad70-0be2d51f4e0b" + "dc666fed-4816-45a9-bd6a-2ecaa0762efe" ], - "X-Content-Type-Options": [ - "nosniff" + "x-ms-ratelimit-remaining-subscription-reads": [ + "11970" ], - "DataServiceVersion": [ - "3.0;" + "x-ms-correlation-request-id": [ + "323021dc-0a74-4556-abcd-24e5b86cecc9" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200903T214249Z:323021dc-0a74-4556-abcd-24e5b86cecc9" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14982" + "X-Content-Type-Options": [ + "nosniff" ], - "x-ms-correlation-request-id": [ - "89f5fcd9-ac81-4657-99e6-2e7269a382e5" + "Content-Length": [ + "104" ], - "x-ms-routing-request-id": [ - "WESTUS2:20180328T202038Z:89f5fcd9-ac81-4657-99e6-2e7269a382e5" + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" ] }, - "StatusCode": 202 + "ResponseBody": "{\r\n \"name\": \"4142cd42-8ecf-45d8-8951-727e0090770e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T21:42:43Z\"\r\n}", + "StatusCode": 200 }, { - "RequestUri": "/subscriptions/df7c055c-6310-4374-9852-10ef71ce5f85/resourceGroups/sqlcrudtest-8943/providers/Microsoft.Sql/servers/sqlcrudtest-7286/importExportOperationResults/e8105d08-6aee-421b-a513-ffa416f06d66?api-version=2014-04-01-Preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGY3YzA1NWMtNjMxMC00Mzc0LTk4NTItMTBlZjcxY2U1Zjg1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg5NDMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03Mjg2L2ltcG9ydEV4cG9ydE9wZXJhdGlvblJlc3VsdHMvZTgxMDVkMDgtNmFlZS00MjFiLWE1MTMtZmZhNDE2ZjA2ZDY2P2FwaS12ZXJzaW9uPTIwMTQtMDQtMDEtUHJldmlldw==", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/4142cd42-8ecf-45d8-8951-727e0090770e-sqlcrudtest-4858?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vNDE0MmNkNDItOGVjZi00NWQ4LTg5NTEtNzI3ZTAwOTA3NzBlLXNxbGNydWR0ZXN0LTQ4NTg/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.26201.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.13.0.0" + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/df7c055c-6310-4374-9852-10ef71ce5f85/resourceGroups/sqlcrudtest-8943/providers/Microsoft.Sql/servers/sqlcrudtest-7286/importExportOperationResult/e8105d08-6aee-421b-a513-ffa416f06d66\",\r\n \"name\": \"e8105d08-6aee-421b-a513-ffa416f06d66\",\r\n \"type\": \"Microsoft.Sql/servers/importExportOperationResults\",\r\n \"properties\": {\r\n \"requestId\": \"e8105d08-6aee-421b-a513-ffa416f06d66\",\r\n \"requestType\": \"Import\",\r\n \"queuedTime\": \"3/28/2018 8:18:37 PM\",\r\n \"lastModifiedTime\": \"3/28/2018 8:20:45 PM\",\r\n \"blobUri\": \"https://sqlcrudtest5639.blob.core.windows.net/container/sqlcrudtest-2200.bacpac\",\r\n \"serverName\": \"sqlcrudtest-7286\",\r\n \"databaseName\": \"sqlcrudtest-7251\",\r\n \"status\": \"Completed\",\r\n \"errorMessage\": null\r\n }\r\n}", "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" - ], "Cache-Control": [ - "no-store, no-cache" + "no-cache" ], "Date": [ - "Wed, 28 Mar 2018 20:21:08 GMT" + "Thu, 03 Sep 2020 21:43:04 GMT" + ], + "Pragma": [ + "no-cache" ], - "Transfer-Encoding": [ - "chunked" + "Retry-After": [ + "15" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], - "Vary": [ - "Accept-Encoding" - ], "x-ms-request-id": [ - "18b71fdf-b9e1-4137-ad1a-586325b1f9f2" + "f6008dfe-f27c-4dc2-9fdd-67cd7eaa1af8" ], - "X-Content-Type-Options": [ - "nosniff" + "x-ms-ratelimit-remaining-subscription-reads": [ + "11969" ], - "DataServiceVersion": [ - "3.0;" + "x-ms-correlation-request-id": [ + "1c78abbf-cd23-4b88-9a9d-2654da6c9e06" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200903T214304Z:1c78abbf-cd23-4b88-9a9d-2654da6c9e06" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14981" + "X-Content-Type-Options": [ + "nosniff" ], - "x-ms-correlation-request-id": [ - "60ae0164-0035-4e13-9a8e-fb0c29e20ff8" + "Content-Length": [ + "103" ], - "x-ms-routing-request-id": [ - "WESTUS2:20180328T202109Z:60ae0164-0035-4e13-9a8e-fb0c29e20ff8" + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" ] }, + "ResponseBody": "{\r\n \"name\": \"4142cd42-8ecf-45d8-8951-727e0090770e\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2020-09-03T21:42:55Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/df7c055c-6310-4374-9852-10ef71ce5f85/resourceGroups/sqlcrudtest-8943/providers/Microsoft.Sql/servers/sqlcrudtest-7286/importExportOperationResults/e8105d08-6aee-421b-a513-ffa416f06d66?api-version=2014-04-01-Preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGY3YzA1NWMtNjMxMC00Mzc0LTk4NTItMTBlZjcxY2U1Zjg1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg5NDMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03Mjg2L2ltcG9ydEV4cG9ydE9wZXJhdGlvblJlc3VsdHMvZTgxMDVkMDgtNmFlZS00MjFiLWE1MTMtZmZhNDE2ZjA2ZDY2P2FwaS12ZXJzaW9uPTIwMTQtMDQtMDEtUHJldmlldw==", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportOperationResults/4142cd42-8ecf-45d8-8951-727e0090770e-sqlcrudtest-4858?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydE9wZXJhdGlvblJlc3VsdHMvNDE0MmNkNDItOGVjZi00NWQ4LTg5NTEtNzI3ZTAwOTA3NzBlLXNxbGNydWR0ZXN0LTQ4NTg/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.26201.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.13.0.0" + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/df7c055c-6310-4374-9852-10ef71ce5f85/resourceGroups/sqlcrudtest-8943/providers/Microsoft.Sql/servers/sqlcrudtest-7286/importExportOperationResult/e8105d08-6aee-421b-a513-ffa416f06d66\",\r\n \"name\": \"e8105d08-6aee-421b-a513-ffa416f06d66\",\r\n \"type\": \"Microsoft.Sql/servers/importExportOperationResults\",\r\n \"properties\": {\r\n \"requestId\": \"e8105d08-6aee-421b-a513-ffa416f06d66\",\r\n \"requestType\": \"Import\",\r\n \"queuedTime\": \"3/28/2018 8:18:37 PM\",\r\n \"lastModifiedTime\": \"3/28/2018 8:20:45 PM\",\r\n \"blobUri\": \"https://sqlcrudtest5639.blob.core.windows.net/container/sqlcrudtest-2200.bacpac\",\r\n \"serverName\": \"sqlcrudtest-7286\",\r\n \"databaseName\": \"sqlcrudtest-7251\",\r\n \"status\": \"Completed\",\r\n \"errorMessage\": null\r\n }\r\n}", "ResponseHeaders": { - "Content-Type": [ - "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" - ], "Cache-Control": [ - "no-store, no-cache" + "no-cache" ], "Date": [ - "Wed, 28 Mar 2018 20:21:08 GMT" + "Thu, 03 Sep 2020 21:43:04 GMT" ], - "Transfer-Encoding": [ - "chunked" + "Pragma": [ + "no-cache" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], - "Vary": [ - "Accept-Encoding" - ], "x-ms-request-id": [ - "a16bc516-3ebb-40e6-9c60-32da6cd9fe06" + "190ccad0-d294-4d16-ae85-078006c0c53f" ], - "X-Content-Type-Options": [ - "nosniff" + "x-ms-ratelimit-remaining-subscription-reads": [ + "11968" ], - "DataServiceVersion": [ - "3.0;" + "x-ms-correlation-request-id": [ + "c3d21881-1a5c-40c3-9bd5-14bf1a3f3459" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200903T214305Z:c3d21881-1a5c-40c3-9bd5-14bf1a3f3459" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14980" + "X-Content-Type-Options": [ + "nosniff" ], - "x-ms-correlation-request-id": [ - "7e0e0dd8-adb5-46e5-bf68-f699d990ccec" + "Content-Length": [ + "550" ], - "x-ms-routing-request-id": [ - "WESTUS2:20180328T202109Z:7e0e0dd8-adb5-46e5-bf68-f699d990ccec" + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" ] }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"requestId\": \"4142cd42-8ecf-45d8-8951-727e0090770e\",\r\n \"requestType\": \"ImportToNewDatabase\",\r\n \"queuedTime\": \"9/3/2020 9:39:42 PM\",\r\n \"lastModifiedTime\": \"9/3/2020 9:42:55 PM\",\r\n \"blobUri\": \"https://sqlcrudtest4377.blob.core.windows.net/container/sqlcrudtest-2319.bacpac\",\r\n \"serverName\": \"sqlcrudtest-4858\",\r\n \"databaseName\": \"sqlcrudtest-9526\",\r\n \"status\": \"Completed\",\r\n \"privateEndpointConnections\": []\r\n },\r\n \"id\": \"4142cd42-8ecf-45d8-8951-727e0090770e\",\r\n \"name\": \"4142cd42-8ecf-45d8-8951-727e0090770e\",\r\n \"type\": \"Microsoft.Sql/servers/databases/importExportOperationResults\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/df7c055c-6310-4374-9852-10ef71ce5f85/resourcegroups/sqlcrudtest-8943?api-version=2017-05-10", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGY3YzA1NWMtNjMxMC00Mzc0LTk4NTItMTBlZjcxY2U1Zjg1L3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTg5NDM/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourcegroups/sqlcrudtest-9508?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTk1MDg/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "02adb62a-dd44-4e77-aed5-d34da5ebb44f" + "a105d935-8e71-4e0b-b25a-6d3686033bf8" ], "accept-language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.26201.01", + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" ] }, - "ResponseBody": "", "ResponseHeaders": { - "Content-Length": [ - "0" - ], - "Expires": [ - "-1" - ], "Cache-Control": [ "no-cache" ], "Date": [ - "Wed, 28 Mar 2018 20:21:12 GMT" + "Thu, 03 Sep 2020 21:43:05 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/df7c055c-6310-4374-9852-10ef71ce5f85/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDg5NDMtV0VTVEVVUk9QRSIsImpvYkxvY2F0aW9uIjoid2VzdGV1cm9wZSJ9?api-version=2017-05-10" + "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDk1MDgtV0VTVENFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoid2VzdGNlbnRyYWx1cyJ9?api-version=2017-05-10" ], "Retry-After": [ "15" ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1199" + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" ], "x-ms-request-id": [ - "60ddea41-200f-4a20-90d0-2a98b5f33a33" + "cde3c5fe-9af1-4d40-a23b-7844b8dd960f" ], "x-ms-correlation-request-id": [ - "60ddea41-200f-4a20-90d0-2a98b5f33a33" + "cde3c5fe-9af1-4d40-a23b-7844b8dd960f" ], "x-ms-routing-request-id": [ - "WESTUS2:20180328T202113Z:60ddea41-200f-4a20-90d0-2a98b5f33a33" + "BRAZILUS:20200903T214306Z:cde3c5fe-9af1-4d40-a23b-7844b8dd960f" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" ] }, + "ResponseBody": "", "StatusCode": 202 } ], "Names": { "CreateResourceGroup": [ - "sqlcrudtest-8943" + "sqlcrudtest-9508" ], "CreateServer": [ - "sqlcrudtest-7286" + "sqlcrudtest-4858" ], "CreateStorageContainer": [ - "sqlcrudtest5639" + "sqlcrudtest4377" ], "TestImportExport": [ - "sqlcrudtest-2200", - "sqlcrudtest-7251", - "sqlcrudstorage3897", - "sqlcrudtest-9372" + "sqlcrudtest-2319", + "sqlcrudtest-9526", + "sqlcrudstorage8756", + "sqlcrudtest-303" ] }, "Variables": { - "SubscriptionId": "df7c055c-6310-4374-9852-10ef71ce5f85", - "DefaultLocation": "West Europe" + "SubscriptionId": "b75889fa-6661-44e0-a844-cd96ec938991", + "DefaultLocation": "West Central US" } } \ No newline at end of file diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/tests/SessionRecords/TestImportExistingDatabase.json b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/tests/SessionRecords/TestImportExistingDatabase.json deleted file mode 100644 index ab66e3924f3e..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/tests/SessionRecords/TestImportExistingDatabase.json +++ /dev/null @@ -1,2536 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourcegroups/sqlcrudtest-7317?api-version=2017-05-10", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTczMTc/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"location\": \"West Central US\",\r\n \"tags\": {\r\n \"sqlcrudtest-7317\": \"2020-09-03 19:47:14Z\"\r\n }\r\n}", - "RequestHeaders": { - "x-ms-client-request-id": [ - "85c9997b-b877-419c-bfbe-19477b5a9ae3" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.26614.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "104" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 03 Sep 2020 19:47:22 GMT" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1195" - ], - "x-ms-request-id": [ - "fd37114f-b4ec-4e5e-a56d-338b9791bdf5" - ], - "x-ms-correlation-request-id": [ - "fd37114f-b4ec-4e5e-a56d-338b9791bdf5" - ], - "x-ms-routing-request-id": [ - "BRAZILUS:20200903T194722Z:fd37114f-b4ec-4e5e-a56d-338b9791bdf5" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Content-Length": [ - "243" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317\",\r\n \"name\": \"sqlcrudtest-7317\",\r\n \"location\": \"westcentralus\",\r\n \"tags\": {\r\n \"sqlcrudtest-7317\": \"2020-09-03 19:47:14Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", - "StatusCode": 201 - }, - { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Sql/servers/sqlcrudtest-8696?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczMTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC04Njk2P2FwaS12ZXJzaW9uPTIwMTktMDYtMDEtcHJldmlldw==", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"administratorLogin\": \"dummylogin\",\r\n \"administratorLoginPassword\": \"Un53cuRE!\",\r\n \"version\": \"12.0\"\r\n },\r\n \"location\": \"West Central US\",\r\n \"tags\": {}\r\n}", - "RequestHeaders": { - "x-ms-client-request-id": [ - "ff5f86e5-acf2-4312-b1fd-8ce70dfac9a4" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.26614.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "189" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 03 Sep 2020 19:47:31 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Location": [ - "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Sql/locations/westcentralus/serverOperationResults/d3b266f9-ad6a-47d4-afd8-42d291ea8adc?api-version=2019-06-01-preview" - ], - "Retry-After": [ - "1" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "Azure-AsyncOperation": [ - "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Sql/locations/westcentralus/serverAzureAsyncOperation/d3b266f9-ad6a-47d4-afd8-42d291ea8adc?api-version=2019-06-01-preview" - ], - "x-ms-request-id": [ - "d3b266f9-ad6a-47d4-afd8-42d291ea8adc" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1193" - ], - "x-ms-correlation-request-id": [ - "82aef4af-ffe9-45e3-8c8d-c61a7ac9d3e9" - ], - "x-ms-routing-request-id": [ - "BRAZILUS:20200903T194731Z:82aef4af-ffe9-45e3-8c8d-c61a7ac9d3e9" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Content-Length": [ - "73" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"operation\": \"UpsertLogicalServer\",\r\n \"startTime\": \"2020-09-03T19:47:31.32Z\"\r\n}", - "StatusCode": 202 - }, - { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Sql/locations/westcentralus/serverAzureAsyncOperation/d3b266f9-ad6a-47d4-afd8-42d291ea8adc?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczMTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9kM2IyNjZmOS1hZDZhLTQ3ZDQtYWZkOC00MmQyOTFlYThhZGM/YXBpLXZlcnNpb249MjAxOS0wNi0wMS1wcmV2aWV3", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.26614.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 03 Sep 2020 19:47:32 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Retry-After": [ - "1" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-request-id": [ - "99529140-904a-4709-a3da-b74bf7eb5805" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11981" - ], - "x-ms-correlation-request-id": [ - "5c2d5be8-a62e-44b4-8820-d603adf1fb6c" - ], - "x-ms-routing-request-id": [ - "BRAZILUS:20200903T194732Z:5c2d5be8-a62e-44b4-8820-d603adf1fb6c" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Content-Length": [ - "107" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"name\": \"d3b266f9-ad6a-47d4-afd8-42d291ea8adc\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T19:47:31.32Z\"\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Sql/locations/westcentralus/serverAzureAsyncOperation/d3b266f9-ad6a-47d4-afd8-42d291ea8adc?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczMTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9kM2IyNjZmOS1hZDZhLTQ3ZDQtYWZkOC00MmQyOTFlYThhZGM/YXBpLXZlcnNpb249MjAxOS0wNi0wMS1wcmV2aWV3", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.26614.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 03 Sep 2020 19:47:33 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Retry-After": [ - "1" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-request-id": [ - "5cfc2c71-a682-4d56-bf62-3a54919f0ef0" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11980" - ], - "x-ms-correlation-request-id": [ - "1a4c85fe-8c79-4fce-b17e-10073e67d046" - ], - "x-ms-routing-request-id": [ - "BRAZILUS:20200903T194733Z:1a4c85fe-8c79-4fce-b17e-10073e67d046" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Content-Length": [ - "107" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"name\": \"d3b266f9-ad6a-47d4-afd8-42d291ea8adc\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T19:47:31.32Z\"\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Sql/locations/westcentralus/serverAzureAsyncOperation/d3b266f9-ad6a-47d4-afd8-42d291ea8adc?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczMTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9kM2IyNjZmOS1hZDZhLTQ3ZDQtYWZkOC00MmQyOTFlYThhZGM/YXBpLXZlcnNpb249MjAxOS0wNi0wMS1wcmV2aWV3", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.26614.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 03 Sep 2020 19:47:34 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Retry-After": [ - "1" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-request-id": [ - "cade43cc-6fad-463c-b4f5-a6f63f6ee3c1" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11979" - ], - "x-ms-correlation-request-id": [ - "36b352ed-8bd8-4634-bb23-b725795144fd" - ], - "x-ms-routing-request-id": [ - "BRAZILUS:20200903T194734Z:36b352ed-8bd8-4634-bb23-b725795144fd" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Content-Length": [ - "107" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"name\": \"d3b266f9-ad6a-47d4-afd8-42d291ea8adc\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T19:47:31.32Z\"\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Sql/locations/westcentralus/serverAzureAsyncOperation/d3b266f9-ad6a-47d4-afd8-42d291ea8adc?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczMTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9kM2IyNjZmOS1hZDZhLTQ3ZDQtYWZkOC00MmQyOTFlYThhZGM/YXBpLXZlcnNpb249MjAxOS0wNi0wMS1wcmV2aWV3", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.26614.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 03 Sep 2020 19:47:36 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Retry-After": [ - "1" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-request-id": [ - "532f7bb8-18dc-43be-936f-7d49ab209f8d" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11978" - ], - "x-ms-correlation-request-id": [ - "18368dc8-f720-4d2f-aa9f-9d4db9d1dcee" - ], - "x-ms-routing-request-id": [ - "BRAZILUS:20200903T194736Z:18368dc8-f720-4d2f-aa9f-9d4db9d1dcee" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Content-Length": [ - "107" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"name\": \"d3b266f9-ad6a-47d4-afd8-42d291ea8adc\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T19:47:31.32Z\"\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Sql/locations/westcentralus/serverAzureAsyncOperation/d3b266f9-ad6a-47d4-afd8-42d291ea8adc?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczMTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9kM2IyNjZmOS1hZDZhLTQ3ZDQtYWZkOC00MmQyOTFlYThhZGM/YXBpLXZlcnNpb249MjAxOS0wNi0wMS1wcmV2aWV3", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.26614.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 03 Sep 2020 19:47:37 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Retry-After": [ - "20" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-request-id": [ - "59cba294-d5f3-41a7-a5b2-c6774d55b035" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11977" - ], - "x-ms-correlation-request-id": [ - "6dd20abf-b72e-4575-8104-2c50fd30296c" - ], - "x-ms-routing-request-id": [ - "BRAZILUS:20200903T194737Z:6dd20abf-b72e-4575-8104-2c50fd30296c" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Content-Length": [ - "107" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"name\": \"d3b266f9-ad6a-47d4-afd8-42d291ea8adc\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T19:47:31.32Z\"\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Sql/locations/westcentralus/serverAzureAsyncOperation/d3b266f9-ad6a-47d4-afd8-42d291ea8adc?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczMTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9kM2IyNjZmOS1hZDZhLTQ3ZDQtYWZkOC00MmQyOTFlYThhZGM/YXBpLXZlcnNpb249MjAxOS0wNi0wMS1wcmV2aWV3", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.26614.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 03 Sep 2020 19:47:56 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Retry-After": [ - "20" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-request-id": [ - "aaa26fad-fda1-44d9-9c63-2c037f7e967a" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11976" - ], - "x-ms-correlation-request-id": [ - "2b0cda4b-cb45-4586-b51f-d30ef28f17d6" - ], - "x-ms-routing-request-id": [ - "BRAZILUS:20200903T194757Z:2b0cda4b-cb45-4586-b51f-d30ef28f17d6" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Content-Length": [ - "107" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"name\": \"d3b266f9-ad6a-47d4-afd8-42d291ea8adc\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T19:47:31.32Z\"\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Sql/locations/westcentralus/serverAzureAsyncOperation/d3b266f9-ad6a-47d4-afd8-42d291ea8adc?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczMTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9kM2IyNjZmOS1hZDZhLTQ3ZDQtYWZkOC00MmQyOTFlYThhZGM/YXBpLXZlcnNpb249MjAxOS0wNi0wMS1wcmV2aWV3", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.26614.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 03 Sep 2020 19:48:17 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Retry-After": [ - "15" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-request-id": [ - "275604e6-5e7b-4051-8c0c-9b13793de976" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11975" - ], - "x-ms-correlation-request-id": [ - "d408d72b-4339-4b71-82c9-381b79e1436a" - ], - "x-ms-routing-request-id": [ - "BRAZILUS:20200903T194817Z:d408d72b-4339-4b71-82c9-381b79e1436a" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Content-Length": [ - "106" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"name\": \"d3b266f9-ad6a-47d4-afd8-42d291ea8adc\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2020-09-03T19:47:31.32Z\"\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Sql/servers/sqlcrudtest-8696?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczMTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC04Njk2P2FwaS12ZXJzaW9uPTIwMTktMDYtMDEtcHJldmlldw==", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.26614.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 03 Sep 2020 19:48:17 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-request-id": [ - "b0316944-205b-437b-9cbe-af24e018a9ca" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11974" - ], - "x-ms-correlation-request-id": [ - "6778cbaf-5947-4457-aef6-6d66aae67083" - ], - "x-ms-routing-request-id": [ - "BRAZILUS:20200903T194817Z:6778cbaf-5947-4457-aef6-6d66aae67083" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Content-Length": [ - "463" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"kind\": \"v12.0\",\r\n \"properties\": {\r\n \"administratorLogin\": \"dummylogin\",\r\n \"version\": \"12.0\",\r\n \"state\": \"Ready\",\r\n \"fullyQualifiedDomainName\": \"sqlcrudtest-8696.database.windows.net\",\r\n \"privateEndpointConnections\": [],\r\n \"publicNetworkAccess\": \"Enabled\"\r\n },\r\n \"location\": \"westcentralus\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Sql/servers/sqlcrudtest-8696\",\r\n \"name\": \"sqlcrudtest-8696\",\r\n \"type\": \"Microsoft.Sql/servers\"\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Sql/servers/sqlcrudtest-8696/firewallRules/sqlcrudtest-9835?api-version=2014-04-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczMTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC04Njk2L2ZpcmV3YWxsUnVsZXMvc3FsY3J1ZHRlc3QtOTgzNT9hcGktdmVyc2lvbj0yMDE0LTA0LTAx", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"startIpAddress\": \"0.0.0.0\",\r\n \"endIpAddress\": \"255.255.255.255\"\r\n }\r\n}", - "RequestHeaders": { - "x-ms-client-request-id": [ - "fd5ac752-afb7-4a8e-baf9-fc5978f8d05f" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.26614.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "101" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-store, no-cache" - ], - "Date": [ - "Thu, 03 Sep 2020 19:48:18 GMT" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-request-id": [ - "105f6b91-ba8b-4819-87be-38322b324110" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Preference-Applied": [ - "return-content" - ], - "DataServiceVersion": [ - "3.0;" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1191" - ], - "x-ms-correlation-request-id": [ - "8fbea0c0-6130-4a2f-be80-b72e8d2c1c22" - ], - "x-ms-routing-request-id": [ - "BRAZILUS:20200903T194818Z:8fbea0c0-6130-4a2f-be80-b72e8d2c1c22" - ], - "Content-Length": [ - "362" - ], - "Content-Type": [ - "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Sql/servers/sqlcrudtest-8696/firewallRules/sqlcrudtest-9835\",\r\n \"name\": \"sqlcrudtest-9835\",\r\n \"type\": \"Microsoft.Sql/servers/firewallRules\",\r\n \"location\": \"West Central US\",\r\n \"kind\": \"v12.0\",\r\n \"properties\": {\r\n \"startIpAddress\": \"0.0.0.0\",\r\n \"endIpAddress\": \"255.255.255.255\"\r\n }\r\n}", - "StatusCode": 201 - }, - { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Storage/storageAccounts/sqlcrudtest8107?api-version=2017-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczMTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9zcWxjcnVkdGVzdDgxMDc/YXBpLXZlcnNpb249MjAxNy0wNi0wMQ==", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\"\r\n },\r\n \"kind\": \"BlobStorage\",\r\n \"location\": \"westcentralus\",\r\n \"properties\": {\r\n \"accessTier\": \"Cool\"\r\n }\r\n}", - "RequestHeaders": { - "x-ms-client-request-id": [ - "5025ef45-a537-498b-9cd9-7bb91adca563" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.26614.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Storage.StorageManagementClient/6.5.0.0" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "158" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 03 Sep 2020 19:48:18 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Location": [ - "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Storage/locations/westcentralus/asyncoperations/14a0d35c-cda7-440b-bb20-6e0f130237ff?monitor=true&api-version=2017-06-01" - ], - "Retry-After": [ - "17" - ], - "Server": [ - "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" - ], - "x-ms-request-id": [ - "14a0d35c-cda7-440b-bb20-6e0f130237ff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1190" - ], - "x-ms-correlation-request-id": [ - "c9b7419c-2a3a-4e29-9991-2a0690a0159e" - ], - "x-ms-routing-request-id": [ - "BRAZILUS:20200903T194819Z:c9b7419c-2a3a-4e29-9991-2a0690a0159e" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Content-Length": [ - "0" - ], - "Content-Type": [ - "text/plain; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "", - "StatusCode": 202 - }, - { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Sql/servers/sqlcrudtest-8696/databases/sqlcrudtest-6275?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczMTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC04Njk2L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC02Mjc1P2FwaS12ZXJzaW9uPTIwMTktMDYtMDEtcHJldmlldw==", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"location\": \"westcentralus\"\r\n}", - "RequestHeaders": { - "x-ms-client-request-id": [ - "8f29be30-b246-4969-91f6-4168d42878a6" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.26614.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "35" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 03 Sep 2020 19:48:19 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Location": [ - "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Sql/locations/westcentralus/databaseOperationResults/3ea7ce3e-0523-40fd-8b9e-5e0e41acfb5f?api-version=2019-06-01-preview" - ], - "Retry-After": [ - "15" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "Azure-AsyncOperation": [ - "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Sql/locations/westcentralus/databaseAzureAsyncOperation/3ea7ce3e-0523-40fd-8b9e-5e0e41acfb5f?api-version=2019-06-01-preview" - ], - "x-ms-request-id": [ - "3ea7ce3e-0523-40fd-8b9e-5e0e41acfb5f" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1190" - ], - "x-ms-correlation-request-id": [ - "ab847a7d-faa0-4b84-8ddb-edb844b0c355" - ], - "x-ms-routing-request-id": [ - "BRAZILUS:20200903T194819Z:ab847a7d-faa0-4b84-8ddb-edb844b0c355" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Content-Length": [ - "76" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2020-09-03T19:48:19.303Z\"\r\n}", - "StatusCode": 202 - }, - { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Sql/locations/westcentralus/databaseAzureAsyncOperation/3ea7ce3e-0523-40fd-8b9e-5e0e41acfb5f?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczMTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzNlYTdjZTNlLTA1MjMtNDBmZC04YjllLTVlMGU0MWFjZmI1Zj9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.26614.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 03 Sep 2020 19:48:33 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Retry-After": [ - "15" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-request-id": [ - "af69403f-491c-4358-a869-e066573e1912" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11973" - ], - "x-ms-correlation-request-id": [ - "3ab16e18-e1f5-4eaf-87c7-d68c27d1482f" - ], - "x-ms-routing-request-id": [ - "BRAZILUS:20200903T194834Z:3ab16e18-e1f5-4eaf-87c7-d68c27d1482f" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Content-Length": [ - "108" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"name\": \"3ea7ce3e-0523-40fd-8b9e-5e0e41acfb5f\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T19:48:19.303Z\"\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Sql/locations/westcentralus/databaseAzureAsyncOperation/3ea7ce3e-0523-40fd-8b9e-5e0e41acfb5f?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczMTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzNlYTdjZTNlLTA1MjMtNDBmZC04YjllLTVlMGU0MWFjZmI1Zj9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.26614.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 03 Sep 2020 19:48:48 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Retry-After": [ - "15" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-request-id": [ - "46f4f51e-5bc9-4878-8ee3-860ae09eb15b" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11971" - ], - "x-ms-correlation-request-id": [ - "5e3f6ca0-d2ef-4c0f-9d89-9ed306ed0b08" - ], - "x-ms-routing-request-id": [ - "BRAZILUS:20200903T194849Z:5e3f6ca0-d2ef-4c0f-9d89-9ed306ed0b08" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Content-Length": [ - "108" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"name\": \"3ea7ce3e-0523-40fd-8b9e-5e0e41acfb5f\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T19:48:19.303Z\"\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Sql/locations/westcentralus/databaseAzureAsyncOperation/3ea7ce3e-0523-40fd-8b9e-5e0e41acfb5f?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczMTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzNlYTdjZTNlLTA1MjMtNDBmZC04YjllLTVlMGU0MWFjZmI1Zj9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.26614.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 03 Sep 2020 19:49:04 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Retry-After": [ - "15" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-request-id": [ - "56fb74bb-a8b1-4a02-b88e-6a461c9e0a62" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11970" - ], - "x-ms-correlation-request-id": [ - "8db46b44-6a84-49bb-9934-1c0038f8cd5d" - ], - "x-ms-routing-request-id": [ - "BRAZILUS:20200903T194904Z:8db46b44-6a84-49bb-9934-1c0038f8cd5d" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Content-Length": [ - "107" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"name\": \"3ea7ce3e-0523-40fd-8b9e-5e0e41acfb5f\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2020-09-03T19:48:19.303Z\"\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Storage/locations/westcentralus/asyncoperations/14a0d35c-cda7-440b-bb20-6e0f130237ff?monitor=true&api-version=2017-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZS9sb2NhdGlvbnMvd2VzdGNlbnRyYWx1cy9hc3luY29wZXJhdGlvbnMvMTRhMGQzNWMtY2RhNy00NDBiLWJiMjAtNmUwZjEzMDIzN2ZmP21vbml0b3I9dHJ1ZSZhcGktdmVyc2lvbj0yMDE3LTA2LTAx", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.26614.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Storage.StorageManagementClient/6.5.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 03 Sep 2020 19:48:36 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Server": [ - "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" - ], - "x-ms-request-id": [ - "29240870-9f87-41d6-96f4-740d63b4e96e" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11972" - ], - "x-ms-correlation-request-id": [ - "4871f842-ec5e-4320-83ed-825314087f35" - ], - "x-ms-routing-request-id": [ - "BRAZILUS:20200903T194836Z:4871f842-ec5e-4320-83ed-825314087f35" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Content-Length": [ - "980" - ], - "Content-Type": [ - "application/json" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"kind\": \"BlobStorage\",\r\n \"id\": \"/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Storage/storageAccounts/sqlcrudtest8107\",\r\n \"name\": \"sqlcrudtest8107\",\r\n \"type\": \"Microsoft.Storage/storageAccounts\",\r\n \"location\": \"westcentralus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"networkAcls\": {\r\n \"bypass\": \"AzureServices\",\r\n \"virtualNetworkRules\": [],\r\n \"ipRules\": [],\r\n \"defaultAction\": \"Allow\"\r\n },\r\n \"supportsHttpsTrafficOnly\": false,\r\n \"encryption\": {\r\n \"services\": {\r\n \"file\": {\r\n \"enabled\": true,\r\n \"lastEnabledTime\": \"2020-09-03T19:48:18.5571988Z\"\r\n },\r\n \"blob\": {\r\n \"enabled\": true,\r\n \"lastEnabledTime\": \"2020-09-03T19:48:18.5571988Z\"\r\n }\r\n },\r\n \"keySource\": \"Microsoft.Storage\"\r\n },\r\n \"accessTier\": \"Cool\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"creationTime\": \"2020-09-03T19:48:18.4946934Z\",\r\n \"primaryEndpoints\": {\r\n \"blob\": \"https://sqlcrudtest8107.blob.core.windows.net/\",\r\n \"table\": \"https://sqlcrudtest8107.table.core.windows.net/\"\r\n },\r\n \"primaryLocation\": \"westcentralus\",\r\n \"statusOfPrimary\": \"available\"\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Storage/storageAccounts/sqlcrudtest8107/listKeys?api-version=2017-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczMTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9zcWxjcnVkdGVzdDgxMDcvbGlzdEtleXM/YXBpLXZlcnNpb249MjAxNy0wNi0wMQ==", - "RequestMethod": "POST", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "25ef7341-6c35-4612-a855-185ea641b4be" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.26614.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Storage.StorageManagementClient/6.5.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 03 Sep 2020 19:48:36 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Server": [ - "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" - ], - "x-ms-request-id": [ - "d0e6518a-7ed3-45c9-8518-c57e4061e2b0" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ - "11999" - ], - "x-ms-correlation-request-id": [ - "0b0be66c-e3ea-4783-8380-06c9dba3dbcb" - ], - "x-ms-routing-request-id": [ - "BRAZILUS:20200903T194836Z:0b0be66c-e3ea-4783-8380-06c9dba3dbcb" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Content-Length": [ - "288" - ], - "Content-Type": [ - "application/json" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"keys\": [\r\n {\r\n \"keyName\": \"key1\",\r\n \"value\": \"ZPMelgVaCQ+kNB1JHAO/hRWbaXRfH9/zUy6IHjXanuKhY/EcPWiz1TVp2s/9kAB1hJUN8x2A5QWtEvvxeUv6Lg==\",\r\n \"permissions\": \"FULL\"\r\n },\r\n {\r\n \"keyName\": \"key2\",\r\n \"value\": \"pEuRmQswFlf4DFnqsKX7UL/brob5QtmWleumJyYw0+dtiCtqxGThTnxhkfzat512kd4M/CpexFxwczoU24k9Sg==\",\r\n \"permissions\": \"FULL\"\r\n }\r\n ]\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Sql/servers/sqlcrudtest-8696/databases/sqlcrudtest-6275?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczMTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC04Njk2L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC02Mjc1P2FwaS12ZXJzaW9uPTIwMTktMDYtMDEtcHJldmlldw==", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.26614.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 03 Sep 2020 19:49:04 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-request-id": [ - "9c8fb028-0d78-42c0-954c-8c7a32aa0865" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11969" - ], - "x-ms-correlation-request-id": [ - "f34ec010-c4cd-4374-9d24-85e24f312d5e" - ], - "x-ms-routing-request-id": [ - "BRAZILUS:20200903T194904Z:f34ec010-c4cd-4374-9d24-85e24f312d5e" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Content-Length": [ - "1023" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"GP_Gen5\",\r\n \"tier\": \"GeneralPurpose\",\r\n \"family\": \"Gen5\",\r\n \"capacity\": 2\r\n },\r\n \"kind\": \"v12.0,user,vcore\",\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": 34359738368,\r\n \"status\": \"Online\",\r\n \"databaseId\": \"2abecd08-7474-4ef4-8500-0a079748f038\",\r\n \"creationDate\": \"2020-09-03T19:48:54.46Z\",\r\n \"currentServiceObjectiveName\": \"GP_Gen5_2\",\r\n \"requestedServiceObjectiveName\": \"GP_Gen5_2\",\r\n \"defaultSecondaryLocation\": \"westus2\",\r\n \"catalogCollation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"zoneRedundant\": false,\r\n \"licenseType\": \"LicenseIncluded\",\r\n \"maxLogSizeBytes\": 10307502080,\r\n \"earliestRestoreDate\": \"2020-09-03T20:18:54.46Z\",\r\n \"readScale\": \"Disabled\",\r\n \"readReplicaCount\": 0,\r\n \"currentSku\": {\r\n \"name\": \"GP_Gen5\",\r\n \"tier\": \"GeneralPurpose\",\r\n \"family\": \"Gen5\",\r\n \"capacity\": 2\r\n },\r\n \"storageAccountType\": \"GRS\"\r\n },\r\n \"location\": \"westcentralus\",\r\n \"id\": \"/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Sql/servers/sqlcrudtest-8696/databases/sqlcrudtest-6275\",\r\n \"name\": \"sqlcrudtest-6275\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Sql/servers/sqlcrudtest-8696/databases/sqlcrudtest-9440?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczMTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC04Njk2L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC05NDQwP2FwaS12ZXJzaW9uPTIwMTktMDYtMDEtcHJldmlldw==", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"location\": \"westcentralus\"\r\n}", - "RequestHeaders": { - "x-ms-client-request-id": [ - "5ba658c1-7b60-40f0-ba6b-50ed6254bbbc" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.26614.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "35" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 03 Sep 2020 19:49:05 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Location": [ - "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Sql/locations/westcentralus/databaseOperationResults/6dfb69ba-8c9c-41f8-bab2-dcce1801fdad?api-version=2019-06-01-preview" - ], - "Retry-After": [ - "15" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "Azure-AsyncOperation": [ - "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Sql/locations/westcentralus/databaseAzureAsyncOperation/6dfb69ba-8c9c-41f8-bab2-dcce1801fdad?api-version=2019-06-01-preview" - ], - "x-ms-request-id": [ - "6dfb69ba-8c9c-41f8-bab2-dcce1801fdad" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1189" - ], - "x-ms-correlation-request-id": [ - "e062c977-2915-4c50-bd7c-861d3395c07a" - ], - "x-ms-routing-request-id": [ - "BRAZILUS:20200903T194906Z:e062c977-2915-4c50-bd7c-861d3395c07a" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Content-Length": [ - "75" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2020-09-03T19:49:06.24Z\"\r\n}", - "StatusCode": 202 - }, - { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Sql/locations/westcentralus/databaseAzureAsyncOperation/6dfb69ba-8c9c-41f8-bab2-dcce1801fdad?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczMTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzZkZmI2OWJhLThjOWMtNDFmOC1iYWIyLWRjY2UxODAxZmRhZD9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.26614.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 03 Sep 2020 19:49:21 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Retry-After": [ - "15" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-request-id": [ - "f18561f5-6841-420c-896d-c0fda2051fc7" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11968" - ], - "x-ms-correlation-request-id": [ - "4d36c6fe-4206-4421-b438-e0a172b0c9a1" - ], - "x-ms-routing-request-id": [ - "BRAZILUS:20200903T194921Z:4d36c6fe-4206-4421-b438-e0a172b0c9a1" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Content-Length": [ - "107" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"name\": \"6dfb69ba-8c9c-41f8-bab2-dcce1801fdad\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T19:49:06.24Z\"\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Sql/locations/westcentralus/databaseAzureAsyncOperation/6dfb69ba-8c9c-41f8-bab2-dcce1801fdad?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczMTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzZkZmI2OWJhLThjOWMtNDFmOC1iYWIyLWRjY2UxODAxZmRhZD9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.26614.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 03 Sep 2020 19:49:36 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Retry-After": [ - "15" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-request-id": [ - "64227361-95d3-4e0f-a422-57e5b5ea7a54" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11967" - ], - "x-ms-correlation-request-id": [ - "d67ab929-c461-4ccb-b35a-3739ebd7880f" - ], - "x-ms-routing-request-id": [ - "BRAZILUS:20200903T194936Z:d67ab929-c461-4ccb-b35a-3739ebd7880f" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Content-Length": [ - "107" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"name\": \"6dfb69ba-8c9c-41f8-bab2-dcce1801fdad\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T19:49:06.24Z\"\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Sql/locations/westcentralus/databaseAzureAsyncOperation/6dfb69ba-8c9c-41f8-bab2-dcce1801fdad?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczMTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzZkZmI2OWJhLThjOWMtNDFmOC1iYWIyLWRjY2UxODAxZmRhZD9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.26614.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 03 Sep 2020 19:49:50 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Retry-After": [ - "15" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-request-id": [ - "c48a243d-cde8-44dc-9b9e-ff822ae10bc7" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11966" - ], - "x-ms-correlation-request-id": [ - "ee6a445a-36fc-4c12-90bd-0f69fbd94328" - ], - "x-ms-routing-request-id": [ - "BRAZILUS:20200903T194951Z:ee6a445a-36fc-4c12-90bd-0f69fbd94328" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Content-Length": [ - "106" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"name\": \"6dfb69ba-8c9c-41f8-bab2-dcce1801fdad\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2020-09-03T19:49:06.24Z\"\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Sql/servers/sqlcrudtest-8696/databases/sqlcrudtest-9440?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczMTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC04Njk2L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC05NDQwP2FwaS12ZXJzaW9uPTIwMTktMDYtMDEtcHJldmlldw==", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.26614.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 03 Sep 2020 19:49:50 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-request-id": [ - "0fc64241-0db1-474e-96e6-2a4ddb026a77" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11965" - ], - "x-ms-correlation-request-id": [ - "d8935d7d-4564-42a6-b7e3-2e19c9fa7234" - ], - "x-ms-routing-request-id": [ - "BRAZILUS:20200903T194951Z:d8935d7d-4564-42a6-b7e3-2e19c9fa7234" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Content-Length": [ - "1023" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"GP_Gen5\",\r\n \"tier\": \"GeneralPurpose\",\r\n \"family\": \"Gen5\",\r\n \"capacity\": 2\r\n },\r\n \"kind\": \"v12.0,user,vcore\",\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": 34359738368,\r\n \"status\": \"Online\",\r\n \"databaseId\": \"db7590f9-8677-41ab-8667-87589338a140\",\r\n \"creationDate\": \"2020-09-03T19:49:38.82Z\",\r\n \"currentServiceObjectiveName\": \"GP_Gen5_2\",\r\n \"requestedServiceObjectiveName\": \"GP_Gen5_2\",\r\n \"defaultSecondaryLocation\": \"westus2\",\r\n \"catalogCollation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"zoneRedundant\": false,\r\n \"licenseType\": \"LicenseIncluded\",\r\n \"maxLogSizeBytes\": 10307502080,\r\n \"earliestRestoreDate\": \"2020-09-03T20:19:38.82Z\",\r\n \"readScale\": \"Disabled\",\r\n \"readReplicaCount\": 0,\r\n \"currentSku\": {\r\n \"name\": \"GP_Gen5\",\r\n \"tier\": \"GeneralPurpose\",\r\n \"family\": \"Gen5\",\r\n \"capacity\": 2\r\n },\r\n \"storageAccountType\": \"GRS\"\r\n },\r\n \"location\": \"westcentralus\",\r\n \"id\": \"/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Sql/servers/sqlcrudtest-8696/databases/sqlcrudtest-9440\",\r\n \"name\": \"sqlcrudtest-9440\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Sql/servers/sqlcrudtest-8696/databases/sqlcrudtest-9440?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczMTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC04Njk2L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC05NDQwP2FwaS12ZXJzaW9uPTIwMTktMDYtMDEtcHJldmlldw==", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "46497a8a-c830-4595-aca8-bca9766bac15" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.26614.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 03 Sep 2020 19:49:51 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-request-id": [ - "13af7c98-7f25-47be-bd0c-18d724207af9" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11964" - ], - "x-ms-correlation-request-id": [ - "af17d5e6-3fe6-45f5-9d9c-dad88e6a5e11" - ], - "x-ms-routing-request-id": [ - "BRAZILUS:20200903T194951Z:af17d5e6-3fe6-45f5-9d9c-dad88e6a5e11" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Content-Length": [ - "1023" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"GP_Gen5\",\r\n \"tier\": \"GeneralPurpose\",\r\n \"family\": \"Gen5\",\r\n \"capacity\": 2\r\n },\r\n \"kind\": \"v12.0,user,vcore\",\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": 34359738368,\r\n \"status\": \"Online\",\r\n \"databaseId\": \"db7590f9-8677-41ab-8667-87589338a140\",\r\n \"creationDate\": \"2020-09-03T19:49:38.82Z\",\r\n \"currentServiceObjectiveName\": \"GP_Gen5_2\",\r\n \"requestedServiceObjectiveName\": \"GP_Gen5_2\",\r\n \"defaultSecondaryLocation\": \"westus2\",\r\n \"catalogCollation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"zoneRedundant\": false,\r\n \"licenseType\": \"LicenseIncluded\",\r\n \"maxLogSizeBytes\": 10307502080,\r\n \"earliestRestoreDate\": \"2020-09-03T20:19:38.82Z\",\r\n \"readScale\": \"Disabled\",\r\n \"readReplicaCount\": 0,\r\n \"currentSku\": {\r\n \"name\": \"GP_Gen5\",\r\n \"tier\": \"GeneralPurpose\",\r\n \"family\": \"Gen5\",\r\n \"capacity\": 2\r\n },\r\n \"storageAccountType\": \"GRS\"\r\n },\r\n \"location\": \"westcentralus\",\r\n \"id\": \"/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Sql/servers/sqlcrudtest-8696/databases/sqlcrudtest-9440\",\r\n \"name\": \"sqlcrudtest-9440\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Sql/servers/sqlcrudtest-8696/databases/sqlcrudtest-6275/export?api-version=2020-02-02-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczMTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC04Njk2L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC02Mjc1L2V4cG9ydD9hcGktdmVyc2lvbj0yMDIwLTAyLTAyLXByZXZpZXc=", - "RequestMethod": "POST", - "RequestBody": "{\r\n \"storageKeyType\": \"StorageAccessKey\",\r\n \"storageKey\": \"ZPMelgVaCQ+kNB1JHAO/hRWbaXRfH9/zUy6IHjXanuKhY/EcPWiz1TVp2s/9kAB1hJUN8x2A5QWtEvvxeUv6Lg==\",\r\n \"storageUri\": \"https://sqlcrudtest8107.blob.core.windows.net/container/sqlcrudtest-6275.bacpac\",\r\n \"administratorLogin\": \"dummylogin\",\r\n \"administratorLoginPassword\": \"Un53cuRE!\",\r\n \"authenticationType\": \"SQL\"\r\n}", - "RequestHeaders": { - "x-ms-client-request-id": [ - "e8cd1ba5-3c5c-4ff2-8a03-5b21516dda0f" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.26614.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "370" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 03 Sep 2020 19:49:52 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Location": [ - "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportOperationResults/04b001c4-b057-4625-a69f-fc97ef4d255b-sqlcrudtest-8696?api-version=2020-02-02-preview" - ], - "Retry-After": [ - "15" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "Azure-AsyncOperation": [ - "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/04b001c4-b057-4625-a69f-fc97ef4d255b-sqlcrudtest-8696?api-version=2020-02-02-preview" - ], - "x-ms-request-id": [ - "c5a827c0-957d-4d06-bb80-c4562c3bb7ff" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1197" - ], - "x-ms-correlation-request-id": [ - "48cdd245-0b65-4aaf-aef9-26807a3edccc" - ], - "x-ms-routing-request-id": [ - "BRAZILUS:20200903T194953Z:48cdd245-0b65-4aaf-aef9-26807a3edccc" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Content-Length": [ - "65" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"operation\": \"Export\",\r\n \"startTime\": \"2020-09-03T19:49:53.3506604Z\"\r\n}", - "StatusCode": 202 - }, - { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/04b001c4-b057-4625-a69f-fc97ef4d255b-sqlcrudtest-8696?api-version=2020-02-02-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vMDRiMDAxYzQtYjA1Ny00NjI1LWE2OWYtZmM5N2VmNGQyNTViLXNxbGNydWR0ZXN0LTg2OTY/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.26614.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 03 Sep 2020 19:50:10 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Retry-After": [ - "15" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-request-id": [ - "08943fd7-1e79-4dc6-a379-998398d77e51" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11963" - ], - "x-ms-correlation-request-id": [ - "a571f6d8-c97e-4623-a621-cee7656b52f8" - ], - "x-ms-routing-request-id": [ - "BRAZILUS:20200903T195010Z:a571f6d8-c97e-4623-a621-cee7656b52f8" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Content-Length": [ - "104" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"name\": \"04b001c4-b057-4625-a69f-fc97ef4d255b\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T19:49:52Z\"\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/04b001c4-b057-4625-a69f-fc97ef4d255b-sqlcrudtest-8696?api-version=2020-02-02-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vMDRiMDAxYzQtYjA1Ny00NjI1LWE2OWYtZmM5N2VmNGQyNTViLXNxbGNydWR0ZXN0LTg2OTY/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.26614.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 03 Sep 2020 19:50:24 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Retry-After": [ - "15" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-request-id": [ - "b3dd9abe-1bbd-4c6c-acc8-7128bc4c8c83" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11962" - ], - "x-ms-correlation-request-id": [ - "643d4e8f-b362-4b0c-90e9-78574d03f0a4" - ], - "x-ms-routing-request-id": [ - "BRAZILUS:20200903T195025Z:643d4e8f-b362-4b0c-90e9-78574d03f0a4" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Content-Length": [ - "104" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"name\": \"04b001c4-b057-4625-a69f-fc97ef4d255b\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T19:49:52Z\"\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/04b001c4-b057-4625-a69f-fc97ef4d255b-sqlcrudtest-8696?api-version=2020-02-02-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vMDRiMDAxYzQtYjA1Ny00NjI1LWE2OWYtZmM5N2VmNGQyNTViLXNxbGNydWR0ZXN0LTg2OTY/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.26614.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 03 Sep 2020 19:50:40 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Retry-After": [ - "15" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-request-id": [ - "18e9cf39-5d5d-4f01-b66d-7b99a355bc96" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11961" - ], - "x-ms-correlation-request-id": [ - "a2a78021-d22e-457e-a901-64ce953f1f90" - ], - "x-ms-routing-request-id": [ - "BRAZILUS:20200903T195040Z:a2a78021-d22e-457e-a901-64ce953f1f90" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Content-Length": [ - "104" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"name\": \"04b001c4-b057-4625-a69f-fc97ef4d255b\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T19:49:52Z\"\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/04b001c4-b057-4625-a69f-fc97ef4d255b-sqlcrudtest-8696?api-version=2020-02-02-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vMDRiMDAxYzQtYjA1Ny00NjI1LWE2OWYtZmM5N2VmNGQyNTViLXNxbGNydWR0ZXN0LTg2OTY/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.26614.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 03 Sep 2020 19:50:55 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Retry-After": [ - "15" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-request-id": [ - "3e928851-443c-4c10-90ab-e2c6dd92243a" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11960" - ], - "x-ms-correlation-request-id": [ - "3ee5d140-0639-4aa0-97ae-01fc09a60432" - ], - "x-ms-routing-request-id": [ - "BRAZILUS:20200903T195056Z:3ee5d140-0639-4aa0-97ae-01fc09a60432" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Content-Length": [ - "104" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"name\": \"04b001c4-b057-4625-a69f-fc97ef4d255b\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T19:50:53Z\"\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/04b001c4-b057-4625-a69f-fc97ef4d255b-sqlcrudtest-8696?api-version=2020-02-02-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vMDRiMDAxYzQtYjA1Ny00NjI1LWE2OWYtZmM5N2VmNGQyNTViLXNxbGNydWR0ZXN0LTg2OTY/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.26614.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 03 Sep 2020 19:51:10 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Retry-After": [ - "15" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-request-id": [ - "839d10b0-1135-4d39-9036-17785e694ff2" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11959" - ], - "x-ms-correlation-request-id": [ - "8f2a8fd4-5305-4dd3-8566-3985c79a3050" - ], - "x-ms-routing-request-id": [ - "BRAZILUS:20200903T195111Z:8f2a8fd4-5305-4dd3-8566-3985c79a3050" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Content-Length": [ - "103" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"name\": \"04b001c4-b057-4625-a69f-fc97ef4d255b\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2020-09-03T19:51:05Z\"\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportOperationResults/04b001c4-b057-4625-a69f-fc97ef4d255b-sqlcrudtest-8696?api-version=2020-02-02-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydE9wZXJhdGlvblJlc3VsdHMvMDRiMDAxYzQtYjA1Ny00NjI1LWE2OWYtZmM5N2VmNGQyNTViLXNxbGNydWR0ZXN0LTg2OTY/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.26614.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 03 Sep 2020 19:51:10 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-request-id": [ - "0021a2d0-c723-493c-9067-a0a5f531bb37" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11958" - ], - "x-ms-correlation-request-id": [ - "85ddb0db-131a-479c-b9a2-8d102ce0da07" - ], - "x-ms-routing-request-id": [ - "BRAZILUS:20200903T195111Z:85ddb0db-131a-479c-b9a2-8d102ce0da07" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Content-Length": [ - "545" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"requestId\": \"04b001c4-b057-4625-a69f-fc97ef4d255b\",\r\n \"requestType\": \"ExportDatabase\",\r\n \"queuedTime\": \"9/3/2020 7:49:52 PM\",\r\n \"lastModifiedTime\": \"9/3/2020 7:51:05 PM\",\r\n \"blobUri\": \"https://sqlcrudtest8107.blob.core.windows.net/container/sqlcrudtest-6275.bacpac\",\r\n \"serverName\": \"sqlcrudtest-8696\",\r\n \"databaseName\": \"sqlcrudtest-6275\",\r\n \"status\": \"Completed\",\r\n \"privateEndpointConnections\": []\r\n },\r\n \"id\": \"04b001c4-b057-4625-a69f-fc97ef4d255b\",\r\n \"name\": \"04b001c4-b057-4625-a69f-fc97ef4d255b\",\r\n \"type\": \"Microsoft.Sql/servers/databases/importExportOperationResults\"\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Sql/servers/sqlcrudtest-8696/databases/sqlcrudtest-9440/import?api-version=2020-02-02-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczMTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC04Njk2L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC05NDQwL2ltcG9ydD9hcGktdmVyc2lvbj0yMDIwLTAyLTAyLXByZXZpZXc=", - "RequestMethod": "POST", - "RequestBody": "{\r\n \"storageKeyType\": \"StorageAccessKey\",\r\n \"storageKey\": \"ZPMelgVaCQ+kNB1JHAO/hRWbaXRfH9/zUy6IHjXanuKhY/EcPWiz1TVp2s/9kAB1hJUN8x2A5QWtEvvxeUv6Lg==\",\r\n \"storageUri\": \"https://sqlcrudtest8107.blob.core.windows.net/container/sqlcrudtest-6275.bacpac\",\r\n \"administratorLogin\": \"dummylogin\",\r\n \"administratorLoginPassword\": \"Un53cuRE!\",\r\n \"authenticationType\": \"SQL\"\r\n}", - "RequestHeaders": { - "x-ms-client-request-id": [ - "5cf743b5-b721-43f1-9cd0-a79439cde0a1" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.26614.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "370" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 03 Sep 2020 19:51:11 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Location": [ - "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportOperationResults/75746ddf-2544-4bba-9d43-78eb5ca5d6e2-sqlcrudtest-8696?api-version=2020-02-02-preview" - ], - "Retry-After": [ - "15" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "Azure-AsyncOperation": [ - "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/75746ddf-2544-4bba-9d43-78eb5ca5d6e2-sqlcrudtest-8696?api-version=2020-02-02-preview" - ], - "x-ms-request-id": [ - "c8c6dba8-f959-41f3-bf55-a94c790f38a5" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1196" - ], - "x-ms-correlation-request-id": [ - "7513af2f-fd6b-49ae-9315-5b568be843d7" - ], - "x-ms-routing-request-id": [ - "BRAZILUS:20200903T195112Z:7513af2f-fd6b-49ae-9315-5b568be843d7" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Content-Length": [ - "65" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"operation\": \"Import\",\r\n \"startTime\": \"2020-09-03T19:51:12.5385611Z\"\r\n}", - "StatusCode": 202 - }, - { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/75746ddf-2544-4bba-9d43-78eb5ca5d6e2-sqlcrudtest-8696?api-version=2020-02-02-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vNzU3NDZkZGYtMjU0NC00YmJhLTlkNDMtNzhlYjVjYTVkNmUyLXNxbGNydWR0ZXN0LTg2OTY/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.26614.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 03 Sep 2020 19:51:27 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Retry-After": [ - "15" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-request-id": [ - "51fb6293-94b6-4058-9b11-a9280e475a07" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11957" - ], - "x-ms-correlation-request-id": [ - "c9112a76-1b37-4e09-a0a4-a3e3356f9ee7" - ], - "x-ms-routing-request-id": [ - "BRAZILUS:20200903T195127Z:c9112a76-1b37-4e09-a0a4-a3e3356f9ee7" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Content-Length": [ - "104" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"name\": \"75746ddf-2544-4bba-9d43-78eb5ca5d6e2\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T19:51:11Z\"\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/75746ddf-2544-4bba-9d43-78eb5ca5d6e2-sqlcrudtest-8696?api-version=2020-02-02-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vNzU3NDZkZGYtMjU0NC00YmJhLTlkNDMtNzhlYjVjYTVkNmUyLXNxbGNydWR0ZXN0LTg2OTY/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.26614.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 03 Sep 2020 19:51:42 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Retry-After": [ - "15" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-request-id": [ - "7f6a9d2f-621f-4076-b503-60e66aa97d9f" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11956" - ], - "x-ms-correlation-request-id": [ - "b58a5e59-0bca-4557-80fe-1ff9a8c0fbc0" - ], - "x-ms-routing-request-id": [ - "BRAZILUS:20200903T195142Z:b58a5e59-0bca-4557-80fe-1ff9a8c0fbc0" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Content-Length": [ - "104" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"name\": \"75746ddf-2544-4bba-9d43-78eb5ca5d6e2\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T19:51:11Z\"\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/75746ddf-2544-4bba-9d43-78eb5ca5d6e2-sqlcrudtest-8696?api-version=2020-02-02-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vNzU3NDZkZGYtMjU0NC00YmJhLTlkNDMtNzhlYjVjYTVkNmUyLXNxbGNydWR0ZXN0LTg2OTY/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.26614.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 03 Sep 2020 19:51:57 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Retry-After": [ - "15" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-request-id": [ - "f0424faf-5b03-45d4-9e92-e130d06e2607" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11955" - ], - "x-ms-correlation-request-id": [ - "184b40dc-fd22-4d26-ba64-6f32ae700189" - ], - "x-ms-routing-request-id": [ - "BRAZILUS:20200903T195158Z:184b40dc-fd22-4d26-ba64-6f32ae700189" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Content-Length": [ - "104" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"name\": \"75746ddf-2544-4bba-9d43-78eb5ca5d6e2\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T19:51:11Z\"\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/75746ddf-2544-4bba-9d43-78eb5ca5d6e2-sqlcrudtest-8696?api-version=2020-02-02-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vNzU3NDZkZGYtMjU0NC00YmJhLTlkNDMtNzhlYjVjYTVkNmUyLXNxbGNydWR0ZXN0LTg2OTY/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.26614.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 03 Sep 2020 19:52:12 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Retry-After": [ - "15" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-request-id": [ - "e35cd2fe-3113-4476-8e79-1a82ad369e06" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11954" - ], - "x-ms-correlation-request-id": [ - "489aeb3e-c8f3-45fb-8f28-b4d37dedb5bf" - ], - "x-ms-routing-request-id": [ - "BRAZILUS:20200903T195213Z:489aeb3e-c8f3-45fb-8f28-b4d37dedb5bf" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Content-Length": [ - "104" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"name\": \"75746ddf-2544-4bba-9d43-78eb5ca5d6e2\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T19:52:11Z\"\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/75746ddf-2544-4bba-9d43-78eb5ca5d6e2-sqlcrudtest-8696?api-version=2020-02-02-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vNzU3NDZkZGYtMjU0NC00YmJhLTlkNDMtNzhlYjVjYTVkNmUyLXNxbGNydWR0ZXN0LTg2OTY/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.26614.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 03 Sep 2020 19:52:27 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Retry-After": [ - "15" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-request-id": [ - "747143f8-6772-48c2-8491-fff2a3d4ebb7" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11953" - ], - "x-ms-correlation-request-id": [ - "083c5497-9848-4698-9539-8df0541066d2" - ], - "x-ms-routing-request-id": [ - "BRAZILUS:20200903T195228Z:083c5497-9848-4698-9539-8df0541066d2" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Content-Length": [ - "103" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"name\": \"75746ddf-2544-4bba-9d43-78eb5ca5d6e2\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2020-09-03T19:52:24Z\"\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportOperationResults/75746ddf-2544-4bba-9d43-78eb5ca5d6e2-sqlcrudtest-8696?api-version=2020-02-02-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydE9wZXJhdGlvblJlc3VsdHMvNzU3NDZkZGYtMjU0NC00YmJhLTlkNDMtNzhlYjVjYTVkNmUyLXNxbGNydWR0ZXN0LTg2OTY/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.26614.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 03 Sep 2020 19:52:27 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-request-id": [ - "a38aa245-bcc6-4909-b112-a11ce3d8856b" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11952" - ], - "x-ms-correlation-request-id": [ - "37fac928-66b9-4e3d-a49d-b3e8e30e0acb" - ], - "x-ms-routing-request-id": [ - "BRAZILUS:20200903T195228Z:37fac928-66b9-4e3d-a49d-b3e8e30e0acb" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Content-Length": [ - "555" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"requestId\": \"75746ddf-2544-4bba-9d43-78eb5ca5d6e2\",\r\n \"requestType\": \"ImportToExistingDatabase\",\r\n \"queuedTime\": \"9/3/2020 7:51:11 PM\",\r\n \"lastModifiedTime\": \"9/3/2020 7:52:24 PM\",\r\n \"blobUri\": \"https://sqlcrudtest8107.blob.core.windows.net/container/sqlcrudtest-6275.bacpac\",\r\n \"serverName\": \"sqlcrudtest-8696\",\r\n \"databaseName\": \"sqlcrudtest-9440\",\r\n \"status\": \"Completed\",\r\n \"privateEndpointConnections\": []\r\n },\r\n \"id\": \"75746ddf-2544-4bba-9d43-78eb5ca5d6e2\",\r\n \"name\": \"75746ddf-2544-4bba-9d43-78eb5ca5d6e2\",\r\n \"type\": \"Microsoft.Sql/servers/databases/importExportOperationResults\"\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourcegroups/sqlcrudtest-7317?api-version=2017-05-10", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTczMTc/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", - "RequestMethod": "DELETE", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "1a5cb181-3260-49fb-b230-e1720645a209" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.26614.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 03 Sep 2020 19:52:28 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Location": [ - "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDczMTctV0VTVENFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoid2VzdGNlbnRyYWx1cyJ9?api-version=2017-05-10" - ], - "Retry-After": [ - "15" - ], - "x-ms-ratelimit-remaining-subscription-deletes": [ - "14996" - ], - "x-ms-request-id": [ - "06215777-378c-4b5d-aede-e13673fc161d" - ], - "x-ms-correlation-request-id": [ - "06215777-378c-4b5d-aede-e13673fc161d" - ], - "x-ms-routing-request-id": [ - "BRAZILUS:20200903T195229Z:06215777-378c-4b5d-aede-e13673fc161d" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Content-Length": [ - "0" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "", - "StatusCode": 202 - } - ], - "Names": { - "CreateResourceGroup": [ - "sqlcrudtest-7317" - ], - "CreateServer": [ - "sqlcrudtest-8696" - ], - "CreateStorageContainer": [ - "sqlcrudtest8107" - ], - "TestImportExport": [ - "sqlcrudtest-6275", - "sqlcrudtest-9440", - "sqlcrudstorage5937", - "sqlcrudtest-9835" - ] - }, - "Variables": { - "SubscriptionId": "b75889fa-6661-44e0-a844-cd96ec938991", - "DefaultLocation": "West Central US" - } -} \ No newline at end of file diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/tests/SessionRecords/TestImportNewDatabase.json b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/tests/SessionRecords/TestImportNewDatabase.json deleted file mode 100644 index bc4e91478182..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/tests/SessionRecords/TestImportNewDatabase.json +++ /dev/null @@ -1,2637 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourcegroups/sqlcrudtest-147?api-version=2017-05-10", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTE0Nz9hcGktdmVyc2lvbj0yMDE3LTA1LTEw", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"location\": \"WestCentralUs\",\r\n \"tags\": {\r\n \"sqlcrudtest-147\": \"2020-09-03 00:58:31Z\"\r\n }\r\n}", - "RequestHeaders": { - "x-ms-client-request-id": [ - "e9024030-1604-474c-acc1-735bf65281b3" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.26614.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "101" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 03 Sep 2020 00:58:33 GMT" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1199" - ], - "x-ms-request-id": [ - "619c08e5-abf3-4928-ac2e-eedd78eda271" - ], - "x-ms-correlation-request-id": [ - "619c08e5-abf3-4928-ac2e-eedd78eda271" - ], - "x-ms-routing-request-id": [ - "BRAZILUS:20200903T005833Z:619c08e5-abf3-4928-ac2e-eedd78eda271" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Content-Length": [ - "240" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-147\",\r\n \"name\": \"sqlcrudtest-147\",\r\n \"location\": \"westcentralus\",\r\n \"tags\": {\r\n \"sqlcrudtest-147\": \"2020-09-03 00:58:31Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", - "StatusCode": 201 - }, - { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-147/providers/Microsoft.Sql/servers/sqlcrudtest-6158?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTE0Ny9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL3NxbGNydWR0ZXN0LTYxNTg/YXBpLXZlcnNpb249MjAxOS0wNi0wMS1wcmV2aWV3", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"administratorLogin\": \"dummylogin\",\r\n \"administratorLoginPassword\": \"Un53cuRE!\",\r\n \"version\": \"12.0\"\r\n },\r\n \"location\": \"WestCentralUs\",\r\n \"tags\": {}\r\n}", - "RequestHeaders": { - "x-ms-client-request-id": [ - "ee250564-a09d-42d3-a151-34389f37c78e" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.26614.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "187" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 03 Sep 2020 00:58:36 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Location": [ - "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-147/providers/Microsoft.Sql/locations/westcentralus/serverOperationResults/2c269708-673d-4ee2-b314-2c34f041828f?api-version=2019-06-01-preview" - ], - "Retry-After": [ - "1" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "Azure-AsyncOperation": [ - "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-147/providers/Microsoft.Sql/locations/westcentralus/serverAzureAsyncOperation/2c269708-673d-4ee2-b314-2c34f041828f?api-version=2019-06-01-preview" - ], - "x-ms-request-id": [ - "2c269708-673d-4ee2-b314-2c34f041828f" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1199" - ], - "x-ms-correlation-request-id": [ - "62206bce-6445-4dcb-88a0-4fa22b30ddce" - ], - "x-ms-routing-request-id": [ - "BRAZILUS:20200903T005837Z:62206bce-6445-4dcb-88a0-4fa22b30ddce" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Content-Length": [ - "74" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"operation\": \"UpsertLogicalServer\",\r\n \"startTime\": \"2020-09-03T00:58:37.387Z\"\r\n}", - "StatusCode": 202 - }, - { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-147/providers/Microsoft.Sql/locations/westcentralus/serverAzureAsyncOperation/2c269708-673d-4ee2-b314-2c34f041828f?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTE0Ny9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9sb2NhdGlvbnMvd2VzdGNlbnRyYWx1cy9zZXJ2ZXJBenVyZUFzeW5jT3BlcmF0aW9uLzJjMjY5NzA4LTY3M2QtNGVlMi1iMzE0LTJjMzRmMDQxODI4Zj9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.26614.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 03 Sep 2020 00:58:37 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Retry-After": [ - "1" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-request-id": [ - "0fa4beea-5ee5-4e7a-a0b3-91d7048bf8b9" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" - ], - "x-ms-correlation-request-id": [ - "aea678f3-4e1f-4c1a-ac42-0d4b90af8945" - ], - "x-ms-routing-request-id": [ - "BRAZILUS:20200903T005838Z:aea678f3-4e1f-4c1a-ac42-0d4b90af8945" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Content-Length": [ - "108" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"name\": \"2c269708-673d-4ee2-b314-2c34f041828f\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T00:58:37.387Z\"\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-147/providers/Microsoft.Sql/locations/westcentralus/serverAzureAsyncOperation/2c269708-673d-4ee2-b314-2c34f041828f?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTE0Ny9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9sb2NhdGlvbnMvd2VzdGNlbnRyYWx1cy9zZXJ2ZXJBenVyZUFzeW5jT3BlcmF0aW9uLzJjMjY5NzA4LTY3M2QtNGVlMi1iMzE0LTJjMzRmMDQxODI4Zj9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.26614.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 03 Sep 2020 00:58:39 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Retry-After": [ - "1" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-request-id": [ - "8a0d2d1d-ae71-4e30-983a-a21c549c48f7" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11998" - ], - "x-ms-correlation-request-id": [ - "324ef091-b585-41cf-b982-c4775f7eaa7d" - ], - "x-ms-routing-request-id": [ - "BRAZILUS:20200903T005839Z:324ef091-b585-41cf-b982-c4775f7eaa7d" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Content-Length": [ - "108" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"name\": \"2c269708-673d-4ee2-b314-2c34f041828f\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T00:58:37.387Z\"\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-147/providers/Microsoft.Sql/locations/westcentralus/serverAzureAsyncOperation/2c269708-673d-4ee2-b314-2c34f041828f?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTE0Ny9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9sb2NhdGlvbnMvd2VzdGNlbnRyYWx1cy9zZXJ2ZXJBenVyZUFzeW5jT3BlcmF0aW9uLzJjMjY5NzA4LTY3M2QtNGVlMi1iMzE0LTJjMzRmMDQxODI4Zj9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.26614.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 03 Sep 2020 00:58:40 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Retry-After": [ - "1" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-request-id": [ - "b7cbdf90-3c24-4aa2-8690-c22b7fdec8b5" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11997" - ], - "x-ms-correlation-request-id": [ - "3544819d-c4c8-42fd-be99-fa3f4d830bdf" - ], - "x-ms-routing-request-id": [ - "BRAZILUS:20200903T005840Z:3544819d-c4c8-42fd-be99-fa3f4d830bdf" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Content-Length": [ - "108" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"name\": \"2c269708-673d-4ee2-b314-2c34f041828f\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T00:58:37.387Z\"\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-147/providers/Microsoft.Sql/locations/westcentralus/serverAzureAsyncOperation/2c269708-673d-4ee2-b314-2c34f041828f?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTE0Ny9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9sb2NhdGlvbnMvd2VzdGNlbnRyYWx1cy9zZXJ2ZXJBenVyZUFzeW5jT3BlcmF0aW9uLzJjMjY5NzA4LTY3M2QtNGVlMi1iMzE0LTJjMzRmMDQxODI4Zj9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.26614.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 03 Sep 2020 00:58:41 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Retry-After": [ - "1" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-request-id": [ - "534f9f69-4660-4861-bc2b-2a1bd807dcf8" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11996" - ], - "x-ms-correlation-request-id": [ - "02f58f29-a793-4cca-8c8d-02fdc36d45bf" - ], - "x-ms-routing-request-id": [ - "BRAZILUS:20200903T005842Z:02f58f29-a793-4cca-8c8d-02fdc36d45bf" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Content-Length": [ - "108" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"name\": \"2c269708-673d-4ee2-b314-2c34f041828f\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T00:58:37.387Z\"\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-147/providers/Microsoft.Sql/locations/westcentralus/serverAzureAsyncOperation/2c269708-673d-4ee2-b314-2c34f041828f?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTE0Ny9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9sb2NhdGlvbnMvd2VzdGNlbnRyYWx1cy9zZXJ2ZXJBenVyZUFzeW5jT3BlcmF0aW9uLzJjMjY5NzA4LTY3M2QtNGVlMi1iMzE0LTJjMzRmMDQxODI4Zj9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.26614.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 03 Sep 2020 00:58:42 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Retry-After": [ - "20" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-request-id": [ - "dc1dbece-b34f-4bba-8796-a3068e60df84" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11995" - ], - "x-ms-correlation-request-id": [ - "26c8df88-32d7-4cde-a0a2-188a812dc4ff" - ], - "x-ms-routing-request-id": [ - "BRAZILUS:20200903T005843Z:26c8df88-32d7-4cde-a0a2-188a812dc4ff" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Content-Length": [ - "108" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"name\": \"2c269708-673d-4ee2-b314-2c34f041828f\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T00:58:37.387Z\"\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-147/providers/Microsoft.Sql/locations/westcentralus/serverAzureAsyncOperation/2c269708-673d-4ee2-b314-2c34f041828f?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTE0Ny9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9sb2NhdGlvbnMvd2VzdGNlbnRyYWx1cy9zZXJ2ZXJBenVyZUFzeW5jT3BlcmF0aW9uLzJjMjY5NzA4LTY3M2QtNGVlMi1iMzE0LTJjMzRmMDQxODI4Zj9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.26614.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 03 Sep 2020 00:59:02 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Retry-After": [ - "20" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-request-id": [ - "69c70f8e-a98c-47bb-bb18-92d3b16913ce" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11994" - ], - "x-ms-correlation-request-id": [ - "d69b5c79-eb6b-4b7a-bf76-e98835c04fca" - ], - "x-ms-routing-request-id": [ - "BRAZILUS:20200903T005903Z:d69b5c79-eb6b-4b7a-bf76-e98835c04fca" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Content-Length": [ - "108" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"name\": \"2c269708-673d-4ee2-b314-2c34f041828f\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T00:58:37.387Z\"\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-147/providers/Microsoft.Sql/locations/westcentralus/serverAzureAsyncOperation/2c269708-673d-4ee2-b314-2c34f041828f?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTE0Ny9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9sb2NhdGlvbnMvd2VzdGNlbnRyYWx1cy9zZXJ2ZXJBenVyZUFzeW5jT3BlcmF0aW9uLzJjMjY5NzA4LTY3M2QtNGVlMi1iMzE0LTJjMzRmMDQxODI4Zj9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.26614.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 03 Sep 2020 00:59:22 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Retry-After": [ - "15" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-request-id": [ - "ece32dcf-f9ea-464b-9478-bb46dddad8e3" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11993" - ], - "x-ms-correlation-request-id": [ - "b955be78-5989-429a-b07f-da23905a4d85" - ], - "x-ms-routing-request-id": [ - "BRAZILUS:20200903T005923Z:b955be78-5989-429a-b07f-da23905a4d85" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Content-Length": [ - "107" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"name\": \"2c269708-673d-4ee2-b314-2c34f041828f\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2020-09-03T00:58:37.387Z\"\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-147/providers/Microsoft.Sql/servers/sqlcrudtest-6158?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTE0Ny9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL3NxbGNydWR0ZXN0LTYxNTg/YXBpLXZlcnNpb249MjAxOS0wNi0wMS1wcmV2aWV3", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.26614.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 03 Sep 2020 00:59:23 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-request-id": [ - "7c28acb3-782b-45eb-adb7-94329951b3d8" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11992" - ], - "x-ms-correlation-request-id": [ - "78a8cef6-8829-4c02-9f39-5cc84bf6e78d" - ], - "x-ms-routing-request-id": [ - "BRAZILUS:20200903T005923Z:78a8cef6-8829-4c02-9f39-5cc84bf6e78d" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Content-Length": [ - "462" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"kind\": \"v12.0\",\r\n \"properties\": {\r\n \"administratorLogin\": \"dummylogin\",\r\n \"version\": \"12.0\",\r\n \"state\": \"Ready\",\r\n \"fullyQualifiedDomainName\": \"sqlcrudtest-6158.database.windows.net\",\r\n \"privateEndpointConnections\": [],\r\n \"publicNetworkAccess\": \"Enabled\"\r\n },\r\n \"location\": \"westcentralus\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-147/providers/Microsoft.Sql/servers/sqlcrudtest-6158\",\r\n \"name\": \"sqlcrudtest-6158\",\r\n \"type\": \"Microsoft.Sql/servers\"\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-147/providers/Microsoft.Sql/servers/sqlcrudtest-6158/firewallRules/sqlcrudtest-6756?api-version=2014-04-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTE0Ny9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL3NxbGNydWR0ZXN0LTYxNTgvZmlyZXdhbGxSdWxlcy9zcWxjcnVkdGVzdC02NzU2P2FwaS12ZXJzaW9uPTIwMTQtMDQtMDE=", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"startIpAddress\": \"0.0.0.0\",\r\n \"endIpAddress\": \"255.255.255.255\"\r\n }\r\n}", - "RequestHeaders": { - "x-ms-client-request-id": [ - "e1c699b4-4126-43b4-be62-7fb665743a04" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.26614.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "101" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-store, no-cache" - ], - "Date": [ - "Thu, 03 Sep 2020 00:59:23 GMT" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-request-id": [ - "8c7c38dd-5684-419a-8481-b39c20602b31" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Preference-Applied": [ - "return-content" - ], - "DataServiceVersion": [ - "3.0;" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1198" - ], - "x-ms-correlation-request-id": [ - "c2a8b21a-8044-42da-a3cf-72a5de41f3e1" - ], - "x-ms-routing-request-id": [ - "BRAZILUS:20200903T005924Z:c2a8b21a-8044-42da-a3cf-72a5de41f3e1" - ], - "Content-Length": [ - "361" - ], - "Content-Type": [ - "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-147/providers/Microsoft.Sql/servers/sqlcrudtest-6158/firewallRules/sqlcrudtest-6756\",\r\n \"name\": \"sqlcrudtest-6756\",\r\n \"type\": \"Microsoft.Sql/servers/firewallRules\",\r\n \"location\": \"West Central US\",\r\n \"kind\": \"v12.0\",\r\n \"properties\": {\r\n \"startIpAddress\": \"0.0.0.0\",\r\n \"endIpAddress\": \"255.255.255.255\"\r\n }\r\n}", - "StatusCode": 201 - }, - { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-147/providers/Microsoft.Sql/servers/sqlcrudtest-6158/databases/sqlcrudtest-9521?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTE0Ny9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL3NxbGNydWR0ZXN0LTYxNTgvZGF0YWJhc2VzL3NxbGNydWR0ZXN0LTk1MjE/YXBpLXZlcnNpb249MjAxNy0xMC0wMS1wcmV2aWV3", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"location\": \"westcentralus\"\r\n}", - "RequestHeaders": { - "x-ms-client-request-id": [ - "f11e8119-9643-47e6-9292-53411b163bde" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.26614.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "35" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 03 Sep 2020 00:59:24 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Location": [ - "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-147/providers/Microsoft.Sql/locations/westcentralus/databaseOperationResults/d75f1863-c305-4058-b4ac-b77db3d655ae?api-version=2017-10-01-preview" - ], - "Retry-After": [ - "15" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "Azure-AsyncOperation": [ - "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-147/providers/Microsoft.Sql/locations/westcentralus/databaseAzureAsyncOperation/d75f1863-c305-4058-b4ac-b77db3d655ae?api-version=2017-10-01-preview" - ], - "x-ms-request-id": [ - "d75f1863-c305-4058-b4ac-b77db3d655ae" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1197" - ], - "x-ms-correlation-request-id": [ - "b128bce5-28a2-4081-8bb3-61fbbd2a6cd9" - ], - "x-ms-routing-request-id": [ - "BRAZILUS:20200903T005925Z:b128bce5-28a2-4081-8bb3-61fbbd2a6cd9" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Content-Length": [ - "75" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2020-09-03T00:59:25.23Z\"\r\n}", - "StatusCode": 202 - }, - { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-147/providers/Microsoft.Storage/storageAccounts/sqlcrudtest2995?api-version=2017-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTE0Ny9wcm92aWRlcnMvTWljcm9zb2Z0LlN0b3JhZ2Uvc3RvcmFnZUFjY291bnRzL3NxbGNydWR0ZXN0Mjk5NT9hcGktdmVyc2lvbj0yMDE3LTA2LTAx", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\"\r\n },\r\n \"kind\": \"BlobStorage\",\r\n \"location\": \"westcentralus\",\r\n \"properties\": {\r\n \"accessTier\": \"Cool\"\r\n }\r\n}", - "RequestHeaders": { - "x-ms-client-request-id": [ - "673bcfc7-63d8-44bb-8638-0d8752f69857" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.26614.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Storage.StorageManagementClient/6.5.0.0" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "158" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 03 Sep 2020 00:59:27 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Location": [ - "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Storage/locations/westcentralus/asyncoperations/09975edf-6106-4128-8f9b-7cb3df21c79f?monitor=true&api-version=2017-06-01" - ], - "Retry-After": [ - "17" - ], - "Server": [ - "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" - ], - "x-ms-request-id": [ - "09975edf-6106-4128-8f9b-7cb3df21c79f" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1199" - ], - "x-ms-correlation-request-id": [ - "742569f0-19df-4c25-a0ac-700ecfd1c87b" - ], - "x-ms-routing-request-id": [ - "BRAZILUS:20200903T005927Z:742569f0-19df-4c25-a0ac-700ecfd1c87b" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Content-Length": [ - "0" - ], - "Content-Type": [ - "text/plain; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "", - "StatusCode": 202 - }, - { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-147/providers/Microsoft.Sql/locations/westcentralus/databaseAzureAsyncOperation/d75f1863-c305-4058-b4ac-b77db3d655ae?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTE0Ny9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9sb2NhdGlvbnMvd2VzdGNlbnRyYWx1cy9kYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZDc1ZjE4NjMtYzMwNS00MDU4LWI0YWMtYjc3ZGIzZDY1NWFlP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.26614.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 03 Sep 2020 00:59:39 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Retry-After": [ - "15" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-request-id": [ - "a913df0b-c5f3-48e5-8fab-9cb2391f7fda" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11991" - ], - "x-ms-correlation-request-id": [ - "34383d96-8e6c-488c-907d-062fdad607bd" - ], - "x-ms-routing-request-id": [ - "BRAZILUS:20200903T005940Z:34383d96-8e6c-488c-907d-062fdad607bd" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Content-Length": [ - "107" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"name\": \"d75f1863-c305-4058-b4ac-b77db3d655ae\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T00:59:25.23Z\"\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-147/providers/Microsoft.Sql/locations/westcentralus/databaseAzureAsyncOperation/d75f1863-c305-4058-b4ac-b77db3d655ae?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTE0Ny9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9sb2NhdGlvbnMvd2VzdGNlbnRyYWx1cy9kYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZDc1ZjE4NjMtYzMwNS00MDU4LWI0YWMtYjc3ZGIzZDY1NWFlP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.26614.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 03 Sep 2020 00:59:55 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Retry-After": [ - "15" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-request-id": [ - "214ad324-be00-4a04-818f-a9e609a2168b" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11990" - ], - "x-ms-correlation-request-id": [ - "3bf90440-f623-4761-ba5c-e48a0bde45ae" - ], - "x-ms-routing-request-id": [ - "BRAZILUS:20200903T005955Z:3bf90440-f623-4761-ba5c-e48a0bde45ae" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Content-Length": [ - "107" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"name\": \"d75f1863-c305-4058-b4ac-b77db3d655ae\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T00:59:25.23Z\"\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-147/providers/Microsoft.Sql/locations/westcentralus/databaseAzureAsyncOperation/d75f1863-c305-4058-b4ac-b77db3d655ae?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTE0Ny9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9sb2NhdGlvbnMvd2VzdGNlbnRyYWx1cy9kYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZDc1ZjE4NjMtYzMwNS00MDU4LWI0YWMtYjc3ZGIzZDY1NWFlP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.26614.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 03 Sep 2020 01:00:10 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Retry-After": [ - "15" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-request-id": [ - "4c6d0af1-76d3-4c50-b896-c2f484312a30" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11989" - ], - "x-ms-correlation-request-id": [ - "a242f89f-f478-4c3b-bd4d-8403fa2ad47f" - ], - "x-ms-routing-request-id": [ - "BRAZILUS:20200903T010010Z:a242f89f-f478-4c3b-bd4d-8403fa2ad47f" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Content-Length": [ - "106" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"name\": \"d75f1863-c305-4058-b4ac-b77db3d655ae\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2020-09-03T00:59:25.23Z\"\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Storage/locations/westcentralus/asyncoperations/09975edf-6106-4128-8f9b-7cb3df21c79f?monitor=true&api-version=2017-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZS9sb2NhdGlvbnMvd2VzdGNlbnRyYWx1cy9hc3luY29wZXJhdGlvbnMvMDk5NzVlZGYtNjEwNi00MTI4LThmOWItN2NiM2RmMjFjNzlmP21vbml0b3I9dHJ1ZSZhcGktdmVyc2lvbj0yMDE3LTA2LTAx", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.26614.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Storage.StorageManagementClient/6.5.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 03 Sep 2020 00:59:43 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Server": [ - "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" - ], - "x-ms-request-id": [ - "0d6032da-ef4b-49e5-8997-e6348042ba71" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" - ], - "x-ms-correlation-request-id": [ - "3699dfb9-f17c-4ead-832c-265bcecd85ee" - ], - "x-ms-routing-request-id": [ - "BRAZILUS:20200903T005944Z:3699dfb9-f17c-4ead-832c-265bcecd85ee" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Content-Length": [ - "979" - ], - "Content-Type": [ - "application/json" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"kind\": \"BlobStorage\",\r\n \"id\": \"/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-147/providers/Microsoft.Storage/storageAccounts/sqlcrudtest2995\",\r\n \"name\": \"sqlcrudtest2995\",\r\n \"type\": \"Microsoft.Storage/storageAccounts\",\r\n \"location\": \"westcentralus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"networkAcls\": {\r\n \"bypass\": \"AzureServices\",\r\n \"virtualNetworkRules\": [],\r\n \"ipRules\": [],\r\n \"defaultAction\": \"Allow\"\r\n },\r\n \"supportsHttpsTrafficOnly\": false,\r\n \"encryption\": {\r\n \"services\": {\r\n \"file\": {\r\n \"enabled\": true,\r\n \"lastEnabledTime\": \"2020-09-03T00:59:27.2506365Z\"\r\n },\r\n \"blob\": {\r\n \"enabled\": true,\r\n \"lastEnabledTime\": \"2020-09-03T00:59:27.2506365Z\"\r\n }\r\n },\r\n \"keySource\": \"Microsoft.Storage\"\r\n },\r\n \"accessTier\": \"Cool\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"creationTime\": \"2020-09-03T00:59:27.2037921Z\",\r\n \"primaryEndpoints\": {\r\n \"blob\": \"https://sqlcrudtest2995.blob.core.windows.net/\",\r\n \"table\": \"https://sqlcrudtest2995.table.core.windows.net/\"\r\n },\r\n \"primaryLocation\": \"westcentralus\",\r\n \"statusOfPrimary\": \"available\"\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-147/providers/Microsoft.Storage/storageAccounts/sqlcrudtest2995/listKeys?api-version=2017-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTE0Ny9wcm92aWRlcnMvTWljcm9zb2Z0LlN0b3JhZ2Uvc3RvcmFnZUFjY291bnRzL3NxbGNydWR0ZXN0Mjk5NS9saXN0S2V5cz9hcGktdmVyc2lvbj0yMDE3LTA2LTAx", - "RequestMethod": "POST", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "805e7795-cf54-41ea-aadf-bdff49291c58" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.26614.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Storage.StorageManagementClient/6.5.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 03 Sep 2020 00:59:44 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Server": [ - "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" - ], - "x-ms-request-id": [ - "4b2d38c9-b99e-4b6b-a758-a1f6fb95a8b3" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ - "11999" - ], - "x-ms-correlation-request-id": [ - "cf468442-3457-4476-9536-b233a627f53f" - ], - "x-ms-routing-request-id": [ - "BRAZILUS:20200903T005944Z:cf468442-3457-4476-9536-b233a627f53f" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Content-Length": [ - "288" - ], - "Content-Type": [ - "application/json" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"keys\": [\r\n {\r\n \"keyName\": \"key1\",\r\n \"value\": \"FFofVgjty0CaaqermZfrP1vMWhZ5l8LhncOkOWu4mQcLXlhSeaFrLqk4DI/EBwxCbEviPRKO9tRwUHuVxRMt3Q==\",\r\n \"permissions\": \"FULL\"\r\n },\r\n {\r\n \"keyName\": \"key2\",\r\n \"value\": \"nWhD98v/ukFPTJuma5476E26VwK9hQy6tvGb2h8sV+OZru//cGTnt9ljj1+UJbi51+9tN7ECLjj4G1W5dXYgTw==\",\r\n \"permissions\": \"FULL\"\r\n }\r\n ]\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-147/providers/Microsoft.Sql/servers/sqlcrudtest-6158/databases/sqlcrudtest-9521?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTE0Ny9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL3NxbGNydWR0ZXN0LTYxNTgvZGF0YWJhc2VzL3NxbGNydWR0ZXN0LTk1MjE/YXBpLXZlcnNpb249MjAxNy0xMC0wMS1wcmV2aWV3", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.26614.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 03 Sep 2020 01:00:10 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-request-id": [ - "b89cb47a-7ae9-49e9-931c-838ad15ec467" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11988" - ], - "x-ms-correlation-request-id": [ - "c4dad6e3-22b4-4733-8bb1-cb554079c756" - ], - "x-ms-routing-request-id": [ - "BRAZILUS:20200903T010010Z:c4dad6e3-22b4-4733-8bb1-cb554079c756" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Content-Length": [ - "997" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"GP_Gen5\",\r\n \"tier\": \"GeneralPurpose\",\r\n \"family\": \"Gen5\",\r\n \"capacity\": 2\r\n },\r\n \"kind\": \"v12.0,user,vcore\",\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": 34359738368,\r\n \"status\": \"Online\",\r\n \"databaseId\": \"88b09e46-9263-4b6c-828d-ccd20221c656\",\r\n \"creationDate\": \"2020-09-03T01:00:02.263Z\",\r\n \"currentServiceObjectiveName\": \"GP_Gen5_2\",\r\n \"requestedServiceObjectiveName\": \"GP_Gen5_2\",\r\n \"defaultSecondaryLocation\": \"westus2\",\r\n \"catalogCollation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"zoneRedundant\": false,\r\n \"licenseType\": \"LicenseIncluded\",\r\n \"maxLogSizeBytes\": 10307502080,\r\n \"earliestRestoreDate\": \"2020-09-03T01:30:02.263Z\",\r\n \"readScale\": \"Disabled\",\r\n \"readReplicaCount\": 0,\r\n \"currentSku\": {\r\n \"name\": \"GP_Gen5\",\r\n \"tier\": \"GeneralPurpose\",\r\n \"family\": \"Gen5\",\r\n \"capacity\": 2\r\n }\r\n },\r\n \"location\": \"westcentralus\",\r\n \"id\": \"/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-147/providers/Microsoft.Sql/servers/sqlcrudtest-6158/databases/sqlcrudtest-9521\",\r\n \"name\": \"sqlcrudtest-9521\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-147/providers/Microsoft.Sql/servers/sqlcrudtest-6158/databases/sqlcrudtest-9521/export?api-version=2020-02-02-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTE0Ny9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL3NxbGNydWR0ZXN0LTYxNTgvZGF0YWJhc2VzL3NxbGNydWR0ZXN0LTk1MjEvZXhwb3J0P2FwaS12ZXJzaW9uPTIwMjAtMDItMDItcHJldmlldw==", - "RequestMethod": "POST", - "RequestBody": "{\r\n \"storageKeyType\": \"StorageAccessKey\",\r\n \"storageKey\": \"FFofVgjty0CaaqermZfrP1vMWhZ5l8LhncOkOWu4mQcLXlhSeaFrLqk4DI/EBwxCbEviPRKO9tRwUHuVxRMt3Q==\",\r\n \"storageUri\": \"https://sqlcrudtest2995.blob.core.windows.net/container/sqlcrudtest-9521.bacpac\",\r\n \"administratorLogin\": \"dummylogin\",\r\n \"administratorLoginPassword\": \"Un53cuRE!\",\r\n \"authenticationType\": \"SQL\"\r\n}", - "RequestHeaders": { - "x-ms-client-request-id": [ - "b0791c5c-cbd2-4683-99c0-973034d6f7b4" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.26614.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "370" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 03 Sep 2020 01:00:12 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Location": [ - "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportOperationResults/cd19fb8e-1eee-4dec-a04f-ab87d811d26b-sqlcrudtest-6158?api-version=2020-02-02-preview" - ], - "Retry-After": [ - "15" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "Azure-AsyncOperation": [ - "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/cd19fb8e-1eee-4dec-a04f-ab87d811d26b-sqlcrudtest-6158?api-version=2020-02-02-preview" - ], - "x-ms-request-id": [ - "5e2e4175-0c27-4ab4-805c-56752e5f9c65" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1199" - ], - "x-ms-correlation-request-id": [ - "3770798c-9d48-4d6a-9822-d92caba6f1e3" - ], - "x-ms-routing-request-id": [ - "BRAZILUS:20200903T010012Z:3770798c-9d48-4d6a-9822-d92caba6f1e3" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Content-Length": [ - "65" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"operation\": \"Export\",\r\n \"startTime\": \"2020-09-03T01:00:12.2314171Z\"\r\n}", - "StatusCode": 202 - }, - { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/cd19fb8e-1eee-4dec-a04f-ab87d811d26b-sqlcrudtest-6158?api-version=2020-02-02-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vY2QxOWZiOGUtMWVlZS00ZGVjLWEwNGYtYWI4N2Q4MTFkMjZiLXNxbGNydWR0ZXN0LTYxNTg/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.26614.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 03 Sep 2020 01:00:29 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Retry-After": [ - "15" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-request-id": [ - "d533b92c-8461-4df0-a40f-9e5121d5594a" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11987" - ], - "x-ms-correlation-request-id": [ - "90984647-c3ce-47c2-9066-5a758fe54c75" - ], - "x-ms-routing-request-id": [ - "BRAZILUS:20200903T010030Z:90984647-c3ce-47c2-9066-5a758fe54c75" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Content-Length": [ - "104" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"name\": \"cd19fb8e-1eee-4dec-a04f-ab87d811d26b\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T01:00:11Z\"\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/cd19fb8e-1eee-4dec-a04f-ab87d811d26b-sqlcrudtest-6158?api-version=2020-02-02-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vY2QxOWZiOGUtMWVlZS00ZGVjLWEwNGYtYWI4N2Q4MTFkMjZiLXNxbGNydWR0ZXN0LTYxNTg/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.26614.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 03 Sep 2020 01:00:45 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Retry-After": [ - "15" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-request-id": [ - "79fc5916-2f7a-4c6d-bd31-0b0ceca9e425" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11986" - ], - "x-ms-correlation-request-id": [ - "a2986a95-abd7-48c4-80d8-1e2567fda534" - ], - "x-ms-routing-request-id": [ - "BRAZILUS:20200903T010045Z:a2986a95-abd7-48c4-80d8-1e2567fda534" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Content-Length": [ - "104" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"name\": \"cd19fb8e-1eee-4dec-a04f-ab87d811d26b\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T01:00:11Z\"\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/cd19fb8e-1eee-4dec-a04f-ab87d811d26b-sqlcrudtest-6158?api-version=2020-02-02-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vY2QxOWZiOGUtMWVlZS00ZGVjLWEwNGYtYWI4N2Q4MTFkMjZiLXNxbGNydWR0ZXN0LTYxNTg/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.26614.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 03 Sep 2020 01:01:00 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Retry-After": [ - "15" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-request-id": [ - "dbbd1d79-7d87-4e45-838b-47c2d7d4b7e0" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11985" - ], - "x-ms-correlation-request-id": [ - "a2b1e537-6234-458d-82b7-f1ffc646b9a2" - ], - "x-ms-routing-request-id": [ - "BRAZILUS:20200903T010100Z:a2b1e537-6234-458d-82b7-f1ffc646b9a2" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Content-Length": [ - "104" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"name\": \"cd19fb8e-1eee-4dec-a04f-ab87d811d26b\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T01:00:11Z\"\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/cd19fb8e-1eee-4dec-a04f-ab87d811d26b-sqlcrudtest-6158?api-version=2020-02-02-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vY2QxOWZiOGUtMWVlZS00ZGVjLWEwNGYtYWI4N2Q4MTFkMjZiLXNxbGNydWR0ZXN0LTYxNTg/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.26614.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 03 Sep 2020 01:01:15 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Retry-After": [ - "15" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-request-id": [ - "74476abc-c3ef-40ac-8989-b25f757f3720" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11984" - ], - "x-ms-correlation-request-id": [ - "af7a1825-d426-4266-9513-6c0100f3e3a9" - ], - "x-ms-routing-request-id": [ - "BRAZILUS:20200903T010115Z:af7a1825-d426-4266-9513-6c0100f3e3a9" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Content-Length": [ - "104" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"name\": \"cd19fb8e-1eee-4dec-a04f-ab87d811d26b\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T01:01:11Z\"\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/cd19fb8e-1eee-4dec-a04f-ab87d811d26b-sqlcrudtest-6158?api-version=2020-02-02-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vY2QxOWZiOGUtMWVlZS00ZGVjLWEwNGYtYWI4N2Q4MTFkMjZiLXNxbGNydWR0ZXN0LTYxNTg/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.26614.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 03 Sep 2020 01:01:29 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Retry-After": [ - "15" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-request-id": [ - "e2c7698e-c107-465f-8586-435f4de5a161" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11983" - ], - "x-ms-correlation-request-id": [ - "813ea9f3-6510-49e0-bbf7-28d103ba0543" - ], - "x-ms-routing-request-id": [ - "BRAZILUS:20200903T010130Z:813ea9f3-6510-49e0-bbf7-28d103ba0543" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Content-Length": [ - "103" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"name\": \"cd19fb8e-1eee-4dec-a04f-ab87d811d26b\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2020-09-03T01:01:23Z\"\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportOperationResults/cd19fb8e-1eee-4dec-a04f-ab87d811d26b-sqlcrudtest-6158?api-version=2020-02-02-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydE9wZXJhdGlvblJlc3VsdHMvY2QxOWZiOGUtMWVlZS00ZGVjLWEwNGYtYWI4N2Q4MTFkMjZiLXNxbGNydWR0ZXN0LTYxNTg/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.26614.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 03 Sep 2020 01:01:31 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-request-id": [ - "b7b25b3e-1390-420a-9ba0-42d12140989e" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11982" - ], - "x-ms-correlation-request-id": [ - "d4c6380f-6809-4eea-8cf4-3c94adce9aca" - ], - "x-ms-routing-request-id": [ - "BRAZILUS:20200903T010131Z:d4c6380f-6809-4eea-8cf4-3c94adce9aca" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Content-Length": [ - "545" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"requestId\": \"cd19fb8e-1eee-4dec-a04f-ab87d811d26b\",\r\n \"requestType\": \"ExportDatabase\",\r\n \"queuedTime\": \"9/3/2020 1:00:11 AM\",\r\n \"lastModifiedTime\": \"9/3/2020 1:01:23 AM\",\r\n \"blobUri\": \"https://sqlcrudtest2995.blob.core.windows.net/container/sqlcrudtest-9521.bacpac\",\r\n \"serverName\": \"sqlcrudtest-6158\",\r\n \"databaseName\": \"sqlcrudtest-9521\",\r\n \"status\": \"Completed\",\r\n \"privateEndpointConnections\": []\r\n },\r\n \"id\": \"cd19fb8e-1eee-4dec-a04f-ab87d811d26b\",\r\n \"name\": \"cd19fb8e-1eee-4dec-a04f-ab87d811d26b\",\r\n \"type\": \"Microsoft.Sql/servers/databases/importExportOperationResults\"\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-147/providers/Microsoft.Sql/servers/sqlcrudtest-6158/import?api-version=2020-02-02-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTE0Ny9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL3NxbGNydWR0ZXN0LTYxNTgvaW1wb3J0P2FwaS12ZXJzaW9uPTIwMjAtMDItMDItcHJldmlldw==", - "RequestMethod": "POST", - "RequestBody": "{\r\n \"databaseName\": \"sqlcrudtest-2577\",\r\n \"edition\": \"Basic\",\r\n \"serviceObjectiveName\": \"Basic\",\r\n \"maxSizeBytes\": \"2147483648\",\r\n \"storageKeyType\": \"StorageAccessKey\",\r\n \"storageKey\": \"FFofVgjty0CaaqermZfrP1vMWhZ5l8LhncOkOWu4mQcLXlhSeaFrLqk4DI/EBwxCbEviPRKO9tRwUHuVxRMt3Q==\",\r\n \"storageUri\": \"https://sqlcrudtest2995.blob.core.windows.net/container/sqlcrudtest-9521.bacpac\",\r\n \"administratorLogin\": \"dummylogin\",\r\n \"administratorLoginPassword\": \"Un53cuRE!\",\r\n \"authenticationType\": \"SQL\"\r\n}", - "RequestHeaders": { - "x-ms-client-request-id": [ - "5afba5d2-7a36-4ff7-b01c-bceab6daa0ae" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.26614.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "501" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 03 Sep 2020 01:01:32 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Location": [ - "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportOperationResults/b675cc0c-64ca-4b22-9397-f29c6a31662e-sqlcrudtest-6158?api-version=2020-02-02-preview" - ], - "Retry-After": [ - "15" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "Azure-AsyncOperation": [ - "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/b675cc0c-64ca-4b22-9397-f29c6a31662e-sqlcrudtest-6158?api-version=2020-02-02-preview" - ], - "x-ms-request-id": [ - "46ad3d3d-f185-4137-a0e2-b01c136928d9" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1198" - ], - "x-ms-correlation-request-id": [ - "d94995e9-5aee-4d7c-b589-267edb985e3d" - ], - "x-ms-routing-request-id": [ - "BRAZILUS:20200903T010132Z:d94995e9-5aee-4d7c-b589-267edb985e3d" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Content-Length": [ - "65" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"operation\": \"Import\",\r\n \"startTime\": \"2020-09-03T01:01:32.2786706Z\"\r\n}", - "StatusCode": 202 - }, - { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/b675cc0c-64ca-4b22-9397-f29c6a31662e-sqlcrudtest-6158?api-version=2020-02-02-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vYjY3NWNjMGMtNjRjYS00YjIyLTkzOTctZjI5YzZhMzE2NjJlLXNxbGNydWR0ZXN0LTYxNTg/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.26614.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 03 Sep 2020 01:01:47 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Retry-After": [ - "15" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-request-id": [ - "698b01c8-0088-4f5e-bc48-9bb069ed06e3" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11981" - ], - "x-ms-correlation-request-id": [ - "f04906d2-4a5d-41f8-8f0d-d77dcf1d3f11" - ], - "x-ms-routing-request-id": [ - "BRAZILUS:20200903T010147Z:f04906d2-4a5d-41f8-8f0d-d77dcf1d3f11" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Content-Length": [ - "104" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"name\": \"b675cc0c-64ca-4b22-9397-f29c6a31662e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T01:01:31Z\"\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/b675cc0c-64ca-4b22-9397-f29c6a31662e-sqlcrudtest-6158?api-version=2020-02-02-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vYjY3NWNjMGMtNjRjYS00YjIyLTkzOTctZjI5YzZhMzE2NjJlLXNxbGNydWR0ZXN0LTYxNTg/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.26614.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 03 Sep 2020 01:02:02 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Retry-After": [ - "15" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-request-id": [ - "bddbda8f-514b-4a08-98e3-a99420212780" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11980" - ], - "x-ms-correlation-request-id": [ - "ce3d3eb4-2401-418f-91dd-5559eff84060" - ], - "x-ms-routing-request-id": [ - "BRAZILUS:20200903T010202Z:ce3d3eb4-2401-418f-91dd-5559eff84060" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Content-Length": [ - "104" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"name\": \"b675cc0c-64ca-4b22-9397-f29c6a31662e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T01:01:31Z\"\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/b675cc0c-64ca-4b22-9397-f29c6a31662e-sqlcrudtest-6158?api-version=2020-02-02-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vYjY3NWNjMGMtNjRjYS00YjIyLTkzOTctZjI5YzZhMzE2NjJlLXNxbGNydWR0ZXN0LTYxNTg/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.26614.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 03 Sep 2020 01:02:17 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Retry-After": [ - "15" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-request-id": [ - "d4a54d68-61a1-45b2-a4d3-d11af34fd519" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11979" - ], - "x-ms-correlation-request-id": [ - "342cfa06-28e4-4e87-aee3-d441e7b15c45" - ], - "x-ms-routing-request-id": [ - "BRAZILUS:20200903T010217Z:342cfa06-28e4-4e87-aee3-d441e7b15c45" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Content-Length": [ - "104" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"name\": \"b675cc0c-64ca-4b22-9397-f29c6a31662e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T01:01:31Z\"\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/b675cc0c-64ca-4b22-9397-f29c6a31662e-sqlcrudtest-6158?api-version=2020-02-02-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vYjY3NWNjMGMtNjRjYS00YjIyLTkzOTctZjI5YzZhMzE2NjJlLXNxbGNydWR0ZXN0LTYxNTg/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.26614.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 03 Sep 2020 01:02:32 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Retry-After": [ - "15" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-request-id": [ - "f62c80b2-e12c-4297-8e31-653dcc4cb7bb" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11978" - ], - "x-ms-correlation-request-id": [ - "bb6fc651-b1a7-40ae-9f12-37a9c66b558b" - ], - "x-ms-routing-request-id": [ - "BRAZILUS:20200903T010232Z:bb6fc651-b1a7-40ae-9f12-37a9c66b558b" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Content-Length": [ - "104" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"name\": \"b675cc0c-64ca-4b22-9397-f29c6a31662e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T01:02:31Z\"\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/b675cc0c-64ca-4b22-9397-f29c6a31662e-sqlcrudtest-6158?api-version=2020-02-02-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vYjY3NWNjMGMtNjRjYS00YjIyLTkzOTctZjI5YzZhMzE2NjJlLXNxbGNydWR0ZXN0LTYxNTg/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.26614.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 03 Sep 2020 01:02:47 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Retry-After": [ - "15" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-request-id": [ - "85b1ea0e-081e-4266-9efd-d35ed1a9a7d1" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11977" - ], - "x-ms-correlation-request-id": [ - "14d60906-effd-4403-81a0-1c3cb8bd7be3" - ], - "x-ms-routing-request-id": [ - "BRAZILUS:20200903T010248Z:14d60906-effd-4403-81a0-1c3cb8bd7be3" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Content-Length": [ - "104" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"name\": \"b675cc0c-64ca-4b22-9397-f29c6a31662e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T01:02:31Z\"\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/b675cc0c-64ca-4b22-9397-f29c6a31662e-sqlcrudtest-6158?api-version=2020-02-02-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vYjY3NWNjMGMtNjRjYS00YjIyLTkzOTctZjI5YzZhMzE2NjJlLXNxbGNydWR0ZXN0LTYxNTg/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.26614.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 03 Sep 2020 01:03:03 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Retry-After": [ - "15" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-request-id": [ - "5ac5b0d7-cc0a-48e1-bde1-4ac2076b61f8" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11976" - ], - "x-ms-correlation-request-id": [ - "f02ec32e-03fb-4722-ac80-4c5157435ef4" - ], - "x-ms-routing-request-id": [ - "BRAZILUS:20200903T010303Z:f02ec32e-03fb-4722-ac80-4c5157435ef4" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Content-Length": [ - "104" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"name\": \"b675cc0c-64ca-4b22-9397-f29c6a31662e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T01:02:31Z\"\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/b675cc0c-64ca-4b22-9397-f29c6a31662e-sqlcrudtest-6158?api-version=2020-02-02-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vYjY3NWNjMGMtNjRjYS00YjIyLTkzOTctZjI5YzZhMzE2NjJlLXNxbGNydWR0ZXN0LTYxNTg/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.26614.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 03 Sep 2020 01:03:17 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Retry-After": [ - "15" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-request-id": [ - "a07aa8a1-bc53-4ec5-b3e4-71f1233aff40" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11975" - ], - "x-ms-correlation-request-id": [ - "f0d2c074-1a27-44ce-9bb4-2b6ab7ad7987" - ], - "x-ms-routing-request-id": [ - "BRAZILUS:20200903T010318Z:f0d2c074-1a27-44ce-9bb4-2b6ab7ad7987" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Content-Length": [ - "104" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"name\": \"b675cc0c-64ca-4b22-9397-f29c6a31662e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T01:02:31Z\"\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/b675cc0c-64ca-4b22-9397-f29c6a31662e-sqlcrudtest-6158?api-version=2020-02-02-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vYjY3NWNjMGMtNjRjYS00YjIyLTkzOTctZjI5YzZhMzE2NjJlLXNxbGNydWR0ZXN0LTYxNTg/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.26614.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 03 Sep 2020 01:03:32 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Retry-After": [ - "15" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-request-id": [ - "da1d468a-ecf9-4b8a-ad0c-25c76fbdcd55" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11974" - ], - "x-ms-correlation-request-id": [ - "637eab20-764c-4072-873c-a8ca9704fcfa" - ], - "x-ms-routing-request-id": [ - "BRAZILUS:20200903T010333Z:637eab20-764c-4072-873c-a8ca9704fcfa" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Content-Length": [ - "104" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"name\": \"b675cc0c-64ca-4b22-9397-f29c6a31662e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T01:03:31Z\"\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/b675cc0c-64ca-4b22-9397-f29c6a31662e-sqlcrudtest-6158?api-version=2020-02-02-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vYjY3NWNjMGMtNjRjYS00YjIyLTkzOTctZjI5YzZhMzE2NjJlLXNxbGNydWR0ZXN0LTYxNTg/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.26614.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 03 Sep 2020 01:03:48 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Retry-After": [ - "15" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-request-id": [ - "2ce6215c-b5f5-4571-ad59-83cbe6b63f89" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11973" - ], - "x-ms-correlation-request-id": [ - "f58e7ffd-863e-4c80-9388-3e0c3acc07df" - ], - "x-ms-routing-request-id": [ - "BRAZILUS:20200903T010348Z:f58e7ffd-863e-4c80-9388-3e0c3acc07df" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Content-Length": [ - "104" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"name\": \"b675cc0c-64ca-4b22-9397-f29c6a31662e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T01:03:31Z\"\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/b675cc0c-64ca-4b22-9397-f29c6a31662e-sqlcrudtest-6158?api-version=2020-02-02-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vYjY3NWNjMGMtNjRjYS00YjIyLTkzOTctZjI5YzZhMzE2NjJlLXNxbGNydWR0ZXN0LTYxNTg/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.26614.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 03 Sep 2020 01:04:04 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Retry-After": [ - "15" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-request-id": [ - "c71c09f5-d014-49ea-afb3-79a16a1680fa" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11972" - ], - "x-ms-correlation-request-id": [ - "5422117b-e2d3-4f11-a096-17dedbb0c831" - ], - "x-ms-routing-request-id": [ - "BRAZILUS:20200903T010404Z:5422117b-e2d3-4f11-a096-17dedbb0c831" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Content-Length": [ - "104" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"name\": \"b675cc0c-64ca-4b22-9397-f29c6a31662e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T01:03:31Z\"\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/b675cc0c-64ca-4b22-9397-f29c6a31662e-sqlcrudtest-6158?api-version=2020-02-02-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vYjY3NWNjMGMtNjRjYS00YjIyLTkzOTctZjI5YzZhMzE2NjJlLXNxbGNydWR0ZXN0LTYxNTg/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.26614.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 03 Sep 2020 01:04:18 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Retry-After": [ - "15" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-request-id": [ - "a0682ec3-62b4-4621-b67b-ac41f29ee979" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11971" - ], - "x-ms-correlation-request-id": [ - "52cceb1f-6e7e-4cf4-b49e-978e5fe22166" - ], - "x-ms-routing-request-id": [ - "BRAZILUS:20200903T010419Z:52cceb1f-6e7e-4cf4-b49e-978e5fe22166" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Content-Length": [ - "104" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"name\": \"b675cc0c-64ca-4b22-9397-f29c6a31662e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T01:03:31Z\"\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/b675cc0c-64ca-4b22-9397-f29c6a31662e-sqlcrudtest-6158?api-version=2020-02-02-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vYjY3NWNjMGMtNjRjYS00YjIyLTkzOTctZjI5YzZhMzE2NjJlLXNxbGNydWR0ZXN0LTYxNTg/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.26614.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 03 Sep 2020 01:04:34 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Retry-After": [ - "15" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-request-id": [ - "d3e7cd4d-274c-49f8-915c-27c655267b1b" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11970" - ], - "x-ms-correlation-request-id": [ - "13a3a281-d829-4d55-959d-3b5631cf77be" - ], - "x-ms-routing-request-id": [ - "BRAZILUS:20200903T010434Z:13a3a281-d829-4d55-959d-3b5631cf77be" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Content-Length": [ - "104" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"name\": \"b675cc0c-64ca-4b22-9397-f29c6a31662e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T01:04:31Z\"\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/b675cc0c-64ca-4b22-9397-f29c6a31662e-sqlcrudtest-6158?api-version=2020-02-02-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vYjY3NWNjMGMtNjRjYS00YjIyLTkzOTctZjI5YzZhMzE2NjJlLXNxbGNydWR0ZXN0LTYxNTg/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.26614.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 03 Sep 2020 01:04:49 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Retry-After": [ - "15" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-request-id": [ - "69bf42f5-9ad3-4b44-af7e-52a3eddf0bce" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11969" - ], - "x-ms-correlation-request-id": [ - "911245dd-cd3b-4514-9dda-2d5b872a91b8" - ], - "x-ms-routing-request-id": [ - "BRAZILUS:20200903T010449Z:911245dd-cd3b-4514-9dda-2d5b872a91b8" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Content-Length": [ - "103" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"name\": \"b675cc0c-64ca-4b22-9397-f29c6a31662e\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2020-09-03T01:04:43Z\"\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportOperationResults/b675cc0c-64ca-4b22-9397-f29c6a31662e-sqlcrudtest-6158?api-version=2020-02-02-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydE9wZXJhdGlvblJlc3VsdHMvYjY3NWNjMGMtNjRjYS00YjIyLTkzOTctZjI5YzZhMzE2NjJlLXNxbGNydWR0ZXN0LTYxNTg/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.26614.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 03 Sep 2020 01:04:49 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-request-id": [ - "3b9f0c49-7c0f-4c20-a56f-f2abe507f98b" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11968" - ], - "x-ms-correlation-request-id": [ - "d40c5114-ca97-4f22-b88a-1b337634bf24" - ], - "x-ms-routing-request-id": [ - "BRAZILUS:20200903T010449Z:d40c5114-ca97-4f22-b88a-1b337634bf24" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Content-Length": [ - "550" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"requestId\": \"b675cc0c-64ca-4b22-9397-f29c6a31662e\",\r\n \"requestType\": \"ImportToNewDatabase\",\r\n \"queuedTime\": \"9/3/2020 1:01:31 AM\",\r\n \"lastModifiedTime\": \"9/3/2020 1:04:43 AM\",\r\n \"blobUri\": \"https://sqlcrudtest2995.blob.core.windows.net/container/sqlcrudtest-9521.bacpac\",\r\n \"serverName\": \"sqlcrudtest-6158\",\r\n \"databaseName\": \"sqlcrudtest-2577\",\r\n \"status\": \"Completed\",\r\n \"privateEndpointConnections\": []\r\n },\r\n \"id\": \"b675cc0c-64ca-4b22-9397-f29c6a31662e\",\r\n \"name\": \"b675cc0c-64ca-4b22-9397-f29c6a31662e\",\r\n \"type\": \"Microsoft.Sql/servers/databases/importExportOperationResults\"\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourcegroups/sqlcrudtest-147?api-version=2017-05-10", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTE0Nz9hcGktdmVyc2lvbj0yMDE3LTA1LTEw", - "RequestMethod": "DELETE", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "d804fdb5-14ca-46cd-bb32-987033056824" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.26614.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 03 Sep 2020 01:04:50 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Location": [ - "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDE0Ny1XRVNUQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0Y2VudHJhbHVzIn0?api-version=2017-05-10" - ], - "Retry-After": [ - "15" - ], - "x-ms-ratelimit-remaining-subscription-deletes": [ - "14999" - ], - "x-ms-request-id": [ - "be4a1058-56b4-4202-837c-377bdab20534" - ], - "x-ms-correlation-request-id": [ - "be4a1058-56b4-4202-837c-377bdab20534" - ], - "x-ms-routing-request-id": [ - "BRAZILUS:20200903T010451Z:be4a1058-56b4-4202-837c-377bdab20534" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Content-Length": [ - "0" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "", - "StatusCode": 202 - } - ], - "Names": { - "CreateResourceGroup": [ - "sqlcrudtest-147" - ], - "CreateServer": [ - "sqlcrudtest-6158" - ], - "CreateStorageContainer": [ - "sqlcrudtest2995" - ], - "TestImportExport": [ - "sqlcrudtest-9521", - "sqlcrudtest-2577", - "sqlcrudstorage709", - "sqlcrudtest-6756" - ] - }, - "Variables": { - "SubscriptionId": "b75889fa-6661-44e0-a844-cd96ec938991" - } -} \ No newline at end of file From 75fd959b947535843bf20cf57236b940361a4b07 Mon Sep 17 00:00:00 2001 From: xaliciayang Date: Thu, 3 Sep 2020 18:40:50 -0700 Subject: [PATCH 09/19] trying out another set of generated clients --- .../src/Generated/CapabilitiesOperations.cs | 4 +- .../CapabilitiesOperationsExtensions.cs | 4 +- .../src/Generated/DatabasesOperations.cs | 6 +- .../DatabasesOperationsExtensions.cs | 8 +- .../src/Generated/ICapabilitiesOperations.cs | 2 +- .../src/Generated/IDatabasesOperations.cs | 4 +- .../ILongTermRetentionBackupsOperations.cs | 12 +- ...tentionManagedInstanceBackupsOperations.cs | 12 +- .../Generated/IManagedInstancesOperations.cs | 4 +- .../src/Generated/ISqlManagementClient.cs | 11 +- .../LongTermRetentionBackupsOperations.cs | 24 +- ...ermRetentionBackupsOperationsExtensions.cs | 24 +- ...tentionManagedInstanceBackupsOperations.cs | 24 +- ...agedInstanceBackupsOperationsExtensions.cs | 24 +- .../Generated/ManagedInstancesOperations.cs | 6 +- .../ManagedInstancesOperationsExtensions.cs | 8 +- .../Models/AutoPauseDelayTimeRange.cs | 4 +- .../src/Generated/Models/CapabilityGroup.cs | 98 +----- .../Models/CapabilityGroupConverter.cs | 53 ---- .../Generated/Models/CatalogCollationType.cs | 89 +----- .../Models/CatalogCollationTypeConverter.cs | 53 ---- .../src/Generated/Models/CreateMode.cs | 113 +------ .../Generated/Models/CreateModeConverter.cs | 53 ---- .../src/Generated/Models/Database.cs | 16 +- .../Generated/Models/DatabaseLicenseType.cs | 89 +----- .../Models/DatabaseLicenseTypeConverter.cs | 53 ---- .../src/Generated/Models/DatabaseOperation.cs | 4 +- .../src/Generated/Models/DatabaseReadScale.cs | 89 +----- .../Models/DatabaseReadScaleConverter.cs | 53 ---- .../src/Generated/Models/DatabaseState1.cs | 92 +----- .../Models/DatabaseState1Converter.cs | 53 ---- .../src/Generated/Models/DatabaseState2.cs | 92 +----- .../Models/DatabaseState2Converter.cs | 53 ---- .../src/Generated/Models/DatabaseState3.cs | 92 +----- .../Models/DatabaseState3Converter.cs | 53 ---- .../src/Generated/Models/DatabaseState4.cs | 92 +----- .../Models/DatabaseState4Converter.cs | 53 ---- .../src/Generated/Models/DatabaseState5.cs | 92 +----- .../Models/DatabaseState5Converter.cs | 53 ---- .../src/Generated/Models/DatabaseState6.cs | 92 +----- .../Models/DatabaseState6Converter.cs | 53 ---- .../src/Generated/Models/DatabaseStatus.cs | 146 ++------- .../Models/DatabaseStatusConverter.cs | 53 ---- .../src/Generated/Models/DatabaseUpdate.cs | 16 +- .../src/Generated/Models/ElasticPool.cs | 6 +- .../Generated/Models/ElasticPoolEdition.cs | 98 +----- .../Models/ElasticPoolEditionConverter.cs | 53 ---- .../Models/ElasticPoolLicenseType.cs | 89 +----- .../Models/ElasticPoolLicenseTypeConverter.cs | 53 ---- ...erDatabaseMaxPerformanceLevelCapability.cs | 4 +- ...erDatabaseMinPerformanceLevelCapability.cs | 4 +- .../src/Generated/Models/ElasticPoolState.cs | 92 +----- .../Models/ElasticPoolStateConverter.cs | 53 ---- .../src/Generated/Models/ElasticPoolUpdate.cs | 4 +- .../Generated/Models/EncryptionProtector.cs | 8 +- .../Models/ExportDatabaseDefinition.cs | 8 +- .../src/Generated/Models/FailoverGroup.cs | 4 +- .../Models/FailoverGroupReadOnlyEndpoint.cs | 4 +- .../Models/FailoverGroupReadWriteEndpoint.cs | 11 +- .../Models/FailoverGroupReplicationRole.cs | 89 +----- .../FailoverGroupReplicationRoleConverter.cs | 55 ---- .../src/Generated/Models/IdentityType.cs | 86 +----- .../Generated/Models/IdentityTypeConverter.cs | 53 ---- .../ImportExistingDatabaseDefinition.cs | 8 +- .../Models/ImportNewDatabaseDefinition.cs | 8 +- .../Generated/Models/InstanceFailoverGroup.cs | 4 +- .../InstanceFailoverGroupReadOnlyEndpoint.cs | 4 +- .../InstanceFailoverGroupReadWriteEndpoint.cs | 11 +- .../InstanceFailoverGroupReplicationRole.cs | 94 +----- ...ceFailoverGroupReplicationRoleConverter.cs | 55 ---- .../src/Generated/Models/InstancePool.cs | 8 +- .../Models/InstancePoolLicenseType.cs | 89 +----- .../InstancePoolLicenseTypeConverter.cs | 53 ---- .../src/Generated/Models/JobAgent.cs | 4 +- .../src/Generated/Models/JobAgentState.cs | 98 +----- .../Models/JobAgentStateConverter.cs | 53 ---- .../src/Generated/Models/JobExecution.cs | 6 +- .../Generated/Models/JobExecutionLifecycle.cs | 113 +------ .../Models/JobExecutionLifecycleConverter.cs | 53 ---- .../Generated/Models/JobExecutionTarget.cs | 4 +- .../src/Generated/Models/JobStepAction.cs | 6 +- .../Generated/Models/JobStepActionSource.cs | 86 +----- .../Models/JobStepActionSourceConverter.cs | 53 ---- .../src/Generated/Models/JobStepActionType.cs | 86 +----- .../Models/JobStepActionTypeConverter.cs | 53 ---- .../src/Generated/Models/JobStepOutput.cs | 4 +- .../src/Generated/Models/JobStepOutputType.cs | 86 +----- .../Models/JobStepOutputTypeConverter.cs | 53 ---- .../src/Generated/Models/JobTarget.cs | 11 +- .../src/Generated/Models/JobTargetType.cs | 98 +----- .../Models/JobTargetTypeConverter.cs | 53 ---- .../src/Generated/Models/LogSizeCapability.cs | 4 +- .../src/Generated/Models/LogSizeUnit.cs | 98 +----- .../Generated/Models/LogSizeUnitConverter.cs | 53 ---- .../Models/LongTermRetentionDatabaseState.cs | 94 +----- ...LongTermRetentionDatabaseStateConverter.cs | 55 ---- .../src/Generated/Models/ManagedDatabase.cs | 8 +- .../Models/ManagedDatabaseCreateMode.cs | 98 +----- .../ManagedDatabaseCreateModeConverter.cs | 54 ---- .../Generated/Models/ManagedDatabaseStatus.cs | 104 +------ .../Models/ManagedDatabaseStatusConverter.cs | 53 ---- .../Generated/Models/ManagedDatabaseUpdate.cs | 8 +- .../src/Generated/Models/ManagedInstance.cs | 10 +- .../ManagedInstanceEncryptionProtector.cs | 8 +- .../Generated/Models/ManagedInstanceKey.cs | 8 +- .../Models/ManagedInstanceLicenseType.cs | 89 +----- .../ManagedInstanceLicenseTypeConverter.cs | 55 ---- .../Models/ManagedInstanceOperation.cs | 4 +- .../Models/ManagedInstanceProxyOverride.cs | 92 +----- .../ManagedInstanceProxyOverrideConverter.cs | 55 ---- .../Generated/Models/ManagedInstanceUpdate.cs | 10 +- .../Models/ManagedServerCreateMode.cs | 89 +----- .../ManagedServerCreateModeConverter.cs | 53 ---- .../Models/ManagementOperationState.cs | 101 +------ .../ManagementOperationStateConverter.cs | 54 ---- .../src/Generated/Models/MaxSizeCapability.cs | 4 +- .../src/Generated/Models/MaxSizeUnit.cs | 95 +----- .../Generated/Models/MaxSizeUnitConverter.cs | 53 ---- .../src/Generated/Models/Metric.cs | 4 +- .../src/Generated/Models/MetricDefinition.cs | 6 +- .../src/Generated/Models/Operation.cs | 4 +- .../src/Generated/Models/OperationOrigin.cs | 89 +----- .../Models/OperationOriginConverter.cs | 53 ---- .../src/Generated/Models/PartnerInfo.cs | 4 +- .../src/Generated/Models/PartnerRegionInfo.cs | 4 +- .../Generated/Models/PauseDelayTimeUnit.cs | 86 +----- .../Models/PauseDelayTimeUnitConverter.cs | 53 ---- .../Models/PerformanceLevelCapability.cs | 4 +- .../Generated/Models/PerformanceLevelUnit.cs | 89 +----- .../Models/PerformanceLevelUnitConverter.cs | 53 ---- .../Models/PrimaryAggregationType.cs | 101 +------ .../Models/PrimaryAggregationTypeConverter.cs | 53 ---- .../Models/PrivateEndpointConnection.cs | 4 +- .../PrivateEndpointConnectionProperties.cs | 4 +- .../PrivateEndpointProvisioningState.cs | 100 +------ ...ivateEndpointProvisioningStateConverter.cs | 55 ---- ...inkServiceConnectionStateActionsRequire.cs | 95 +----- ...eConnectionStateActionsRequireConverter.cs | 55 ---- ...ivateLinkServiceConnectionStateProperty.cs | 10 +- ...PrivateLinkServiceConnectionStateStatus.cs | 101 +------ ...nkServiceConnectionStateStatusConverter.cs | 55 ---- .../src/Generated/Models/ProvisioningState.cs | 98 +----- .../Models/ProvisioningStateConverter.cs | 53 ---- .../Models/ReadOnlyEndpointFailoverPolicy.cs | 91 +----- ...ReadOnlyEndpointFailoverPolicyConverter.cs | 55 ---- .../Models/ReadWriteEndpointFailoverPolicy.cs | 91 +----- ...eadWriteEndpointFailoverPolicyConverter.cs | 55 ---- .../Models/RecommendedElasticPool.cs | 4 +- .../src/Generated/Models/ReplicaType.cs | 89 +----- .../Generated/Models/ReplicaTypeConverter.cs | 53 ---- .../src/Generated/Models/ReplicationLink.cs | 4 +- .../src/Generated/Models/ReplicationState.cs | 95 +----- .../Models/ReplicationStateConverter.cs | 53 ---- .../src/Generated/Models/ResourceIdentity.cs | 4 +- .../src/Generated/Models/SampleName.cs | 92 +----- .../Generated/Models/SampleNameConverter.cs | 53 ---- .../src/Generated/Models/Server.cs | 4 +- .../src/Generated/Models/ServerKey.cs | 8 +- .../src/Generated/Models/ServerKeyType.cs | 89 +----- .../Models/ServerKeyTypeConverter.cs | 53 ---- .../Models/ServerPublicNetworkAccess.cs | 89 +----- .../ServerPublicNetworkAccessConverter.cs | 54 ---- .../src/Generated/Models/ServerUpdate.cs | 4 +- .../Generated/Models/ServiceObjectiveName.cs | 278 +++++------------- .../Models/ServiceObjectiveNameConverter.cs | 53 ---- .../src/Generated/Models/SloUsageMetric.cs | 4 +- .../Generated/Models/StorageAccountType.cs | 92 +----- .../Models/StorageAccountTypeConverter.cs | 53 ---- .../src/Generated/Models/StorageKeyType.cs | 89 +----- .../Models/StorageKeyTypeConverter.cs | 53 ---- .../src/Generated/Models/SyncAgent.cs | 4 +- .../Models/SyncAgentLinkedDatabase.cs | 4 +- .../src/Generated/Models/SyncAgentState.cs | 92 +----- .../Models/SyncAgentStateConverter.cs | 53 ---- .../Models/SyncConflictResolutionPolicy.cs | 89 +----- .../SyncConflictResolutionPolicyConverter.cs | 55 ---- .../src/Generated/Models/SyncDirection.cs | 92 +----- .../Models/SyncDirectionConverter.cs | 53 ---- .../src/Generated/Models/SyncGroup.cs | 6 +- .../Models/SyncGroupLogProperties.cs | 4 +- .../src/Generated/Models/SyncGroupLogType.cs | 95 +----- .../Models/SyncGroupLogTypeConverter.cs | 53 ---- .../src/Generated/Models/SyncGroupState.cs | 98 +----- .../Models/SyncGroupStateConverter.cs | 53 ---- .../src/Generated/Models/SyncMember.cs | 8 +- .../src/Generated/Models/SyncMemberDbType.cs | 89 +----- .../Models/SyncMemberDbTypeConverter.cs | 53 ---- .../src/Generated/Models/SyncMemberState.cs | 137 ++------- .../Models/SyncMemberStateConverter.cs | 53 ---- .../TransparentDataEncryptionActivity.cs | 4 +- ...TransparentDataEncryptionActivityStatus.cs | 95 +----- ...ntDataEncryptionActivityStatusConverter.cs | 55 ---- .../Generated/Models/UnitDefinitionType.cs | 101 +------ .../Models/UnitDefinitionTypeConverter.cs | 53 ---- .../src/Generated/Models/UnitType.cs | 101 +------ .../src/Generated/Models/UnitTypeConverter.cs | 53 ---- .../Generated/Models/VirtualNetworkRule.cs | 4 +- .../Models/VirtualNetworkRuleState.cs | 98 +----- .../VirtualNetworkRuleStateConverter.cs | 53 ---- .../VulnerabilityAssessmentScanRecord.cs | 6 +- .../VulnerabilityAssessmentScanState.cs | 97 +----- ...lnerabilityAssessmentScanStateConverter.cs | 55 ---- .../VulnerabilityAssessmentScanTriggerType.cs | 95 +----- ...ilityAssessmentScanTriggerTypeConverter.cs | 55 ---- .../Generated/SdkInfo_SqlManagementClient.cs | 35 ++- .../src/Generated/SqlManagementClient.cs | 11 +- 206 files changed, 695 insertions(+), 9728 deletions(-) delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/CapabilityGroupConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/CatalogCollationTypeConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/CreateModeConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseLicenseTypeConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseReadScaleConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState1Converter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState2Converter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState3Converter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState4Converter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState5Converter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState6Converter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseStatusConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolEditionConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolLicenseTypeConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolStateConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/FailoverGroupReplicationRoleConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/IdentityTypeConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstanceFailoverGroupReplicationRoleConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstancePoolLicenseTypeConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobAgentStateConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobExecutionLifecycleConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobStepActionSourceConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobStepActionTypeConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobStepOutputTypeConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobTargetTypeConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/LogSizeUnitConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/LongTermRetentionDatabaseStateConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedDatabaseCreateModeConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedDatabaseStatusConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceLicenseTypeConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceProxyOverrideConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedServerCreateModeConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagementOperationStateConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/MaxSizeUnitConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/OperationOriginConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PauseDelayTimeUnitConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PerformanceLevelUnitConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrimaryAggregationTypeConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateEndpointProvisioningStateConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateLinkServiceConnectionStateActionsRequireConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateLinkServiceConnectionStateStatusConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ProvisioningStateConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReadOnlyEndpointFailoverPolicyConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReadWriteEndpointFailoverPolicyConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReplicaTypeConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReplicationStateConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SampleNameConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServerKeyTypeConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServerPublicNetworkAccessConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServiceObjectiveNameConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/StorageAccountTypeConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/StorageKeyTypeConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncAgentStateConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncConflictResolutionPolicyConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncDirectionConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncGroupLogTypeConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncGroupStateConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncMemberDbTypeConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncMemberStateConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/TransparentDataEncryptionActivityStatusConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/UnitDefinitionTypeConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/UnitTypeConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/VirtualNetworkRuleStateConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/VulnerabilityAssessmentScanStateConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/VulnerabilityAssessmentScanTriggerTypeConverter.cs diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/CapabilitiesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/CapabilitiesOperations.cs index 12c1138eaeb8..7482a90147f3 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/CapabilitiesOperations.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/CapabilitiesOperations.cs @@ -83,7 +83,7 @@ internal CapabilitiesOperations(SqlManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> ListByLocationWithHttpMessagesAsync(string locationName, CapabilityGroup? include = default(CapabilityGroup?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> ListByLocationWithHttpMessagesAsync(string locationName, string include = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (locationName == null) { @@ -115,7 +115,7 @@ internal CapabilitiesOperations(SqlManagementClient client) List _queryParameters = new List(); if (include != null) { - _queryParameters.Add(string.Format("include={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(include, Client.SerializationSettings).Trim('"')))); + _queryParameters.Add(string.Format("include={0}", System.Uri.EscapeDataString(include))); } if (apiVersion != null) { diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/CapabilitiesOperationsExtensions.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/CapabilitiesOperationsExtensions.cs index 70b9d5389404..d9be266e240b 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/CapabilitiesOperationsExtensions.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/CapabilitiesOperationsExtensions.cs @@ -36,7 +36,7 @@ public static partial class CapabilitiesOperationsExtensions /// 'supportedElasticPoolEditions', 'supportedManagedInstanceVersions', /// 'supportedInstancePoolEditions', 'supportedManagedInstanceEditions' /// - public static LocationCapabilities ListByLocation(this ICapabilitiesOperations operations, string locationName, CapabilityGroup? include = default(CapabilityGroup?)) + public static LocationCapabilities ListByLocation(this ICapabilitiesOperations operations, string locationName, string include = default(string)) { return operations.ListByLocationAsync(locationName, include).GetAwaiter().GetResult(); } @@ -59,7 +59,7 @@ public static partial class CapabilitiesOperationsExtensions /// /// The cancellation token. /// - public static async Task ListByLocationAsync(this ICapabilitiesOperations operations, string locationName, CapabilityGroup? include = default(CapabilityGroup?), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task ListByLocationAsync(this ICapabilitiesOperations operations, string locationName, string include = default(string), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByLocationWithHttpMessagesAsync(locationName, include, null, cancellationToken).ConfigureAwait(false)) { diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/DatabasesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/DatabasesOperations.cs index fb3b1d920ebd..61a23af57a49 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/DatabasesOperations.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/DatabasesOperations.cs @@ -1654,7 +1654,7 @@ internal DatabasesOperations(SqlManagementClient client) /// /// The cancellation token. /// - public async Task FailoverWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, ReplicaType? replicaType = default(ReplicaType?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task FailoverWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string replicaType = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { // Send request AzureOperationResponse _response = await BeginFailoverWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, replicaType, customHeaders, cancellationToken).ConfigureAwait(false); @@ -2957,7 +2957,7 @@ internal DatabasesOperations(SqlManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task BeginFailoverWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, ReplicaType? replicaType = default(ReplicaType?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task BeginFailoverWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string replicaType = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (resourceGroupName == null) { @@ -3001,7 +3001,7 @@ internal DatabasesOperations(SqlManagementClient client) List _queryParameters = new List(); if (replicaType != null) { - _queryParameters.Add(string.Format("replicaType={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(replicaType, Client.SerializationSettings).Trim('"')))); + _queryParameters.Add(string.Format("replicaType={0}", System.Uri.EscapeDataString(replicaType))); } if (apiVersion != null) { diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/DatabasesOperationsExtensions.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/DatabasesOperationsExtensions.cs index 902c1d5692e7..6a948d5dc3ae 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/DatabasesOperationsExtensions.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/DatabasesOperationsExtensions.cs @@ -670,7 +670,7 @@ public static IPage ListInaccessibleByServer(this IDatabasesOperations /// The type of replica to be failed over. Possible values include: 'Primary', /// 'ReadableSecondary' /// - public static void Failover(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName, ReplicaType? replicaType = default(ReplicaType?)) + public static void Failover(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName, string replicaType = default(string)) { operations.FailoverAsync(resourceGroupName, serverName, databaseName, replicaType).GetAwaiter().GetResult(); } @@ -698,7 +698,7 @@ public static IPage ListInaccessibleByServer(this IDatabasesOperations /// /// The cancellation token. /// - public static async Task FailoverAsync(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName, ReplicaType? replicaType = default(ReplicaType?), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task FailoverAsync(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName, string replicaType = default(string), CancellationToken cancellationToken = default(CancellationToken)) { (await operations.FailoverWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, replicaType, null, cancellationToken).ConfigureAwait(false)).Dispose(); } @@ -1071,7 +1071,7 @@ public static void BeginUpgradeDataWarehouse(this IDatabasesOperations operation /// The type of replica to be failed over. Possible values include: 'Primary', /// 'ReadableSecondary' /// - public static void BeginFailover(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName, ReplicaType? replicaType = default(ReplicaType?)) + public static void BeginFailover(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName, string replicaType = default(string)) { operations.BeginFailoverAsync(resourceGroupName, serverName, databaseName, replicaType).GetAwaiter().GetResult(); } @@ -1099,7 +1099,7 @@ public static void BeginUpgradeDataWarehouse(this IDatabasesOperations operation /// /// The cancellation token. /// - public static async Task BeginFailoverAsync(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName, ReplicaType? replicaType = default(ReplicaType?), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task BeginFailoverAsync(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName, string replicaType = default(string), CancellationToken cancellationToken = default(CancellationToken)) { (await operations.BeginFailoverWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, replicaType, null, cancellationToken).ConfigureAwait(false)).Dispose(); } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ICapabilitiesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ICapabilitiesOperations.cs index ff5ce0000f3f..e35700693ec1 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ICapabilitiesOperations.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ICapabilitiesOperations.cs @@ -51,6 +51,6 @@ public partial interface ICapabilitiesOperations /// /// Thrown when a required parameter is null /// - Task> ListByLocationWithHttpMessagesAsync(string locationName, CapabilityGroup? include = default(CapabilityGroup?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> ListByLocationWithHttpMessagesAsync(string locationName, string include = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IDatabasesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IDatabasesOperations.cs index 815b7a925482..5dd990ba07d6 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IDatabasesOperations.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IDatabasesOperations.cs @@ -441,7 +441,7 @@ public partial interface IDatabasesOperations /// /// Thrown when a required parameter is null /// - Task FailoverWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, ReplicaType? replicaType = default(ReplicaType?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task FailoverWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string replicaType = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Exports a database. /// @@ -685,7 +685,7 @@ public partial interface IDatabasesOperations /// /// Thrown when a required parameter is null /// - Task BeginFailoverWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, ReplicaType? replicaType = default(ReplicaType?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task BeginFailoverWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string replicaType = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Exports a database. /// diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ILongTermRetentionBackupsOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ILongTermRetentionBackupsOperations.cs index 9b3dfddd5625..8a567523d58e 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ILongTermRetentionBackupsOperations.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ILongTermRetentionBackupsOperations.cs @@ -132,7 +132,7 @@ public partial interface ILongTermRetentionBackupsOperations /// /// Thrown when a required parameter is null /// - Task>> ListByResourceGroupDatabaseWithHttpMessagesAsync(string resourceGroupName, string locationName, string longTermRetentionServerName, string longTermRetentionDatabaseName, bool? onlyLatestPerDatabase = default(bool?), LongTermRetentionDatabaseState? databaseState = default(LongTermRetentionDatabaseState?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListByResourceGroupDatabaseWithHttpMessagesAsync(string resourceGroupName, string locationName, string longTermRetentionServerName, string longTermRetentionDatabaseName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Lists the long term retention backups for a given location. /// @@ -167,7 +167,7 @@ public partial interface ILongTermRetentionBackupsOperations /// /// Thrown when a required parameter is null /// - Task>> ListByResourceGroupLocationWithHttpMessagesAsync(string resourceGroupName, string locationName, bool? onlyLatestPerDatabase = default(bool?), LongTermRetentionDatabaseState? databaseState = default(LongTermRetentionDatabaseState?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListByResourceGroupLocationWithHttpMessagesAsync(string resourceGroupName, string locationName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Lists the long term retention backups for a given server. /// @@ -205,7 +205,7 @@ public partial interface ILongTermRetentionBackupsOperations /// /// Thrown when a required parameter is null /// - Task>> ListByResourceGroupServerWithHttpMessagesAsync(string resourceGroupName, string locationName, string longTermRetentionServerName, bool? onlyLatestPerDatabase = default(bool?), LongTermRetentionDatabaseState? databaseState = default(LongTermRetentionDatabaseState?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListByResourceGroupServerWithHttpMessagesAsync(string resourceGroupName, string locationName, string longTermRetentionServerName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Gets a long term retention backup. /// @@ -300,7 +300,7 @@ public partial interface ILongTermRetentionBackupsOperations /// /// Thrown when a required parameter is null /// - Task>> ListByDatabaseWithHttpMessagesAsync(string locationName, string longTermRetentionServerName, string longTermRetentionDatabaseName, bool? onlyLatestPerDatabase = default(bool?), LongTermRetentionDatabaseState? databaseState = default(LongTermRetentionDatabaseState?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListByDatabaseWithHttpMessagesAsync(string locationName, string longTermRetentionServerName, string longTermRetentionDatabaseName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Lists the long term retention backups for a given location. /// @@ -330,7 +330,7 @@ public partial interface ILongTermRetentionBackupsOperations /// /// Thrown when a required parameter is null /// - Task>> ListByLocationWithHttpMessagesAsync(string locationName, bool? onlyLatestPerDatabase = default(bool?), LongTermRetentionDatabaseState? databaseState = default(LongTermRetentionDatabaseState?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListByLocationWithHttpMessagesAsync(string locationName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Lists the long term retention backups for a given server. /// @@ -363,7 +363,7 @@ public partial interface ILongTermRetentionBackupsOperations /// /// Thrown when a required parameter is null /// - Task>> ListByServerWithHttpMessagesAsync(string locationName, string longTermRetentionServerName, bool? onlyLatestPerDatabase = default(bool?), LongTermRetentionDatabaseState? databaseState = default(LongTermRetentionDatabaseState?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListByServerWithHttpMessagesAsync(string locationName, string longTermRetentionServerName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Deletes a long term retention backup. /// diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ILongTermRetentionManagedInstanceBackupsOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ILongTermRetentionManagedInstanceBackupsOperations.cs index fbd553d5d1f0..624ead6cd7af 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ILongTermRetentionManagedInstanceBackupsOperations.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ILongTermRetentionManagedInstanceBackupsOperations.cs @@ -117,7 +117,7 @@ public partial interface ILongTermRetentionManagedInstanceBackupsOperations /// /// Thrown when a required parameter is null /// - Task>> ListByDatabaseWithHttpMessagesAsync(string locationName, string managedInstanceName, string databaseName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState1? databaseState = default(DatabaseState1?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListByDatabaseWithHttpMessagesAsync(string locationName, string managedInstanceName, string databaseName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Lists the long term retention backups for a given managed instance. /// @@ -150,7 +150,7 @@ public partial interface ILongTermRetentionManagedInstanceBackupsOperations /// /// Thrown when a required parameter is null /// - Task>> ListByInstanceWithHttpMessagesAsync(string locationName, string managedInstanceName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState2? databaseState = default(DatabaseState2?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListByInstanceWithHttpMessagesAsync(string locationName, string managedInstanceName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Lists the long term retention backups for managed databases in a /// given location. @@ -181,7 +181,7 @@ public partial interface ILongTermRetentionManagedInstanceBackupsOperations /// /// Thrown when a required parameter is null /// - Task>> ListByLocationWithHttpMessagesAsync(string locationName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState3? databaseState = default(DatabaseState3?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListByLocationWithHttpMessagesAsync(string locationName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Gets a long term retention backup for a managed database. /// @@ -291,7 +291,7 @@ public partial interface ILongTermRetentionManagedInstanceBackupsOperations /// /// Thrown when a required parameter is null /// - Task>> ListByResourceGroupDatabaseWithHttpMessagesAsync(string resourceGroupName, string locationName, string managedInstanceName, string databaseName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState4? databaseState = default(DatabaseState4?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListByResourceGroupDatabaseWithHttpMessagesAsync(string resourceGroupName, string locationName, string managedInstanceName, string databaseName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Lists the long term retention backups for a given managed instance. /// @@ -329,7 +329,7 @@ public partial interface ILongTermRetentionManagedInstanceBackupsOperations /// /// Thrown when a required parameter is null /// - Task>> ListByResourceGroupInstanceWithHttpMessagesAsync(string resourceGroupName, string locationName, string managedInstanceName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState5? databaseState = default(DatabaseState5?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListByResourceGroupInstanceWithHttpMessagesAsync(string resourceGroupName, string locationName, string managedInstanceName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Lists the long term retention backups for managed databases in a /// given location. @@ -365,7 +365,7 @@ public partial interface ILongTermRetentionManagedInstanceBackupsOperations /// /// Thrown when a required parameter is null /// - Task>> ListByResourceGroupLocationWithHttpMessagesAsync(string resourceGroupName, string locationName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState6? databaseState = default(DatabaseState6?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListByResourceGroupLocationWithHttpMessagesAsync(string resourceGroupName, string locationName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Deletes a long term retention backup. /// diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IManagedInstancesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IManagedInstancesOperations.cs index f427b0e42b81..c650c97d0dd5 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IManagedInstancesOperations.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IManagedInstancesOperations.cs @@ -48,7 +48,7 @@ public partial interface IManagedInstancesOperations /// /// Thrown when a required parameter is null /// - Task FailoverWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, ReplicaType? replicaType = default(ReplicaType?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task FailoverWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, string replicaType = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Gets a list of managed instances in a resource group. /// @@ -255,7 +255,7 @@ public partial interface IManagedInstancesOperations /// /// Thrown when a required parameter is null /// - Task BeginFailoverWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, ReplicaType? replicaType = default(ReplicaType?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task BeginFailoverWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, string replicaType = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Creates or updates a managed instance. /// diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ISqlManagementClient.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ISqlManagementClient.cs index 07d6c9907662..0ee653cdffc0 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ISqlManagementClient.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ISqlManagementClient.cs @@ -49,19 +49,20 @@ public partial interface ISqlManagementClient : System.IDisposable string SubscriptionId { get; set; } /// - /// Gets or sets the preferred language for the response. + /// The preferred language for the response. /// string AcceptLanguage { get; set; } /// - /// Gets or sets the retry timeout in seconds for Long Running - /// Operations. Default value is 30. + /// The retry timeout in seconds for Long Running Operations. Default + /// value is 30. /// int? LongRunningOperationRetryTimeout { get; set; } /// - /// When set to true a unique x-ms-client-request-id value is generated - /// and included in each request. Default is true. + /// Whether a unique x-ms-client-request-id should be generated. When + /// set to true a unique x-ms-client-request-id value is generated and + /// included in each request. Default is true. /// bool? GenerateClientRequestId { get; set; } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/LongTermRetentionBackupsOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/LongTermRetentionBackupsOperations.cs index 6a14d4def090..d96ccd6e161b 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/LongTermRetentionBackupsOperations.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/LongTermRetentionBackupsOperations.cs @@ -348,7 +348,7 @@ internal LongTermRetentionBackupsOperations(SqlManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListByResourceGroupDatabaseWithHttpMessagesAsync(string resourceGroupName, string locationName, string longTermRetentionServerName, string longTermRetentionDatabaseName, bool? onlyLatestPerDatabase = default(bool?), LongTermRetentionDatabaseState? databaseState = default(LongTermRetentionDatabaseState?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByResourceGroupDatabaseWithHttpMessagesAsync(string resourceGroupName, string locationName, string longTermRetentionServerName, string longTermRetentionDatabaseName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (resourceGroupName == null) { @@ -403,7 +403,7 @@ internal LongTermRetentionBackupsOperations(SqlManagementClient client) } if (databaseState != null) { - _queryParameters.Add(string.Format("databaseState={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(databaseState, Client.SerializationSettings).Trim('"')))); + _queryParameters.Add(string.Format("databaseState={0}", System.Uri.EscapeDataString(databaseState))); } if (apiVersion != null) { @@ -572,7 +572,7 @@ internal LongTermRetentionBackupsOperations(SqlManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListByResourceGroupLocationWithHttpMessagesAsync(string resourceGroupName, string locationName, bool? onlyLatestPerDatabase = default(bool?), LongTermRetentionDatabaseState? databaseState = default(LongTermRetentionDatabaseState?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByResourceGroupLocationWithHttpMessagesAsync(string resourceGroupName, string locationName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (resourceGroupName == null) { @@ -615,7 +615,7 @@ internal LongTermRetentionBackupsOperations(SqlManagementClient client) } if (databaseState != null) { - _queryParameters.Add(string.Format("databaseState={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(databaseState, Client.SerializationSettings).Trim('"')))); + _queryParameters.Add(string.Format("databaseState={0}", System.Uri.EscapeDataString(databaseState))); } if (apiVersion != null) { @@ -787,7 +787,7 @@ internal LongTermRetentionBackupsOperations(SqlManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListByResourceGroupServerWithHttpMessagesAsync(string resourceGroupName, string locationName, string longTermRetentionServerName, bool? onlyLatestPerDatabase = default(bool?), LongTermRetentionDatabaseState? databaseState = default(LongTermRetentionDatabaseState?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByResourceGroupServerWithHttpMessagesAsync(string resourceGroupName, string locationName, string longTermRetentionServerName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (resourceGroupName == null) { @@ -836,7 +836,7 @@ internal LongTermRetentionBackupsOperations(SqlManagementClient client) } if (databaseState != null) { - _queryParameters.Add(string.Format("databaseState={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(databaseState, Client.SerializationSettings).Trim('"')))); + _queryParameters.Add(string.Format("databaseState={0}", System.Uri.EscapeDataString(databaseState))); } if (apiVersion != null) { @@ -1247,7 +1247,7 @@ internal LongTermRetentionBackupsOperations(SqlManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListByDatabaseWithHttpMessagesAsync(string locationName, string longTermRetentionServerName, string longTermRetentionDatabaseName, bool? onlyLatestPerDatabase = default(bool?), LongTermRetentionDatabaseState? databaseState = default(LongTermRetentionDatabaseState?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByDatabaseWithHttpMessagesAsync(string locationName, string longTermRetentionServerName, string longTermRetentionDatabaseName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (locationName == null) { @@ -1296,7 +1296,7 @@ internal LongTermRetentionBackupsOperations(SqlManagementClient client) } if (databaseState != null) { - _queryParameters.Add(string.Format("databaseState={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(databaseState, Client.SerializationSettings).Trim('"')))); + _queryParameters.Add(string.Format("databaseState={0}", System.Uri.EscapeDataString(databaseState))); } if (apiVersion != null) { @@ -1461,7 +1461,7 @@ internal LongTermRetentionBackupsOperations(SqlManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListByLocationWithHttpMessagesAsync(string locationName, bool? onlyLatestPerDatabase = default(bool?), LongTermRetentionDatabaseState? databaseState = default(LongTermRetentionDatabaseState?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByLocationWithHttpMessagesAsync(string locationName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (locationName == null) { @@ -1498,7 +1498,7 @@ internal LongTermRetentionBackupsOperations(SqlManagementClient client) } if (databaseState != null) { - _queryParameters.Add(string.Format("databaseState={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(databaseState, Client.SerializationSettings).Trim('"')))); + _queryParameters.Add(string.Format("databaseState={0}", System.Uri.EscapeDataString(databaseState))); } if (apiVersion != null) { @@ -1666,7 +1666,7 @@ internal LongTermRetentionBackupsOperations(SqlManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListByServerWithHttpMessagesAsync(string locationName, string longTermRetentionServerName, bool? onlyLatestPerDatabase = default(bool?), LongTermRetentionDatabaseState? databaseState = default(LongTermRetentionDatabaseState?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByServerWithHttpMessagesAsync(string locationName, string longTermRetentionServerName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (locationName == null) { @@ -1709,7 +1709,7 @@ internal LongTermRetentionBackupsOperations(SqlManagementClient client) } if (databaseState != null) { - _queryParameters.Add(string.Format("databaseState={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(databaseState, Client.SerializationSettings).Trim('"')))); + _queryParameters.Add(string.Format("databaseState={0}", System.Uri.EscapeDataString(databaseState))); } if (apiVersion != null) { diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/LongTermRetentionBackupsOperationsExtensions.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/LongTermRetentionBackupsOperationsExtensions.cs index 31c5a25eade6..5e6f4a0dda2b 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/LongTermRetentionBackupsOperationsExtensions.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/LongTermRetentionBackupsOperationsExtensions.cs @@ -164,7 +164,7 @@ public static void DeleteByResourceGroup(this ILongTermRetentionBackupsOperation /// Whether to query against just live databases, just deleted databases, or /// all databases. Possible values include: 'All', 'Live', 'Deleted' /// - public static IPage ListByResourceGroupDatabase(this ILongTermRetentionBackupsOperations operations, string resourceGroupName, string locationName, string longTermRetentionServerName, string longTermRetentionDatabaseName, bool? onlyLatestPerDatabase = default(bool?), LongTermRetentionDatabaseState? databaseState = default(LongTermRetentionDatabaseState?)) + public static IPage ListByResourceGroupDatabase(this ILongTermRetentionBackupsOperations operations, string resourceGroupName, string locationName, string longTermRetentionServerName, string longTermRetentionDatabaseName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string)) { return operations.ListByResourceGroupDatabaseAsync(resourceGroupName, locationName, longTermRetentionServerName, longTermRetentionDatabaseName, onlyLatestPerDatabase, databaseState).GetAwaiter().GetResult(); } @@ -198,7 +198,7 @@ public static void DeleteByResourceGroup(this ILongTermRetentionBackupsOperation /// /// The cancellation token. /// - public static async Task> ListByResourceGroupDatabaseAsync(this ILongTermRetentionBackupsOperations operations, string resourceGroupName, string locationName, string longTermRetentionServerName, string longTermRetentionDatabaseName, bool? onlyLatestPerDatabase = default(bool?), LongTermRetentionDatabaseState? databaseState = default(LongTermRetentionDatabaseState?), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListByResourceGroupDatabaseAsync(this ILongTermRetentionBackupsOperations operations, string resourceGroupName, string locationName, string longTermRetentionServerName, string longTermRetentionDatabaseName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByResourceGroupDatabaseWithHttpMessagesAsync(resourceGroupName, locationName, longTermRetentionServerName, longTermRetentionDatabaseName, onlyLatestPerDatabase, databaseState, null, cancellationToken).ConfigureAwait(false)) { @@ -226,7 +226,7 @@ public static void DeleteByResourceGroup(this ILongTermRetentionBackupsOperation /// Whether to query against just live databases, just deleted databases, or /// all databases. Possible values include: 'All', 'Live', 'Deleted' /// - public static IPage ListByResourceGroupLocation(this ILongTermRetentionBackupsOperations operations, string resourceGroupName, string locationName, bool? onlyLatestPerDatabase = default(bool?), LongTermRetentionDatabaseState? databaseState = default(LongTermRetentionDatabaseState?)) + public static IPage ListByResourceGroupLocation(this ILongTermRetentionBackupsOperations operations, string resourceGroupName, string locationName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string)) { return operations.ListByResourceGroupLocationAsync(resourceGroupName, locationName, onlyLatestPerDatabase, databaseState).GetAwaiter().GetResult(); } @@ -254,7 +254,7 @@ public static void DeleteByResourceGroup(this ILongTermRetentionBackupsOperation /// /// The cancellation token. /// - public static async Task> ListByResourceGroupLocationAsync(this ILongTermRetentionBackupsOperations operations, string resourceGroupName, string locationName, bool? onlyLatestPerDatabase = default(bool?), LongTermRetentionDatabaseState? databaseState = default(LongTermRetentionDatabaseState?), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListByResourceGroupLocationAsync(this ILongTermRetentionBackupsOperations operations, string resourceGroupName, string locationName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByResourceGroupLocationWithHttpMessagesAsync(resourceGroupName, locationName, onlyLatestPerDatabase, databaseState, null, cancellationToken).ConfigureAwait(false)) { @@ -285,7 +285,7 @@ public static void DeleteByResourceGroup(this ILongTermRetentionBackupsOperation /// Whether to query against just live databases, just deleted databases, or /// all databases. Possible values include: 'All', 'Live', 'Deleted' /// - public static IPage ListByResourceGroupServer(this ILongTermRetentionBackupsOperations operations, string resourceGroupName, string locationName, string longTermRetentionServerName, bool? onlyLatestPerDatabase = default(bool?), LongTermRetentionDatabaseState? databaseState = default(LongTermRetentionDatabaseState?)) + public static IPage ListByResourceGroupServer(this ILongTermRetentionBackupsOperations operations, string resourceGroupName, string locationName, string longTermRetentionServerName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string)) { return operations.ListByResourceGroupServerAsync(resourceGroupName, locationName, longTermRetentionServerName, onlyLatestPerDatabase, databaseState).GetAwaiter().GetResult(); } @@ -316,7 +316,7 @@ public static void DeleteByResourceGroup(this ILongTermRetentionBackupsOperation /// /// The cancellation token. /// - public static async Task> ListByResourceGroupServerAsync(this ILongTermRetentionBackupsOperations operations, string resourceGroupName, string locationName, string longTermRetentionServerName, bool? onlyLatestPerDatabase = default(bool?), LongTermRetentionDatabaseState? databaseState = default(LongTermRetentionDatabaseState?), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListByResourceGroupServerAsync(this ILongTermRetentionBackupsOperations operations, string resourceGroupName, string locationName, string longTermRetentionServerName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByResourceGroupServerWithHttpMessagesAsync(resourceGroupName, locationName, longTermRetentionServerName, onlyLatestPerDatabase, databaseState, null, cancellationToken).ConfigureAwait(false)) { @@ -447,7 +447,7 @@ public static void Delete(this ILongTermRetentionBackupsOperations operations, s /// Whether to query against just live databases, just deleted databases, or /// all databases. Possible values include: 'All', 'Live', 'Deleted' /// - public static IPage ListByDatabase(this ILongTermRetentionBackupsOperations operations, string locationName, string longTermRetentionServerName, string longTermRetentionDatabaseName, bool? onlyLatestPerDatabase = default(bool?), LongTermRetentionDatabaseState? databaseState = default(LongTermRetentionDatabaseState?)) + public static IPage ListByDatabase(this ILongTermRetentionBackupsOperations operations, string locationName, string longTermRetentionServerName, string longTermRetentionDatabaseName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string)) { return operations.ListByDatabaseAsync(locationName, longTermRetentionServerName, longTermRetentionDatabaseName, onlyLatestPerDatabase, databaseState).GetAwaiter().GetResult(); } @@ -477,7 +477,7 @@ public static void Delete(this ILongTermRetentionBackupsOperations operations, s /// /// The cancellation token. /// - public static async Task> ListByDatabaseAsync(this ILongTermRetentionBackupsOperations operations, string locationName, string longTermRetentionServerName, string longTermRetentionDatabaseName, bool? onlyLatestPerDatabase = default(bool?), LongTermRetentionDatabaseState? databaseState = default(LongTermRetentionDatabaseState?), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListByDatabaseAsync(this ILongTermRetentionBackupsOperations operations, string locationName, string longTermRetentionServerName, string longTermRetentionDatabaseName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByDatabaseWithHttpMessagesAsync(locationName, longTermRetentionServerName, longTermRetentionDatabaseName, onlyLatestPerDatabase, databaseState, null, cancellationToken).ConfigureAwait(false)) { @@ -501,7 +501,7 @@ public static void Delete(this ILongTermRetentionBackupsOperations operations, s /// Whether to query against just live databases, just deleted databases, or /// all databases. Possible values include: 'All', 'Live', 'Deleted' /// - public static IPage ListByLocation(this ILongTermRetentionBackupsOperations operations, string locationName, bool? onlyLatestPerDatabase = default(bool?), LongTermRetentionDatabaseState? databaseState = default(LongTermRetentionDatabaseState?)) + public static IPage ListByLocation(this ILongTermRetentionBackupsOperations operations, string locationName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string)) { return operations.ListByLocationAsync(locationName, onlyLatestPerDatabase, databaseState).GetAwaiter().GetResult(); } @@ -525,7 +525,7 @@ public static void Delete(this ILongTermRetentionBackupsOperations operations, s /// /// The cancellation token. /// - public static async Task> ListByLocationAsync(this ILongTermRetentionBackupsOperations operations, string locationName, bool? onlyLatestPerDatabase = default(bool?), LongTermRetentionDatabaseState? databaseState = default(LongTermRetentionDatabaseState?), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListByLocationAsync(this ILongTermRetentionBackupsOperations operations, string locationName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByLocationWithHttpMessagesAsync(locationName, onlyLatestPerDatabase, databaseState, null, cancellationToken).ConfigureAwait(false)) { @@ -552,7 +552,7 @@ public static void Delete(this ILongTermRetentionBackupsOperations operations, s /// Whether to query against just live databases, just deleted databases, or /// all databases. Possible values include: 'All', 'Live', 'Deleted' /// - public static IPage ListByServer(this ILongTermRetentionBackupsOperations operations, string locationName, string longTermRetentionServerName, bool? onlyLatestPerDatabase = default(bool?), LongTermRetentionDatabaseState? databaseState = default(LongTermRetentionDatabaseState?)) + public static IPage ListByServer(this ILongTermRetentionBackupsOperations operations, string locationName, string longTermRetentionServerName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string)) { return operations.ListByServerAsync(locationName, longTermRetentionServerName, onlyLatestPerDatabase, databaseState).GetAwaiter().GetResult(); } @@ -579,7 +579,7 @@ public static void Delete(this ILongTermRetentionBackupsOperations operations, s /// /// The cancellation token. /// - public static async Task> ListByServerAsync(this ILongTermRetentionBackupsOperations operations, string locationName, string longTermRetentionServerName, bool? onlyLatestPerDatabase = default(bool?), LongTermRetentionDatabaseState? databaseState = default(LongTermRetentionDatabaseState?), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListByServerAsync(this ILongTermRetentionBackupsOperations operations, string locationName, string longTermRetentionServerName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByServerWithHttpMessagesAsync(locationName, longTermRetentionServerName, onlyLatestPerDatabase, databaseState, null, cancellationToken).ConfigureAwait(false)) { diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/LongTermRetentionManagedInstanceBackupsOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/LongTermRetentionManagedInstanceBackupsOperations.cs index a43b49f3968c..67eb9ce02161 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/LongTermRetentionManagedInstanceBackupsOperations.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/LongTermRetentionManagedInstanceBackupsOperations.cs @@ -330,7 +330,7 @@ internal LongTermRetentionManagedInstanceBackupsOperations(SqlManagementClient c /// /// A response object containing the response body and response headers. /// - public async Task>> ListByDatabaseWithHttpMessagesAsync(string locationName, string managedInstanceName, string databaseName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState1? databaseState = default(DatabaseState1?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByDatabaseWithHttpMessagesAsync(string locationName, string managedInstanceName, string databaseName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (locationName == null) { @@ -379,7 +379,7 @@ internal LongTermRetentionManagedInstanceBackupsOperations(SqlManagementClient c } if (databaseState != null) { - _queryParameters.Add(string.Format("databaseState={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(databaseState, Client.SerializationSettings).Trim('"')))); + _queryParameters.Add(string.Format("databaseState={0}", System.Uri.EscapeDataString(databaseState))); } if (apiVersion != null) { @@ -547,7 +547,7 @@ internal LongTermRetentionManagedInstanceBackupsOperations(SqlManagementClient c /// /// A response object containing the response body and response headers. /// - public async Task>> ListByInstanceWithHttpMessagesAsync(string locationName, string managedInstanceName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState2? databaseState = default(DatabaseState2?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByInstanceWithHttpMessagesAsync(string locationName, string managedInstanceName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (locationName == null) { @@ -590,7 +590,7 @@ internal LongTermRetentionManagedInstanceBackupsOperations(SqlManagementClient c } if (databaseState != null) { - _queryParameters.Add(string.Format("databaseState={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(databaseState, Client.SerializationSettings).Trim('"')))); + _queryParameters.Add(string.Format("databaseState={0}", System.Uri.EscapeDataString(databaseState))); } if (apiVersion != null) { @@ -756,7 +756,7 @@ internal LongTermRetentionManagedInstanceBackupsOperations(SqlManagementClient c /// /// A response object containing the response body and response headers. /// - public async Task>> ListByLocationWithHttpMessagesAsync(string locationName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState3? databaseState = default(DatabaseState3?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByLocationWithHttpMessagesAsync(string locationName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (locationName == null) { @@ -793,7 +793,7 @@ internal LongTermRetentionManagedInstanceBackupsOperations(SqlManagementClient c } if (databaseState != null) { - _queryParameters.Add(string.Format("databaseState={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(databaseState, Client.SerializationSettings).Trim('"')))); + _queryParameters.Add(string.Format("databaseState={0}", System.Uri.EscapeDataString(databaseState))); } if (apiVersion != null) { @@ -1222,7 +1222,7 @@ internal LongTermRetentionManagedInstanceBackupsOperations(SqlManagementClient c /// /// A response object containing the response body and response headers. /// - public async Task>> ListByResourceGroupDatabaseWithHttpMessagesAsync(string resourceGroupName, string locationName, string managedInstanceName, string databaseName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState4? databaseState = default(DatabaseState4?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByResourceGroupDatabaseWithHttpMessagesAsync(string resourceGroupName, string locationName, string managedInstanceName, string databaseName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (resourceGroupName == null) { @@ -1277,7 +1277,7 @@ internal LongTermRetentionManagedInstanceBackupsOperations(SqlManagementClient c } if (databaseState != null) { - _queryParameters.Add(string.Format("databaseState={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(databaseState, Client.SerializationSettings).Trim('"')))); + _queryParameters.Add(string.Format("databaseState={0}", System.Uri.EscapeDataString(databaseState))); } if (apiVersion != null) { @@ -1449,7 +1449,7 @@ internal LongTermRetentionManagedInstanceBackupsOperations(SqlManagementClient c /// /// A response object containing the response body and response headers. /// - public async Task>> ListByResourceGroupInstanceWithHttpMessagesAsync(string resourceGroupName, string locationName, string managedInstanceName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState5? databaseState = default(DatabaseState5?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByResourceGroupInstanceWithHttpMessagesAsync(string resourceGroupName, string locationName, string managedInstanceName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (resourceGroupName == null) { @@ -1498,7 +1498,7 @@ internal LongTermRetentionManagedInstanceBackupsOperations(SqlManagementClient c } if (databaseState != null) { - _queryParameters.Add(string.Format("databaseState={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(databaseState, Client.SerializationSettings).Trim('"')))); + _queryParameters.Add(string.Format("databaseState={0}", System.Uri.EscapeDataString(databaseState))); } if (apiVersion != null) { @@ -1668,7 +1668,7 @@ internal LongTermRetentionManagedInstanceBackupsOperations(SqlManagementClient c /// /// A response object containing the response body and response headers. /// - public async Task>> ListByResourceGroupLocationWithHttpMessagesAsync(string resourceGroupName, string locationName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState6? databaseState = default(DatabaseState6?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByResourceGroupLocationWithHttpMessagesAsync(string resourceGroupName, string locationName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (resourceGroupName == null) { @@ -1711,7 +1711,7 @@ internal LongTermRetentionManagedInstanceBackupsOperations(SqlManagementClient c } if (databaseState != null) { - _queryParameters.Add(string.Format("databaseState={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(databaseState, Client.SerializationSettings).Trim('"')))); + _queryParameters.Add(string.Format("databaseState={0}", System.Uri.EscapeDataString(databaseState))); } if (apiVersion != null) { diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/LongTermRetentionManagedInstanceBackupsOperationsExtensions.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/LongTermRetentionManagedInstanceBackupsOperationsExtensions.cs index 53fb4295a4d8..ff1fd78f3bfb 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/LongTermRetentionManagedInstanceBackupsOperationsExtensions.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/LongTermRetentionManagedInstanceBackupsOperationsExtensions.cs @@ -144,7 +144,7 @@ public static void Delete(this ILongTermRetentionManagedInstanceBackupsOperation /// Whether to query against just live databases, just deleted databases, or /// all databases. Possible values include: 'All', 'Live', 'Deleted' /// - public static IPage ListByDatabase(this ILongTermRetentionManagedInstanceBackupsOperations operations, string locationName, string managedInstanceName, string databaseName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState1? databaseState = default(DatabaseState1?)) + public static IPage ListByDatabase(this ILongTermRetentionManagedInstanceBackupsOperations operations, string locationName, string managedInstanceName, string databaseName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string)) { return operations.ListByDatabaseAsync(locationName, managedInstanceName, databaseName, onlyLatestPerDatabase, databaseState).GetAwaiter().GetResult(); } @@ -174,7 +174,7 @@ public static void Delete(this ILongTermRetentionManagedInstanceBackupsOperation /// /// The cancellation token. /// - public static async Task> ListByDatabaseAsync(this ILongTermRetentionManagedInstanceBackupsOperations operations, string locationName, string managedInstanceName, string databaseName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState1? databaseState = default(DatabaseState1?), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListByDatabaseAsync(this ILongTermRetentionManagedInstanceBackupsOperations operations, string locationName, string managedInstanceName, string databaseName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByDatabaseWithHttpMessagesAsync(locationName, managedInstanceName, databaseName, onlyLatestPerDatabase, databaseState, null, cancellationToken).ConfigureAwait(false)) { @@ -201,7 +201,7 @@ public static void Delete(this ILongTermRetentionManagedInstanceBackupsOperation /// Whether to query against just live databases, just deleted databases, or /// all databases. Possible values include: 'All', 'Live', 'Deleted' /// - public static IPage ListByInstance(this ILongTermRetentionManagedInstanceBackupsOperations operations, string locationName, string managedInstanceName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState2? databaseState = default(DatabaseState2?)) + public static IPage ListByInstance(this ILongTermRetentionManagedInstanceBackupsOperations operations, string locationName, string managedInstanceName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string)) { return operations.ListByInstanceAsync(locationName, managedInstanceName, onlyLatestPerDatabase, databaseState).GetAwaiter().GetResult(); } @@ -228,7 +228,7 @@ public static void Delete(this ILongTermRetentionManagedInstanceBackupsOperation /// /// The cancellation token. /// - public static async Task> ListByInstanceAsync(this ILongTermRetentionManagedInstanceBackupsOperations operations, string locationName, string managedInstanceName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState2? databaseState = default(DatabaseState2?), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListByInstanceAsync(this ILongTermRetentionManagedInstanceBackupsOperations operations, string locationName, string managedInstanceName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByInstanceWithHttpMessagesAsync(locationName, managedInstanceName, onlyLatestPerDatabase, databaseState, null, cancellationToken).ConfigureAwait(false)) { @@ -253,7 +253,7 @@ public static void Delete(this ILongTermRetentionManagedInstanceBackupsOperation /// Whether to query against just live databases, just deleted databases, or /// all databases. Possible values include: 'All', 'Live', 'Deleted' /// - public static IPage ListByLocation(this ILongTermRetentionManagedInstanceBackupsOperations operations, string locationName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState3? databaseState = default(DatabaseState3?)) + public static IPage ListByLocation(this ILongTermRetentionManagedInstanceBackupsOperations operations, string locationName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string)) { return operations.ListByLocationAsync(locationName, onlyLatestPerDatabase, databaseState).GetAwaiter().GetResult(); } @@ -278,7 +278,7 @@ public static void Delete(this ILongTermRetentionManagedInstanceBackupsOperation /// /// The cancellation token. /// - public static async Task> ListByLocationAsync(this ILongTermRetentionManagedInstanceBackupsOperations operations, string locationName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState3? databaseState = default(DatabaseState3?), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListByLocationAsync(this ILongTermRetentionManagedInstanceBackupsOperations operations, string locationName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByLocationWithHttpMessagesAsync(locationName, onlyLatestPerDatabase, databaseState, null, cancellationToken).ConfigureAwait(false)) { @@ -429,7 +429,7 @@ public static void DeleteByResourceGroup(this ILongTermRetentionManagedInstanceB /// Whether to query against just live databases, just deleted databases, or /// all databases. Possible values include: 'All', 'Live', 'Deleted' /// - public static IPage ListByResourceGroupDatabase(this ILongTermRetentionManagedInstanceBackupsOperations operations, string resourceGroupName, string locationName, string managedInstanceName, string databaseName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState4? databaseState = default(DatabaseState4?)) + public static IPage ListByResourceGroupDatabase(this ILongTermRetentionManagedInstanceBackupsOperations operations, string resourceGroupName, string locationName, string managedInstanceName, string databaseName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string)) { return operations.ListByResourceGroupDatabaseAsync(resourceGroupName, locationName, managedInstanceName, databaseName, onlyLatestPerDatabase, databaseState).GetAwaiter().GetResult(); } @@ -463,7 +463,7 @@ public static void DeleteByResourceGroup(this ILongTermRetentionManagedInstanceB /// /// The cancellation token. /// - public static async Task> ListByResourceGroupDatabaseAsync(this ILongTermRetentionManagedInstanceBackupsOperations operations, string resourceGroupName, string locationName, string managedInstanceName, string databaseName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState4? databaseState = default(DatabaseState4?), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListByResourceGroupDatabaseAsync(this ILongTermRetentionManagedInstanceBackupsOperations operations, string resourceGroupName, string locationName, string managedInstanceName, string databaseName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByResourceGroupDatabaseWithHttpMessagesAsync(resourceGroupName, locationName, managedInstanceName, databaseName, onlyLatestPerDatabase, databaseState, null, cancellationToken).ConfigureAwait(false)) { @@ -494,7 +494,7 @@ public static void DeleteByResourceGroup(this ILongTermRetentionManagedInstanceB /// Whether to query against just live databases, just deleted databases, or /// all databases. Possible values include: 'All', 'Live', 'Deleted' /// - public static IPage ListByResourceGroupInstance(this ILongTermRetentionManagedInstanceBackupsOperations operations, string resourceGroupName, string locationName, string managedInstanceName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState5? databaseState = default(DatabaseState5?)) + public static IPage ListByResourceGroupInstance(this ILongTermRetentionManagedInstanceBackupsOperations operations, string resourceGroupName, string locationName, string managedInstanceName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string)) { return operations.ListByResourceGroupInstanceAsync(resourceGroupName, locationName, managedInstanceName, onlyLatestPerDatabase, databaseState).GetAwaiter().GetResult(); } @@ -525,7 +525,7 @@ public static void DeleteByResourceGroup(this ILongTermRetentionManagedInstanceB /// /// The cancellation token. /// - public static async Task> ListByResourceGroupInstanceAsync(this ILongTermRetentionManagedInstanceBackupsOperations operations, string resourceGroupName, string locationName, string managedInstanceName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState5? databaseState = default(DatabaseState5?), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListByResourceGroupInstanceAsync(this ILongTermRetentionManagedInstanceBackupsOperations operations, string resourceGroupName, string locationName, string managedInstanceName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByResourceGroupInstanceWithHttpMessagesAsync(resourceGroupName, locationName, managedInstanceName, onlyLatestPerDatabase, databaseState, null, cancellationToken).ConfigureAwait(false)) { @@ -554,7 +554,7 @@ public static void DeleteByResourceGroup(this ILongTermRetentionManagedInstanceB /// Whether to query against just live databases, just deleted databases, or /// all databases. Possible values include: 'All', 'Live', 'Deleted' /// - public static IPage ListByResourceGroupLocation(this ILongTermRetentionManagedInstanceBackupsOperations operations, string resourceGroupName, string locationName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState6? databaseState = default(DatabaseState6?)) + public static IPage ListByResourceGroupLocation(this ILongTermRetentionManagedInstanceBackupsOperations operations, string resourceGroupName, string locationName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string)) { return operations.ListByResourceGroupLocationAsync(resourceGroupName, locationName, onlyLatestPerDatabase, databaseState).GetAwaiter().GetResult(); } @@ -583,7 +583,7 @@ public static void DeleteByResourceGroup(this ILongTermRetentionManagedInstanceB /// /// The cancellation token. /// - public static async Task> ListByResourceGroupLocationAsync(this ILongTermRetentionManagedInstanceBackupsOperations operations, string resourceGroupName, string locationName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState6? databaseState = default(DatabaseState6?), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListByResourceGroupLocationAsync(this ILongTermRetentionManagedInstanceBackupsOperations operations, string resourceGroupName, string locationName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByResourceGroupLocationWithHttpMessagesAsync(resourceGroupName, locationName, onlyLatestPerDatabase, databaseState, null, cancellationToken).ConfigureAwait(false)) { diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedInstancesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedInstancesOperations.cs index 9dad29e0afce..aaa3ffaac776 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedInstancesOperations.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedInstancesOperations.cs @@ -69,7 +69,7 @@ internal ManagedInstancesOperations(SqlManagementClient client) /// /// The cancellation token. /// - public async Task FailoverWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, ReplicaType? replicaType = default(ReplicaType?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task FailoverWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, string replicaType = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { // Send request AzureOperationResponse _response = await BeginFailoverWithHttpMessagesAsync(resourceGroupName, managedInstanceName, replicaType, customHeaders, cancellationToken).ConfigureAwait(false); @@ -934,7 +934,7 @@ internal ManagedInstancesOperations(SqlManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task BeginFailoverWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, ReplicaType? replicaType = default(ReplicaType?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task BeginFailoverWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, string replicaType = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (resourceGroupName == null) { @@ -991,7 +991,7 @@ internal ManagedInstancesOperations(SqlManagementClient client) } if (replicaType != null) { - _queryParameters.Add(string.Format("replicaType={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(replicaType, Client.SerializationSettings).Trim('"')))); + _queryParameters.Add(string.Format("replicaType={0}", System.Uri.EscapeDataString(replicaType))); } if (_queryParameters.Count > 0) { diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedInstancesOperationsExtensions.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedInstancesOperationsExtensions.cs index 7e596b5ca65f..4f774c2c2835 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedInstancesOperationsExtensions.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedInstancesOperationsExtensions.cs @@ -37,7 +37,7 @@ public static partial class ManagedInstancesOperationsExtensions /// The type of replica to be failed over. Possible values include: 'Primary', /// 'ReadableSecondary' /// - public static void Failover(this IManagedInstancesOperations operations, string resourceGroupName, string managedInstanceName, ReplicaType? replicaType = default(ReplicaType?)) + public static void Failover(this IManagedInstancesOperations operations, string resourceGroupName, string managedInstanceName, string replicaType = default(string)) { operations.FailoverAsync(resourceGroupName, managedInstanceName, replicaType).GetAwaiter().GetResult(); } @@ -61,7 +61,7 @@ public static partial class ManagedInstancesOperationsExtensions /// /// The cancellation token. /// - public static async Task FailoverAsync(this IManagedInstancesOperations operations, string resourceGroupName, string managedInstanceName, ReplicaType? replicaType = default(ReplicaType?), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task FailoverAsync(this IManagedInstancesOperations operations, string resourceGroupName, string managedInstanceName, string replicaType = default(string), CancellationToken cancellationToken = default(CancellationToken)) { (await operations.FailoverWithHttpMessagesAsync(resourceGroupName, managedInstanceName, replicaType, null, cancellationToken).ConfigureAwait(false)).Dispose(); } @@ -365,7 +365,7 @@ public static IPage List(this IManagedInstancesOperations opera /// The type of replica to be failed over. Possible values include: 'Primary', /// 'ReadableSecondary' /// - public static void BeginFailover(this IManagedInstancesOperations operations, string resourceGroupName, string managedInstanceName, ReplicaType? replicaType = default(ReplicaType?)) + public static void BeginFailover(this IManagedInstancesOperations operations, string resourceGroupName, string managedInstanceName, string replicaType = default(string)) { operations.BeginFailoverAsync(resourceGroupName, managedInstanceName, replicaType).GetAwaiter().GetResult(); } @@ -389,7 +389,7 @@ public static IPage List(this IManagedInstancesOperations opera /// /// The cancellation token. /// - public static async Task BeginFailoverAsync(this IManagedInstancesOperations operations, string resourceGroupName, string managedInstanceName, ReplicaType? replicaType = default(ReplicaType?), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task BeginFailoverAsync(this IManagedInstancesOperations operations, string resourceGroupName, string managedInstanceName, string replicaType = default(string), CancellationToken cancellationToken = default(CancellationToken)) { (await operations.BeginFailoverWithHttpMessagesAsync(resourceGroupName, managedInstanceName, replicaType, null, cancellationToken).ConfigureAwait(false)).Dispose(); } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/AutoPauseDelayTimeRange.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/AutoPauseDelayTimeRange.cs index 4aa00ee16aaf..e516ef733611 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/AutoPauseDelayTimeRange.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/AutoPauseDelayTimeRange.cs @@ -39,7 +39,7 @@ public AutoPauseDelayTimeRange() /// Possible values include: 'Minutes' /// Value that is used to not pause /// (infinite delay before pause) - public AutoPauseDelayTimeRange(int? minValue = default(int?), int? maxValue = default(int?), int? stepSize = default(int?), int? defaultProperty = default(int?), PauseDelayTimeUnit? unit = default(PauseDelayTimeUnit?), int? doNotPauseValue = default(int?)) + public AutoPauseDelayTimeRange(int? minValue = default(int?), int? maxValue = default(int?), int? stepSize = default(int?), int? defaultProperty = default(int?), string unit = default(string), int? doNotPauseValue = default(int?)) { MinValue = minValue; MaxValue = maxValue; @@ -85,7 +85,7 @@ public AutoPauseDelayTimeRange() /// include: 'Minutes' /// [JsonProperty(PropertyName = "unit")] - public PauseDelayTimeUnit? Unit { get; private set; } + public string Unit { get; private set; } /// /// Gets value that is used to not pause (infinite delay before pause) diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/CapabilityGroup.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/CapabilityGroup.cs index 70665148b823..b1b3d583cc8f 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/CapabilityGroup.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/CapabilityGroup.cs @@ -10,102 +10,16 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for CapabilityGroup. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(CapabilityGroupConverter))] - public struct CapabilityGroup : System.IEquatable + public static class CapabilityGroup { - private CapabilityGroup(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly CapabilityGroup SupportedEditions = "supportedEditions"; - - public static readonly CapabilityGroup SupportedElasticPoolEditions = "supportedElasticPoolEditions"; - - public static readonly CapabilityGroup SupportedManagedInstanceVersions = "supportedManagedInstanceVersions"; - - public static readonly CapabilityGroup SupportedInstancePoolEditions = "supportedInstancePoolEditions"; - - public static readonly CapabilityGroup SupportedManagedInstanceEditions = "supportedManagedInstanceEditions"; - - - /// - /// Underlying value of enum CapabilityGroup - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for CapabilityGroup - /// - public override string ToString() - { - return UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type CapabilityGroup - /// - public bool Equals(CapabilityGroup e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to CapabilityGroup - /// - public static implicit operator CapabilityGroup(string value) - { - return new CapabilityGroup(value); - } - - /// - /// Implicit operator to convert CapabilityGroup to string - /// - public static implicit operator string(CapabilityGroup e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum CapabilityGroup - /// - public static bool operator == (CapabilityGroup e1, CapabilityGroup e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum CapabilityGroup - /// - public static bool operator != (CapabilityGroup e1, CapabilityGroup e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for CapabilityGroup - /// - public override bool Equals(object obj) - { - return obj is CapabilityGroup && Equals((CapabilityGroup)obj); - } - - /// - /// Returns for hashCode CapabilityGroup - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string SupportedEditions = "supportedEditions"; + public const string SupportedElasticPoolEditions = "supportedElasticPoolEditions"; + public const string SupportedManagedInstanceVersions = "supportedManagedInstanceVersions"; + public const string SupportedInstancePoolEditions = "supportedInstancePoolEditions"; + public const string SupportedManagedInstanceEditions = "supportedManagedInstanceEditions"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/CapabilityGroupConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/CapabilityGroupConverter.cs deleted file mode 100644 index b648ba1c90cf..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/CapabilityGroupConverter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for CapabilityGroup. - /// - public sealed class CapabilityGroupConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to CapabilityGroup by the - /// converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(CapabilityGroup).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to CapabilityGroup. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (CapabilityGroup)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for CapabilityGroup for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/CatalogCollationType.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/CatalogCollationType.cs index f16f92de27e9..9f424cc32d9b 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/CatalogCollationType.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/CatalogCollationType.cs @@ -10,96 +10,13 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for CatalogCollationType. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(CatalogCollationTypeConverter))] - public struct CatalogCollationType : System.IEquatable + public static class CatalogCollationType { - private CatalogCollationType(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly CatalogCollationType DATABASEDEFAULT = "DATABASE_DEFAULT"; - - public static readonly CatalogCollationType SQLLatin1GeneralCP1CIAS = "SQL_Latin1_General_CP1_CI_AS"; - - - /// - /// Underlying value of enum CatalogCollationType - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for CatalogCollationType - /// - public override string ToString() - { - return UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type CatalogCollationType - /// - public bool Equals(CatalogCollationType e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to CatalogCollationType - /// - public static implicit operator CatalogCollationType(string value) - { - return new CatalogCollationType(value); - } - - /// - /// Implicit operator to convert CatalogCollationType to string - /// - public static implicit operator string(CatalogCollationType e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum CatalogCollationType - /// - public static bool operator == (CatalogCollationType e1, CatalogCollationType e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum CatalogCollationType - /// - public static bool operator != (CatalogCollationType e1, CatalogCollationType e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for CatalogCollationType - /// - public override bool Equals(object obj) - { - return obj is CatalogCollationType && Equals((CatalogCollationType)obj); - } - - /// - /// Returns for hashCode CatalogCollationType - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string DATABASEDEFAULT = "DATABASE_DEFAULT"; + public const string SQLLatin1GeneralCP1CIAS = "SQL_Latin1_General_CP1_CI_AS"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/CatalogCollationTypeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/CatalogCollationTypeConverter.cs deleted file mode 100644 index f605382139bd..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/CatalogCollationTypeConverter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for CatalogCollationType. - /// - public sealed class CatalogCollationTypeConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to CatalogCollationType by - /// the converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(CatalogCollationType).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to CatalogCollationType. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (CatalogCollationType)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for CatalogCollationType for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/CreateMode.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/CreateMode.cs index 187d21aa3da5..e8415a7b5ea0 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/CreateMode.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/CreateMode.cs @@ -10,112 +10,21 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for CreateMode. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(CreateModeConverter))] - public struct CreateMode : System.IEquatable + public static class CreateMode { - private CreateMode(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly CreateMode Default = "Default"; - - public static readonly CreateMode Copy = "Copy"; - - public static readonly CreateMode Secondary = "Secondary"; - - public static readonly CreateMode PointInTimeRestore = "PointInTimeRestore"; - - public static readonly CreateMode Restore = "Restore"; - - public static readonly CreateMode Recovery = "Recovery"; - - public static readonly CreateMode RestoreExternalBackup = "RestoreExternalBackup"; - - public static readonly CreateMode RestoreExternalBackupSecondary = "RestoreExternalBackupSecondary"; - - public static readonly CreateMode RestoreLongTermRetentionBackup = "RestoreLongTermRetentionBackup"; - - public static readonly CreateMode OnlineSecondary = "OnlineSecondary"; - - - /// - /// Underlying value of enum CreateMode - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for CreateMode - /// - public override string ToString() - { - return UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type CreateMode - /// - public bool Equals(CreateMode e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to CreateMode - /// - public static implicit operator CreateMode(string value) - { - return new CreateMode(value); - } - - /// - /// Implicit operator to convert CreateMode to string - /// - public static implicit operator string(CreateMode e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum CreateMode - /// - public static bool operator == (CreateMode e1, CreateMode e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum CreateMode - /// - public static bool operator != (CreateMode e1, CreateMode e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for CreateMode - /// - public override bool Equals(object obj) - { - return obj is CreateMode && Equals((CreateMode)obj); - } - - /// - /// Returns for hashCode CreateMode - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string Default = "Default"; + public const string Copy = "Copy"; + public const string Secondary = "Secondary"; + public const string PointInTimeRestore = "PointInTimeRestore"; + public const string Restore = "Restore"; + public const string Recovery = "Recovery"; + public const string RestoreExternalBackup = "RestoreExternalBackup"; + public const string RestoreExternalBackupSecondary = "RestoreExternalBackupSecondary"; + public const string RestoreLongTermRetentionBackup = "RestoreLongTermRetentionBackup"; + public const string OnlineSecondary = "OnlineSecondary"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/CreateModeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/CreateModeConverter.cs deleted file mode 100644 index b46c3e6cdda3..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/CreateModeConverter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for CreateMode. - /// - public sealed class CreateModeConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to CreateMode by the - /// converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(CreateMode).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to CreateMode. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (CreateMode)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for CreateMode for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/Database.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/Database.cs index 70775be1d31a..29cf0e8f0a62 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/Database.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/Database.cs @@ -184,7 +184,7 @@ public Database() /// The date when database was resumed by /// user action or database login (ISO8601 format). Null if the /// database is paused. - public Database(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), Sku sku = default(Sku), string kind = default(string), string managedBy = default(string), CreateMode? createMode = default(CreateMode?), string collation = default(string), long? maxSizeBytes = default(long?), SampleName? sampleName = default(SampleName?), string elasticPoolId = default(string), string sourceDatabaseId = default(string), DatabaseStatus? status = default(DatabaseStatus?), System.Guid? databaseId = default(System.Guid?), System.DateTime? creationDate = default(System.DateTime?), string currentServiceObjectiveName = default(string), string requestedServiceObjectiveName = default(string), string defaultSecondaryLocation = default(string), string failoverGroupId = default(string), System.DateTime? restorePointInTime = default(System.DateTime?), System.DateTime? sourceDatabaseDeletionDate = default(System.DateTime?), string recoveryServicesRecoveryPointId = default(string), string longTermRetentionBackupResourceId = default(string), string recoverableDatabaseId = default(string), string restorableDroppedDatabaseId = default(string), CatalogCollationType? catalogCollation = default(CatalogCollationType?), bool? zoneRedundant = default(bool?), DatabaseLicenseType? licenseType = default(DatabaseLicenseType?), long? maxLogSizeBytes = default(long?), System.DateTime? earliestRestoreDate = default(System.DateTime?), DatabaseReadScale? readScale = default(DatabaseReadScale?), int? readReplicaCount = default(int?), Sku currentSku = default(Sku), int? autoPauseDelay = default(int?), StorageAccountType? storageAccountType = default(StorageAccountType?), double? minCapacity = default(double?), System.DateTime? pausedDate = default(System.DateTime?), System.DateTime? resumedDate = default(System.DateTime?)) + public Database(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), Sku sku = default(Sku), string kind = default(string), string managedBy = default(string), string createMode = default(string), string collation = default(string), long? maxSizeBytes = default(long?), string sampleName = default(string), string elasticPoolId = default(string), string sourceDatabaseId = default(string), string status = default(string), System.Guid? databaseId = default(System.Guid?), System.DateTime? creationDate = default(System.DateTime?), string currentServiceObjectiveName = default(string), string requestedServiceObjectiveName = default(string), string defaultSecondaryLocation = default(string), string failoverGroupId = default(string), System.DateTime? restorePointInTime = default(System.DateTime?), System.DateTime? sourceDatabaseDeletionDate = default(System.DateTime?), string recoveryServicesRecoveryPointId = default(string), string longTermRetentionBackupResourceId = default(string), string recoverableDatabaseId = default(string), string restorableDroppedDatabaseId = default(string), string catalogCollation = default(string), bool? zoneRedundant = default(bool?), string licenseType = default(string), long? maxLogSizeBytes = default(long?), System.DateTime? earliestRestoreDate = default(System.DateTime?), string readScale = default(string), int? readReplicaCount = default(int?), Sku currentSku = default(Sku), int? autoPauseDelay = default(int?), string storageAccountType = default(string), double? minCapacity = default(double?), System.DateTime? pausedDate = default(System.DateTime?), System.DateTime? resumedDate = default(System.DateTime?)) : base(location, id, name, type, tags) { Sku = sku; @@ -307,7 +307,7 @@ public Database() /// 'OnlineSecondary' /// [JsonProperty(PropertyName = "properties.createMode")] - public CreateMode? CreateMode { get; set; } + public string CreateMode { get; set; } /// /// Gets or sets the collation of the database. @@ -327,7 +327,7 @@ public Database() /// 'WideWorldImportersStd', 'WideWorldImportersFull' /// [JsonProperty(PropertyName = "properties.sampleName")] - public SampleName? SampleName { get; set; } + public string SampleName { get; set; } /// /// Gets or sets the resource identifier of the elastic pool containing @@ -353,7 +353,7 @@ public Database() /// 'OnlineChangingDwPerformanceTiers', 'Disabled' /// [JsonProperty(PropertyName = "properties.status")] - public DatabaseStatus? Status { get; private set; } + public string Status { get; private set; } /// /// Gets the ID of the database. @@ -438,7 +438,7 @@ public Database() /// include: 'DATABASE_DEFAULT', 'SQL_Latin1_General_CP1_CI_AS' /// [JsonProperty(PropertyName = "properties.catalogCollation")] - public CatalogCollationType? CatalogCollation { get; set; } + public string CatalogCollation { get; set; } /// /// Gets or sets whether or not this database is zone redundant, which @@ -455,7 +455,7 @@ public Database() /// values include: 'LicenseIncluded', 'BasePrice' /// [JsonProperty(PropertyName = "properties.licenseType")] - public DatabaseLicenseType? LicenseType { get; set; } + public string LicenseType { get; set; } /// /// Gets the max log size for this database. @@ -477,7 +477,7 @@ public Database() /// the same region. Possible values include: 'Enabled', 'Disabled' /// [JsonProperty(PropertyName = "properties.readScale")] - public DatabaseReadScale? ReadScale { get; set; } + public string ReadScale { get; set; } /// /// Gets or sets the number of readonly secondary replicas associated @@ -505,7 +505,7 @@ public Database() /// (GeoRedundantStorage). Possible values include: 'GRS', 'LRS', 'ZRS' /// [JsonProperty(PropertyName = "properties.storageAccountType")] - public StorageAccountType? StorageAccountType { get; set; } + public string StorageAccountType { get; set; } /// /// Gets or sets minimal capacity that database will always have diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseLicenseType.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseLicenseType.cs index 18b62df46b65..8fec77be3faf 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseLicenseType.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseLicenseType.cs @@ -10,96 +10,13 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for DatabaseLicenseType. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(DatabaseLicenseTypeConverter))] - public struct DatabaseLicenseType : System.IEquatable + public static class DatabaseLicenseType { - private DatabaseLicenseType(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly DatabaseLicenseType LicenseIncluded = "LicenseIncluded"; - - public static readonly DatabaseLicenseType BasePrice = "BasePrice"; - - - /// - /// Underlying value of enum DatabaseLicenseType - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for DatabaseLicenseType - /// - public override string ToString() - { - return UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type DatabaseLicenseType - /// - public bool Equals(DatabaseLicenseType e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to DatabaseLicenseType - /// - public static implicit operator DatabaseLicenseType(string value) - { - return new DatabaseLicenseType(value); - } - - /// - /// Implicit operator to convert DatabaseLicenseType to string - /// - public static implicit operator string(DatabaseLicenseType e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum DatabaseLicenseType - /// - public static bool operator == (DatabaseLicenseType e1, DatabaseLicenseType e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum DatabaseLicenseType - /// - public static bool operator != (DatabaseLicenseType e1, DatabaseLicenseType e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for DatabaseLicenseType - /// - public override bool Equals(object obj) - { - return obj is DatabaseLicenseType && Equals((DatabaseLicenseType)obj); - } - - /// - /// Returns for hashCode DatabaseLicenseType - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string LicenseIncluded = "LicenseIncluded"; + public const string BasePrice = "BasePrice"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseLicenseTypeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseLicenseTypeConverter.cs deleted file mode 100644 index d72fe3f966be..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseLicenseTypeConverter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for DatabaseLicenseType. - /// - public sealed class DatabaseLicenseTypeConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to DatabaseLicenseType by - /// the converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(DatabaseLicenseType).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to DatabaseLicenseType. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (DatabaseLicenseType)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for DatabaseLicenseType for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseOperation.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseOperation.cs index 4af090f5ddb6..98d64dc4bfb6 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseOperation.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseOperation.cs @@ -58,7 +58,7 @@ public DatabaseOperation() /// The operation description. /// Whether the operation can be /// cancelled. - public DatabaseOperation(string id = default(string), string name = default(string), string type = default(string), string databaseName = default(string), string operation = default(string), string operationFriendlyName = default(string), int? percentComplete = default(int?), string serverName = default(string), System.DateTime? startTime = default(System.DateTime?), ManagementOperationState? state = default(ManagementOperationState?), int? errorCode = default(int?), string errorDescription = default(string), int? errorSeverity = default(int?), bool? isUserError = default(bool?), System.DateTime? estimatedCompletionTime = default(System.DateTime?), string description = default(string), bool? isCancellable = default(bool?)) + public DatabaseOperation(string id = default(string), string name = default(string), string type = default(string), string databaseName = default(string), string operation = default(string), string operationFriendlyName = default(string), int? percentComplete = default(int?), string serverName = default(string), System.DateTime? startTime = default(System.DateTime?), string state = default(string), int? errorCode = default(int?), string errorDescription = default(string), int? errorSeverity = default(int?), bool? isUserError = default(bool?), System.DateTime? estimatedCompletionTime = default(System.DateTime?), string description = default(string), bool? isCancellable = default(bool?)) : base(id, name, type) { DatabaseName = databaseName; @@ -125,7 +125,7 @@ public DatabaseOperation() /// 'Cancelled' /// [JsonProperty(PropertyName = "properties.state")] - public ManagementOperationState? State { get; private set; } + public string State { get; private set; } /// /// Gets the operation error code. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseReadScale.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseReadScale.cs index 4e0dccd1f32b..be48a34acdcf 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseReadScale.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseReadScale.cs @@ -10,96 +10,13 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for DatabaseReadScale. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(DatabaseReadScaleConverter))] - public struct DatabaseReadScale : System.IEquatable + public static class DatabaseReadScale { - private DatabaseReadScale(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly DatabaseReadScale Enabled = "Enabled"; - - public static readonly DatabaseReadScale Disabled = "Disabled"; - - - /// - /// Underlying value of enum DatabaseReadScale - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for DatabaseReadScale - /// - public override string ToString() - { - return UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type DatabaseReadScale - /// - public bool Equals(DatabaseReadScale e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to DatabaseReadScale - /// - public static implicit operator DatabaseReadScale(string value) - { - return new DatabaseReadScale(value); - } - - /// - /// Implicit operator to convert DatabaseReadScale to string - /// - public static implicit operator string(DatabaseReadScale e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum DatabaseReadScale - /// - public static bool operator == (DatabaseReadScale e1, DatabaseReadScale e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum DatabaseReadScale - /// - public static bool operator != (DatabaseReadScale e1, DatabaseReadScale e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for DatabaseReadScale - /// - public override bool Equals(object obj) - { - return obj is DatabaseReadScale && Equals((DatabaseReadScale)obj); - } - - /// - /// Returns for hashCode DatabaseReadScale - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string Enabled = "Enabled"; + public const string Disabled = "Disabled"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseReadScaleConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseReadScaleConverter.cs deleted file mode 100644 index 976b4109ab1d..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseReadScaleConverter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for DatabaseReadScale. - /// - public sealed class DatabaseReadScaleConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to DatabaseReadScale by the - /// converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(DatabaseReadScale).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to DatabaseReadScale. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (DatabaseReadScale)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for DatabaseReadScale for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState1.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState1.cs index 649b01882773..2692f1d2ec2c 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState1.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState1.cs @@ -10,98 +10,14 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for DatabaseState1. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(DatabaseState1Converter))] - public struct DatabaseState1 : System.IEquatable + public static class DatabaseState1 { - private DatabaseState1(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly DatabaseState1 All = "All"; - - public static readonly DatabaseState1 Live = "Live"; - - public static readonly DatabaseState1 Deleted = "Deleted"; - - - /// - /// Underlying value of enum DatabaseState1 - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for DatabaseState1 - /// - public override string ToString() - { - return UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type DatabaseState1 - /// - public bool Equals(DatabaseState1 e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to DatabaseState1 - /// - public static implicit operator DatabaseState1(string value) - { - return new DatabaseState1(value); - } - - /// - /// Implicit operator to convert DatabaseState1 to string - /// - public static implicit operator string(DatabaseState1 e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum DatabaseState1 - /// - public static bool operator == (DatabaseState1 e1, DatabaseState1 e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum DatabaseState1 - /// - public static bool operator != (DatabaseState1 e1, DatabaseState1 e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for DatabaseState1 - /// - public override bool Equals(object obj) - { - return obj is DatabaseState1 && Equals((DatabaseState1)obj); - } - - /// - /// Returns for hashCode DatabaseState1 - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string All = "All"; + public const string Live = "Live"; + public const string Deleted = "Deleted"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState1Converter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState1Converter.cs deleted file mode 100644 index da7072c0c9bc..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState1Converter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for DatabaseState1. - /// - public sealed class DatabaseState1Converter : JsonConverter - { - - /// - /// Returns if objectType can be converted to DatabaseState1 by the - /// converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(DatabaseState1).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to DatabaseState1. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (DatabaseState1)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for DatabaseState1 for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState2.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState2.cs index cbf1efaa443e..fc0c0446db5e 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState2.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState2.cs @@ -10,98 +10,14 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for DatabaseState2. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(DatabaseState2Converter))] - public struct DatabaseState2 : System.IEquatable + public static class DatabaseState2 { - private DatabaseState2(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly DatabaseState2 All = "All"; - - public static readonly DatabaseState2 Live = "Live"; - - public static readonly DatabaseState2 Deleted = "Deleted"; - - - /// - /// Underlying value of enum DatabaseState2 - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for DatabaseState2 - /// - public override string ToString() - { - return UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type DatabaseState2 - /// - public bool Equals(DatabaseState2 e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to DatabaseState2 - /// - public static implicit operator DatabaseState2(string value) - { - return new DatabaseState2(value); - } - - /// - /// Implicit operator to convert DatabaseState2 to string - /// - public static implicit operator string(DatabaseState2 e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum DatabaseState2 - /// - public static bool operator == (DatabaseState2 e1, DatabaseState2 e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum DatabaseState2 - /// - public static bool operator != (DatabaseState2 e1, DatabaseState2 e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for DatabaseState2 - /// - public override bool Equals(object obj) - { - return obj is DatabaseState2 && Equals((DatabaseState2)obj); - } - - /// - /// Returns for hashCode DatabaseState2 - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string All = "All"; + public const string Live = "Live"; + public const string Deleted = "Deleted"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState2Converter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState2Converter.cs deleted file mode 100644 index 1e4fcb54834f..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState2Converter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for DatabaseState2. - /// - public sealed class DatabaseState2Converter : JsonConverter - { - - /// - /// Returns if objectType can be converted to DatabaseState2 by the - /// converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(DatabaseState2).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to DatabaseState2. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (DatabaseState2)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for DatabaseState2 for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState3.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState3.cs index b2db5803049a..65ba2f51d2e0 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState3.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState3.cs @@ -10,98 +10,14 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for DatabaseState3. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(DatabaseState3Converter))] - public struct DatabaseState3 : System.IEquatable + public static class DatabaseState3 { - private DatabaseState3(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly DatabaseState3 All = "All"; - - public static readonly DatabaseState3 Live = "Live"; - - public static readonly DatabaseState3 Deleted = "Deleted"; - - - /// - /// Underlying value of enum DatabaseState3 - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for DatabaseState3 - /// - public override string ToString() - { - return UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type DatabaseState3 - /// - public bool Equals(DatabaseState3 e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to DatabaseState3 - /// - public static implicit operator DatabaseState3(string value) - { - return new DatabaseState3(value); - } - - /// - /// Implicit operator to convert DatabaseState3 to string - /// - public static implicit operator string(DatabaseState3 e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum DatabaseState3 - /// - public static bool operator == (DatabaseState3 e1, DatabaseState3 e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum DatabaseState3 - /// - public static bool operator != (DatabaseState3 e1, DatabaseState3 e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for DatabaseState3 - /// - public override bool Equals(object obj) - { - return obj is DatabaseState3 && Equals((DatabaseState3)obj); - } - - /// - /// Returns for hashCode DatabaseState3 - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string All = "All"; + public const string Live = "Live"; + public const string Deleted = "Deleted"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState3Converter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState3Converter.cs deleted file mode 100644 index ca2f680cafc4..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState3Converter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for DatabaseState3. - /// - public sealed class DatabaseState3Converter : JsonConverter - { - - /// - /// Returns if objectType can be converted to DatabaseState3 by the - /// converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(DatabaseState3).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to DatabaseState3. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (DatabaseState3)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for DatabaseState3 for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState4.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState4.cs index 43ad4a950640..47eff0771e7d 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState4.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState4.cs @@ -10,98 +10,14 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for DatabaseState4. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(DatabaseState4Converter))] - public struct DatabaseState4 : System.IEquatable + public static class DatabaseState4 { - private DatabaseState4(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly DatabaseState4 All = "All"; - - public static readonly DatabaseState4 Live = "Live"; - - public static readonly DatabaseState4 Deleted = "Deleted"; - - - /// - /// Underlying value of enum DatabaseState4 - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for DatabaseState4 - /// - public override string ToString() - { - return UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type DatabaseState4 - /// - public bool Equals(DatabaseState4 e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to DatabaseState4 - /// - public static implicit operator DatabaseState4(string value) - { - return new DatabaseState4(value); - } - - /// - /// Implicit operator to convert DatabaseState4 to string - /// - public static implicit operator string(DatabaseState4 e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum DatabaseState4 - /// - public static bool operator == (DatabaseState4 e1, DatabaseState4 e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum DatabaseState4 - /// - public static bool operator != (DatabaseState4 e1, DatabaseState4 e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for DatabaseState4 - /// - public override bool Equals(object obj) - { - return obj is DatabaseState4 && Equals((DatabaseState4)obj); - } - - /// - /// Returns for hashCode DatabaseState4 - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string All = "All"; + public const string Live = "Live"; + public const string Deleted = "Deleted"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState4Converter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState4Converter.cs deleted file mode 100644 index c1a2f28537f0..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState4Converter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for DatabaseState4. - /// - public sealed class DatabaseState4Converter : JsonConverter - { - - /// - /// Returns if objectType can be converted to DatabaseState4 by the - /// converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(DatabaseState4).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to DatabaseState4. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (DatabaseState4)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for DatabaseState4 for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState5.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState5.cs index 7bb73094aec1..ce9a5903a777 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState5.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState5.cs @@ -10,98 +10,14 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for DatabaseState5. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(DatabaseState5Converter))] - public struct DatabaseState5 : System.IEquatable + public static class DatabaseState5 { - private DatabaseState5(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly DatabaseState5 All = "All"; - - public static readonly DatabaseState5 Live = "Live"; - - public static readonly DatabaseState5 Deleted = "Deleted"; - - - /// - /// Underlying value of enum DatabaseState5 - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for DatabaseState5 - /// - public override string ToString() - { - return UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type DatabaseState5 - /// - public bool Equals(DatabaseState5 e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to DatabaseState5 - /// - public static implicit operator DatabaseState5(string value) - { - return new DatabaseState5(value); - } - - /// - /// Implicit operator to convert DatabaseState5 to string - /// - public static implicit operator string(DatabaseState5 e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum DatabaseState5 - /// - public static bool operator == (DatabaseState5 e1, DatabaseState5 e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum DatabaseState5 - /// - public static bool operator != (DatabaseState5 e1, DatabaseState5 e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for DatabaseState5 - /// - public override bool Equals(object obj) - { - return obj is DatabaseState5 && Equals((DatabaseState5)obj); - } - - /// - /// Returns for hashCode DatabaseState5 - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string All = "All"; + public const string Live = "Live"; + public const string Deleted = "Deleted"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState5Converter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState5Converter.cs deleted file mode 100644 index 78b6f4aa11e5..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState5Converter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for DatabaseState5. - /// - public sealed class DatabaseState5Converter : JsonConverter - { - - /// - /// Returns if objectType can be converted to DatabaseState5 by the - /// converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(DatabaseState5).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to DatabaseState5. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (DatabaseState5)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for DatabaseState5 for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState6.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState6.cs index 50cbc1fca9bf..dc5e76219007 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState6.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState6.cs @@ -10,98 +10,14 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for DatabaseState6. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(DatabaseState6Converter))] - public struct DatabaseState6 : System.IEquatable + public static class DatabaseState6 { - private DatabaseState6(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly DatabaseState6 All = "All"; - - public static readonly DatabaseState6 Live = "Live"; - - public static readonly DatabaseState6 Deleted = "Deleted"; - - - /// - /// Underlying value of enum DatabaseState6 - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for DatabaseState6 - /// - public override string ToString() - { - return UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type DatabaseState6 - /// - public bool Equals(DatabaseState6 e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to DatabaseState6 - /// - public static implicit operator DatabaseState6(string value) - { - return new DatabaseState6(value); - } - - /// - /// Implicit operator to convert DatabaseState6 to string - /// - public static implicit operator string(DatabaseState6 e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum DatabaseState6 - /// - public static bool operator == (DatabaseState6 e1, DatabaseState6 e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum DatabaseState6 - /// - public static bool operator != (DatabaseState6 e1, DatabaseState6 e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for DatabaseState6 - /// - public override bool Equals(object obj) - { - return obj is DatabaseState6 && Equals((DatabaseState6)obj); - } - - /// - /// Returns for hashCode DatabaseState6 - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string All = "All"; + public const string Live = "Live"; + public const string Deleted = "Deleted"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState6Converter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState6Converter.cs deleted file mode 100644 index 3a3b9fbabbef..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState6Converter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for DatabaseState6. - /// - public sealed class DatabaseState6Converter : JsonConverter - { - - /// - /// Returns if objectType can be converted to DatabaseState6 by the - /// converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(DatabaseState6).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to DatabaseState6. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (DatabaseState6)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for DatabaseState6 for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseStatus.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseStatus.cs index 010a9a945d48..5caced77f2da 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseStatus.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseStatus.cs @@ -10,134 +10,32 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for DatabaseStatus. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(DatabaseStatusConverter))] - public struct DatabaseStatus : System.IEquatable + public static class DatabaseStatus { - private DatabaseStatus(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly DatabaseStatus Online = "Online"; - - public static readonly DatabaseStatus Restoring = "Restoring"; - - public static readonly DatabaseStatus RecoveryPending = "RecoveryPending"; - - public static readonly DatabaseStatus Recovering = "Recovering"; - - public static readonly DatabaseStatus Suspect = "Suspect"; - - public static readonly DatabaseStatus Offline = "Offline"; - - public static readonly DatabaseStatus Standby = "Standby"; - - public static readonly DatabaseStatus Shutdown = "Shutdown"; - - public static readonly DatabaseStatus EmergencyMode = "EmergencyMode"; - - public static readonly DatabaseStatus AutoClosed = "AutoClosed"; - - public static readonly DatabaseStatus Copying = "Copying"; - - public static readonly DatabaseStatus Creating = "Creating"; - - public static readonly DatabaseStatus Inaccessible = "Inaccessible"; - - public static readonly DatabaseStatus OfflineSecondary = "OfflineSecondary"; - - public static readonly DatabaseStatus Pausing = "Pausing"; - - public static readonly DatabaseStatus Paused = "Paused"; - - public static readonly DatabaseStatus Resuming = "Resuming"; - - public static readonly DatabaseStatus Scaling = "Scaling"; - - public static readonly DatabaseStatus OfflineChangingDwPerformanceTiers = "OfflineChangingDwPerformanceTiers"; - - public static readonly DatabaseStatus OnlineChangingDwPerformanceTiers = "OnlineChangingDwPerformanceTiers"; - - public static readonly DatabaseStatus Disabled = "Disabled"; - - - /// - /// Underlying value of enum DatabaseStatus - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for DatabaseStatus - /// - public override string ToString() - { - return UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type DatabaseStatus - /// - public bool Equals(DatabaseStatus e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to DatabaseStatus - /// - public static implicit operator DatabaseStatus(string value) - { - return new DatabaseStatus(value); - } - - /// - /// Implicit operator to convert DatabaseStatus to string - /// - public static implicit operator string(DatabaseStatus e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum DatabaseStatus - /// - public static bool operator == (DatabaseStatus e1, DatabaseStatus e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum DatabaseStatus - /// - public static bool operator != (DatabaseStatus e1, DatabaseStatus e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for DatabaseStatus - /// - public override bool Equals(object obj) - { - return obj is DatabaseStatus && Equals((DatabaseStatus)obj); - } - - /// - /// Returns for hashCode DatabaseStatus - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string Online = "Online"; + public const string Restoring = "Restoring"; + public const string RecoveryPending = "RecoveryPending"; + public const string Recovering = "Recovering"; + public const string Suspect = "Suspect"; + public const string Offline = "Offline"; + public const string Standby = "Standby"; + public const string Shutdown = "Shutdown"; + public const string EmergencyMode = "EmergencyMode"; + public const string AutoClosed = "AutoClosed"; + public const string Copying = "Copying"; + public const string Creating = "Creating"; + public const string Inaccessible = "Inaccessible"; + public const string OfflineSecondary = "OfflineSecondary"; + public const string Pausing = "Pausing"; + public const string Paused = "Paused"; + public const string Resuming = "Resuming"; + public const string Scaling = "Scaling"; + public const string OfflineChangingDwPerformanceTiers = "OfflineChangingDwPerformanceTiers"; + public const string OnlineChangingDwPerformanceTiers = "OnlineChangingDwPerformanceTiers"; + public const string Disabled = "Disabled"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseStatusConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseStatusConverter.cs deleted file mode 100644 index 9e23c1e959c2..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseStatusConverter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for DatabaseStatus. - /// - public sealed class DatabaseStatusConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to DatabaseStatus by the - /// converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(DatabaseStatus).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to DatabaseStatus. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (DatabaseStatus)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for DatabaseStatus for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseUpdate.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseUpdate.cs index a008d6f9ef92..e076f81f96d2 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseUpdate.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseUpdate.cs @@ -162,7 +162,7 @@ public DatabaseUpdate() /// user action or database login (ISO8601 format). Null if the /// database is paused. /// Resource tags. - public DatabaseUpdate(Sku sku = default(Sku), CreateMode? createMode = default(CreateMode?), string collation = default(string), long? maxSizeBytes = default(long?), SampleName? sampleName = default(SampleName?), string elasticPoolId = default(string), string sourceDatabaseId = default(string), DatabaseStatus? status = default(DatabaseStatus?), System.Guid? databaseId = default(System.Guid?), System.DateTime? creationDate = default(System.DateTime?), string currentServiceObjectiveName = default(string), string requestedServiceObjectiveName = default(string), string defaultSecondaryLocation = default(string), string failoverGroupId = default(string), System.DateTime? restorePointInTime = default(System.DateTime?), System.DateTime? sourceDatabaseDeletionDate = default(System.DateTime?), string recoveryServicesRecoveryPointId = default(string), string longTermRetentionBackupResourceId = default(string), string recoverableDatabaseId = default(string), string restorableDroppedDatabaseId = default(string), CatalogCollationType? catalogCollation = default(CatalogCollationType?), bool? zoneRedundant = default(bool?), DatabaseLicenseType? licenseType = default(DatabaseLicenseType?), long? maxLogSizeBytes = default(long?), System.DateTime? earliestRestoreDate = default(System.DateTime?), DatabaseReadScale? readScale = default(DatabaseReadScale?), int? readReplicaCount = default(int?), Sku currentSku = default(Sku), int? autoPauseDelay = default(int?), StorageAccountType? storageAccountType = default(StorageAccountType?), double? minCapacity = default(double?), System.DateTime? pausedDate = default(System.DateTime?), System.DateTime? resumedDate = default(System.DateTime?), IDictionary tags = default(IDictionary)) + public DatabaseUpdate(Sku sku = default(Sku), string createMode = default(string), string collation = default(string), long? maxSizeBytes = default(long?), string sampleName = default(string), string elasticPoolId = default(string), string sourceDatabaseId = default(string), string status = default(string), System.Guid? databaseId = default(System.Guid?), System.DateTime? creationDate = default(System.DateTime?), string currentServiceObjectiveName = default(string), string requestedServiceObjectiveName = default(string), string defaultSecondaryLocation = default(string), string failoverGroupId = default(string), System.DateTime? restorePointInTime = default(System.DateTime?), System.DateTime? sourceDatabaseDeletionDate = default(System.DateTime?), string recoveryServicesRecoveryPointId = default(string), string longTermRetentionBackupResourceId = default(string), string recoverableDatabaseId = default(string), string restorableDroppedDatabaseId = default(string), string catalogCollation = default(string), bool? zoneRedundant = default(bool?), string licenseType = default(string), long? maxLogSizeBytes = default(long?), System.DateTime? earliestRestoreDate = default(System.DateTime?), string readScale = default(string), int? readReplicaCount = default(int?), Sku currentSku = default(Sku), int? autoPauseDelay = default(int?), string storageAccountType = default(string), double? minCapacity = default(double?), System.DateTime? pausedDate = default(System.DateTime?), System.DateTime? resumedDate = default(System.DateTime?), IDictionary tags = default(IDictionary)) { Sku = sku; CreateMode = createMode; @@ -255,7 +255,7 @@ public DatabaseUpdate() /// 'OnlineSecondary' /// [JsonProperty(PropertyName = "properties.createMode")] - public CreateMode? CreateMode { get; set; } + public string CreateMode { get; set; } /// /// Gets or sets the collation of the database. @@ -275,7 +275,7 @@ public DatabaseUpdate() /// 'WideWorldImportersStd', 'WideWorldImportersFull' /// [JsonProperty(PropertyName = "properties.sampleName")] - public SampleName? SampleName { get; set; } + public string SampleName { get; set; } /// /// Gets or sets the resource identifier of the elastic pool containing @@ -301,7 +301,7 @@ public DatabaseUpdate() /// 'OnlineChangingDwPerformanceTiers', 'Disabled' /// [JsonProperty(PropertyName = "properties.status")] - public DatabaseStatus? Status { get; private set; } + public string Status { get; private set; } /// /// Gets the ID of the database. @@ -386,7 +386,7 @@ public DatabaseUpdate() /// include: 'DATABASE_DEFAULT', 'SQL_Latin1_General_CP1_CI_AS' /// [JsonProperty(PropertyName = "properties.catalogCollation")] - public CatalogCollationType? CatalogCollation { get; set; } + public string CatalogCollation { get; set; } /// /// Gets or sets whether or not this database is zone redundant, which @@ -403,7 +403,7 @@ public DatabaseUpdate() /// values include: 'LicenseIncluded', 'BasePrice' /// [JsonProperty(PropertyName = "properties.licenseType")] - public DatabaseLicenseType? LicenseType { get; set; } + public string LicenseType { get; set; } /// /// Gets the max log size for this database. @@ -425,7 +425,7 @@ public DatabaseUpdate() /// the same region. Possible values include: 'Enabled', 'Disabled' /// [JsonProperty(PropertyName = "properties.readScale")] - public DatabaseReadScale? ReadScale { get; set; } + public string ReadScale { get; set; } /// /// Gets or sets the number of readonly secondary replicas associated @@ -453,7 +453,7 @@ public DatabaseUpdate() /// (GeoRedundantStorage). Possible values include: 'GRS', 'LRS', 'ZRS' /// [JsonProperty(PropertyName = "properties.storageAccountType")] - public StorageAccountType? StorageAccountType { get; set; } + public string StorageAccountType { get; set; } /// /// Gets or sets minimal capacity that database will always have diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPool.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPool.cs index 0032eb762d43..9e5d861d81d0 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPool.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPool.cs @@ -67,7 +67,7 @@ public ElasticPool() /// The license type to apply for this /// elastic pool. Possible values include: 'LicenseIncluded', /// 'BasePrice' - public ElasticPool(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), Sku sku = default(Sku), string kind = default(string), ElasticPoolState? state = default(ElasticPoolState?), System.DateTime? creationDate = default(System.DateTime?), long? maxSizeBytes = default(long?), ElasticPoolPerDatabaseSettings perDatabaseSettings = default(ElasticPoolPerDatabaseSettings), bool? zoneRedundant = default(bool?), ElasticPoolLicenseType? licenseType = default(ElasticPoolLicenseType?)) + public ElasticPool(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), Sku sku = default(Sku), string kind = default(string), string state = default(string), System.DateTime? creationDate = default(System.DateTime?), long? maxSizeBytes = default(long?), ElasticPoolPerDatabaseSettings perDatabaseSettings = default(ElasticPoolPerDatabaseSettings), bool? zoneRedundant = default(bool?), string licenseType = default(string)) : base(location, id, name, type, tags) { Sku = sku; @@ -116,7 +116,7 @@ public ElasticPool() /// 'Creating', 'Ready', 'Disabled' /// [JsonProperty(PropertyName = "properties.state")] - public ElasticPoolState? State { get; private set; } + public string State { get; private set; } /// /// Gets the creation date of the elastic pool (ISO8601 format). @@ -150,7 +150,7 @@ public ElasticPool() /// Possible values include: 'LicenseIncluded', 'BasePrice' /// [JsonProperty(PropertyName = "properties.licenseType")] - public ElasticPoolLicenseType? LicenseType { get; set; } + public string LicenseType { get; set; } /// /// Validate the object. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolEdition.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolEdition.cs index 04e933f36e63..4ce546476901 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolEdition.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolEdition.cs @@ -10,102 +10,16 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for ElasticPoolEdition. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(ElasticPoolEditionConverter))] - public struct ElasticPoolEdition : System.IEquatable + public static class ElasticPoolEdition { - private ElasticPoolEdition(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly ElasticPoolEdition Basic = "Basic"; - - public static readonly ElasticPoolEdition Standard = "Standard"; - - public static readonly ElasticPoolEdition Premium = "Premium"; - - public static readonly ElasticPoolEdition GeneralPurpose = "GeneralPurpose"; - - public static readonly ElasticPoolEdition BusinessCritical = "BusinessCritical"; - - - /// - /// Underlying value of enum ElasticPoolEdition - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for ElasticPoolEdition - /// - public override string ToString() - { - return UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type ElasticPoolEdition - /// - public bool Equals(ElasticPoolEdition e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to ElasticPoolEdition - /// - public static implicit operator ElasticPoolEdition(string value) - { - return new ElasticPoolEdition(value); - } - - /// - /// Implicit operator to convert ElasticPoolEdition to string - /// - public static implicit operator string(ElasticPoolEdition e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum ElasticPoolEdition - /// - public static bool operator == (ElasticPoolEdition e1, ElasticPoolEdition e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum ElasticPoolEdition - /// - public static bool operator != (ElasticPoolEdition e1, ElasticPoolEdition e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for ElasticPoolEdition - /// - public override bool Equals(object obj) - { - return obj is ElasticPoolEdition && Equals((ElasticPoolEdition)obj); - } - - /// - /// Returns for hashCode ElasticPoolEdition - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string Basic = "Basic"; + public const string Standard = "Standard"; + public const string Premium = "Premium"; + public const string GeneralPurpose = "GeneralPurpose"; + public const string BusinessCritical = "BusinessCritical"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolEditionConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolEditionConverter.cs deleted file mode 100644 index b6041a552074..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolEditionConverter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for ElasticPoolEdition. - /// - public sealed class ElasticPoolEditionConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to ElasticPoolEdition by the - /// converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(ElasticPoolEdition).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to ElasticPoolEdition. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (ElasticPoolEdition)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for ElasticPoolEdition for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolLicenseType.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolLicenseType.cs index 290ae2618e39..91040cda5998 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolLicenseType.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolLicenseType.cs @@ -10,96 +10,13 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for ElasticPoolLicenseType. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(ElasticPoolLicenseTypeConverter))] - public struct ElasticPoolLicenseType : System.IEquatable + public static class ElasticPoolLicenseType { - private ElasticPoolLicenseType(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly ElasticPoolLicenseType LicenseIncluded = "LicenseIncluded"; - - public static readonly ElasticPoolLicenseType BasePrice = "BasePrice"; - - - /// - /// Underlying value of enum ElasticPoolLicenseType - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for ElasticPoolLicenseType - /// - public override string ToString() - { - return UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type ElasticPoolLicenseType - /// - public bool Equals(ElasticPoolLicenseType e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to ElasticPoolLicenseType - /// - public static implicit operator ElasticPoolLicenseType(string value) - { - return new ElasticPoolLicenseType(value); - } - - /// - /// Implicit operator to convert ElasticPoolLicenseType to string - /// - public static implicit operator string(ElasticPoolLicenseType e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum ElasticPoolLicenseType - /// - public static bool operator == (ElasticPoolLicenseType e1, ElasticPoolLicenseType e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum ElasticPoolLicenseType - /// - public static bool operator != (ElasticPoolLicenseType e1, ElasticPoolLicenseType e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for ElasticPoolLicenseType - /// - public override bool Equals(object obj) - { - return obj is ElasticPoolLicenseType && Equals((ElasticPoolLicenseType)obj); - } - - /// - /// Returns for hashCode ElasticPoolLicenseType - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string LicenseIncluded = "LicenseIncluded"; + public const string BasePrice = "BasePrice"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolLicenseTypeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolLicenseTypeConverter.cs deleted file mode 100644 index 553f43659d49..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolLicenseTypeConverter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for ElasticPoolLicenseType. - /// - public sealed class ElasticPoolLicenseTypeConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to ElasticPoolLicenseType by - /// the converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(ElasticPoolLicenseType).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to ElasticPoolLicenseType. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (ElasticPoolLicenseType)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for ElasticPoolLicenseType for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolPerDatabaseMaxPerformanceLevelCapability.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolPerDatabaseMaxPerformanceLevelCapability.cs index f82b6812d740..74af2a056139 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolPerDatabaseMaxPerformanceLevelCapability.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolPerDatabaseMaxPerformanceLevelCapability.cs @@ -43,7 +43,7 @@ public ElasticPoolPerDatabaseMaxPerformanceLevelCapability() /// include: 'Visible', 'Available', 'Default', 'Disabled' /// The reason for the capability not being /// available. - public ElasticPoolPerDatabaseMaxPerformanceLevelCapability(double? limit = default(double?), PerformanceLevelUnit? unit = default(PerformanceLevelUnit?), IList supportedPerDatabaseMinPerformanceLevels = default(IList), CapabilityStatus? status = default(CapabilityStatus?), string reason = default(string)) + public ElasticPoolPerDatabaseMaxPerformanceLevelCapability(double? limit = default(double?), string unit = default(string), IList supportedPerDatabaseMinPerformanceLevels = default(IList), CapabilityStatus? status = default(CapabilityStatus?), string reason = default(string)) { Limit = limit; Unit = unit; @@ -69,7 +69,7 @@ public ElasticPoolPerDatabaseMaxPerformanceLevelCapability() /// include: 'DTU', 'VCores' /// [JsonProperty(PropertyName = "unit")] - public PerformanceLevelUnit? Unit { get; private set; } + public string Unit { get; private set; } /// /// Gets the list of supported min database performance levels. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolPerDatabaseMinPerformanceLevelCapability.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolPerDatabaseMinPerformanceLevelCapability.cs index 9cea5490a81e..90abdfcd655b 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolPerDatabaseMinPerformanceLevelCapability.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolPerDatabaseMinPerformanceLevelCapability.cs @@ -39,7 +39,7 @@ public ElasticPoolPerDatabaseMinPerformanceLevelCapability() /// include: 'Visible', 'Available', 'Default', 'Disabled' /// The reason for the capability not being /// available. - public ElasticPoolPerDatabaseMinPerformanceLevelCapability(double? limit = default(double?), PerformanceLevelUnit? unit = default(PerformanceLevelUnit?), CapabilityStatus? status = default(CapabilityStatus?), string reason = default(string)) + public ElasticPoolPerDatabaseMinPerformanceLevelCapability(double? limit = default(double?), string unit = default(string), CapabilityStatus? status = default(CapabilityStatus?), string reason = default(string)) { Limit = limit; Unit = unit; @@ -64,7 +64,7 @@ public ElasticPoolPerDatabaseMinPerformanceLevelCapability() /// include: 'DTU', 'VCores' /// [JsonProperty(PropertyName = "unit")] - public PerformanceLevelUnit? Unit { get; private set; } + public string Unit { get; private set; } /// /// Gets the status of the capability. Possible values include: diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolState.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolState.cs index 9e21c9776984..5e36b8d12088 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolState.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolState.cs @@ -10,98 +10,14 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for ElasticPoolState. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(ElasticPoolStateConverter))] - public struct ElasticPoolState : System.IEquatable + public static class ElasticPoolState { - private ElasticPoolState(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly ElasticPoolState Creating = "Creating"; - - public static readonly ElasticPoolState Ready = "Ready"; - - public static readonly ElasticPoolState Disabled = "Disabled"; - - - /// - /// Underlying value of enum ElasticPoolState - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for ElasticPoolState - /// - public override string ToString() - { - return UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type ElasticPoolState - /// - public bool Equals(ElasticPoolState e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to ElasticPoolState - /// - public static implicit operator ElasticPoolState(string value) - { - return new ElasticPoolState(value); - } - - /// - /// Implicit operator to convert ElasticPoolState to string - /// - public static implicit operator string(ElasticPoolState e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum ElasticPoolState - /// - public static bool operator == (ElasticPoolState e1, ElasticPoolState e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum ElasticPoolState - /// - public static bool operator != (ElasticPoolState e1, ElasticPoolState e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for ElasticPoolState - /// - public override bool Equals(object obj) - { - return obj is ElasticPoolState && Equals((ElasticPoolState)obj); - } - - /// - /// Returns for hashCode ElasticPoolState - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string Creating = "Creating"; + public const string Ready = "Ready"; + public const string Disabled = "Disabled"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolStateConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolStateConverter.cs deleted file mode 100644 index 9eae804ada9b..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolStateConverter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for ElasticPoolState. - /// - public sealed class ElasticPoolStateConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to ElasticPoolState by the - /// converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(ElasticPoolState).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to ElasticPoolState. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (ElasticPoolState)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for ElasticPoolState for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolUpdate.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolUpdate.cs index 03144be7b350..2fddf59ce1f0 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolUpdate.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolUpdate.cs @@ -45,7 +45,7 @@ public ElasticPoolUpdate() /// elastic pool. Possible values include: 'LicenseIncluded', /// 'BasePrice' /// Resource tags. - public ElasticPoolUpdate(Sku sku = default(Sku), long? maxSizeBytes = default(long?), ElasticPoolPerDatabaseSettings perDatabaseSettings = default(ElasticPoolPerDatabaseSettings), bool? zoneRedundant = default(bool?), ElasticPoolLicenseType? licenseType = default(ElasticPoolLicenseType?), IDictionary tags = default(IDictionary)) + public ElasticPoolUpdate(Sku sku = default(Sku), long? maxSizeBytes = default(long?), ElasticPoolPerDatabaseSettings perDatabaseSettings = default(ElasticPoolPerDatabaseSettings), bool? zoneRedundant = default(bool?), string licenseType = default(string), IDictionary tags = default(IDictionary)) { Sku = sku; MaxSizeBytes = maxSizeBytes; @@ -92,7 +92,7 @@ public ElasticPoolUpdate() /// Possible values include: 'LicenseIncluded', 'BasePrice' /// [JsonProperty(PropertyName = "properties.licenseType")] - public ElasticPoolLicenseType? LicenseType { get; set; } + public string LicenseType { get; set; } /// /// Gets or sets resource tags. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/EncryptionProtector.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/EncryptionProtector.cs index 8a52edc09327..ea9fe3a5d1a5 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/EncryptionProtector.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/EncryptionProtector.cs @@ -46,7 +46,7 @@ public EncryptionProtector() /// The name of the server key. /// The URI of the server key. /// Thumbprint of the server key. - public EncryptionProtector(ServerKeyType serverKeyType, string id = default(string), string name = default(string), string type = default(string), string kind = default(string), string location = default(string), string subregion = default(string), string serverKeyName = default(string), string uri = default(string), string thumbprint = default(string)) + public EncryptionProtector(string serverKeyType, string id = default(string), string name = default(string), string type = default(string), string kind = default(string), string location = default(string), string subregion = default(string), string serverKeyName = default(string), string uri = default(string), string thumbprint = default(string)) : base(id, name, type) { Kind = kind; @@ -95,7 +95,7 @@ public EncryptionProtector() /// 'AzureKeyVault' /// [JsonProperty(PropertyName = "properties.serverKeyType")] - public ServerKeyType ServerKeyType { get; set; } + public string ServerKeyType { get; set; } /// /// Gets the URI of the server key. @@ -117,6 +117,10 @@ public EncryptionProtector() /// public virtual void Validate() { + if (ServerKeyType == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "ServerKeyType"); + } } } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ExportDatabaseDefinition.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ExportDatabaseDefinition.cs index a5fb485f8718..0a98139a22b7 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ExportDatabaseDefinition.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ExportDatabaseDefinition.cs @@ -41,7 +41,7 @@ public ExportDatabaseDefinition() /// Authentication type. /// Optional resource information to /// enable network isolation for request. - public ExportDatabaseDefinition(StorageKeyType storageKeyType, string storageKey, string storageUri, string administratorLogin, string administratorLoginPassword, string authenticationType = default(string), NetworkIsolationSettings networkIsolation = default(NetworkIsolationSettings)) + public ExportDatabaseDefinition(string storageKeyType, string storageKey, string storageUri, string administratorLogin, string administratorLoginPassword, string authenticationType = default(string), NetworkIsolationSettings networkIsolation = default(NetworkIsolationSettings)) { StorageKeyType = storageKeyType; StorageKey = storageKey; @@ -63,7 +63,7 @@ public ExportDatabaseDefinition() /// 'SharedAccessKey', 'StorageAccessKey' /// [JsonProperty(PropertyName = "storageKeyType")] - public StorageKeyType StorageKeyType { get; set; } + public string StorageKeyType { get; set; } /// /// Gets or sets storage key. @@ -110,6 +110,10 @@ public ExportDatabaseDefinition() /// public virtual void Validate() { + if (StorageKeyType == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "StorageKeyType"); + } if (StorageKey == null) { throw new ValidationException(ValidationRules.CannotBeNull, "StorageKey"); diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/FailoverGroup.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/FailoverGroup.cs index 41197cecd823..9fe6b90fb1bd 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/FailoverGroup.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/FailoverGroup.cs @@ -52,7 +52,7 @@ public FailoverGroup() /// group instance. /// List of databases in the failover /// group. - public FailoverGroup(FailoverGroupReadWriteEndpoint readWriteEndpoint, IList partnerServers, string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), FailoverGroupReadOnlyEndpoint readOnlyEndpoint = default(FailoverGroupReadOnlyEndpoint), FailoverGroupReplicationRole? replicationRole = default(FailoverGroupReplicationRole?), string replicationState = default(string), IList databases = default(IList)) + public FailoverGroup(FailoverGroupReadWriteEndpoint readWriteEndpoint, IList partnerServers, string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), FailoverGroupReadOnlyEndpoint readOnlyEndpoint = default(FailoverGroupReadOnlyEndpoint), string replicationRole = default(string), string replicationState = default(string), IList databases = default(IList)) : base(id, name, type) { Location = location; @@ -100,7 +100,7 @@ public FailoverGroup() /// Possible values include: 'Primary', 'Secondary' /// [JsonProperty(PropertyName = "properties.replicationRole")] - public FailoverGroupReplicationRole? ReplicationRole { get; private set; } + public string ReplicationRole { get; private set; } /// /// Gets replication state of the failover group instance. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/FailoverGroupReadOnlyEndpoint.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/FailoverGroupReadOnlyEndpoint.cs index cc8c1dbf98fe..161a0d051d5c 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/FailoverGroupReadOnlyEndpoint.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/FailoverGroupReadOnlyEndpoint.cs @@ -34,7 +34,7 @@ public FailoverGroupReadOnlyEndpoint() /// Failover policy of the read-only /// endpoint for the failover group. Possible values include: /// 'Disabled', 'Enabled' - public FailoverGroupReadOnlyEndpoint(ReadOnlyEndpointFailoverPolicy? failoverPolicy = default(ReadOnlyEndpointFailoverPolicy?)) + public FailoverGroupReadOnlyEndpoint(string failoverPolicy = default(string)) { FailoverPolicy = failoverPolicy; CustomInit(); @@ -50,7 +50,7 @@ public FailoverGroupReadOnlyEndpoint() /// failover group. Possible values include: 'Disabled', 'Enabled' /// [JsonProperty(PropertyName = "failoverPolicy")] - public ReadOnlyEndpointFailoverPolicy? FailoverPolicy { get; set; } + public string FailoverPolicy { get; set; } } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/FailoverGroupReadWriteEndpoint.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/FailoverGroupReadWriteEndpoint.cs index f36bd4bfb0d8..823617cb01ce 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/FailoverGroupReadWriteEndpoint.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/FailoverGroupReadWriteEndpoint.cs @@ -10,6 +10,7 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Microsoft.Rest; using Newtonsoft.Json; using System.Linq; @@ -39,7 +40,7 @@ public FailoverGroupReadWriteEndpoint() /// before failover with data loss is attempted for the read-write /// endpoint. If failoverPolicy is Automatic then /// failoverWithDataLossGracePeriodMinutes is required. - public FailoverGroupReadWriteEndpoint(ReadWriteEndpointFailoverPolicy failoverPolicy, int? failoverWithDataLossGracePeriodMinutes = default(int?)) + public FailoverGroupReadWriteEndpoint(string failoverPolicy, int? failoverWithDataLossGracePeriodMinutes = default(int?)) { FailoverPolicy = failoverPolicy; FailoverWithDataLossGracePeriodMinutes = failoverWithDataLossGracePeriodMinutes; @@ -58,7 +59,7 @@ public FailoverGroupReadWriteEndpoint() /// include: 'Manual', 'Automatic' /// [JsonProperty(PropertyName = "failoverPolicy")] - public ReadWriteEndpointFailoverPolicy FailoverPolicy { get; set; } + public string FailoverPolicy { get; set; } /// /// Gets or sets grace period before failover with data loss is @@ -71,11 +72,15 @@ public FailoverGroupReadWriteEndpoint() /// /// Validate the object. /// - /// + /// /// Thrown if validation fails /// public virtual void Validate() { + if (FailoverPolicy == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "FailoverPolicy"); + } } } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/FailoverGroupReplicationRole.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/FailoverGroupReplicationRole.cs index 251e505410d2..380e10a578b4 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/FailoverGroupReplicationRole.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/FailoverGroupReplicationRole.cs @@ -10,96 +10,13 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for FailoverGroupReplicationRole. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(FailoverGroupReplicationRoleConverter))] - public struct FailoverGroupReplicationRole : System.IEquatable + public static class FailoverGroupReplicationRole { - private FailoverGroupReplicationRole(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly FailoverGroupReplicationRole Primary = "Primary"; - - public static readonly FailoverGroupReplicationRole Secondary = "Secondary"; - - - /// - /// Underlying value of enum FailoverGroupReplicationRole - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for FailoverGroupReplicationRole - /// - public override string ToString() - { - return UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type FailoverGroupReplicationRole - /// - public bool Equals(FailoverGroupReplicationRole e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to FailoverGroupReplicationRole - /// - public static implicit operator FailoverGroupReplicationRole(string value) - { - return new FailoverGroupReplicationRole(value); - } - - /// - /// Implicit operator to convert FailoverGroupReplicationRole to string - /// - public static implicit operator string(FailoverGroupReplicationRole e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum FailoverGroupReplicationRole - /// - public static bool operator == (FailoverGroupReplicationRole e1, FailoverGroupReplicationRole e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum FailoverGroupReplicationRole - /// - public static bool operator != (FailoverGroupReplicationRole e1, FailoverGroupReplicationRole e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for FailoverGroupReplicationRole - /// - public override bool Equals(object obj) - { - return obj is FailoverGroupReplicationRole && Equals((FailoverGroupReplicationRole)obj); - } - - /// - /// Returns for hashCode FailoverGroupReplicationRole - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string Primary = "Primary"; + public const string Secondary = "Secondary"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/FailoverGroupReplicationRoleConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/FailoverGroupReplicationRoleConverter.cs deleted file mode 100644 index 80c2d0b338e3..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/FailoverGroupReplicationRoleConverter.cs +++ /dev/null @@ -1,55 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for FailoverGroupReplicationRole. - /// - public sealed class FailoverGroupReplicationRoleConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to - /// FailoverGroupReplicationRole by the converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(FailoverGroupReplicationRole).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to - /// FailoverGroupReplicationRole. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (FailoverGroupReplicationRole)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for FailoverGroupReplicationRole for - /// serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/IdentityType.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/IdentityType.cs index c1c201535595..cb7c7a82b81d 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/IdentityType.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/IdentityType.cs @@ -10,94 +10,12 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for IdentityType. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(IdentityTypeConverter))] - public struct IdentityType : System.IEquatable + public static class IdentityType { - private IdentityType(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly IdentityType SystemAssigned = "SystemAssigned"; - - - /// - /// Underlying value of enum IdentityType - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for IdentityType - /// - public override string ToString() - { - return UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type IdentityType - /// - public bool Equals(IdentityType e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to IdentityType - /// - public static implicit operator IdentityType(string value) - { - return new IdentityType(value); - } - - /// - /// Implicit operator to convert IdentityType to string - /// - public static implicit operator string(IdentityType e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum IdentityType - /// - public static bool operator == (IdentityType e1, IdentityType e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum IdentityType - /// - public static bool operator != (IdentityType e1, IdentityType e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for IdentityType - /// - public override bool Equals(object obj) - { - return obj is IdentityType && Equals((IdentityType)obj); - } - - /// - /// Returns for hashCode IdentityType - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string SystemAssigned = "SystemAssigned"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/IdentityTypeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/IdentityTypeConverter.cs deleted file mode 100644 index f171ba65f248..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/IdentityTypeConverter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for IdentityType. - /// - public sealed class IdentityTypeConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to IdentityType by the - /// converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(IdentityType).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to IdentityType. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (IdentityType)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for IdentityType for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ImportExistingDatabaseDefinition.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ImportExistingDatabaseDefinition.cs index 0c28b55dd451..3cca5ca109c9 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ImportExistingDatabaseDefinition.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ImportExistingDatabaseDefinition.cs @@ -43,7 +43,7 @@ public ImportExistingDatabaseDefinition() /// Authentication type. /// Optional resource information to /// enable network isolation for request. - public ImportExistingDatabaseDefinition(StorageKeyType storageKeyType, string storageKey, string storageUri, string administratorLogin, string administratorLoginPassword, string authenticationType = default(string), NetworkIsolationSettings networkIsolation = default(NetworkIsolationSettings)) + public ImportExistingDatabaseDefinition(string storageKeyType, string storageKey, string storageUri, string administratorLogin, string administratorLoginPassword, string authenticationType = default(string), NetworkIsolationSettings networkIsolation = default(NetworkIsolationSettings)) { StorageKeyType = storageKeyType; StorageKey = storageKey; @@ -65,7 +65,7 @@ public ImportExistingDatabaseDefinition() /// 'SharedAccessKey', 'StorageAccessKey' /// [JsonProperty(PropertyName = "storageKeyType")] - public StorageKeyType StorageKeyType { get; set; } + public string StorageKeyType { get; set; } /// /// Gets or sets storage key. @@ -112,6 +112,10 @@ public ImportExistingDatabaseDefinition() /// public virtual void Validate() { + if (StorageKeyType == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "StorageKeyType"); + } if (StorageKey == null) { throw new ValidationException(ValidationRules.CannotBeNull, "StorageKey"); diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ImportNewDatabaseDefinition.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ImportNewDatabaseDefinition.cs index d13b7f0797b7..db630e00fd92 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ImportNewDatabaseDefinition.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ImportNewDatabaseDefinition.cs @@ -49,7 +49,7 @@ public ImportNewDatabaseDefinition() /// Authentication type. /// Optional resource information to /// enable network isolation for request. - public ImportNewDatabaseDefinition(StorageKeyType storageKeyType, string storageKey, string storageUri, string administratorLogin, string administratorLoginPassword, string databaseName = default(string), string edition = default(string), string serviceObjectiveName = default(string), string maxSizeBytes = default(string), string authenticationType = default(string), NetworkIsolationSettings networkIsolation = default(NetworkIsolationSettings)) + public ImportNewDatabaseDefinition(string storageKeyType, string storageKey, string storageUri, string administratorLogin, string administratorLoginPassword, string databaseName = default(string), string edition = default(string), string serviceObjectiveName = default(string), string maxSizeBytes = default(string), string authenticationType = default(string), NetworkIsolationSettings networkIsolation = default(NetworkIsolationSettings)) { DatabaseName = databaseName; Edition = edition; @@ -99,7 +99,7 @@ public ImportNewDatabaseDefinition() /// 'SharedAccessKey', 'StorageAccessKey' /// [JsonProperty(PropertyName = "storageKeyType")] - public StorageKeyType StorageKeyType { get; set; } + public string StorageKeyType { get; set; } /// /// Gets or sets storage key. @@ -146,6 +146,10 @@ public ImportNewDatabaseDefinition() /// public virtual void Validate() { + if (StorageKeyType == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "StorageKeyType"); + } if (StorageKey == null) { throw new ValidationException(ValidationRules.CannotBeNull, "StorageKey"); diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstanceFailoverGroup.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstanceFailoverGroup.cs index bc3ff7416992..19f2f6800532 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstanceFailoverGroup.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstanceFailoverGroup.cs @@ -50,7 +50,7 @@ public InstanceFailoverGroup() /// 'Secondary' /// Replication state of the failover /// group instance. - public InstanceFailoverGroup(InstanceFailoverGroupReadWriteEndpoint readWriteEndpoint, IList partnerRegions, IList managedInstancePairs, string id = default(string), string name = default(string), string type = default(string), InstanceFailoverGroupReadOnlyEndpoint readOnlyEndpoint = default(InstanceFailoverGroupReadOnlyEndpoint), InstanceFailoverGroupReplicationRole? replicationRole = default(InstanceFailoverGroupReplicationRole?), string replicationState = default(string)) + public InstanceFailoverGroup(InstanceFailoverGroupReadWriteEndpoint readWriteEndpoint, IList partnerRegions, IList managedInstancePairs, string id = default(string), string name = default(string), string type = default(string), InstanceFailoverGroupReadOnlyEndpoint readOnlyEndpoint = default(InstanceFailoverGroupReadOnlyEndpoint), string replicationRole = default(string), string replicationState = default(string)) : base(id, name, type) { ReadWriteEndpoint = readWriteEndpoint; @@ -84,7 +84,7 @@ public InstanceFailoverGroup() /// Possible values include: 'Primary', 'Secondary' /// [JsonProperty(PropertyName = "properties.replicationRole")] - public InstanceFailoverGroupReplicationRole? ReplicationRole { get; private set; } + public string ReplicationRole { get; private set; } /// /// Gets replication state of the failover group instance. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstanceFailoverGroupReadOnlyEndpoint.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstanceFailoverGroupReadOnlyEndpoint.cs index 5a7e6fcac550..c3e7c22f98d0 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstanceFailoverGroupReadOnlyEndpoint.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstanceFailoverGroupReadOnlyEndpoint.cs @@ -34,7 +34,7 @@ public InstanceFailoverGroupReadOnlyEndpoint() /// Failover policy of the read-only /// endpoint for the failover group. Possible values include: /// 'Disabled', 'Enabled' - public InstanceFailoverGroupReadOnlyEndpoint(ReadOnlyEndpointFailoverPolicy? failoverPolicy = default(ReadOnlyEndpointFailoverPolicy?)) + public InstanceFailoverGroupReadOnlyEndpoint(string failoverPolicy = default(string)) { FailoverPolicy = failoverPolicy; CustomInit(); @@ -50,7 +50,7 @@ public InstanceFailoverGroupReadOnlyEndpoint() /// failover group. Possible values include: 'Disabled', 'Enabled' /// [JsonProperty(PropertyName = "failoverPolicy")] - public ReadOnlyEndpointFailoverPolicy? FailoverPolicy { get; set; } + public string FailoverPolicy { get; set; } } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstanceFailoverGroupReadWriteEndpoint.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstanceFailoverGroupReadWriteEndpoint.cs index 7af96668a660..299752e7bf35 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstanceFailoverGroupReadWriteEndpoint.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstanceFailoverGroupReadWriteEndpoint.cs @@ -10,6 +10,7 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Microsoft.Rest; using Newtonsoft.Json; using System.Linq; @@ -39,7 +40,7 @@ public InstanceFailoverGroupReadWriteEndpoint() /// before failover with data loss is attempted for the read-write /// endpoint. If failoverPolicy is Automatic then /// failoverWithDataLossGracePeriodMinutes is required. - public InstanceFailoverGroupReadWriteEndpoint(ReadWriteEndpointFailoverPolicy failoverPolicy, int? failoverWithDataLossGracePeriodMinutes = default(int?)) + public InstanceFailoverGroupReadWriteEndpoint(string failoverPolicy, int? failoverWithDataLossGracePeriodMinutes = default(int?)) { FailoverPolicy = failoverPolicy; FailoverWithDataLossGracePeriodMinutes = failoverWithDataLossGracePeriodMinutes; @@ -58,7 +59,7 @@ public InstanceFailoverGroupReadWriteEndpoint() /// include: 'Manual', 'Automatic' /// [JsonProperty(PropertyName = "failoverPolicy")] - public ReadWriteEndpointFailoverPolicy FailoverPolicy { get; set; } + public string FailoverPolicy { get; set; } /// /// Gets or sets grace period before failover with data loss is @@ -71,11 +72,15 @@ public InstanceFailoverGroupReadWriteEndpoint() /// /// Validate the object. /// - /// + /// /// Thrown if validation fails /// public virtual void Validate() { + if (FailoverPolicy == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "FailoverPolicy"); + } } } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstanceFailoverGroupReplicationRole.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstanceFailoverGroupReplicationRole.cs index abd0ffb3c64d..cd4a463d4d89 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstanceFailoverGroupReplicationRole.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstanceFailoverGroupReplicationRole.cs @@ -10,101 +10,13 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for InstanceFailoverGroupReplicationRole. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(InstanceFailoverGroupReplicationRoleConverter))] - public struct InstanceFailoverGroupReplicationRole : System.IEquatable + public static class InstanceFailoverGroupReplicationRole { - private InstanceFailoverGroupReplicationRole(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly InstanceFailoverGroupReplicationRole Primary = "Primary"; - - public static readonly InstanceFailoverGroupReplicationRole Secondary = "Secondary"; - - - /// - /// Underlying value of enum InstanceFailoverGroupReplicationRole - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for - /// InstanceFailoverGroupReplicationRole - /// - public override string ToString() - { - return UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type InstanceFailoverGroupReplicationRole - /// - public bool Equals(InstanceFailoverGroupReplicationRole e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to - /// InstanceFailoverGroupReplicationRole - /// - public static implicit operator InstanceFailoverGroupReplicationRole(string value) - { - return new InstanceFailoverGroupReplicationRole(value); - } - - /// - /// Implicit operator to convert InstanceFailoverGroupReplicationRole - /// to string - /// - public static implicit operator string(InstanceFailoverGroupReplicationRole e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum - /// InstanceFailoverGroupReplicationRole - /// - public static bool operator == (InstanceFailoverGroupReplicationRole e1, InstanceFailoverGroupReplicationRole e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum - /// InstanceFailoverGroupReplicationRole - /// - public static bool operator != (InstanceFailoverGroupReplicationRole e1, InstanceFailoverGroupReplicationRole e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for InstanceFailoverGroupReplicationRole - /// - public override bool Equals(object obj) - { - return obj is InstanceFailoverGroupReplicationRole && Equals((InstanceFailoverGroupReplicationRole)obj); - } - - /// - /// Returns for hashCode InstanceFailoverGroupReplicationRole - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string Primary = "Primary"; + public const string Secondary = "Secondary"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstanceFailoverGroupReplicationRoleConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstanceFailoverGroupReplicationRoleConverter.cs deleted file mode 100644 index 2caa0100d9f8..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstanceFailoverGroupReplicationRoleConverter.cs +++ /dev/null @@ -1,55 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for InstanceFailoverGroupReplicationRole. - /// - public sealed class InstanceFailoverGroupReplicationRoleConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to - /// InstanceFailoverGroupReplicationRole by the converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(InstanceFailoverGroupReplicationRole).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to - /// InstanceFailoverGroupReplicationRole. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (InstanceFailoverGroupReplicationRole)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for InstanceFailoverGroupReplicationRole for - /// serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstancePool.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstancePool.cs index cf25e3b6c40b..c174f85c08ac 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstancePool.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstancePool.cs @@ -48,7 +48,7 @@ public InstancePool() /// Resource type. /// Resource tags. /// The name and tier of the SKU. - public InstancePool(string location, string subnetId, int vCores, InstancePoolLicenseType licenseType, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), Sku sku = default(Sku)) + public InstancePool(string location, string subnetId, int vCores, string licenseType, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), Sku sku = default(Sku)) : base(location, id, name, type, tags) { Sku = sku; @@ -89,7 +89,7 @@ public InstancePool() /// 'LicenseIncluded', 'BasePrice' /// [JsonProperty(PropertyName = "properties.licenseType")] - public InstancePoolLicenseType LicenseType { get; set; } + public string LicenseType { get; set; } /// /// Validate the object. @@ -104,6 +104,10 @@ public override void Validate() { throw new ValidationException(ValidationRules.CannotBeNull, "SubnetId"); } + if (LicenseType == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "LicenseType"); + } if (Sku != null) { Sku.Validate(); diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstancePoolLicenseType.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstancePoolLicenseType.cs index cdd2c8375b95..b4371565f980 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstancePoolLicenseType.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstancePoolLicenseType.cs @@ -10,96 +10,13 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for InstancePoolLicenseType. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(InstancePoolLicenseTypeConverter))] - public struct InstancePoolLicenseType : System.IEquatable + public static class InstancePoolLicenseType { - private InstancePoolLicenseType(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly InstancePoolLicenseType LicenseIncluded = "LicenseIncluded"; - - public static readonly InstancePoolLicenseType BasePrice = "BasePrice"; - - - /// - /// Underlying value of enum InstancePoolLicenseType - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for InstancePoolLicenseType - /// - public override string ToString() - { - return UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type InstancePoolLicenseType - /// - public bool Equals(InstancePoolLicenseType e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to InstancePoolLicenseType - /// - public static implicit operator InstancePoolLicenseType(string value) - { - return new InstancePoolLicenseType(value); - } - - /// - /// Implicit operator to convert InstancePoolLicenseType to string - /// - public static implicit operator string(InstancePoolLicenseType e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum InstancePoolLicenseType - /// - public static bool operator == (InstancePoolLicenseType e1, InstancePoolLicenseType e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum InstancePoolLicenseType - /// - public static bool operator != (InstancePoolLicenseType e1, InstancePoolLicenseType e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for InstancePoolLicenseType - /// - public override bool Equals(object obj) - { - return obj is InstancePoolLicenseType && Equals((InstancePoolLicenseType)obj); - } - - /// - /// Returns for hashCode InstancePoolLicenseType - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string LicenseIncluded = "LicenseIncluded"; + public const string BasePrice = "BasePrice"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstancePoolLicenseTypeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstancePoolLicenseTypeConverter.cs deleted file mode 100644 index 0ebb9e4ee1f4..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstancePoolLicenseTypeConverter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for InstancePoolLicenseType. - /// - public sealed class InstancePoolLicenseTypeConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to InstancePoolLicenseType - /// by the converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(InstancePoolLicenseType).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to InstancePoolLicenseType. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (InstancePoolLicenseType)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for InstancePoolLicenseType for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobAgent.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobAgent.cs index b82e50f80551..fe6f269eab8a 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobAgent.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobAgent.cs @@ -45,7 +45,7 @@ public JobAgent() /// The state of the job agent. Possible values /// include: 'Creating', 'Ready', 'Updating', 'Deleting', /// 'Disabled' - public JobAgent(string location, string databaseId, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), Sku sku = default(Sku), JobAgentState? state = default(JobAgentState?)) + public JobAgent(string location, string databaseId, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), Sku sku = default(Sku), string state = default(string)) : base(location, id, name, type, tags) { Sku = sku; @@ -76,7 +76,7 @@ public JobAgent() /// 'Creating', 'Ready', 'Updating', 'Deleting', 'Disabled' /// [JsonProperty(PropertyName = "properties.state")] - public JobAgentState? State { get; private set; } + public string State { get; private set; } /// /// Validate the object. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobAgentState.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobAgentState.cs index 24fec667743f..b8897f53cb79 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobAgentState.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobAgentState.cs @@ -10,102 +10,16 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for JobAgentState. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(JobAgentStateConverter))] - public struct JobAgentState : System.IEquatable + public static class JobAgentState { - private JobAgentState(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly JobAgentState Creating = "Creating"; - - public static readonly JobAgentState Ready = "Ready"; - - public static readonly JobAgentState Updating = "Updating"; - - public static readonly JobAgentState Deleting = "Deleting"; - - public static readonly JobAgentState Disabled = "Disabled"; - - - /// - /// Underlying value of enum JobAgentState - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for JobAgentState - /// - public override string ToString() - { - return UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type JobAgentState - /// - public bool Equals(JobAgentState e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to JobAgentState - /// - public static implicit operator JobAgentState(string value) - { - return new JobAgentState(value); - } - - /// - /// Implicit operator to convert JobAgentState to string - /// - public static implicit operator string(JobAgentState e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum JobAgentState - /// - public static bool operator == (JobAgentState e1, JobAgentState e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum JobAgentState - /// - public static bool operator != (JobAgentState e1, JobAgentState e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for JobAgentState - /// - public override bool Equals(object obj) - { - return obj is JobAgentState && Equals((JobAgentState)obj); - } - - /// - /// Returns for hashCode JobAgentState - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string Creating = "Creating"; + public const string Ready = "Ready"; + public const string Updating = "Updating"; + public const string Deleting = "Deleting"; + public const string Disabled = "Disabled"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobAgentStateConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobAgentStateConverter.cs deleted file mode 100644 index 6c021f921d92..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobAgentStateConverter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for JobAgentState. - /// - public sealed class JobAgentStateConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to JobAgentState by the - /// converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(JobAgentState).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to JobAgentState. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (JobAgentState)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for JobAgentState for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobExecution.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobExecution.cs index 2c2768198736..39c3e70baf2c 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobExecution.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobExecution.cs @@ -61,7 +61,7 @@ public JobExecution() /// The last status or error message. /// The target that this execution is executed /// on. - public JobExecution(string id = default(string), string name = default(string), string type = default(string), int? jobVersion = default(int?), string stepName = default(string), int? stepId = default(int?), System.Guid? jobExecutionId = default(System.Guid?), JobExecutionLifecycle? lifecycle = default(JobExecutionLifecycle?), ProvisioningState? provisioningState = default(ProvisioningState?), System.DateTime? createTime = default(System.DateTime?), System.DateTime? startTime = default(System.DateTime?), System.DateTime? endTime = default(System.DateTime?), int? currentAttempts = default(int?), System.DateTime? currentAttemptStartTime = default(System.DateTime?), string lastMessage = default(string), JobExecutionTarget target = default(JobExecutionTarget)) + public JobExecution(string id = default(string), string name = default(string), string type = default(string), int? jobVersion = default(int?), string stepName = default(string), int? stepId = default(int?), System.Guid? jobExecutionId = default(System.Guid?), string lifecycle = default(string), string provisioningState = default(string), System.DateTime? createTime = default(System.DateTime?), System.DateTime? startTime = default(System.DateTime?), System.DateTime? endTime = default(System.DateTime?), int? currentAttempts = default(int?), System.DateTime? currentAttemptStartTime = default(System.DateTime?), string lastMessage = default(string), JobExecutionTarget target = default(JobExecutionTarget)) : base(id, name, type) { JobVersion = jobVersion; @@ -116,7 +116,7 @@ public JobExecution() /// 'TimedOut', 'Canceled', 'Skipped' /// [JsonProperty(PropertyName = "properties.lifecycle")] - public JobExecutionLifecycle? Lifecycle { get; private set; } + public string Lifecycle { get; private set; } /// /// Gets the ARM provisioning state of the job execution. Possible @@ -124,7 +124,7 @@ public JobExecution() /// 'Canceled' /// [JsonProperty(PropertyName = "properties.provisioningState")] - public ProvisioningState? ProvisioningState { get; private set; } + public string ProvisioningState { get; private set; } /// /// Gets the time that the job execution was created. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobExecutionLifecycle.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobExecutionLifecycle.cs index 50d8148bac4e..37ead7ce7ff5 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobExecutionLifecycle.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobExecutionLifecycle.cs @@ -10,112 +10,21 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for JobExecutionLifecycle. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(JobExecutionLifecycleConverter))] - public struct JobExecutionLifecycle : System.IEquatable + public static class JobExecutionLifecycle { - private JobExecutionLifecycle(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly JobExecutionLifecycle Created = "Created"; - - public static readonly JobExecutionLifecycle InProgress = "InProgress"; - - public static readonly JobExecutionLifecycle WaitingForChildJobExecutions = "WaitingForChildJobExecutions"; - - public static readonly JobExecutionLifecycle WaitingForRetry = "WaitingForRetry"; - - public static readonly JobExecutionLifecycle Succeeded = "Succeeded"; - - public static readonly JobExecutionLifecycle SucceededWithSkipped = "SucceededWithSkipped"; - - public static readonly JobExecutionLifecycle Failed = "Failed"; - - public static readonly JobExecutionLifecycle TimedOut = "TimedOut"; - - public static readonly JobExecutionLifecycle Canceled = "Canceled"; - - public static readonly JobExecutionLifecycle Skipped = "Skipped"; - - - /// - /// Underlying value of enum JobExecutionLifecycle - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for JobExecutionLifecycle - /// - public override string ToString() - { - return UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type JobExecutionLifecycle - /// - public bool Equals(JobExecutionLifecycle e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to JobExecutionLifecycle - /// - public static implicit operator JobExecutionLifecycle(string value) - { - return new JobExecutionLifecycle(value); - } - - /// - /// Implicit operator to convert JobExecutionLifecycle to string - /// - public static implicit operator string(JobExecutionLifecycle e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum JobExecutionLifecycle - /// - public static bool operator == (JobExecutionLifecycle e1, JobExecutionLifecycle e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum JobExecutionLifecycle - /// - public static bool operator != (JobExecutionLifecycle e1, JobExecutionLifecycle e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for JobExecutionLifecycle - /// - public override bool Equals(object obj) - { - return obj is JobExecutionLifecycle && Equals((JobExecutionLifecycle)obj); - } - - /// - /// Returns for hashCode JobExecutionLifecycle - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string Created = "Created"; + public const string InProgress = "InProgress"; + public const string WaitingForChildJobExecutions = "WaitingForChildJobExecutions"; + public const string WaitingForRetry = "WaitingForRetry"; + public const string Succeeded = "Succeeded"; + public const string SucceededWithSkipped = "SucceededWithSkipped"; + public const string Failed = "Failed"; + public const string TimedOut = "TimedOut"; + public const string Canceled = "Canceled"; + public const string Skipped = "Skipped"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobExecutionLifecycleConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobExecutionLifecycleConverter.cs deleted file mode 100644 index 4f1114861711..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobExecutionLifecycleConverter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for JobExecutionLifecycle. - /// - public sealed class JobExecutionLifecycleConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to JobExecutionLifecycle by - /// the converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(JobExecutionLifecycle).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to JobExecutionLifecycle. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (JobExecutionLifecycle)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for JobExecutionLifecycle for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobExecutionTarget.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobExecutionTarget.cs index bd2989561aef..6b7e1dff02e8 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobExecutionTarget.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobExecutionTarget.cs @@ -34,7 +34,7 @@ public JobExecutionTarget() /// 'SqlServer' /// The server name. /// The database name. - public JobExecutionTarget(JobTargetType? type = default(JobTargetType?), string serverName = default(string), string databaseName = default(string)) + public JobExecutionTarget(string type = default(string), string serverName = default(string), string databaseName = default(string)) { Type = type; ServerName = serverName; @@ -53,7 +53,7 @@ public JobExecutionTarget() /// 'SqlServer' /// [JsonProperty(PropertyName = "type")] - public JobTargetType? Type { get; private set; } + public string Type { get; private set; } /// /// Gets the server name. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobStepAction.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobStepAction.cs index e550d8f8b04e..51941a310406 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobStepAction.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobStepAction.cs @@ -36,7 +36,7 @@ public JobStepAction() /// Possible values include: 'TSql' /// The source of the action to execute. Possible /// values include: 'Inline' - public JobStepAction(string value, JobStepActionType? type = default(JobStepActionType?), JobStepActionSource? source = default(JobStepActionSource?)) + public JobStepAction(string value, string type = default(string), string source = default(string)) { Type = type; Source = source; @@ -54,14 +54,14 @@ public JobStepAction() /// Possible values include: 'TSql' /// [JsonProperty(PropertyName = "type")] - public JobStepActionType? Type { get; set; } + public string Type { get; set; } /// /// Gets or sets the source of the action to execute. Possible values /// include: 'Inline' /// [JsonProperty(PropertyName = "source")] - public JobStepActionSource? Source { get; set; } + public string Source { get; set; } /// /// Gets or sets the action value, for example the text of the T-SQL diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobStepActionSource.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobStepActionSource.cs index 18f8b1d00e82..2f96d3a39604 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobStepActionSource.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobStepActionSource.cs @@ -10,94 +10,12 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for JobStepActionSource. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(JobStepActionSourceConverter))] - public struct JobStepActionSource : System.IEquatable + public static class JobStepActionSource { - private JobStepActionSource(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly JobStepActionSource Inline = "Inline"; - - - /// - /// Underlying value of enum JobStepActionSource - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for JobStepActionSource - /// - public override string ToString() - { - return UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type JobStepActionSource - /// - public bool Equals(JobStepActionSource e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to JobStepActionSource - /// - public static implicit operator JobStepActionSource(string value) - { - return new JobStepActionSource(value); - } - - /// - /// Implicit operator to convert JobStepActionSource to string - /// - public static implicit operator string(JobStepActionSource e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum JobStepActionSource - /// - public static bool operator == (JobStepActionSource e1, JobStepActionSource e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum JobStepActionSource - /// - public static bool operator != (JobStepActionSource e1, JobStepActionSource e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for JobStepActionSource - /// - public override bool Equals(object obj) - { - return obj is JobStepActionSource && Equals((JobStepActionSource)obj); - } - - /// - /// Returns for hashCode JobStepActionSource - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string Inline = "Inline"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobStepActionSourceConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobStepActionSourceConverter.cs deleted file mode 100644 index 241c078ae7fe..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobStepActionSourceConverter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for JobStepActionSource. - /// - public sealed class JobStepActionSourceConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to JobStepActionSource by - /// the converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(JobStepActionSource).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to JobStepActionSource. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (JobStepActionSource)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for JobStepActionSource for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobStepActionType.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobStepActionType.cs index 2352a1ccadd9..6dda291ff321 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobStepActionType.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobStepActionType.cs @@ -10,94 +10,12 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for JobStepActionType. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(JobStepActionTypeConverter))] - public struct JobStepActionType : System.IEquatable + public static class JobStepActionType { - private JobStepActionType(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly JobStepActionType TSql = "TSql"; - - - /// - /// Underlying value of enum JobStepActionType - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for JobStepActionType - /// - public override string ToString() - { - return UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type JobStepActionType - /// - public bool Equals(JobStepActionType e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to JobStepActionType - /// - public static implicit operator JobStepActionType(string value) - { - return new JobStepActionType(value); - } - - /// - /// Implicit operator to convert JobStepActionType to string - /// - public static implicit operator string(JobStepActionType e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum JobStepActionType - /// - public static bool operator == (JobStepActionType e1, JobStepActionType e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum JobStepActionType - /// - public static bool operator != (JobStepActionType e1, JobStepActionType e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for JobStepActionType - /// - public override bool Equals(object obj) - { - return obj is JobStepActionType && Equals((JobStepActionType)obj); - } - - /// - /// Returns for hashCode JobStepActionType - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string TSql = "TSql"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobStepActionTypeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobStepActionTypeConverter.cs deleted file mode 100644 index 28ded5cdd872..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobStepActionTypeConverter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for JobStepActionType. - /// - public sealed class JobStepActionTypeConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to JobStepActionType by the - /// converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(JobStepActionType).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to JobStepActionType. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (JobStepActionType)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for JobStepActionType for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobStepOutput.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobStepOutput.cs index c2f8ba1e4bc0..cdd0db7bec05 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobStepOutput.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobStepOutput.cs @@ -43,7 +43,7 @@ public JobStepOutput() /// The output destination resource /// group. /// The output destination schema. - public JobStepOutput(string serverName, string databaseName, string tableName, string credential, JobStepOutputType? type = default(JobStepOutputType?), System.Guid? subscriptionId = default(System.Guid?), string resourceGroupName = default(string), string schemaName = default(string)) + public JobStepOutput(string serverName, string databaseName, string tableName, string credential, string type = default(string), System.Guid? subscriptionId = default(System.Guid?), string resourceGroupName = default(string), string schemaName = default(string)) { Type = type; SubscriptionId = subscriptionId; @@ -66,7 +66,7 @@ public JobStepOutput() /// 'SqlDatabase' /// [JsonProperty(PropertyName = "type")] - public JobStepOutputType? Type { get; set; } + public string Type { get; set; } /// /// Gets or sets the output destination subscription id. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobStepOutputType.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobStepOutputType.cs index ef25916619b3..bb86c8126657 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobStepOutputType.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobStepOutputType.cs @@ -10,94 +10,12 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for JobStepOutputType. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(JobStepOutputTypeConverter))] - public struct JobStepOutputType : System.IEquatable + public static class JobStepOutputType { - private JobStepOutputType(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly JobStepOutputType SqlDatabase = "SqlDatabase"; - - - /// - /// Underlying value of enum JobStepOutputType - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for JobStepOutputType - /// - public override string ToString() - { - return UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type JobStepOutputType - /// - public bool Equals(JobStepOutputType e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to JobStepOutputType - /// - public static implicit operator JobStepOutputType(string value) - { - return new JobStepOutputType(value); - } - - /// - /// Implicit operator to convert JobStepOutputType to string - /// - public static implicit operator string(JobStepOutputType e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum JobStepOutputType - /// - public static bool operator == (JobStepOutputType e1, JobStepOutputType e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum JobStepOutputType - /// - public static bool operator != (JobStepOutputType e1, JobStepOutputType e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for JobStepOutputType - /// - public override bool Equals(object obj) - { - return obj is JobStepOutputType && Equals((JobStepOutputType)obj); - } - - /// - /// Returns for hashCode JobStepOutputType - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string SqlDatabase = "SqlDatabase"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobStepOutputTypeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobStepOutputTypeConverter.cs deleted file mode 100644 index f6e86f9a358b..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobStepOutputTypeConverter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for JobStepOutputType. - /// - public sealed class JobStepOutputTypeConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to JobStepOutputType by the - /// converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(JobStepOutputType).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to JobStepOutputType. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (JobStepOutputType)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for JobStepOutputType for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobTarget.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobTarget.cs index 4d0b124b79da..7d03cc175e67 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobTarget.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobTarget.cs @@ -10,6 +10,7 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Microsoft.Rest; using Newtonsoft.Json; using System.Linq; @@ -43,7 +44,7 @@ public JobTarget() /// The resource ID of the credential /// that is used during job execution to connect to the target and /// determine the list of databases inside the target. - public JobTarget(JobTargetType type, JobTargetGroupMembershipType? membershipType = default(JobTargetGroupMembershipType?), string serverName = default(string), string databaseName = default(string), string elasticPoolName = default(string), string shardMapName = default(string), string refreshCredential = default(string)) + public JobTarget(string type, JobTargetGroupMembershipType? membershipType = default(JobTargetGroupMembershipType?), string serverName = default(string), string databaseName = default(string), string elasticPoolName = default(string), string shardMapName = default(string), string refreshCredential = default(string)) { MembershipType = membershipType; Type = type; @@ -73,7 +74,7 @@ public JobTarget() /// 'SqlServer' /// [JsonProperty(PropertyName = "type")] - public JobTargetType Type { get; set; } + public string Type { get; set; } /// /// Gets or sets the target server name. @@ -110,11 +111,15 @@ public JobTarget() /// /// Validate the object. /// - /// + /// /// Thrown if validation fails /// public virtual void Validate() { + if (Type == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Type"); + } } } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobTargetType.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobTargetType.cs index 01fbf9a93991..bf3921ce5ec0 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobTargetType.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobTargetType.cs @@ -10,102 +10,16 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for JobTargetType. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(JobTargetTypeConverter))] - public struct JobTargetType : System.IEquatable + public static class JobTargetType { - private JobTargetType(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly JobTargetType TargetGroup = "TargetGroup"; - - public static readonly JobTargetType SqlDatabase = "SqlDatabase"; - - public static readonly JobTargetType SqlElasticPool = "SqlElasticPool"; - - public static readonly JobTargetType SqlShardMap = "SqlShardMap"; - - public static readonly JobTargetType SqlServer = "SqlServer"; - - - /// - /// Underlying value of enum JobTargetType - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for JobTargetType - /// - public override string ToString() - { - return UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type JobTargetType - /// - public bool Equals(JobTargetType e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to JobTargetType - /// - public static implicit operator JobTargetType(string value) - { - return new JobTargetType(value); - } - - /// - /// Implicit operator to convert JobTargetType to string - /// - public static implicit operator string(JobTargetType e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum JobTargetType - /// - public static bool operator == (JobTargetType e1, JobTargetType e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum JobTargetType - /// - public static bool operator != (JobTargetType e1, JobTargetType e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for JobTargetType - /// - public override bool Equals(object obj) - { - return obj is JobTargetType && Equals((JobTargetType)obj); - } - - /// - /// Returns for hashCode JobTargetType - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string TargetGroup = "TargetGroup"; + public const string SqlDatabase = "SqlDatabase"; + public const string SqlElasticPool = "SqlElasticPool"; + public const string SqlShardMap = "SqlShardMap"; + public const string SqlServer = "SqlServer"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobTargetTypeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobTargetTypeConverter.cs deleted file mode 100644 index 8b117d0ea11e..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobTargetTypeConverter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for JobTargetType. - /// - public sealed class JobTargetTypeConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to JobTargetType by the - /// converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(JobTargetType).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to JobTargetType. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (JobTargetType)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for JobTargetType for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/LogSizeCapability.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/LogSizeCapability.cs index aaf5d85a541b..e374ba951793 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/LogSizeCapability.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/LogSizeCapability.cs @@ -34,7 +34,7 @@ public LogSizeCapability() /// The units that the limit is expressed in. /// Possible values include: 'Megabytes', 'Gigabytes', 'Terabytes', /// 'Petabytes', 'Percent' - public LogSizeCapability(int? limit = default(int?), LogSizeUnit? unit = default(LogSizeUnit?)) + public LogSizeCapability(int? limit = default(int?), string unit = default(string)) { Limit = limit; Unit = unit; @@ -58,7 +58,7 @@ public LogSizeCapability() /// 'Percent' /// [JsonProperty(PropertyName = "unit")] - public LogSizeUnit? Unit { get; private set; } + public string Unit { get; private set; } } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/LogSizeUnit.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/LogSizeUnit.cs index e595a40f2bbc..1b8c8bfc8596 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/LogSizeUnit.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/LogSizeUnit.cs @@ -10,102 +10,16 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for LogSizeUnit. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(LogSizeUnitConverter))] - public struct LogSizeUnit : System.IEquatable + public static class LogSizeUnit { - private LogSizeUnit(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly LogSizeUnit Megabytes = "Megabytes"; - - public static readonly LogSizeUnit Gigabytes = "Gigabytes"; - - public static readonly LogSizeUnit Terabytes = "Terabytes"; - - public static readonly LogSizeUnit Petabytes = "Petabytes"; - - public static readonly LogSizeUnit Percent = "Percent"; - - - /// - /// Underlying value of enum LogSizeUnit - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for LogSizeUnit - /// - public override string ToString() - { - return UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type LogSizeUnit - /// - public bool Equals(LogSizeUnit e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to LogSizeUnit - /// - public static implicit operator LogSizeUnit(string value) - { - return new LogSizeUnit(value); - } - - /// - /// Implicit operator to convert LogSizeUnit to string - /// - public static implicit operator string(LogSizeUnit e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum LogSizeUnit - /// - public static bool operator == (LogSizeUnit e1, LogSizeUnit e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum LogSizeUnit - /// - public static bool operator != (LogSizeUnit e1, LogSizeUnit e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for LogSizeUnit - /// - public override bool Equals(object obj) - { - return obj is LogSizeUnit && Equals((LogSizeUnit)obj); - } - - /// - /// Returns for hashCode LogSizeUnit - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string Megabytes = "Megabytes"; + public const string Gigabytes = "Gigabytes"; + public const string Terabytes = "Terabytes"; + public const string Petabytes = "Petabytes"; + public const string Percent = "Percent"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/LogSizeUnitConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/LogSizeUnitConverter.cs deleted file mode 100644 index bb9f436d6278..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/LogSizeUnitConverter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for LogSizeUnit. - /// - public sealed class LogSizeUnitConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to LogSizeUnit by the - /// converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(LogSizeUnit).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to LogSizeUnit. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (LogSizeUnit)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for LogSizeUnit for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/LongTermRetentionDatabaseState.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/LongTermRetentionDatabaseState.cs index 341242387fe3..5bcd5d6f4710 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/LongTermRetentionDatabaseState.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/LongTermRetentionDatabaseState.cs @@ -10,100 +10,14 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for LongTermRetentionDatabaseState. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(LongTermRetentionDatabaseStateConverter))] - public struct LongTermRetentionDatabaseState : System.IEquatable + public static class LongTermRetentionDatabaseState { - private LongTermRetentionDatabaseState(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly LongTermRetentionDatabaseState All = "All"; - - public static readonly LongTermRetentionDatabaseState Live = "Live"; - - public static readonly LongTermRetentionDatabaseState Deleted = "Deleted"; - - - /// - /// Underlying value of enum LongTermRetentionDatabaseState - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for LongTermRetentionDatabaseState - /// - public override string ToString() - { - return UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type LongTermRetentionDatabaseState - /// - public bool Equals(LongTermRetentionDatabaseState e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to - /// LongTermRetentionDatabaseState - /// - public static implicit operator LongTermRetentionDatabaseState(string value) - { - return new LongTermRetentionDatabaseState(value); - } - - /// - /// Implicit operator to convert LongTermRetentionDatabaseState to - /// string - /// - public static implicit operator string(LongTermRetentionDatabaseState e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum LongTermRetentionDatabaseState - /// - public static bool operator == (LongTermRetentionDatabaseState e1, LongTermRetentionDatabaseState e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum LongTermRetentionDatabaseState - /// - public static bool operator != (LongTermRetentionDatabaseState e1, LongTermRetentionDatabaseState e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for LongTermRetentionDatabaseState - /// - public override bool Equals(object obj) - { - return obj is LongTermRetentionDatabaseState && Equals((LongTermRetentionDatabaseState)obj); - } - - /// - /// Returns for hashCode LongTermRetentionDatabaseState - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string All = "All"; + public const string Live = "Live"; + public const string Deleted = "Deleted"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/LongTermRetentionDatabaseStateConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/LongTermRetentionDatabaseStateConverter.cs deleted file mode 100644 index ecda89352bb8..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/LongTermRetentionDatabaseStateConverter.cs +++ /dev/null @@ -1,55 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for LongTermRetentionDatabaseState. - /// - public sealed class LongTermRetentionDatabaseStateConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to - /// LongTermRetentionDatabaseState by the converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(LongTermRetentionDatabaseState).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to - /// LongTermRetentionDatabaseState. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (LongTermRetentionDatabaseState)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for LongTermRetentionDatabaseState for - /// serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedDatabase.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedDatabase.cs index d16a278fd6e2..097d79ad06b1 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedDatabase.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedDatabase.cs @@ -93,7 +93,7 @@ public ManagedDatabase() /// of this managed database. /// Last backup file name for restore of /// this managed database. - public ManagedDatabase(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), string collation = default(string), ManagedDatabaseStatus? status = default(ManagedDatabaseStatus?), System.DateTime? creationDate = default(System.DateTime?), System.DateTime? earliestRestorePoint = default(System.DateTime?), System.DateTime? restorePointInTime = default(System.DateTime?), string defaultSecondaryLocation = default(string), CatalogCollationType? catalogCollation = default(CatalogCollationType?), ManagedDatabaseCreateMode? createMode = default(ManagedDatabaseCreateMode?), string storageContainerUri = default(string), string sourceDatabaseId = default(string), string restorableDroppedDatabaseId = default(string), string storageContainerSasToken = default(string), string failoverGroupId = default(string), string recoverableDatabaseId = default(string), string longTermRetentionBackupResourceId = default(string), bool? autoCompleteRestore = default(bool?), string lastBackupName = default(string)) + public ManagedDatabase(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), string collation = default(string), string status = default(string), System.DateTime? creationDate = default(System.DateTime?), System.DateTime? earliestRestorePoint = default(System.DateTime?), System.DateTime? restorePointInTime = default(System.DateTime?), string defaultSecondaryLocation = default(string), string catalogCollation = default(string), string createMode = default(string), string storageContainerUri = default(string), string sourceDatabaseId = default(string), string restorableDroppedDatabaseId = default(string), string storageContainerSasToken = default(string), string failoverGroupId = default(string), string recoverableDatabaseId = default(string), string longTermRetentionBackupResourceId = default(string), bool? autoCompleteRestore = default(bool?), string lastBackupName = default(string)) : base(location, id, name, type, tags) { Collation = collation; @@ -133,7 +133,7 @@ public ManagedDatabase() /// 'Updating' /// [JsonProperty(PropertyName = "properties.status")] - public ManagedDatabaseStatus? Status { get; private set; } + public string Status { get; private set; } /// /// Gets creation date of the database. @@ -167,7 +167,7 @@ public ManagedDatabase() /// include: 'DATABASE_DEFAULT', 'SQL_Latin1_General_CP1_CI_AS' /// [JsonProperty(PropertyName = "properties.catalogCollation")] - public CatalogCollationType? CatalogCollation { get; set; } + public string CatalogCollation { get; set; } /// /// Gets or sets managed database create mode. PointInTimeRestore: @@ -185,7 +185,7 @@ public ManagedDatabase() /// 'Recovery', 'RestoreLongTermRetentionBackup' /// [JsonProperty(PropertyName = "properties.createMode")] - public ManagedDatabaseCreateMode? CreateMode { get; set; } + public string CreateMode { get; set; } /// /// Gets or sets conditional. If createMode is RestoreExternalBackup, diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedDatabaseCreateMode.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedDatabaseCreateMode.cs index 8edb412f8b74..c7c1e20d8260 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedDatabaseCreateMode.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedDatabaseCreateMode.cs @@ -10,102 +10,16 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for ManagedDatabaseCreateMode. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(ManagedDatabaseCreateModeConverter))] - public struct ManagedDatabaseCreateMode : System.IEquatable + public static class ManagedDatabaseCreateMode { - private ManagedDatabaseCreateMode(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly ManagedDatabaseCreateMode Default = "Default"; - - public static readonly ManagedDatabaseCreateMode RestoreExternalBackup = "RestoreExternalBackup"; - - public static readonly ManagedDatabaseCreateMode PointInTimeRestore = "PointInTimeRestore"; - - public static readonly ManagedDatabaseCreateMode Recovery = "Recovery"; - - public static readonly ManagedDatabaseCreateMode RestoreLongTermRetentionBackup = "RestoreLongTermRetentionBackup"; - - - /// - /// Underlying value of enum ManagedDatabaseCreateMode - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for ManagedDatabaseCreateMode - /// - public override string ToString() - { - return UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type ManagedDatabaseCreateMode - /// - public bool Equals(ManagedDatabaseCreateMode e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to ManagedDatabaseCreateMode - /// - public static implicit operator ManagedDatabaseCreateMode(string value) - { - return new ManagedDatabaseCreateMode(value); - } - - /// - /// Implicit operator to convert ManagedDatabaseCreateMode to string - /// - public static implicit operator string(ManagedDatabaseCreateMode e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum ManagedDatabaseCreateMode - /// - public static bool operator == (ManagedDatabaseCreateMode e1, ManagedDatabaseCreateMode e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum ManagedDatabaseCreateMode - /// - public static bool operator != (ManagedDatabaseCreateMode e1, ManagedDatabaseCreateMode e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for ManagedDatabaseCreateMode - /// - public override bool Equals(object obj) - { - return obj is ManagedDatabaseCreateMode && Equals((ManagedDatabaseCreateMode)obj); - } - - /// - /// Returns for hashCode ManagedDatabaseCreateMode - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string Default = "Default"; + public const string RestoreExternalBackup = "RestoreExternalBackup"; + public const string PointInTimeRestore = "PointInTimeRestore"; + public const string Recovery = "Recovery"; + public const string RestoreLongTermRetentionBackup = "RestoreLongTermRetentionBackup"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedDatabaseCreateModeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedDatabaseCreateModeConverter.cs deleted file mode 100644 index bfc490f8b789..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedDatabaseCreateModeConverter.cs +++ /dev/null @@ -1,54 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for ManagedDatabaseCreateMode. - /// - public sealed class ManagedDatabaseCreateModeConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to ManagedDatabaseCreateMode - /// by the converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(ManagedDatabaseCreateMode).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to ManagedDatabaseCreateMode. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (ManagedDatabaseCreateMode)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for ManagedDatabaseCreateMode for - /// serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedDatabaseStatus.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedDatabaseStatus.cs index df66c5020284..fb53873a68b4 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedDatabaseStatus.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedDatabaseStatus.cs @@ -10,106 +10,18 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for ManagedDatabaseStatus. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(ManagedDatabaseStatusConverter))] - public struct ManagedDatabaseStatus : System.IEquatable + public static class ManagedDatabaseStatus { - private ManagedDatabaseStatus(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly ManagedDatabaseStatus Online = "Online"; - - public static readonly ManagedDatabaseStatus Offline = "Offline"; - - public static readonly ManagedDatabaseStatus Shutdown = "Shutdown"; - - public static readonly ManagedDatabaseStatus Creating = "Creating"; - - public static readonly ManagedDatabaseStatus Inaccessible = "Inaccessible"; - - public static readonly ManagedDatabaseStatus Restoring = "Restoring"; - - public static readonly ManagedDatabaseStatus Updating = "Updating"; - - - /// - /// Underlying value of enum ManagedDatabaseStatus - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for ManagedDatabaseStatus - /// - public override string ToString() - { - return UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type ManagedDatabaseStatus - /// - public bool Equals(ManagedDatabaseStatus e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to ManagedDatabaseStatus - /// - public static implicit operator ManagedDatabaseStatus(string value) - { - return new ManagedDatabaseStatus(value); - } - - /// - /// Implicit operator to convert ManagedDatabaseStatus to string - /// - public static implicit operator string(ManagedDatabaseStatus e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum ManagedDatabaseStatus - /// - public static bool operator == (ManagedDatabaseStatus e1, ManagedDatabaseStatus e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum ManagedDatabaseStatus - /// - public static bool operator != (ManagedDatabaseStatus e1, ManagedDatabaseStatus e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for ManagedDatabaseStatus - /// - public override bool Equals(object obj) - { - return obj is ManagedDatabaseStatus && Equals((ManagedDatabaseStatus)obj); - } - - /// - /// Returns for hashCode ManagedDatabaseStatus - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string Online = "Online"; + public const string Offline = "Offline"; + public const string Shutdown = "Shutdown"; + public const string Creating = "Creating"; + public const string Inaccessible = "Inaccessible"; + public const string Restoring = "Restoring"; + public const string Updating = "Updating"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedDatabaseStatusConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedDatabaseStatusConverter.cs deleted file mode 100644 index 3478b2db9f0a..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedDatabaseStatusConverter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for ManagedDatabaseStatus. - /// - public sealed class ManagedDatabaseStatusConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to ManagedDatabaseStatus by - /// the converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(ManagedDatabaseStatus).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to ManagedDatabaseStatus. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (ManagedDatabaseStatus)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for ManagedDatabaseStatus for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedDatabaseUpdate.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedDatabaseUpdate.cs index 6729a79e652a..4afb5faa70f0 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedDatabaseUpdate.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedDatabaseUpdate.cs @@ -89,7 +89,7 @@ public ManagedDatabaseUpdate() /// Last backup file name for restore of /// this managed database. /// Resource tags. - public ManagedDatabaseUpdate(string collation = default(string), ManagedDatabaseStatus? status = default(ManagedDatabaseStatus?), System.DateTime? creationDate = default(System.DateTime?), System.DateTime? earliestRestorePoint = default(System.DateTime?), System.DateTime? restorePointInTime = default(System.DateTime?), string defaultSecondaryLocation = default(string), CatalogCollationType? catalogCollation = default(CatalogCollationType?), ManagedDatabaseCreateMode? createMode = default(ManagedDatabaseCreateMode?), string storageContainerUri = default(string), string sourceDatabaseId = default(string), string restorableDroppedDatabaseId = default(string), string storageContainerSasToken = default(string), string failoverGroupId = default(string), string recoverableDatabaseId = default(string), string longTermRetentionBackupResourceId = default(string), bool? autoCompleteRestore = default(bool?), string lastBackupName = default(string), IDictionary tags = default(IDictionary)) + public ManagedDatabaseUpdate(string collation = default(string), string status = default(string), System.DateTime? creationDate = default(System.DateTime?), System.DateTime? earliestRestorePoint = default(System.DateTime?), System.DateTime? restorePointInTime = default(System.DateTime?), string defaultSecondaryLocation = default(string), string catalogCollation = default(string), string createMode = default(string), string storageContainerUri = default(string), string sourceDatabaseId = default(string), string restorableDroppedDatabaseId = default(string), string storageContainerSasToken = default(string), string failoverGroupId = default(string), string recoverableDatabaseId = default(string), string longTermRetentionBackupResourceId = default(string), bool? autoCompleteRestore = default(bool?), string lastBackupName = default(string), IDictionary tags = default(IDictionary)) { Collation = collation; Status = status; @@ -129,7 +129,7 @@ public ManagedDatabaseUpdate() /// 'Updating' /// [JsonProperty(PropertyName = "properties.status")] - public ManagedDatabaseStatus? Status { get; private set; } + public string Status { get; private set; } /// /// Gets creation date of the database. @@ -163,7 +163,7 @@ public ManagedDatabaseUpdate() /// include: 'DATABASE_DEFAULT', 'SQL_Latin1_General_CP1_CI_AS' /// [JsonProperty(PropertyName = "properties.catalogCollation")] - public CatalogCollationType? CatalogCollation { get; set; } + public string CatalogCollation { get; set; } /// /// Gets or sets managed database create mode. PointInTimeRestore: @@ -181,7 +181,7 @@ public ManagedDatabaseUpdate() /// 'Recovery', 'RestoreLongTermRetentionBackup' /// [JsonProperty(PropertyName = "properties.createMode")] - public ManagedDatabaseCreateMode? CreateMode { get; set; } + public string CreateMode { get; set; } /// /// Gets or sets conditional. If createMode is RestoreExternalBackup, diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstance.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstance.cs index 1e0e2bbf1469..52cd6203274a 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstance.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstance.cs @@ -114,7 +114,7 @@ public ManagedInstance() /// (LocallyRedundantStorage), ZRS (ZoneRedundantStorage) and GRS /// (GeoRedundantStorage). Possible values include: 'GRS', 'LRS', /// 'ZRS' - public ManagedInstance(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), ResourceIdentity identity = default(ResourceIdentity), Sku sku = default(Sku), string provisioningState = default(string), ManagedServerCreateMode? managedInstanceCreateMode = default(ManagedServerCreateMode?), string fullyQualifiedDomainName = default(string), string administratorLogin = default(string), string administratorLoginPassword = default(string), string subnetId = default(string), string state = default(string), ManagedInstanceLicenseType? licenseType = default(ManagedInstanceLicenseType?), int? vCores = default(int?), int? storageSizeInGB = default(int?), string collation = default(string), string dnsZone = default(string), string dnsZonePartner = default(string), bool? publicDataEndpointEnabled = default(bool?), string sourceManagedInstanceId = default(string), System.DateTime? restorePointInTime = default(System.DateTime?), ManagedInstanceProxyOverride? proxyOverride = default(ManagedInstanceProxyOverride?), string timezoneId = default(string), string instancePoolId = default(string), string maintenanceConfigurationId = default(string), string minimalTlsVersion = default(string), StorageAccountType? storageAccountType = default(StorageAccountType?)) + public ManagedInstance(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), ResourceIdentity identity = default(ResourceIdentity), Sku sku = default(Sku), string provisioningState = default(string), string managedInstanceCreateMode = default(string), string fullyQualifiedDomainName = default(string), string administratorLogin = default(string), string administratorLoginPassword = default(string), string subnetId = default(string), string state = default(string), string licenseType = default(string), int? vCores = default(int?), int? storageSizeInGB = default(int?), string collation = default(string), string dnsZone = default(string), string dnsZonePartner = default(string), bool? publicDataEndpointEnabled = default(bool?), string sourceManagedInstanceId = default(string), System.DateTime? restorePointInTime = default(System.DateTime?), string proxyOverride = default(string), string timezoneId = default(string), string instancePoolId = default(string), string maintenanceConfigurationId = default(string), string minimalTlsVersion = default(string), string storageAccountType = default(string)) : base(location, id, name, type, tags) { Identity = identity; @@ -181,7 +181,7 @@ public ManagedInstance() /// 'Default', 'PointInTimeRestore' /// [JsonProperty(PropertyName = "properties.managedInstanceCreateMode")] - public ManagedServerCreateMode? ManagedInstanceCreateMode { get; set; } + public string ManagedInstanceCreateMode { get; set; } /// /// Gets the fully qualified domain name of the managed instance. @@ -223,7 +223,7 @@ public ManagedInstance() /// licenses). Possible values include: 'LicenseIncluded', 'BasePrice' /// [JsonProperty(PropertyName = "properties.licenseType")] - public ManagedInstanceLicenseType? LicenseType { get; set; } + public string LicenseType { get; set; } /// /// Gets or sets the number of vCores. Allowed values: 8, 16, 24, 32, @@ -283,7 +283,7 @@ public ManagedInstance() /// Possible values include: 'Proxy', 'Redirect', 'Default' /// [JsonProperty(PropertyName = "properties.proxyOverride")] - public ManagedInstanceProxyOverride? ProxyOverride { get; set; } + public string ProxyOverride { get; set; } /// /// Gets or sets id of the timezone. Allowed values are timezones @@ -330,7 +330,7 @@ public ManagedInstance() /// values include: 'GRS', 'LRS', 'ZRS' /// [JsonProperty(PropertyName = "properties.storageAccountType")] - public StorageAccountType? StorageAccountType { get; set; } + public string StorageAccountType { get; set; } /// /// Validate the object. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceEncryptionProtector.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceEncryptionProtector.cs index 73de91c7a668..10a41136245f 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceEncryptionProtector.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceEncryptionProtector.cs @@ -46,7 +46,7 @@ public ManagedInstanceEncryptionProtector() /// key. /// The URI of the server key. /// Thumbprint of the server key. - public ManagedInstanceEncryptionProtector(ServerKeyType serverKeyType, string id = default(string), string name = default(string), string type = default(string), string kind = default(string), string serverKeyName = default(string), string uri = default(string), string thumbprint = default(string)) + public ManagedInstanceEncryptionProtector(string serverKeyType, string id = default(string), string name = default(string), string type = default(string), string kind = default(string), string serverKeyName = default(string), string uri = default(string), string thumbprint = default(string)) : base(id, name, type) { Kind = kind; @@ -81,7 +81,7 @@ public ManagedInstanceEncryptionProtector() /// 'AzureKeyVault' /// [JsonProperty(PropertyName = "properties.serverKeyType")] - public ServerKeyType ServerKeyType { get; set; } + public string ServerKeyType { get; set; } /// /// Gets the URI of the server key. @@ -103,6 +103,10 @@ public ManagedInstanceEncryptionProtector() /// public virtual void Validate() { + if (ServerKeyType == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "ServerKeyType"); + } } } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceKey.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceKey.cs index b4bd7e381580..da6ab159a907 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceKey.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceKey.cs @@ -44,7 +44,7 @@ public ManagedInstanceKey() /// AzureKeyVault, then the URI is required. /// Thumbprint of the key. /// The key creation date. - public ManagedInstanceKey(ServerKeyType serverKeyType, string id = default(string), string name = default(string), string type = default(string), string kind = default(string), string uri = default(string), string thumbprint = default(string), System.DateTime? creationDate = default(System.DateTime?)) + public ManagedInstanceKey(string serverKeyType, string id = default(string), string name = default(string), string type = default(string), string kind = default(string), string uri = default(string), string thumbprint = default(string), System.DateTime? creationDate = default(System.DateTime?)) : base(id, name, type) { Kind = kind; @@ -72,7 +72,7 @@ public ManagedInstanceKey() /// Possible values include: 'ServiceManaged', 'AzureKeyVault' /// [JsonProperty(PropertyName = "properties.serverKeyType")] - public ServerKeyType ServerKeyType { get; set; } + public string ServerKeyType { get; set; } /// /// Gets or sets the URI of the key. If the ServerKeyType is @@ -101,6 +101,10 @@ public ManagedInstanceKey() /// public virtual void Validate() { + if (ServerKeyType == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "ServerKeyType"); + } } } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceLicenseType.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceLicenseType.cs index 40cc37539f93..518832b8e90d 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceLicenseType.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceLicenseType.cs @@ -10,96 +10,13 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for ManagedInstanceLicenseType. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(ManagedInstanceLicenseTypeConverter))] - public struct ManagedInstanceLicenseType : System.IEquatable + public static class ManagedInstanceLicenseType { - private ManagedInstanceLicenseType(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly ManagedInstanceLicenseType LicenseIncluded = "LicenseIncluded"; - - public static readonly ManagedInstanceLicenseType BasePrice = "BasePrice"; - - - /// - /// Underlying value of enum ManagedInstanceLicenseType - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for ManagedInstanceLicenseType - /// - public override string ToString() - { - return UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type ManagedInstanceLicenseType - /// - public bool Equals(ManagedInstanceLicenseType e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to ManagedInstanceLicenseType - /// - public static implicit operator ManagedInstanceLicenseType(string value) - { - return new ManagedInstanceLicenseType(value); - } - - /// - /// Implicit operator to convert ManagedInstanceLicenseType to string - /// - public static implicit operator string(ManagedInstanceLicenseType e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum ManagedInstanceLicenseType - /// - public static bool operator == (ManagedInstanceLicenseType e1, ManagedInstanceLicenseType e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum ManagedInstanceLicenseType - /// - public static bool operator != (ManagedInstanceLicenseType e1, ManagedInstanceLicenseType e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for ManagedInstanceLicenseType - /// - public override bool Equals(object obj) - { - return obj is ManagedInstanceLicenseType && Equals((ManagedInstanceLicenseType)obj); - } - - /// - /// Returns for hashCode ManagedInstanceLicenseType - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string LicenseIncluded = "LicenseIncluded"; + public const string BasePrice = "BasePrice"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceLicenseTypeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceLicenseTypeConverter.cs deleted file mode 100644 index 3299377a282e..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceLicenseTypeConverter.cs +++ /dev/null @@ -1,55 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for ManagedInstanceLicenseType. - /// - public sealed class ManagedInstanceLicenseTypeConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to - /// ManagedInstanceLicenseType by the converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(ManagedInstanceLicenseType).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to - /// ManagedInstanceLicenseType. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (ManagedInstanceLicenseType)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for ManagedInstanceLicenseType for - /// serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceOperation.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceOperation.cs index 9c408ac62043..bcec42027099 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceOperation.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceOperation.cs @@ -59,7 +59,7 @@ public ManagedInstanceOperation() /// cancelled. /// The operation parameters. /// The operation steps. - public ManagedInstanceOperation(string id = default(string), string name = default(string), string type = default(string), string managedInstanceName = default(string), string operation = default(string), string operationFriendlyName = default(string), int? percentComplete = default(int?), System.DateTime? startTime = default(System.DateTime?), ManagementOperationState? state = default(ManagementOperationState?), int? errorCode = default(int?), string errorDescription = default(string), int? errorSeverity = default(int?), bool? isUserError = default(bool?), System.DateTime? estimatedCompletionTime = default(System.DateTime?), string description = default(string), bool? isCancellable = default(bool?), ManagedInstanceOperationParametersPair operationParameters = default(ManagedInstanceOperationParametersPair), ManagedInstanceOperationSteps operationSteps = default(ManagedInstanceOperationSteps)) + public ManagedInstanceOperation(string id = default(string), string name = default(string), string type = default(string), string managedInstanceName = default(string), string operation = default(string), string operationFriendlyName = default(string), int? percentComplete = default(int?), System.DateTime? startTime = default(System.DateTime?), string state = default(string), int? errorCode = default(int?), string errorDescription = default(string), int? errorSeverity = default(int?), bool? isUserError = default(bool?), System.DateTime? estimatedCompletionTime = default(System.DateTime?), string description = default(string), bool? isCancellable = default(bool?), ManagedInstanceOperationParametersPair operationParameters = default(ManagedInstanceOperationParametersPair), ManagedInstanceOperationSteps operationSteps = default(ManagedInstanceOperationSteps)) : base(id, name, type) { ManagedInstanceName = managedInstanceName; @@ -122,7 +122,7 @@ public ManagedInstanceOperation() /// 'Cancelled' /// [JsonProperty(PropertyName = "properties.state")] - public ManagementOperationState? State { get; private set; } + public string State { get; private set; } /// /// Gets the operation error code. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceProxyOverride.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceProxyOverride.cs index ca55ea27c5b1..dd6d2f660269 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceProxyOverride.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceProxyOverride.cs @@ -10,98 +10,14 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for ManagedInstanceProxyOverride. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(ManagedInstanceProxyOverrideConverter))] - public struct ManagedInstanceProxyOverride : System.IEquatable + public static class ManagedInstanceProxyOverride { - private ManagedInstanceProxyOverride(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly ManagedInstanceProxyOverride Proxy = "Proxy"; - - public static readonly ManagedInstanceProxyOverride Redirect = "Redirect"; - - public static readonly ManagedInstanceProxyOverride Default = "Default"; - - - /// - /// Underlying value of enum ManagedInstanceProxyOverride - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for ManagedInstanceProxyOverride - /// - public override string ToString() - { - return UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type ManagedInstanceProxyOverride - /// - public bool Equals(ManagedInstanceProxyOverride e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to ManagedInstanceProxyOverride - /// - public static implicit operator ManagedInstanceProxyOverride(string value) - { - return new ManagedInstanceProxyOverride(value); - } - - /// - /// Implicit operator to convert ManagedInstanceProxyOverride to string - /// - public static implicit operator string(ManagedInstanceProxyOverride e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum ManagedInstanceProxyOverride - /// - public static bool operator == (ManagedInstanceProxyOverride e1, ManagedInstanceProxyOverride e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum ManagedInstanceProxyOverride - /// - public static bool operator != (ManagedInstanceProxyOverride e1, ManagedInstanceProxyOverride e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for ManagedInstanceProxyOverride - /// - public override bool Equals(object obj) - { - return obj is ManagedInstanceProxyOverride && Equals((ManagedInstanceProxyOverride)obj); - } - - /// - /// Returns for hashCode ManagedInstanceProxyOverride - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string Proxy = "Proxy"; + public const string Redirect = "Redirect"; + public const string Default = "Default"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceProxyOverrideConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceProxyOverrideConverter.cs deleted file mode 100644 index bf7fbf0f8b03..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceProxyOverrideConverter.cs +++ /dev/null @@ -1,55 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for ManagedInstanceProxyOverride. - /// - public sealed class ManagedInstanceProxyOverrideConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to - /// ManagedInstanceProxyOverride by the converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(ManagedInstanceProxyOverride).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to - /// ManagedInstanceProxyOverride. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (ManagedInstanceProxyOverride)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for ManagedInstanceProxyOverride for - /// serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceUpdate.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceUpdate.cs index 612e4dad5760..ee021f2b815c 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceUpdate.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceUpdate.cs @@ -107,7 +107,7 @@ public ManagedInstanceUpdate() /// (GeoRedundantStorage). Possible values include: 'GRS', 'LRS', /// 'ZRS' /// Resource tags. - public ManagedInstanceUpdate(Sku sku = default(Sku), string provisioningState = default(string), ManagedServerCreateMode? managedInstanceCreateMode = default(ManagedServerCreateMode?), string fullyQualifiedDomainName = default(string), string administratorLogin = default(string), string administratorLoginPassword = default(string), string subnetId = default(string), string state = default(string), ManagedInstanceLicenseType? licenseType = default(ManagedInstanceLicenseType?), int? vCores = default(int?), int? storageSizeInGB = default(int?), string collation = default(string), string dnsZone = default(string), string dnsZonePartner = default(string), bool? publicDataEndpointEnabled = default(bool?), string sourceManagedInstanceId = default(string), System.DateTime? restorePointInTime = default(System.DateTime?), ManagedInstanceProxyOverride? proxyOverride = default(ManagedInstanceProxyOverride?), string timezoneId = default(string), string instancePoolId = default(string), string maintenanceConfigurationId = default(string), string minimalTlsVersion = default(string), StorageAccountType? storageAccountType = default(StorageAccountType?), IDictionary tags = default(IDictionary)) + public ManagedInstanceUpdate(Sku sku = default(Sku), string provisioningState = default(string), string managedInstanceCreateMode = default(string), string fullyQualifiedDomainName = default(string), string administratorLogin = default(string), string administratorLoginPassword = default(string), string subnetId = default(string), string state = default(string), string licenseType = default(string), int? vCores = default(int?), int? storageSizeInGB = default(int?), string collation = default(string), string dnsZone = default(string), string dnsZonePartner = default(string), bool? publicDataEndpointEnabled = default(bool?), string sourceManagedInstanceId = default(string), System.DateTime? restorePointInTime = default(System.DateTime?), string proxyOverride = default(string), string timezoneId = default(string), string instancePoolId = default(string), string maintenanceConfigurationId = default(string), string minimalTlsVersion = default(string), string storageAccountType = default(string), IDictionary tags = default(IDictionary)) { Sku = sku; ProvisioningState = provisioningState; @@ -165,7 +165,7 @@ public ManagedInstanceUpdate() /// 'Default', 'PointInTimeRestore' /// [JsonProperty(PropertyName = "properties.managedInstanceCreateMode")] - public ManagedServerCreateMode? ManagedInstanceCreateMode { get; set; } + public string ManagedInstanceCreateMode { get; set; } /// /// Gets the fully qualified domain name of the managed instance. @@ -207,7 +207,7 @@ public ManagedInstanceUpdate() /// licenses). Possible values include: 'LicenseIncluded', 'BasePrice' /// [JsonProperty(PropertyName = "properties.licenseType")] - public ManagedInstanceLicenseType? LicenseType { get; set; } + public string LicenseType { get; set; } /// /// Gets or sets the number of vCores. Allowed values: 8, 16, 24, 32, @@ -267,7 +267,7 @@ public ManagedInstanceUpdate() /// Possible values include: 'Proxy', 'Redirect', 'Default' /// [JsonProperty(PropertyName = "properties.proxyOverride")] - public ManagedInstanceProxyOverride? ProxyOverride { get; set; } + public string ProxyOverride { get; set; } /// /// Gets or sets id of the timezone. Allowed values are timezones @@ -314,7 +314,7 @@ public ManagedInstanceUpdate() /// values include: 'GRS', 'LRS', 'ZRS' /// [JsonProperty(PropertyName = "properties.storageAccountType")] - public StorageAccountType? StorageAccountType { get; set; } + public string StorageAccountType { get; set; } /// /// Gets or sets resource tags. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedServerCreateMode.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedServerCreateMode.cs index 6d1ca26a908f..141db5dae3f7 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedServerCreateMode.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedServerCreateMode.cs @@ -10,96 +10,13 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for ManagedServerCreateMode. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(ManagedServerCreateModeConverter))] - public struct ManagedServerCreateMode : System.IEquatable + public static class ManagedServerCreateMode { - private ManagedServerCreateMode(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly ManagedServerCreateMode Default = "Default"; - - public static readonly ManagedServerCreateMode PointInTimeRestore = "PointInTimeRestore"; - - - /// - /// Underlying value of enum ManagedServerCreateMode - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for ManagedServerCreateMode - /// - public override string ToString() - { - return UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type ManagedServerCreateMode - /// - public bool Equals(ManagedServerCreateMode e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to ManagedServerCreateMode - /// - public static implicit operator ManagedServerCreateMode(string value) - { - return new ManagedServerCreateMode(value); - } - - /// - /// Implicit operator to convert ManagedServerCreateMode to string - /// - public static implicit operator string(ManagedServerCreateMode e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum ManagedServerCreateMode - /// - public static bool operator == (ManagedServerCreateMode e1, ManagedServerCreateMode e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum ManagedServerCreateMode - /// - public static bool operator != (ManagedServerCreateMode e1, ManagedServerCreateMode e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for ManagedServerCreateMode - /// - public override bool Equals(object obj) - { - return obj is ManagedServerCreateMode && Equals((ManagedServerCreateMode)obj); - } - - /// - /// Returns for hashCode ManagedServerCreateMode - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string Default = "Default"; + public const string PointInTimeRestore = "PointInTimeRestore"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedServerCreateModeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedServerCreateModeConverter.cs deleted file mode 100644 index a634f8a5f8d9..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedServerCreateModeConverter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for ManagedServerCreateMode. - /// - public sealed class ManagedServerCreateModeConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to ManagedServerCreateMode - /// by the converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(ManagedServerCreateMode).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to ManagedServerCreateMode. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (ManagedServerCreateMode)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for ManagedServerCreateMode for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagementOperationState.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagementOperationState.cs index 14fd4ea107c3..5cc2d5460636 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagementOperationState.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagementOperationState.cs @@ -10,104 +10,17 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for ManagementOperationState. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(ManagementOperationStateConverter))] - public struct ManagementOperationState : System.IEquatable + public static class ManagementOperationState { - private ManagementOperationState(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly ManagementOperationState Pending = "Pending"; - - public static readonly ManagementOperationState InProgress = "InProgress"; - - public static readonly ManagementOperationState Succeeded = "Succeeded"; - - public static readonly ManagementOperationState Failed = "Failed"; - - public static readonly ManagementOperationState CancelInProgress = "CancelInProgress"; - - public static readonly ManagementOperationState Cancelled = "Cancelled"; - - - /// - /// Underlying value of enum ManagementOperationState - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for ManagementOperationState - /// - public override string ToString() - { - return UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type ManagementOperationState - /// - public bool Equals(ManagementOperationState e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to ManagementOperationState - /// - public static implicit operator ManagementOperationState(string value) - { - return new ManagementOperationState(value); - } - - /// - /// Implicit operator to convert ManagementOperationState to string - /// - public static implicit operator string(ManagementOperationState e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum ManagementOperationState - /// - public static bool operator == (ManagementOperationState e1, ManagementOperationState e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum ManagementOperationState - /// - public static bool operator != (ManagementOperationState e1, ManagementOperationState e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for ManagementOperationState - /// - public override bool Equals(object obj) - { - return obj is ManagementOperationState && Equals((ManagementOperationState)obj); - } - - /// - /// Returns for hashCode ManagementOperationState - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string Pending = "Pending"; + public const string InProgress = "InProgress"; + public const string Succeeded = "Succeeded"; + public const string Failed = "Failed"; + public const string CancelInProgress = "CancelInProgress"; + public const string Cancelled = "Cancelled"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagementOperationStateConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagementOperationStateConverter.cs deleted file mode 100644 index a3d6452f16a0..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagementOperationStateConverter.cs +++ /dev/null @@ -1,54 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for ManagementOperationState. - /// - public sealed class ManagementOperationStateConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to ManagementOperationState - /// by the converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(ManagementOperationState).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to ManagementOperationState. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (ManagementOperationState)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for ManagementOperationState for - /// serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/MaxSizeCapability.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/MaxSizeCapability.cs index def373f39d61..e0475eee1066 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/MaxSizeCapability.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/MaxSizeCapability.cs @@ -34,7 +34,7 @@ public MaxSizeCapability() /// The units that the limit is expressed in. /// Possible values include: 'Megabytes', 'Gigabytes', 'Terabytes', /// 'Petabytes' - public MaxSizeCapability(int? limit = default(int?), MaxSizeUnit? unit = default(MaxSizeUnit?)) + public MaxSizeCapability(int? limit = default(int?), string unit = default(string)) { Limit = limit; Unit = unit; @@ -57,7 +57,7 @@ public MaxSizeCapability() /// include: 'Megabytes', 'Gigabytes', 'Terabytes', 'Petabytes' /// [JsonProperty(PropertyName = "unit")] - public MaxSizeUnit? Unit { get; private set; } + public string Unit { get; private set; } } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/MaxSizeUnit.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/MaxSizeUnit.cs index 96177a14eaa8..cdf8f43bfd5c 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/MaxSizeUnit.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/MaxSizeUnit.cs @@ -10,100 +10,15 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for MaxSizeUnit. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(MaxSizeUnitConverter))] - public struct MaxSizeUnit : System.IEquatable + public static class MaxSizeUnit { - private MaxSizeUnit(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly MaxSizeUnit Megabytes = "Megabytes"; - - public static readonly MaxSizeUnit Gigabytes = "Gigabytes"; - - public static readonly MaxSizeUnit Terabytes = "Terabytes"; - - public static readonly MaxSizeUnit Petabytes = "Petabytes"; - - - /// - /// Underlying value of enum MaxSizeUnit - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for MaxSizeUnit - /// - public override string ToString() - { - return UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type MaxSizeUnit - /// - public bool Equals(MaxSizeUnit e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to MaxSizeUnit - /// - public static implicit operator MaxSizeUnit(string value) - { - return new MaxSizeUnit(value); - } - - /// - /// Implicit operator to convert MaxSizeUnit to string - /// - public static implicit operator string(MaxSizeUnit e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum MaxSizeUnit - /// - public static bool operator == (MaxSizeUnit e1, MaxSizeUnit e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum MaxSizeUnit - /// - public static bool operator != (MaxSizeUnit e1, MaxSizeUnit e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for MaxSizeUnit - /// - public override bool Equals(object obj) - { - return obj is MaxSizeUnit && Equals((MaxSizeUnit)obj); - } - - /// - /// Returns for hashCode MaxSizeUnit - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string Megabytes = "Megabytes"; + public const string Gigabytes = "Gigabytes"; + public const string Terabytes = "Terabytes"; + public const string Petabytes = "Petabytes"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/MaxSizeUnitConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/MaxSizeUnitConverter.cs deleted file mode 100644 index a63443040350..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/MaxSizeUnitConverter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for MaxSizeUnit. - /// - public sealed class MaxSizeUnitConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to MaxSizeUnit by the - /// converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(MaxSizeUnit).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to MaxSizeUnit. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (MaxSizeUnit)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for MaxSizeUnit for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/Metric.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/Metric.cs index f81d6baa6b56..c2f7e0249613 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/Metric.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/Metric.cs @@ -43,7 +43,7 @@ public Metric() /// The name information for the metric. /// The metric values for the specified time /// window and timestep. - public Metric(System.DateTime? startTime = default(System.DateTime?), System.DateTime? endTime = default(System.DateTime?), string timeGrain = default(string), UnitType? unit = default(UnitType?), MetricName name = default(MetricName), IList metricValues = default(IList)) + public Metric(System.DateTime? startTime = default(System.DateTime?), System.DateTime? endTime = default(System.DateTime?), string timeGrain = default(string), string unit = default(string), MetricName name = default(MetricName), IList metricValues = default(IList)) { StartTime = startTime; EndTime = endTime; @@ -82,7 +82,7 @@ public Metric() /// 'bytes', 'seconds', 'percent', 'countPerSecond', 'bytesPerSecond' /// [JsonProperty(PropertyName = "unit")] - public UnitType? Unit { get; private set; } + public string Unit { get; private set; } /// /// Gets the name information for the metric. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/MetricDefinition.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/MetricDefinition.cs index dc33003c3588..5bd07c0d50f1 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/MetricDefinition.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/MetricDefinition.cs @@ -41,7 +41,7 @@ public MetricDefinition() /// 'BytesPerSecond' /// The list of database metric /// availabilities for the metric. - public MetricDefinition(MetricName name = default(MetricName), PrimaryAggregationType? primaryAggregationType = default(PrimaryAggregationType?), string resourceUri = default(string), UnitDefinitionType? unit = default(UnitDefinitionType?), IList metricAvailabilities = default(IList)) + public MetricDefinition(MetricName name = default(MetricName), string primaryAggregationType = default(string), string resourceUri = default(string), string unit = default(string), IList metricAvailabilities = default(IList)) { Name = name; PrimaryAggregationType = primaryAggregationType; @@ -68,7 +68,7 @@ public MetricDefinition() /// 'Minimum', 'Maximum', 'Total' /// [JsonProperty(PropertyName = "primaryAggregationType")] - public PrimaryAggregationType? PrimaryAggregationType { get; private set; } + public string PrimaryAggregationType { get; private set; } /// /// Gets the resource uri of the database. @@ -81,7 +81,7 @@ public MetricDefinition() /// 'Bytes', 'Seconds', 'Percent', 'CountPerSecond', 'BytesPerSecond' /// [JsonProperty(PropertyName = "unit")] - public UnitDefinitionType? Unit { get; private set; } + public string Unit { get; private set; } /// /// Gets the list of database metric availabilities for the metric. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/Operation.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/Operation.cs index d6f75827c8ff..fcf0b7b48dbc 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/Operation.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/Operation.cs @@ -39,7 +39,7 @@ public Operation() /// Possible values include: 'user', 'system' /// Additional descriptions for the /// operation. - public Operation(string name = default(string), OperationDisplay display = default(OperationDisplay), OperationOrigin? origin = default(OperationOrigin?), IDictionary properties = default(IDictionary)) + public Operation(string name = default(string), OperationDisplay display = default(OperationDisplay), string origin = default(string), IDictionary properties = default(IDictionary)) { Name = name; Display = display; @@ -72,7 +72,7 @@ public Operation() /// include: 'user', 'system' /// [JsonProperty(PropertyName = "origin")] - public OperationOrigin? Origin { get; private set; } + public string Origin { get; private set; } /// /// Gets additional descriptions for the operation. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/OperationOrigin.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/OperationOrigin.cs index 350fa72bba26..4d779e5b4c1a 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/OperationOrigin.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/OperationOrigin.cs @@ -10,96 +10,13 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for OperationOrigin. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(OperationOriginConverter))] - public struct OperationOrigin : System.IEquatable + public static class OperationOrigin { - private OperationOrigin(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly OperationOrigin User = "user"; - - public static readonly OperationOrigin System = "system"; - - - /// - /// Underlying value of enum OperationOrigin - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for OperationOrigin - /// - public override string ToString() - { - return UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type OperationOrigin - /// - public bool Equals(OperationOrigin e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to OperationOrigin - /// - public static implicit operator OperationOrigin(string value) - { - return new OperationOrigin(value); - } - - /// - /// Implicit operator to convert OperationOrigin to string - /// - public static implicit operator string(OperationOrigin e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum OperationOrigin - /// - public static bool operator == (OperationOrigin e1, OperationOrigin e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum OperationOrigin - /// - public static bool operator != (OperationOrigin e1, OperationOrigin e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for OperationOrigin - /// - public override bool Equals(object obj) - { - return obj is OperationOrigin && Equals((OperationOrigin)obj); - } - - /// - /// Returns for hashCode OperationOrigin - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string User = "user"; + public const string System = "system"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/OperationOriginConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/OperationOriginConverter.cs deleted file mode 100644 index 4375b48232c9..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/OperationOriginConverter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for OperationOrigin. - /// - public sealed class OperationOriginConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to OperationOrigin by the - /// converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(OperationOrigin).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to OperationOrigin. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (OperationOrigin)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for OperationOrigin for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PartnerInfo.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PartnerInfo.cs index e6fe406b738d..440a5d14a763 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PartnerInfo.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PartnerInfo.cs @@ -34,7 +34,7 @@ public PartnerInfo() /// Geo location of the partner server. /// Replication role of the partner /// server. Possible values include: 'Primary', 'Secondary' - public PartnerInfo(string id, string location = default(string), FailoverGroupReplicationRole? replicationRole = default(FailoverGroupReplicationRole?)) + public PartnerInfo(string id, string location = default(string), string replicationRole = default(string)) { Id = id; Location = location; @@ -64,7 +64,7 @@ public PartnerInfo() /// include: 'Primary', 'Secondary' /// [JsonProperty(PropertyName = "replicationRole")] - public FailoverGroupReplicationRole? ReplicationRole { get; private set; } + public string ReplicationRole { get; private set; } /// /// Validate the object. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PartnerRegionInfo.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PartnerRegionInfo.cs index a816aa9c042f..4835389285ef 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PartnerRegionInfo.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PartnerRegionInfo.cs @@ -34,7 +34,7 @@ public PartnerRegionInfo() /// Replication role of the partner /// managed instances. Possible values include: 'Primary', /// 'Secondary' - public PartnerRegionInfo(string location = default(string), InstanceFailoverGroupReplicationRole? replicationRole = default(InstanceFailoverGroupReplicationRole?)) + public PartnerRegionInfo(string location = default(string), string replicationRole = default(string)) { Location = location; ReplicationRole = replicationRole; @@ -57,7 +57,7 @@ public PartnerRegionInfo() /// values include: 'Primary', 'Secondary' /// [JsonProperty(PropertyName = "replicationRole")] - public InstanceFailoverGroupReplicationRole? ReplicationRole { get; private set; } + public string ReplicationRole { get; private set; } } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PauseDelayTimeUnit.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PauseDelayTimeUnit.cs index caa8340bbd93..3f1dbe1e042c 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PauseDelayTimeUnit.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PauseDelayTimeUnit.cs @@ -10,94 +10,12 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for PauseDelayTimeUnit. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(PauseDelayTimeUnitConverter))] - public struct PauseDelayTimeUnit : System.IEquatable + public static class PauseDelayTimeUnit { - private PauseDelayTimeUnit(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly PauseDelayTimeUnit Minutes = "Minutes"; - - - /// - /// Underlying value of enum PauseDelayTimeUnit - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for PauseDelayTimeUnit - /// - public override string ToString() - { - return UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type PauseDelayTimeUnit - /// - public bool Equals(PauseDelayTimeUnit e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to PauseDelayTimeUnit - /// - public static implicit operator PauseDelayTimeUnit(string value) - { - return new PauseDelayTimeUnit(value); - } - - /// - /// Implicit operator to convert PauseDelayTimeUnit to string - /// - public static implicit operator string(PauseDelayTimeUnit e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum PauseDelayTimeUnit - /// - public static bool operator == (PauseDelayTimeUnit e1, PauseDelayTimeUnit e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum PauseDelayTimeUnit - /// - public static bool operator != (PauseDelayTimeUnit e1, PauseDelayTimeUnit e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for PauseDelayTimeUnit - /// - public override bool Equals(object obj) - { - return obj is PauseDelayTimeUnit && Equals((PauseDelayTimeUnit)obj); - } - - /// - /// Returns for hashCode PauseDelayTimeUnit - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string Minutes = "Minutes"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PauseDelayTimeUnitConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PauseDelayTimeUnitConverter.cs deleted file mode 100644 index 13ba249919e9..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PauseDelayTimeUnitConverter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for PauseDelayTimeUnit. - /// - public sealed class PauseDelayTimeUnitConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to PauseDelayTimeUnit by the - /// converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(PauseDelayTimeUnit).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to PauseDelayTimeUnit. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (PauseDelayTimeUnit)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for PauseDelayTimeUnit for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PerformanceLevelCapability.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PerformanceLevelCapability.cs index 5e0493983703..8b04656c9b9c 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PerformanceLevelCapability.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PerformanceLevelCapability.cs @@ -32,7 +32,7 @@ public PerformanceLevelCapability() /// Performance level value. /// Unit type used to measure performance level. /// Possible values include: 'DTU', 'VCores' - public PerformanceLevelCapability(double? value = default(double?), PerformanceLevelUnit? unit = default(PerformanceLevelUnit?)) + public PerformanceLevelCapability(double? value = default(double?), string unit = default(string)) { Value = value; Unit = unit; @@ -55,7 +55,7 @@ public PerformanceLevelCapability() /// include: 'DTU', 'VCores' /// [JsonProperty(PropertyName = "unit")] - public PerformanceLevelUnit? Unit { get; private set; } + public string Unit { get; private set; } } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PerformanceLevelUnit.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PerformanceLevelUnit.cs index a115b6322345..8eb843ed2bc3 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PerformanceLevelUnit.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PerformanceLevelUnit.cs @@ -10,96 +10,13 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for PerformanceLevelUnit. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(PerformanceLevelUnitConverter))] - public struct PerformanceLevelUnit : System.IEquatable + public static class PerformanceLevelUnit { - private PerformanceLevelUnit(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly PerformanceLevelUnit DTU = "DTU"; - - public static readonly PerformanceLevelUnit VCores = "VCores"; - - - /// - /// Underlying value of enum PerformanceLevelUnit - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for PerformanceLevelUnit - /// - public override string ToString() - { - return UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type PerformanceLevelUnit - /// - public bool Equals(PerformanceLevelUnit e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to PerformanceLevelUnit - /// - public static implicit operator PerformanceLevelUnit(string value) - { - return new PerformanceLevelUnit(value); - } - - /// - /// Implicit operator to convert PerformanceLevelUnit to string - /// - public static implicit operator string(PerformanceLevelUnit e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum PerformanceLevelUnit - /// - public static bool operator == (PerformanceLevelUnit e1, PerformanceLevelUnit e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum PerformanceLevelUnit - /// - public static bool operator != (PerformanceLevelUnit e1, PerformanceLevelUnit e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for PerformanceLevelUnit - /// - public override bool Equals(object obj) - { - return obj is PerformanceLevelUnit && Equals((PerformanceLevelUnit)obj); - } - - /// - /// Returns for hashCode PerformanceLevelUnit - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string DTU = "DTU"; + public const string VCores = "VCores"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PerformanceLevelUnitConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PerformanceLevelUnitConverter.cs deleted file mode 100644 index 3d58b1c585e4..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PerformanceLevelUnitConverter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for PerformanceLevelUnit. - /// - public sealed class PerformanceLevelUnitConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to PerformanceLevelUnit by - /// the converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(PerformanceLevelUnit).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to PerformanceLevelUnit. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (PerformanceLevelUnit)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for PerformanceLevelUnit for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrimaryAggregationType.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrimaryAggregationType.cs index fc710e285372..d863b177f680 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrimaryAggregationType.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrimaryAggregationType.cs @@ -10,104 +10,17 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for PrimaryAggregationType. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(PrimaryAggregationTypeConverter))] - public struct PrimaryAggregationType : System.IEquatable + public static class PrimaryAggregationType { - private PrimaryAggregationType(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly PrimaryAggregationType None = "None"; - - public static readonly PrimaryAggregationType Average = "Average"; - - public static readonly PrimaryAggregationType Count = "Count"; - - public static readonly PrimaryAggregationType Minimum = "Minimum"; - - public static readonly PrimaryAggregationType Maximum = "Maximum"; - - public static readonly PrimaryAggregationType Total = "Total"; - - - /// - /// Underlying value of enum PrimaryAggregationType - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for PrimaryAggregationType - /// - public override string ToString() - { - return UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type PrimaryAggregationType - /// - public bool Equals(PrimaryAggregationType e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to PrimaryAggregationType - /// - public static implicit operator PrimaryAggregationType(string value) - { - return new PrimaryAggregationType(value); - } - - /// - /// Implicit operator to convert PrimaryAggregationType to string - /// - public static implicit operator string(PrimaryAggregationType e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum PrimaryAggregationType - /// - public static bool operator == (PrimaryAggregationType e1, PrimaryAggregationType e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum PrimaryAggregationType - /// - public static bool operator != (PrimaryAggregationType e1, PrimaryAggregationType e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for PrimaryAggregationType - /// - public override bool Equals(object obj) - { - return obj is PrimaryAggregationType && Equals((PrimaryAggregationType)obj); - } - - /// - /// Returns for hashCode PrimaryAggregationType - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string None = "None"; + public const string Average = "Average"; + public const string Count = "Count"; + public const string Minimum = "Minimum"; + public const string Maximum = "Maximum"; + public const string Total = "Total"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrimaryAggregationTypeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrimaryAggregationTypeConverter.cs deleted file mode 100644 index 72fcf7333fdf..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrimaryAggregationTypeConverter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for PrimaryAggregationType. - /// - public sealed class PrimaryAggregationTypeConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to PrimaryAggregationType by - /// the converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(PrimaryAggregationType).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to PrimaryAggregationType. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (PrimaryAggregationType)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for PrimaryAggregationType for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateEndpointConnection.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateEndpointConnection.cs index 7d429e5f86b5..1e5b5bd72283 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateEndpointConnection.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateEndpointConnection.cs @@ -42,7 +42,7 @@ public PrivateEndpointConnection() /// State of the private endpoint /// connection. Possible values include: 'Approving', 'Ready', /// 'Dropping', 'Failed', 'Rejecting' - public PrivateEndpointConnection(string id = default(string), string name = default(string), string type = default(string), PrivateEndpointProperty privateEndpoint = default(PrivateEndpointProperty), PrivateLinkServiceConnectionStateProperty privateLinkServiceConnectionState = default(PrivateLinkServiceConnectionStateProperty), PrivateEndpointProvisioningState? provisioningState = default(PrivateEndpointProvisioningState?)) + public PrivateEndpointConnection(string id = default(string), string name = default(string), string type = default(string), PrivateEndpointProperty privateEndpoint = default(PrivateEndpointProperty), PrivateLinkServiceConnectionStateProperty privateLinkServiceConnectionState = default(PrivateLinkServiceConnectionStateProperty), string provisioningState = default(string)) : base(id, name, type) { PrivateEndpoint = privateEndpoint; @@ -73,7 +73,7 @@ public PrivateEndpointConnection() /// include: 'Approving', 'Ready', 'Dropping', 'Failed', 'Rejecting' /// [JsonProperty(PropertyName = "properties.provisioningState")] - public PrivateEndpointProvisioningState? ProvisioningState { get; private set; } + public string ProvisioningState { get; private set; } /// /// Validate the object. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateEndpointConnectionProperties.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateEndpointConnectionProperties.cs index 09f479a5dad3..86d661659397 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateEndpointConnectionProperties.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateEndpointConnectionProperties.cs @@ -38,7 +38,7 @@ public PrivateEndpointConnectionProperties() /// State of the private endpoint /// connection. Possible values include: 'Approving', 'Ready', /// 'Dropping', 'Failed', 'Rejecting' - public PrivateEndpointConnectionProperties(PrivateEndpointProperty privateEndpoint = default(PrivateEndpointProperty), PrivateLinkServiceConnectionStateProperty privateLinkServiceConnectionState = default(PrivateLinkServiceConnectionStateProperty), PrivateEndpointProvisioningState? provisioningState = default(PrivateEndpointProvisioningState?)) + public PrivateEndpointConnectionProperties(PrivateEndpointProperty privateEndpoint = default(PrivateEndpointProperty), PrivateLinkServiceConnectionStateProperty privateLinkServiceConnectionState = default(PrivateLinkServiceConnectionStateProperty), string provisioningState = default(string)) { PrivateEndpoint = privateEndpoint; PrivateLinkServiceConnectionState = privateLinkServiceConnectionState; @@ -68,7 +68,7 @@ public PrivateEndpointConnectionProperties() /// include: 'Approving', 'Ready', 'Dropping', 'Failed', 'Rejecting' /// [JsonProperty(PropertyName = "provisioningState")] - public PrivateEndpointProvisioningState? ProvisioningState { get; private set; } + public string ProvisioningState { get; private set; } /// /// Validate the object. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateEndpointProvisioningState.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateEndpointProvisioningState.cs index 13b8474b6d40..8b51147cfcf2 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateEndpointProvisioningState.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateEndpointProvisioningState.cs @@ -10,104 +10,16 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for PrivateEndpointProvisioningState. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(PrivateEndpointProvisioningStateConverter))] - public struct PrivateEndpointProvisioningState : System.IEquatable + public static class PrivateEndpointProvisioningState { - private PrivateEndpointProvisioningState(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly PrivateEndpointProvisioningState Approving = "Approving"; - - public static readonly PrivateEndpointProvisioningState Ready = "Ready"; - - public static readonly PrivateEndpointProvisioningState Dropping = "Dropping"; - - public static readonly PrivateEndpointProvisioningState Failed = "Failed"; - - public static readonly PrivateEndpointProvisioningState Rejecting = "Rejecting"; - - - /// - /// Underlying value of enum PrivateEndpointProvisioningState - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for PrivateEndpointProvisioningState - /// - public override string ToString() - { - return UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type PrivateEndpointProvisioningState - /// - public bool Equals(PrivateEndpointProvisioningState e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to - /// PrivateEndpointProvisioningState - /// - public static implicit operator PrivateEndpointProvisioningState(string value) - { - return new PrivateEndpointProvisioningState(value); - } - - /// - /// Implicit operator to convert PrivateEndpointProvisioningState to - /// string - /// - public static implicit operator string(PrivateEndpointProvisioningState e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum PrivateEndpointProvisioningState - /// - public static bool operator == (PrivateEndpointProvisioningState e1, PrivateEndpointProvisioningState e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum PrivateEndpointProvisioningState - /// - public static bool operator != (PrivateEndpointProvisioningState e1, PrivateEndpointProvisioningState e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for PrivateEndpointProvisioningState - /// - public override bool Equals(object obj) - { - return obj is PrivateEndpointProvisioningState && Equals((PrivateEndpointProvisioningState)obj); - } - - /// - /// Returns for hashCode PrivateEndpointProvisioningState - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string Approving = "Approving"; + public const string Ready = "Ready"; + public const string Dropping = "Dropping"; + public const string Failed = "Failed"; + public const string Rejecting = "Rejecting"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateEndpointProvisioningStateConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateEndpointProvisioningStateConverter.cs deleted file mode 100644 index 4aba156c0b1e..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateEndpointProvisioningStateConverter.cs +++ /dev/null @@ -1,55 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for PrivateEndpointProvisioningState. - /// - public sealed class PrivateEndpointProvisioningStateConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to - /// PrivateEndpointProvisioningState by the converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(PrivateEndpointProvisioningState).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to - /// PrivateEndpointProvisioningState. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (PrivateEndpointProvisioningState)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for PrivateEndpointProvisioningState for - /// serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateLinkServiceConnectionStateActionsRequire.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateLinkServiceConnectionStateActionsRequire.cs index 9d4f37c6de77..65076ffb9e33 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateLinkServiceConnectionStateActionsRequire.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateLinkServiceConnectionStateActionsRequire.cs @@ -10,103 +10,12 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for PrivateLinkServiceConnectionStateActionsRequire. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(PrivateLinkServiceConnectionStateActionsRequireConverter))] - public struct PrivateLinkServiceConnectionStateActionsRequire : System.IEquatable + public static class PrivateLinkServiceConnectionStateActionsRequire { - private PrivateLinkServiceConnectionStateActionsRequire(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly PrivateLinkServiceConnectionStateActionsRequire None = "None"; - - - /// - /// Underlying value of enum - /// PrivateLinkServiceConnectionStateActionsRequire - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for - /// PrivateLinkServiceConnectionStateActionsRequire - /// - public override string ToString() - { - return UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type - /// PrivateLinkServiceConnectionStateActionsRequire - /// - public bool Equals(PrivateLinkServiceConnectionStateActionsRequire e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to - /// PrivateLinkServiceConnectionStateActionsRequire - /// - public static implicit operator PrivateLinkServiceConnectionStateActionsRequire(string value) - { - return new PrivateLinkServiceConnectionStateActionsRequire(value); - } - - /// - /// Implicit operator to convert - /// PrivateLinkServiceConnectionStateActionsRequire to string - /// - public static implicit operator string(PrivateLinkServiceConnectionStateActionsRequire e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum - /// PrivateLinkServiceConnectionStateActionsRequire - /// - public static bool operator == (PrivateLinkServiceConnectionStateActionsRequire e1, PrivateLinkServiceConnectionStateActionsRequire e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum - /// PrivateLinkServiceConnectionStateActionsRequire - /// - public static bool operator != (PrivateLinkServiceConnectionStateActionsRequire e1, PrivateLinkServiceConnectionStateActionsRequire e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for - /// PrivateLinkServiceConnectionStateActionsRequire - /// - public override bool Equals(object obj) - { - return obj is PrivateLinkServiceConnectionStateActionsRequire && Equals((PrivateLinkServiceConnectionStateActionsRequire)obj); - } - - /// - /// Returns for hashCode - /// PrivateLinkServiceConnectionStateActionsRequire - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string None = "None"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateLinkServiceConnectionStateActionsRequireConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateLinkServiceConnectionStateActionsRequireConverter.cs deleted file mode 100644 index 11ba9fac5962..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateLinkServiceConnectionStateActionsRequireConverter.cs +++ /dev/null @@ -1,55 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for PrivateLinkServiceConnectionStateActionsRequire. - /// - public sealed class PrivateLinkServiceConnectionStateActionsRequireConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to - /// PrivateLinkServiceConnectionStateActionsRequire by the converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(PrivateLinkServiceConnectionStateActionsRequire).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to - /// PrivateLinkServiceConnectionStateActionsRequire. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (PrivateLinkServiceConnectionStateActionsRequire)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for - /// PrivateLinkServiceConnectionStateActionsRequire for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateLinkServiceConnectionStateProperty.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateLinkServiceConnectionStateProperty.cs index 35c59ae42bc3..b37af54682f7 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateLinkServiceConnectionStateProperty.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateLinkServiceConnectionStateProperty.cs @@ -36,7 +36,7 @@ public PrivateLinkServiceConnectionStateProperty() /// description. /// The actions required for private link /// service connection. Possible values include: 'None' - public PrivateLinkServiceConnectionStateProperty(PrivateLinkServiceConnectionStateStatus status, string description, PrivateLinkServiceConnectionStateActionsRequire? actionsRequired = default(PrivateLinkServiceConnectionStateActionsRequire?)) + public PrivateLinkServiceConnectionStateProperty(string status, string description, string actionsRequired = default(string)) { Status = status; Description = description; @@ -54,7 +54,7 @@ public PrivateLinkServiceConnectionStateProperty() /// values include: 'Approved', 'Pending', 'Rejected', 'Disconnected' /// [JsonProperty(PropertyName = "status")] - public PrivateLinkServiceConnectionStateStatus Status { get; set; } + public string Status { get; set; } /// /// Gets or sets the private link service connection description. @@ -67,7 +67,7 @@ public PrivateLinkServiceConnectionStateProperty() /// Possible values include: 'None' /// [JsonProperty(PropertyName = "actionsRequired")] - public PrivateLinkServiceConnectionStateActionsRequire? ActionsRequired { get; private set; } + public string ActionsRequired { get; private set; } /// /// Validate the object. @@ -77,6 +77,10 @@ public PrivateLinkServiceConnectionStateProperty() /// public virtual void Validate() { + if (Status == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Status"); + } if (Description == null) { throw new ValidationException(ValidationRules.CannotBeNull, "Description"); diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateLinkServiceConnectionStateStatus.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateLinkServiceConnectionStateStatus.cs index 8a205f8eb4b8..625f7c0aed92 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateLinkServiceConnectionStateStatus.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateLinkServiceConnectionStateStatus.cs @@ -10,106 +10,15 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for PrivateLinkServiceConnectionStateStatus. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(PrivateLinkServiceConnectionStateStatusConverter))] - public struct PrivateLinkServiceConnectionStateStatus : System.IEquatable + public static class PrivateLinkServiceConnectionStateStatus { - private PrivateLinkServiceConnectionStateStatus(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly PrivateLinkServiceConnectionStateStatus Approved = "Approved"; - - public static readonly PrivateLinkServiceConnectionStateStatus Pending = "Pending"; - - public static readonly PrivateLinkServiceConnectionStateStatus Rejected = "Rejected"; - - public static readonly PrivateLinkServiceConnectionStateStatus Disconnected = "Disconnected"; - - - /// - /// Underlying value of enum PrivateLinkServiceConnectionStateStatus - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for - /// PrivateLinkServiceConnectionStateStatus - /// - public override string ToString() - { - return UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type PrivateLinkServiceConnectionStateStatus - /// - public bool Equals(PrivateLinkServiceConnectionStateStatus e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to - /// PrivateLinkServiceConnectionStateStatus - /// - public static implicit operator PrivateLinkServiceConnectionStateStatus(string value) - { - return new PrivateLinkServiceConnectionStateStatus(value); - } - - /// - /// Implicit operator to convert - /// PrivateLinkServiceConnectionStateStatus to string - /// - public static implicit operator string(PrivateLinkServiceConnectionStateStatus e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum - /// PrivateLinkServiceConnectionStateStatus - /// - public static bool operator == (PrivateLinkServiceConnectionStateStatus e1, PrivateLinkServiceConnectionStateStatus e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum - /// PrivateLinkServiceConnectionStateStatus - /// - public static bool operator != (PrivateLinkServiceConnectionStateStatus e1, PrivateLinkServiceConnectionStateStatus e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for - /// PrivateLinkServiceConnectionStateStatus - /// - public override bool Equals(object obj) - { - return obj is PrivateLinkServiceConnectionStateStatus && Equals((PrivateLinkServiceConnectionStateStatus)obj); - } - - /// - /// Returns for hashCode PrivateLinkServiceConnectionStateStatus - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string Approved = "Approved"; + public const string Pending = "Pending"; + public const string Rejected = "Rejected"; + public const string Disconnected = "Disconnected"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateLinkServiceConnectionStateStatusConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateLinkServiceConnectionStateStatusConverter.cs deleted file mode 100644 index 5b6c95b39411..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateLinkServiceConnectionStateStatusConverter.cs +++ /dev/null @@ -1,55 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for PrivateLinkServiceConnectionStateStatus. - /// - public sealed class PrivateLinkServiceConnectionStateStatusConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to - /// PrivateLinkServiceConnectionStateStatus by the converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(PrivateLinkServiceConnectionStateStatus).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to - /// PrivateLinkServiceConnectionStateStatus. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (PrivateLinkServiceConnectionStateStatus)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for PrivateLinkServiceConnectionStateStatus - /// for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ProvisioningState.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ProvisioningState.cs index ac6c1d688463..86dff5006da9 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ProvisioningState.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ProvisioningState.cs @@ -10,102 +10,16 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for ProvisioningState. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(ProvisioningStateConverter))] - public struct ProvisioningState : System.IEquatable + public static class ProvisioningState { - private ProvisioningState(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly ProvisioningState Created = "Created"; - - public static readonly ProvisioningState InProgress = "InProgress"; - - public static readonly ProvisioningState Succeeded = "Succeeded"; - - public static readonly ProvisioningState Failed = "Failed"; - - public static readonly ProvisioningState Canceled = "Canceled"; - - - /// - /// Underlying value of enum ProvisioningState - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for ProvisioningState - /// - public override string ToString() - { - return UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type ProvisioningState - /// - public bool Equals(ProvisioningState e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to ProvisioningState - /// - public static implicit operator ProvisioningState(string value) - { - return new ProvisioningState(value); - } - - /// - /// Implicit operator to convert ProvisioningState to string - /// - public static implicit operator string(ProvisioningState e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum ProvisioningState - /// - public static bool operator == (ProvisioningState e1, ProvisioningState e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum ProvisioningState - /// - public static bool operator != (ProvisioningState e1, ProvisioningState e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for ProvisioningState - /// - public override bool Equals(object obj) - { - return obj is ProvisioningState && Equals((ProvisioningState)obj); - } - - /// - /// Returns for hashCode ProvisioningState - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string Created = "Created"; + public const string InProgress = "InProgress"; + public const string Succeeded = "Succeeded"; + public const string Failed = "Failed"; + public const string Canceled = "Canceled"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ProvisioningStateConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ProvisioningStateConverter.cs deleted file mode 100644 index 1daf14e3574a..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ProvisioningStateConverter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for ProvisioningState. - /// - public sealed class ProvisioningStateConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to ProvisioningState by the - /// converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(ProvisioningState).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to ProvisioningState. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (ProvisioningState)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for ProvisioningState for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReadOnlyEndpointFailoverPolicy.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReadOnlyEndpointFailoverPolicy.cs index 6ceb6583de86..4d78fadf1980 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReadOnlyEndpointFailoverPolicy.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReadOnlyEndpointFailoverPolicy.cs @@ -10,98 +10,13 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for ReadOnlyEndpointFailoverPolicy. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(ReadOnlyEndpointFailoverPolicyConverter))] - public struct ReadOnlyEndpointFailoverPolicy : System.IEquatable + public static class ReadOnlyEndpointFailoverPolicy { - private ReadOnlyEndpointFailoverPolicy(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly ReadOnlyEndpointFailoverPolicy Disabled = "Disabled"; - - public static readonly ReadOnlyEndpointFailoverPolicy Enabled = "Enabled"; - - - /// - /// Underlying value of enum ReadOnlyEndpointFailoverPolicy - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for ReadOnlyEndpointFailoverPolicy - /// - public override string ToString() - { - return UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type ReadOnlyEndpointFailoverPolicy - /// - public bool Equals(ReadOnlyEndpointFailoverPolicy e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to - /// ReadOnlyEndpointFailoverPolicy - /// - public static implicit operator ReadOnlyEndpointFailoverPolicy(string value) - { - return new ReadOnlyEndpointFailoverPolicy(value); - } - - /// - /// Implicit operator to convert ReadOnlyEndpointFailoverPolicy to - /// string - /// - public static implicit operator string(ReadOnlyEndpointFailoverPolicy e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum ReadOnlyEndpointFailoverPolicy - /// - public static bool operator == (ReadOnlyEndpointFailoverPolicy e1, ReadOnlyEndpointFailoverPolicy e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum ReadOnlyEndpointFailoverPolicy - /// - public static bool operator != (ReadOnlyEndpointFailoverPolicy e1, ReadOnlyEndpointFailoverPolicy e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for ReadOnlyEndpointFailoverPolicy - /// - public override bool Equals(object obj) - { - return obj is ReadOnlyEndpointFailoverPolicy && Equals((ReadOnlyEndpointFailoverPolicy)obj); - } - - /// - /// Returns for hashCode ReadOnlyEndpointFailoverPolicy - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string Disabled = "Disabled"; + public const string Enabled = "Enabled"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReadOnlyEndpointFailoverPolicyConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReadOnlyEndpointFailoverPolicyConverter.cs deleted file mode 100644 index f2b2352a5cee..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReadOnlyEndpointFailoverPolicyConverter.cs +++ /dev/null @@ -1,55 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for ReadOnlyEndpointFailoverPolicy. - /// - public sealed class ReadOnlyEndpointFailoverPolicyConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to - /// ReadOnlyEndpointFailoverPolicy by the converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(ReadOnlyEndpointFailoverPolicy).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to - /// ReadOnlyEndpointFailoverPolicy. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (ReadOnlyEndpointFailoverPolicy)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for ReadOnlyEndpointFailoverPolicy for - /// serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReadWriteEndpointFailoverPolicy.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReadWriteEndpointFailoverPolicy.cs index 08e2db05c2e7..1ea812a89b20 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReadWriteEndpointFailoverPolicy.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReadWriteEndpointFailoverPolicy.cs @@ -10,98 +10,13 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for ReadWriteEndpointFailoverPolicy. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(ReadWriteEndpointFailoverPolicyConverter))] - public struct ReadWriteEndpointFailoverPolicy : System.IEquatable + public static class ReadWriteEndpointFailoverPolicy { - private ReadWriteEndpointFailoverPolicy(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly ReadWriteEndpointFailoverPolicy Manual = "Manual"; - - public static readonly ReadWriteEndpointFailoverPolicy Automatic = "Automatic"; - - - /// - /// Underlying value of enum ReadWriteEndpointFailoverPolicy - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for ReadWriteEndpointFailoverPolicy - /// - public override string ToString() - { - return UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type ReadWriteEndpointFailoverPolicy - /// - public bool Equals(ReadWriteEndpointFailoverPolicy e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to - /// ReadWriteEndpointFailoverPolicy - /// - public static implicit operator ReadWriteEndpointFailoverPolicy(string value) - { - return new ReadWriteEndpointFailoverPolicy(value); - } - - /// - /// Implicit operator to convert ReadWriteEndpointFailoverPolicy to - /// string - /// - public static implicit operator string(ReadWriteEndpointFailoverPolicy e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum ReadWriteEndpointFailoverPolicy - /// - public static bool operator == (ReadWriteEndpointFailoverPolicy e1, ReadWriteEndpointFailoverPolicy e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum ReadWriteEndpointFailoverPolicy - /// - public static bool operator != (ReadWriteEndpointFailoverPolicy e1, ReadWriteEndpointFailoverPolicy e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for ReadWriteEndpointFailoverPolicy - /// - public override bool Equals(object obj) - { - return obj is ReadWriteEndpointFailoverPolicy && Equals((ReadWriteEndpointFailoverPolicy)obj); - } - - /// - /// Returns for hashCode ReadWriteEndpointFailoverPolicy - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string Manual = "Manual"; + public const string Automatic = "Automatic"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReadWriteEndpointFailoverPolicyConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReadWriteEndpointFailoverPolicyConverter.cs deleted file mode 100644 index 953d3b242b00..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReadWriteEndpointFailoverPolicyConverter.cs +++ /dev/null @@ -1,55 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for ReadWriteEndpointFailoverPolicy. - /// - public sealed class ReadWriteEndpointFailoverPolicyConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to - /// ReadWriteEndpointFailoverPolicy by the converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(ReadWriteEndpointFailoverPolicy).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to - /// ReadWriteEndpointFailoverPolicy. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (ReadWriteEndpointFailoverPolicy)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for ReadWriteEndpointFailoverPolicy for - /// serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/RecommendedElasticPool.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/RecommendedElasticPool.cs index ee7c2e27ec44..64bc89c9d26f 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/RecommendedElasticPool.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/RecommendedElasticPool.cs @@ -58,7 +58,7 @@ public RecommendedElasticPool() /// Expanded property /// The list of databases housed in the server. /// Expanded property - public RecommendedElasticPool(string id = default(string), string name = default(string), string type = default(string), ElasticPoolEdition? databaseEdition = default(ElasticPoolEdition?), double? dtu = default(double?), double? databaseDtuMin = default(double?), double? databaseDtuMax = default(double?), double? storageMB = default(double?), System.DateTime? observationPeriodStart = default(System.DateTime?), System.DateTime? observationPeriodEnd = default(System.DateTime?), double? maxObservedDtu = default(double?), double? maxObservedStorageMB = default(double?), IList databases = default(IList), IList metrics = default(IList)) + public RecommendedElasticPool(string id = default(string), string name = default(string), string type = default(string), string databaseEdition = default(string), double? dtu = default(double?), double? databaseDtuMin = default(double?), double? databaseDtuMax = default(double?), double? storageMB = default(double?), System.DateTime? observationPeriodStart = default(System.DateTime?), System.DateTime? observationPeriodEnd = default(System.DateTime?), double? maxObservedDtu = default(double?), double? maxObservedStorageMB = default(double?), IList databases = default(IList), IList metrics = default(IList)) : base(id, name, type) { DatabaseEdition = databaseEdition; @@ -87,7 +87,7 @@ public RecommendedElasticPool() /// 'GeneralPurpose', 'BusinessCritical' /// [JsonProperty(PropertyName = "properties.databaseEdition")] - public ElasticPoolEdition? DatabaseEdition { get; private set; } + public string DatabaseEdition { get; private set; } /// /// Gets or sets the DTU for the recommended elastic pool. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReplicaType.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReplicaType.cs index 2050f79eaa5e..f7a52812ab85 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReplicaType.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReplicaType.cs @@ -10,96 +10,13 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for ReplicaType. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(ReplicaTypeConverter))] - public struct ReplicaType : System.IEquatable + public static class ReplicaType { - private ReplicaType(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly ReplicaType Primary = "Primary"; - - public static readonly ReplicaType ReadableSecondary = "ReadableSecondary"; - - - /// - /// Underlying value of enum ReplicaType - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for ReplicaType - /// - public override string ToString() - { - return UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type ReplicaType - /// - public bool Equals(ReplicaType e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to ReplicaType - /// - public static implicit operator ReplicaType(string value) - { - return new ReplicaType(value); - } - - /// - /// Implicit operator to convert ReplicaType to string - /// - public static implicit operator string(ReplicaType e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum ReplicaType - /// - public static bool operator == (ReplicaType e1, ReplicaType e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum ReplicaType - /// - public static bool operator != (ReplicaType e1, ReplicaType e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for ReplicaType - /// - public override bool Equals(object obj) - { - return obj is ReplicaType && Equals((ReplicaType)obj); - } - - /// - /// Returns for hashCode ReplicaType - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string Primary = "Primary"; + public const string ReadableSecondary = "ReadableSecondary"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReplicaTypeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReplicaTypeConverter.cs deleted file mode 100644 index 2dc81d8fbb2b..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReplicaTypeConverter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for ReplicaType. - /// - public sealed class ReplicaTypeConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to ReplicaType by the - /// converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(ReplicaType).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to ReplicaType. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (ReplicaType)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for ReplicaType for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReplicationLink.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReplicationLink.cs index d1de4fb55e02..0d886828bfad 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReplicationLink.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReplicationLink.cs @@ -60,7 +60,7 @@ public ReplicationLink() /// The replication state for the /// replication link. Possible values include: 'PENDING', 'SEEDING', /// 'CATCH_UP', 'SUSPENDED' - public ReplicationLink(string id = default(string), string name = default(string), string type = default(string), string location = default(string), bool? isTerminationAllowed = default(bool?), string replicationMode = default(string), string partnerServer = default(string), string partnerDatabase = default(string), string partnerLocation = default(string), ReplicationRole? role = default(ReplicationRole?), ReplicationRole? partnerRole = default(ReplicationRole?), System.DateTime? startTime = default(System.DateTime?), int? percentComplete = default(int?), ReplicationState? replicationState = default(ReplicationState?)) + public ReplicationLink(string id = default(string), string name = default(string), string type = default(string), string location = default(string), bool? isTerminationAllowed = default(bool?), string replicationMode = default(string), string partnerServer = default(string), string partnerDatabase = default(string), string partnerLocation = default(string), ReplicationRole? role = default(ReplicationRole?), ReplicationRole? partnerRole = default(ReplicationRole?), System.DateTime? startTime = default(System.DateTime?), int? percentComplete = default(int?), string replicationState = default(string)) : base(id, name, type) { Location = location; @@ -152,7 +152,7 @@ public ReplicationLink() /// values include: 'PENDING', 'SEEDING', 'CATCH_UP', 'SUSPENDED' /// [JsonProperty(PropertyName = "properties.replicationState")] - public ReplicationState? ReplicationState { get; private set; } + public string ReplicationState { get; private set; } } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReplicationState.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReplicationState.cs index e84297c1c21a..067c14bdb345 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReplicationState.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReplicationState.cs @@ -10,100 +10,15 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for ReplicationState. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(ReplicationStateConverter))] - public struct ReplicationState : System.IEquatable + public static class ReplicationState { - private ReplicationState(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly ReplicationState PENDING = "PENDING"; - - public static readonly ReplicationState SEEDING = "SEEDING"; - - public static readonly ReplicationState CATCHUP = "CATCH_UP"; - - public static readonly ReplicationState SUSPENDED = "SUSPENDED"; - - - /// - /// Underlying value of enum ReplicationState - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for ReplicationState - /// - public override string ToString() - { - return UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type ReplicationState - /// - public bool Equals(ReplicationState e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to ReplicationState - /// - public static implicit operator ReplicationState(string value) - { - return new ReplicationState(value); - } - - /// - /// Implicit operator to convert ReplicationState to string - /// - public static implicit operator string(ReplicationState e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum ReplicationState - /// - public static bool operator == (ReplicationState e1, ReplicationState e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum ReplicationState - /// - public static bool operator != (ReplicationState e1, ReplicationState e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for ReplicationState - /// - public override bool Equals(object obj) - { - return obj is ReplicationState && Equals((ReplicationState)obj); - } - - /// - /// Returns for hashCode ReplicationState - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string PENDING = "PENDING"; + public const string SEEDING = "SEEDING"; + public const string CATCHUP = "CATCH_UP"; + public const string SUSPENDED = "SUSPENDED"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReplicationStateConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReplicationStateConverter.cs deleted file mode 100644 index 37a054974228..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReplicationStateConverter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for ReplicationState. - /// - public sealed class ReplicationStateConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to ReplicationState by the - /// converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(ReplicationState).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to ReplicationState. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (ReplicationState)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for ReplicationState for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ResourceIdentity.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ResourceIdentity.cs index 5fbf0848c174..d3f9595700d3 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ResourceIdentity.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ResourceIdentity.cs @@ -37,7 +37,7 @@ public ResourceIdentity() /// 'SystemAssigned' /// The Azure Active Directory tenant /// id. - public ResourceIdentity(System.Guid? principalId = default(System.Guid?), IdentityType? type = default(IdentityType?), System.Guid? tenantId = default(System.Guid?)) + public ResourceIdentity(System.Guid? principalId = default(System.Guid?), string type = default(string), System.Guid? tenantId = default(System.Guid?)) { PrincipalId = principalId; Type = type; @@ -63,7 +63,7 @@ public ResourceIdentity() /// 'SystemAssigned' /// [JsonProperty(PropertyName = "type")] - public IdentityType? Type { get; set; } + public string Type { get; set; } /// /// Gets the Azure Active Directory tenant id. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SampleName.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SampleName.cs index 6f400bda716c..92a7ff7a1560 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SampleName.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SampleName.cs @@ -10,98 +10,14 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for SampleName. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(SampleNameConverter))] - public struct SampleName : System.IEquatable + public static class SampleName { - private SampleName(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly SampleName AdventureWorksLT = "AdventureWorksLT"; - - public static readonly SampleName WideWorldImportersStd = "WideWorldImportersStd"; - - public static readonly SampleName WideWorldImportersFull = "WideWorldImportersFull"; - - - /// - /// Underlying value of enum SampleName - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for SampleName - /// - public override string ToString() - { - return UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type SampleName - /// - public bool Equals(SampleName e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to SampleName - /// - public static implicit operator SampleName(string value) - { - return new SampleName(value); - } - - /// - /// Implicit operator to convert SampleName to string - /// - public static implicit operator string(SampleName e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum SampleName - /// - public static bool operator == (SampleName e1, SampleName e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum SampleName - /// - public static bool operator != (SampleName e1, SampleName e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for SampleName - /// - public override bool Equals(object obj) - { - return obj is SampleName && Equals((SampleName)obj); - } - - /// - /// Returns for hashCode SampleName - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string AdventureWorksLT = "AdventureWorksLT"; + public const string WideWorldImportersStd = "WideWorldImportersStd"; + public const string WideWorldImportersFull = "WideWorldImportersFull"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SampleNameConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SampleNameConverter.cs deleted file mode 100644 index fb7b9b68f517..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SampleNameConverter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for SampleName. - /// - public sealed class SampleNameConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to SampleName by the - /// converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(SampleName).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to SampleName. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (SampleName)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for SampleName for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/Server.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/Server.cs index e7b9dc14b8f5..ceb028f78c6f 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/Server.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/Server.cs @@ -59,7 +59,7 @@ public Server() /// access is allowed for this server. Value is optional but if passed /// in, must be 'Enabled' or 'Disabled'. Possible values include: /// 'Enabled', 'Disabled' - public Server(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), ResourceIdentity identity = default(ResourceIdentity), string kind = default(string), string administratorLogin = default(string), string administratorLoginPassword = default(string), string version = default(string), string state = default(string), string fullyQualifiedDomainName = default(string), IList privateEndpointConnections = default(IList), string minimalTlsVersion = default(string), ServerPublicNetworkAccess? publicNetworkAccess = default(ServerPublicNetworkAccess?)) + public Server(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), ResourceIdentity identity = default(ResourceIdentity), string kind = default(string), string administratorLogin = default(string), string administratorLoginPassword = default(string), string version = default(string), string state = default(string), string fullyQualifiedDomainName = default(string), IList privateEndpointConnections = default(IList), string minimalTlsVersion = default(string), string publicNetworkAccess = default(string)) : base(location, id, name, type, tags) { Identity = identity; @@ -144,7 +144,7 @@ public Server() /// or 'Disabled'. Possible values include: 'Enabled', 'Disabled' /// [JsonProperty(PropertyName = "properties.publicNetworkAccess")] - public ServerPublicNetworkAccess? PublicNetworkAccess { get; set; } + public string PublicNetworkAccess { get; set; } /// /// Validate the object. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServerKey.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServerKey.cs index ec2a227780a5..75567c92ac7e 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServerKey.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServerKey.cs @@ -45,7 +45,7 @@ public ServerKey() /// The URI of the server key. /// Thumbprint of the server key. /// The server key creation date. - public ServerKey(ServerKeyType serverKeyType, string id = default(string), string name = default(string), string type = default(string), string kind = default(string), string location = default(string), string subregion = default(string), string uri = default(string), string thumbprint = default(string), System.DateTime? creationDate = default(System.DateTime?)) + public ServerKey(string serverKeyType, string id = default(string), string name = default(string), string type = default(string), string kind = default(string), string location = default(string), string subregion = default(string), string uri = default(string), string thumbprint = default(string), System.DateTime? creationDate = default(System.DateTime?)) : base(id, name, type) { Kind = kind; @@ -88,7 +88,7 @@ public ServerKey() /// 'AzureKeyVault' /// [JsonProperty(PropertyName = "properties.serverKeyType")] - public ServerKeyType ServerKeyType { get; set; } + public string ServerKeyType { get; set; } /// /// Gets or sets the URI of the server key. @@ -116,6 +116,10 @@ public ServerKey() /// public virtual void Validate() { + if (ServerKeyType == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "ServerKeyType"); + } } } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServerKeyType.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServerKeyType.cs index 9c0f2dcd8226..3358ddccad1e 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServerKeyType.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServerKeyType.cs @@ -10,96 +10,13 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for ServerKeyType. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(ServerKeyTypeConverter))] - public struct ServerKeyType : System.IEquatable + public static class ServerKeyType { - private ServerKeyType(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly ServerKeyType ServiceManaged = "ServiceManaged"; - - public static readonly ServerKeyType AzureKeyVault = "AzureKeyVault"; - - - /// - /// Underlying value of enum ServerKeyType - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for ServerKeyType - /// - public override string ToString() - { - return UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type ServerKeyType - /// - public bool Equals(ServerKeyType e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to ServerKeyType - /// - public static implicit operator ServerKeyType(string value) - { - return new ServerKeyType(value); - } - - /// - /// Implicit operator to convert ServerKeyType to string - /// - public static implicit operator string(ServerKeyType e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum ServerKeyType - /// - public static bool operator == (ServerKeyType e1, ServerKeyType e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum ServerKeyType - /// - public static bool operator != (ServerKeyType e1, ServerKeyType e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for ServerKeyType - /// - public override bool Equals(object obj) - { - return obj is ServerKeyType && Equals((ServerKeyType)obj); - } - - /// - /// Returns for hashCode ServerKeyType - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string ServiceManaged = "ServiceManaged"; + public const string AzureKeyVault = "AzureKeyVault"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServerKeyTypeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServerKeyTypeConverter.cs deleted file mode 100644 index eaaa4bf4d7cf..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServerKeyTypeConverter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for ServerKeyType. - /// - public sealed class ServerKeyTypeConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to ServerKeyType by the - /// converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(ServerKeyType).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to ServerKeyType. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (ServerKeyType)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for ServerKeyType for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServerPublicNetworkAccess.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServerPublicNetworkAccess.cs index 58c6df5bf2c8..6b611e0db6a3 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServerPublicNetworkAccess.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServerPublicNetworkAccess.cs @@ -10,96 +10,13 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for ServerPublicNetworkAccess. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(ServerPublicNetworkAccessConverter))] - public struct ServerPublicNetworkAccess : System.IEquatable + public static class ServerPublicNetworkAccess { - private ServerPublicNetworkAccess(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly ServerPublicNetworkAccess Enabled = "Enabled"; - - public static readonly ServerPublicNetworkAccess Disabled = "Disabled"; - - - /// - /// Underlying value of enum ServerPublicNetworkAccess - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for ServerPublicNetworkAccess - /// - public override string ToString() - { - return UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type ServerPublicNetworkAccess - /// - public bool Equals(ServerPublicNetworkAccess e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to ServerPublicNetworkAccess - /// - public static implicit operator ServerPublicNetworkAccess(string value) - { - return new ServerPublicNetworkAccess(value); - } - - /// - /// Implicit operator to convert ServerPublicNetworkAccess to string - /// - public static implicit operator string(ServerPublicNetworkAccess e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum ServerPublicNetworkAccess - /// - public static bool operator == (ServerPublicNetworkAccess e1, ServerPublicNetworkAccess e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum ServerPublicNetworkAccess - /// - public static bool operator != (ServerPublicNetworkAccess e1, ServerPublicNetworkAccess e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for ServerPublicNetworkAccess - /// - public override bool Equals(object obj) - { - return obj is ServerPublicNetworkAccess && Equals((ServerPublicNetworkAccess)obj); - } - - /// - /// Returns for hashCode ServerPublicNetworkAccess - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string Enabled = "Enabled"; + public const string Disabled = "Disabled"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServerPublicNetworkAccessConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServerPublicNetworkAccessConverter.cs deleted file mode 100644 index bd8c40a3ddfc..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServerPublicNetworkAccessConverter.cs +++ /dev/null @@ -1,54 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for ServerPublicNetworkAccess. - /// - public sealed class ServerPublicNetworkAccessConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to ServerPublicNetworkAccess - /// by the converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(ServerPublicNetworkAccess).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to ServerPublicNetworkAccess. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (ServerPublicNetworkAccess)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for ServerPublicNetworkAccess for - /// serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServerUpdate.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServerUpdate.cs index 3131ab12bf44..cd86344ea902 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServerUpdate.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServerUpdate.cs @@ -51,7 +51,7 @@ public ServerUpdate() /// in, must be 'Enabled' or 'Disabled'. Possible values include: /// 'Enabled', 'Disabled' /// Resource tags. - public ServerUpdate(string administratorLogin = default(string), string administratorLoginPassword = default(string), string version = default(string), string state = default(string), string fullyQualifiedDomainName = default(string), IList privateEndpointConnections = default(IList), string minimalTlsVersion = default(string), ServerPublicNetworkAccess? publicNetworkAccess = default(ServerPublicNetworkAccess?), IDictionary tags = default(IDictionary)) + public ServerUpdate(string administratorLogin = default(string), string administratorLoginPassword = default(string), string version = default(string), string state = default(string), string fullyQualifiedDomainName = default(string), IList privateEndpointConnections = default(IList), string minimalTlsVersion = default(string), string publicNetworkAccess = default(string), IDictionary tags = default(IDictionary)) { AdministratorLogin = administratorLogin; AdministratorLoginPassword = administratorLoginPassword; @@ -121,7 +121,7 @@ public ServerUpdate() /// or 'Disabled'. Possible values include: 'Enabled', 'Disabled' /// [JsonProperty(PropertyName = "properties.publicNetworkAccess")] - public ServerPublicNetworkAccess? PublicNetworkAccess { get; set; } + public string PublicNetworkAccess { get; set; } /// /// Gets or sets resource tags. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServiceObjectiveName.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServiceObjectiveName.cs index 86c882966c9c..befe17ba9bbf 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServiceObjectiveName.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServiceObjectiveName.cs @@ -10,222 +10,76 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for ServiceObjectiveName. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(ServiceObjectiveNameConverter))] - public struct ServiceObjectiveName : System.IEquatable + public static class ServiceObjectiveName { - private ServiceObjectiveName(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly ServiceObjectiveName System = "System"; - - public static readonly ServiceObjectiveName System0 = "System0"; - - public static readonly ServiceObjectiveName System1 = "System1"; - - public static readonly ServiceObjectiveName System2 = "System2"; - - public static readonly ServiceObjectiveName System3 = "System3"; - - public static readonly ServiceObjectiveName System4 = "System4"; - - public static readonly ServiceObjectiveName System2L = "System2L"; - - public static readonly ServiceObjectiveName System3L = "System3L"; - - public static readonly ServiceObjectiveName System4L = "System4L"; - - public static readonly ServiceObjectiveName Free = "Free"; - - public static readonly ServiceObjectiveName Basic = "Basic"; - - public static readonly ServiceObjectiveName S0 = "S0"; - - public static readonly ServiceObjectiveName S1 = "S1"; - - public static readonly ServiceObjectiveName S2 = "S2"; - - public static readonly ServiceObjectiveName S3 = "S3"; - - public static readonly ServiceObjectiveName S4 = "S4"; - - public static readonly ServiceObjectiveName S6 = "S6"; - - public static readonly ServiceObjectiveName S7 = "S7"; - - public static readonly ServiceObjectiveName S9 = "S9"; - - public static readonly ServiceObjectiveName S12 = "S12"; - - public static readonly ServiceObjectiveName P1 = "P1"; - - public static readonly ServiceObjectiveName P2 = "P2"; - - public static readonly ServiceObjectiveName P3 = "P3"; - - public static readonly ServiceObjectiveName P4 = "P4"; - - public static readonly ServiceObjectiveName P6 = "P6"; - - public static readonly ServiceObjectiveName P11 = "P11"; - - public static readonly ServiceObjectiveName P15 = "P15"; - - public static readonly ServiceObjectiveName PRS1 = "PRS1"; - - public static readonly ServiceObjectiveName PRS2 = "PRS2"; - - public static readonly ServiceObjectiveName PRS4 = "PRS4"; - - public static readonly ServiceObjectiveName PRS6 = "PRS6"; - - public static readonly ServiceObjectiveName DW100 = "DW100"; - - public static readonly ServiceObjectiveName DW200 = "DW200"; - - public static readonly ServiceObjectiveName DW300 = "DW300"; - - public static readonly ServiceObjectiveName DW400 = "DW400"; - - public static readonly ServiceObjectiveName DW500 = "DW500"; - - public static readonly ServiceObjectiveName DW600 = "DW600"; - - public static readonly ServiceObjectiveName DW1000 = "DW1000"; - - public static readonly ServiceObjectiveName DW1200 = "DW1200"; - - public static readonly ServiceObjectiveName DW1000c = "DW1000c"; - - public static readonly ServiceObjectiveName DW1500 = "DW1500"; - - public static readonly ServiceObjectiveName DW1500c = "DW1500c"; - - public static readonly ServiceObjectiveName DW2000 = "DW2000"; - - public static readonly ServiceObjectiveName DW2000c = "DW2000c"; - - public static readonly ServiceObjectiveName DW3000 = "DW3000"; - - public static readonly ServiceObjectiveName DW2500c = "DW2500c"; - - public static readonly ServiceObjectiveName DW3000c = "DW3000c"; - - public static readonly ServiceObjectiveName DW6000 = "DW6000"; - - public static readonly ServiceObjectiveName DW5000c = "DW5000c"; - - public static readonly ServiceObjectiveName DW6000c = "DW6000c"; - - public static readonly ServiceObjectiveName DW7500c = "DW7500c"; - - public static readonly ServiceObjectiveName DW10000c = "DW10000c"; - - public static readonly ServiceObjectiveName DW15000c = "DW15000c"; - - public static readonly ServiceObjectiveName DW30000c = "DW30000c"; - - public static readonly ServiceObjectiveName DS100 = "DS100"; - - public static readonly ServiceObjectiveName DS200 = "DS200"; - - public static readonly ServiceObjectiveName DS300 = "DS300"; - - public static readonly ServiceObjectiveName DS400 = "DS400"; - - public static readonly ServiceObjectiveName DS500 = "DS500"; - - public static readonly ServiceObjectiveName DS600 = "DS600"; - - public static readonly ServiceObjectiveName DS1000 = "DS1000"; - - public static readonly ServiceObjectiveName DS1200 = "DS1200"; - - public static readonly ServiceObjectiveName DS1500 = "DS1500"; - - public static readonly ServiceObjectiveName DS2000 = "DS2000"; - - public static readonly ServiceObjectiveName ElasticPool = "ElasticPool"; - - - /// - /// Underlying value of enum ServiceObjectiveName - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for ServiceObjectiveName - /// - public override string ToString() - { - return UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type ServiceObjectiveName - /// - public bool Equals(ServiceObjectiveName e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to ServiceObjectiveName - /// - public static implicit operator ServiceObjectiveName(string value) - { - return new ServiceObjectiveName(value); - } - - /// - /// Implicit operator to convert ServiceObjectiveName to string - /// - public static implicit operator string(ServiceObjectiveName e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum ServiceObjectiveName - /// - public static bool operator == (ServiceObjectiveName e1, ServiceObjectiveName e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum ServiceObjectiveName - /// - public static bool operator != (ServiceObjectiveName e1, ServiceObjectiveName e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for ServiceObjectiveName - /// - public override bool Equals(object obj) - { - return obj is ServiceObjectiveName && Equals((ServiceObjectiveName)obj); - } - - /// - /// Returns for hashCode ServiceObjectiveName - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string System = "System"; + public const string System0 = "System0"; + public const string System1 = "System1"; + public const string System2 = "System2"; + public const string System3 = "System3"; + public const string System4 = "System4"; + public const string System2L = "System2L"; + public const string System3L = "System3L"; + public const string System4L = "System4L"; + public const string Free = "Free"; + public const string Basic = "Basic"; + public const string S0 = "S0"; + public const string S1 = "S1"; + public const string S2 = "S2"; + public const string S3 = "S3"; + public const string S4 = "S4"; + public const string S6 = "S6"; + public const string S7 = "S7"; + public const string S9 = "S9"; + public const string S12 = "S12"; + public const string P1 = "P1"; + public const string P2 = "P2"; + public const string P3 = "P3"; + public const string P4 = "P4"; + public const string P6 = "P6"; + public const string P11 = "P11"; + public const string P15 = "P15"; + public const string PRS1 = "PRS1"; + public const string PRS2 = "PRS2"; + public const string PRS4 = "PRS4"; + public const string PRS6 = "PRS6"; + public const string DW100 = "DW100"; + public const string DW200 = "DW200"; + public const string DW300 = "DW300"; + public const string DW400 = "DW400"; + public const string DW500 = "DW500"; + public const string DW600 = "DW600"; + public const string DW1000 = "DW1000"; + public const string DW1200 = "DW1200"; + public const string DW1000c = "DW1000c"; + public const string DW1500 = "DW1500"; + public const string DW1500c = "DW1500c"; + public const string DW2000 = "DW2000"; + public const string DW2000c = "DW2000c"; + public const string DW3000 = "DW3000"; + public const string DW2500c = "DW2500c"; + public const string DW3000c = "DW3000c"; + public const string DW6000 = "DW6000"; + public const string DW5000c = "DW5000c"; + public const string DW6000c = "DW6000c"; + public const string DW7500c = "DW7500c"; + public const string DW10000c = "DW10000c"; + public const string DW15000c = "DW15000c"; + public const string DW30000c = "DW30000c"; + public const string DS100 = "DS100"; + public const string DS200 = "DS200"; + public const string DS300 = "DS300"; + public const string DS400 = "DS400"; + public const string DS500 = "DS500"; + public const string DS600 = "DS600"; + public const string DS1000 = "DS1000"; + public const string DS1200 = "DS1200"; + public const string DS1500 = "DS1500"; + public const string DS2000 = "DS2000"; + public const string ElasticPool = "ElasticPool"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServiceObjectiveNameConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServiceObjectiveNameConverter.cs deleted file mode 100644 index a9fcced25ad5..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServiceObjectiveNameConverter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for ServiceObjectiveName. - /// - public sealed class ServiceObjectiveNameConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to ServiceObjectiveName by - /// the converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(ServiceObjectiveName).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to ServiceObjectiveName. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (ServiceObjectiveName)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for ServiceObjectiveName for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SloUsageMetric.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SloUsageMetric.cs index e3ff7d022675..0f4b019f4948 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SloUsageMetric.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SloUsageMetric.cs @@ -44,7 +44,7 @@ public SloUsageMetric() /// for SLO usage metric. /// Gets or sets inRangeTimeRatio for /// SLO usage metric. - public SloUsageMetric(ServiceObjectiveName? serviceLevelObjective = default(ServiceObjectiveName?), System.Guid serviceLevelObjectiveId = default(System.Guid), double inRangeTimeRatio = default(double)) + public SloUsageMetric(string serviceLevelObjective = default(string), System.Guid serviceLevelObjectiveId = default(System.Guid), double inRangeTimeRatio = default(double)) { ServiceLevelObjective = serviceLevelObjective; ServiceLevelObjectiveId = serviceLevelObjectiveId; @@ -71,7 +71,7 @@ public SloUsageMetric() /// 'DS1500', 'DS2000', 'ElasticPool' /// [JsonProperty(PropertyName = "serviceLevelObjective")] - public ServiceObjectiveName? ServiceLevelObjective { get; private set; } + public string ServiceLevelObjective { get; private set; } /// /// Gets the serviceLevelObjectiveId for SLO usage metric. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/StorageAccountType.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/StorageAccountType.cs index 7e59838e8140..f174ff85775d 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/StorageAccountType.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/StorageAccountType.cs @@ -10,98 +10,14 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for StorageAccountType. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(StorageAccountTypeConverter))] - public struct StorageAccountType : System.IEquatable + public static class StorageAccountType { - private StorageAccountType(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly StorageAccountType GRS = "GRS"; - - public static readonly StorageAccountType LRS = "LRS"; - - public static readonly StorageAccountType ZRS = "ZRS"; - - - /// - /// Underlying value of enum StorageAccountType - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for StorageAccountType - /// - public override string ToString() - { - return UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type StorageAccountType - /// - public bool Equals(StorageAccountType e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to StorageAccountType - /// - public static implicit operator StorageAccountType(string value) - { - return new StorageAccountType(value); - } - - /// - /// Implicit operator to convert StorageAccountType to string - /// - public static implicit operator string(StorageAccountType e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum StorageAccountType - /// - public static bool operator == (StorageAccountType e1, StorageAccountType e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum StorageAccountType - /// - public static bool operator != (StorageAccountType e1, StorageAccountType e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for StorageAccountType - /// - public override bool Equals(object obj) - { - return obj is StorageAccountType && Equals((StorageAccountType)obj); - } - - /// - /// Returns for hashCode StorageAccountType - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string GRS = "GRS"; + public const string LRS = "LRS"; + public const string ZRS = "ZRS"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/StorageAccountTypeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/StorageAccountTypeConverter.cs deleted file mode 100644 index 64f6d37618d0..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/StorageAccountTypeConverter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for StorageAccountType. - /// - public sealed class StorageAccountTypeConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to StorageAccountType by the - /// converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(StorageAccountType).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to StorageAccountType. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (StorageAccountType)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for StorageAccountType for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/StorageKeyType.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/StorageKeyType.cs index f4ae7a72c85a..ccbd48d44a48 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/StorageKeyType.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/StorageKeyType.cs @@ -10,96 +10,13 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for StorageKeyType. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(StorageKeyTypeConverter))] - public struct StorageKeyType : System.IEquatable + public static class StorageKeyType { - private StorageKeyType(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly StorageKeyType SharedAccessKey = "SharedAccessKey"; - - public static readonly StorageKeyType StorageAccessKey = "StorageAccessKey"; - - - /// - /// Underlying value of enum StorageKeyType - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for StorageKeyType - /// - public override string ToString() - { - return UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type StorageKeyType - /// - public bool Equals(StorageKeyType e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to StorageKeyType - /// - public static implicit operator StorageKeyType(string value) - { - return new StorageKeyType(value); - } - - /// - /// Implicit operator to convert StorageKeyType to string - /// - public static implicit operator string(StorageKeyType e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum StorageKeyType - /// - public static bool operator == (StorageKeyType e1, StorageKeyType e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum StorageKeyType - /// - public static bool operator != (StorageKeyType e1, StorageKeyType e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for StorageKeyType - /// - public override bool Equals(object obj) - { - return obj is StorageKeyType && Equals((StorageKeyType)obj); - } - - /// - /// Returns for hashCode StorageKeyType - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string SharedAccessKey = "SharedAccessKey"; + public const string StorageAccessKey = "StorageAccessKey"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/StorageKeyTypeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/StorageKeyTypeConverter.cs deleted file mode 100644 index b1a7b808de9a..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/StorageKeyTypeConverter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for StorageKeyType. - /// - public sealed class StorageKeyTypeConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to StorageKeyType by the - /// converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(StorageKeyType).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to StorageKeyType. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (StorageKeyType)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for StorageKeyType for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncAgent.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncAgent.cs index 2f810854b151..dd27b72537d5 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncAgent.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncAgent.cs @@ -47,7 +47,7 @@ public SyncAgent() /// Expiration time of the sync agent /// version. /// Version of the sync agent. - public SyncAgent(string id = default(string), string name = default(string), string type = default(string), string syncAgentName = default(string), string syncDatabaseId = default(string), System.DateTime? lastAliveTime = default(System.DateTime?), SyncAgentState? state = default(SyncAgentState?), bool? isUpToDate = default(bool?), System.DateTime? expiryTime = default(System.DateTime?), string version = default(string)) + public SyncAgent(string id = default(string), string name = default(string), string type = default(string), string syncAgentName = default(string), string syncDatabaseId = default(string), System.DateTime? lastAliveTime = default(System.DateTime?), string state = default(string), bool? isUpToDate = default(bool?), System.DateTime? expiryTime = default(System.DateTime?), string version = default(string)) : base(id, name, type) { SyncAgentName = syncAgentName; @@ -89,7 +89,7 @@ public SyncAgent() /// 'Offline', 'NeverConnected' /// [JsonProperty(PropertyName = "properties.state")] - public SyncAgentState? State { get; private set; } + public string State { get; private set; } /// /// Gets if the sync agent version is up to date. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncAgentLinkedDatabase.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncAgentLinkedDatabase.cs index b9993a161b2e..075a8cd921cc 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncAgentLinkedDatabase.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncAgentLinkedDatabase.cs @@ -48,7 +48,7 @@ public SyncAgentLinkedDatabase() /// database. /// User name of the sync agent linked /// database. - public SyncAgentLinkedDatabase(string id = default(string), string name = default(string), string type = default(string), SyncMemberDbType? databaseType = default(SyncMemberDbType?), string databaseId = default(string), string description = default(string), string serverName = default(string), string databaseName = default(string), string userName = default(string)) + public SyncAgentLinkedDatabase(string id = default(string), string name = default(string), string type = default(string), string databaseType = default(string), string databaseId = default(string), string description = default(string), string serverName = default(string), string databaseName = default(string), string userName = default(string)) : base(id, name, type) { DatabaseType = databaseType; @@ -70,7 +70,7 @@ public SyncAgentLinkedDatabase() /// include: 'AzureSqlDatabase', 'SqlServerDatabase' /// [JsonProperty(PropertyName = "properties.databaseType")] - public SyncMemberDbType? DatabaseType { get; private set; } + public string DatabaseType { get; private set; } /// /// Gets id of the sync agent linked database. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncAgentState.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncAgentState.cs index 08b49470357f..3c0f38964739 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncAgentState.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncAgentState.cs @@ -10,98 +10,14 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for SyncAgentState. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(SyncAgentStateConverter))] - public struct SyncAgentState : System.IEquatable + public static class SyncAgentState { - private SyncAgentState(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly SyncAgentState Online = "Online"; - - public static readonly SyncAgentState Offline = "Offline"; - - public static readonly SyncAgentState NeverConnected = "NeverConnected"; - - - /// - /// Underlying value of enum SyncAgentState - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for SyncAgentState - /// - public override string ToString() - { - return UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type SyncAgentState - /// - public bool Equals(SyncAgentState e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to SyncAgentState - /// - public static implicit operator SyncAgentState(string value) - { - return new SyncAgentState(value); - } - - /// - /// Implicit operator to convert SyncAgentState to string - /// - public static implicit operator string(SyncAgentState e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum SyncAgentState - /// - public static bool operator == (SyncAgentState e1, SyncAgentState e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum SyncAgentState - /// - public static bool operator != (SyncAgentState e1, SyncAgentState e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for SyncAgentState - /// - public override bool Equals(object obj) - { - return obj is SyncAgentState && Equals((SyncAgentState)obj); - } - - /// - /// Returns for hashCode SyncAgentState - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string Online = "Online"; + public const string Offline = "Offline"; + public const string NeverConnected = "NeverConnected"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncAgentStateConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncAgentStateConverter.cs deleted file mode 100644 index 1aa815ca2c27..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncAgentStateConverter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for SyncAgentState. - /// - public sealed class SyncAgentStateConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to SyncAgentState by the - /// converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(SyncAgentState).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to SyncAgentState. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (SyncAgentState)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for SyncAgentState for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncConflictResolutionPolicy.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncConflictResolutionPolicy.cs index 9308ff10219c..ce499c6de853 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncConflictResolutionPolicy.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncConflictResolutionPolicy.cs @@ -10,96 +10,13 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for SyncConflictResolutionPolicy. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(SyncConflictResolutionPolicyConverter))] - public struct SyncConflictResolutionPolicy : System.IEquatable + public static class SyncConflictResolutionPolicy { - private SyncConflictResolutionPolicy(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly SyncConflictResolutionPolicy HubWin = "HubWin"; - - public static readonly SyncConflictResolutionPolicy MemberWin = "MemberWin"; - - - /// - /// Underlying value of enum SyncConflictResolutionPolicy - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for SyncConflictResolutionPolicy - /// - public override string ToString() - { - return UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type SyncConflictResolutionPolicy - /// - public bool Equals(SyncConflictResolutionPolicy e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to SyncConflictResolutionPolicy - /// - public static implicit operator SyncConflictResolutionPolicy(string value) - { - return new SyncConflictResolutionPolicy(value); - } - - /// - /// Implicit operator to convert SyncConflictResolutionPolicy to string - /// - public static implicit operator string(SyncConflictResolutionPolicy e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum SyncConflictResolutionPolicy - /// - public static bool operator == (SyncConflictResolutionPolicy e1, SyncConflictResolutionPolicy e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum SyncConflictResolutionPolicy - /// - public static bool operator != (SyncConflictResolutionPolicy e1, SyncConflictResolutionPolicy e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for SyncConflictResolutionPolicy - /// - public override bool Equals(object obj) - { - return obj is SyncConflictResolutionPolicy && Equals((SyncConflictResolutionPolicy)obj); - } - - /// - /// Returns for hashCode SyncConflictResolutionPolicy - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string HubWin = "HubWin"; + public const string MemberWin = "MemberWin"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncConflictResolutionPolicyConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncConflictResolutionPolicyConverter.cs deleted file mode 100644 index b412bdc31b29..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncConflictResolutionPolicyConverter.cs +++ /dev/null @@ -1,55 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for SyncConflictResolutionPolicy. - /// - public sealed class SyncConflictResolutionPolicyConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to - /// SyncConflictResolutionPolicy by the converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(SyncConflictResolutionPolicy).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to - /// SyncConflictResolutionPolicy. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (SyncConflictResolutionPolicy)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for SyncConflictResolutionPolicy for - /// serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncDirection.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncDirection.cs index 2041f5b6f040..67774a8584fd 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncDirection.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncDirection.cs @@ -10,98 +10,14 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for SyncDirection. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(SyncDirectionConverter))] - public struct SyncDirection : System.IEquatable + public static class SyncDirection { - private SyncDirection(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly SyncDirection Bidirectional = "Bidirectional"; - - public static readonly SyncDirection OneWayMemberToHub = "OneWayMemberToHub"; - - public static readonly SyncDirection OneWayHubToMember = "OneWayHubToMember"; - - - /// - /// Underlying value of enum SyncDirection - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for SyncDirection - /// - public override string ToString() - { - return UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type SyncDirection - /// - public bool Equals(SyncDirection e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to SyncDirection - /// - public static implicit operator SyncDirection(string value) - { - return new SyncDirection(value); - } - - /// - /// Implicit operator to convert SyncDirection to string - /// - public static implicit operator string(SyncDirection e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum SyncDirection - /// - public static bool operator == (SyncDirection e1, SyncDirection e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum SyncDirection - /// - public static bool operator != (SyncDirection e1, SyncDirection e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for SyncDirection - /// - public override bool Equals(object obj) - { - return obj is SyncDirection && Equals((SyncDirection)obj); - } - - /// - /// Returns for hashCode SyncDirection - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string Bidirectional = "Bidirectional"; + public const string OneWayMemberToHub = "OneWayMemberToHub"; + public const string OneWayHubToMember = "OneWayHubToMember"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncDirectionConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncDirectionConverter.cs deleted file mode 100644 index 8b3d0ea72510..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncDirectionConverter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for SyncDirection. - /// - public sealed class SyncDirectionConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to SyncDirection by the - /// converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(SyncDirection).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to SyncDirection. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (SyncDirection)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for SyncDirection for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncGroup.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncGroup.cs index 30da9e6c32c8..7a16030cfff4 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncGroup.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncGroup.cs @@ -53,7 +53,7 @@ public SyncGroup() /// Sync schema of the sync group. /// If use private link /// connection is enabled. - public SyncGroup(string id = default(string), string name = default(string), string type = default(string), int? interval = default(int?), System.DateTime? lastSyncTime = default(System.DateTime?), SyncConflictResolutionPolicy? conflictResolutionPolicy = default(SyncConflictResolutionPolicy?), string syncDatabaseId = default(string), string hubDatabaseUserName = default(string), string hubDatabasePassword = default(string), SyncGroupState? syncState = default(SyncGroupState?), SyncGroupSchema schema = default(SyncGroupSchema), bool? usePrivateLinkConnection = default(bool?)) + public SyncGroup(string id = default(string), string name = default(string), string type = default(string), int? interval = default(int?), System.DateTime? lastSyncTime = default(System.DateTime?), string conflictResolutionPolicy = default(string), string syncDatabaseId = default(string), string hubDatabaseUserName = default(string), string hubDatabasePassword = default(string), string syncState = default(string), SyncGroupSchema schema = default(SyncGroupSchema), bool? usePrivateLinkConnection = default(bool?)) : base(id, name, type) { Interval = interval; @@ -90,7 +90,7 @@ public SyncGroup() /// values include: 'HubWin', 'MemberWin' /// [JsonProperty(PropertyName = "properties.conflictResolutionPolicy")] - public SyncConflictResolutionPolicy? ConflictResolutionPolicy { get; set; } + public string ConflictResolutionPolicy { get; set; } /// /// Gets or sets ARM resource id of the sync database in the sync @@ -116,7 +116,7 @@ public SyncGroup() /// 'NotReady', 'Error', 'Warning', 'Progressing', 'Good' /// [JsonProperty(PropertyName = "properties.syncState")] - public SyncGroupState? SyncState { get; private set; } + public string SyncState { get; private set; } /// /// Gets or sets sync schema of the sync group. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncGroupLogProperties.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncGroupLogProperties.cs index b2a7136b00fb..f587146600e2 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncGroupLogProperties.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncGroupLogProperties.cs @@ -37,7 +37,7 @@ public SyncGroupLogProperties() /// TracingId of the sync group log. /// OperationStatus of the sync group /// log. - public SyncGroupLogProperties(System.DateTime? timestamp = default(System.DateTime?), SyncGroupLogType? type = default(SyncGroupLogType?), string source = default(string), string details = default(string), System.Guid? tracingId = default(System.Guid?), string operationStatus = default(string)) + public SyncGroupLogProperties(System.DateTime? timestamp = default(System.DateTime?), string type = default(string), string source = default(string), string details = default(string), System.Guid? tracingId = default(System.Guid?), string operationStatus = default(string)) { Timestamp = timestamp; Type = type; @@ -64,7 +64,7 @@ public SyncGroupLogProperties() /// 'Error', 'Warning', 'Success' /// [JsonProperty(PropertyName = "type")] - public SyncGroupLogType? Type { get; private set; } + public string Type { get; private set; } /// /// Gets source of the sync group log. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncGroupLogType.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncGroupLogType.cs index 6e38e4cc4305..fb3ce4637cfc 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncGroupLogType.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncGroupLogType.cs @@ -10,100 +10,15 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for SyncGroupLogType. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(SyncGroupLogTypeConverter))] - public struct SyncGroupLogType : System.IEquatable + public static class SyncGroupLogType { - private SyncGroupLogType(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly SyncGroupLogType All = "All"; - - public static readonly SyncGroupLogType Error = "Error"; - - public static readonly SyncGroupLogType Warning = "Warning"; - - public static readonly SyncGroupLogType Success = "Success"; - - - /// - /// Underlying value of enum SyncGroupLogType - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for SyncGroupLogType - /// - public override string ToString() - { - return UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type SyncGroupLogType - /// - public bool Equals(SyncGroupLogType e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to SyncGroupLogType - /// - public static implicit operator SyncGroupLogType(string value) - { - return new SyncGroupLogType(value); - } - - /// - /// Implicit operator to convert SyncGroupLogType to string - /// - public static implicit operator string(SyncGroupLogType e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum SyncGroupLogType - /// - public static bool operator == (SyncGroupLogType e1, SyncGroupLogType e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum SyncGroupLogType - /// - public static bool operator != (SyncGroupLogType e1, SyncGroupLogType e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for SyncGroupLogType - /// - public override bool Equals(object obj) - { - return obj is SyncGroupLogType && Equals((SyncGroupLogType)obj); - } - - /// - /// Returns for hashCode SyncGroupLogType - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string All = "All"; + public const string Error = "Error"; + public const string Warning = "Warning"; + public const string Success = "Success"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncGroupLogTypeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncGroupLogTypeConverter.cs deleted file mode 100644 index 224fd4dfab5f..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncGroupLogTypeConverter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for SyncGroupLogType. - /// - public sealed class SyncGroupLogTypeConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to SyncGroupLogType by the - /// converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(SyncGroupLogType).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to SyncGroupLogType. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (SyncGroupLogType)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for SyncGroupLogType for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncGroupState.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncGroupState.cs index 4642c76efc95..4367211c97bc 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncGroupState.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncGroupState.cs @@ -10,102 +10,16 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for SyncGroupState. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(SyncGroupStateConverter))] - public struct SyncGroupState : System.IEquatable + public static class SyncGroupState { - private SyncGroupState(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly SyncGroupState NotReady = "NotReady"; - - public static readonly SyncGroupState Error = "Error"; - - public static readonly SyncGroupState Warning = "Warning"; - - public static readonly SyncGroupState Progressing = "Progressing"; - - public static readonly SyncGroupState Good = "Good"; - - - /// - /// Underlying value of enum SyncGroupState - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for SyncGroupState - /// - public override string ToString() - { - return UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type SyncGroupState - /// - public bool Equals(SyncGroupState e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to SyncGroupState - /// - public static implicit operator SyncGroupState(string value) - { - return new SyncGroupState(value); - } - - /// - /// Implicit operator to convert SyncGroupState to string - /// - public static implicit operator string(SyncGroupState e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum SyncGroupState - /// - public static bool operator == (SyncGroupState e1, SyncGroupState e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum SyncGroupState - /// - public static bool operator != (SyncGroupState e1, SyncGroupState e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for SyncGroupState - /// - public override bool Equals(object obj) - { - return obj is SyncGroupState && Equals((SyncGroupState)obj); - } - - /// - /// Returns for hashCode SyncGroupState - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string NotReady = "NotReady"; + public const string Error = "Error"; + public const string Warning = "Warning"; + public const string Progressing = "Progressing"; + public const string Good = "Good"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncGroupStateConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncGroupStateConverter.cs deleted file mode 100644 index b9183c88b750..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncGroupStateConverter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for SyncGroupState. - /// - public sealed class SyncGroupStateConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to SyncGroupState by the - /// converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(SyncGroupState).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to SyncGroupState. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (SyncGroupState)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for SyncGroupState for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncMember.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncMember.cs index 828d184e1f29..a2c6837a2407 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncMember.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncMember.cs @@ -65,7 +65,7 @@ public SyncMember() /// 'UnProvisioned', 'Provisioning', 'Provisioned', 'ProvisionFailed', /// 'DeProvisioning', 'DeProvisioned', 'DeProvisionFailed', /// 'Reprovisioning', 'ReprovisionFailed', 'UnReprovisioned' - public SyncMember(string id = default(string), string name = default(string), string type = default(string), SyncMemberDbType? databaseType = default(SyncMemberDbType?), string syncAgentId = default(string), System.Guid? sqlServerDatabaseId = default(System.Guid?), string syncMemberAzureDatabaseResourceId = default(string), bool? usePrivateLinkConnection = default(bool?), string serverName = default(string), string databaseName = default(string), string userName = default(string), string password = default(string), SyncDirection? syncDirection = default(SyncDirection?), SyncMemberState? syncState = default(SyncMemberState?)) + public SyncMember(string id = default(string), string name = default(string), string type = default(string), string databaseType = default(string), string syncAgentId = default(string), System.Guid? sqlServerDatabaseId = default(System.Guid?), string syncMemberAzureDatabaseResourceId = default(string), bool? usePrivateLinkConnection = default(bool?), string serverName = default(string), string databaseName = default(string), string userName = default(string), string password = default(string), string syncDirection = default(string), string syncState = default(string)) : base(id, name, type) { DatabaseType = databaseType; @@ -92,7 +92,7 @@ public SyncMember() /// include: 'AzureSqlDatabase', 'SqlServerDatabase' /// [JsonProperty(PropertyName = "properties.databaseType")] - public SyncMemberDbType? DatabaseType { get; set; } + public string DatabaseType { get; set; } /// /// Gets or sets ARM resource id of the sync agent in the sync member. @@ -149,7 +149,7 @@ public SyncMember() /// include: 'Bidirectional', 'OneWayMemberToHub', 'OneWayHubToMember' /// [JsonProperty(PropertyName = "properties.syncDirection")] - public SyncDirection? SyncDirection { get; set; } + public string SyncDirection { get; set; } /// /// Gets sync state of the sync member. Possible values include: @@ -161,7 +161,7 @@ public SyncMember() /// 'Reprovisioning', 'ReprovisionFailed', 'UnReprovisioned' /// [JsonProperty(PropertyName = "properties.syncState")] - public SyncMemberState? SyncState { get; private set; } + public string SyncState { get; private set; } } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncMemberDbType.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncMemberDbType.cs index 4135c5b95395..62c0d7fda443 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncMemberDbType.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncMemberDbType.cs @@ -10,96 +10,13 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for SyncMemberDbType. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(SyncMemberDbTypeConverter))] - public struct SyncMemberDbType : System.IEquatable + public static class SyncMemberDbType { - private SyncMemberDbType(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly SyncMemberDbType AzureSqlDatabase = "AzureSqlDatabase"; - - public static readonly SyncMemberDbType SqlServerDatabase = "SqlServerDatabase"; - - - /// - /// Underlying value of enum SyncMemberDbType - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for SyncMemberDbType - /// - public override string ToString() - { - return UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type SyncMemberDbType - /// - public bool Equals(SyncMemberDbType e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to SyncMemberDbType - /// - public static implicit operator SyncMemberDbType(string value) - { - return new SyncMemberDbType(value); - } - - /// - /// Implicit operator to convert SyncMemberDbType to string - /// - public static implicit operator string(SyncMemberDbType e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum SyncMemberDbType - /// - public static bool operator == (SyncMemberDbType e1, SyncMemberDbType e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum SyncMemberDbType - /// - public static bool operator != (SyncMemberDbType e1, SyncMemberDbType e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for SyncMemberDbType - /// - public override bool Equals(object obj) - { - return obj is SyncMemberDbType && Equals((SyncMemberDbType)obj); - } - - /// - /// Returns for hashCode SyncMemberDbType - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string AzureSqlDatabase = "AzureSqlDatabase"; + public const string SqlServerDatabase = "SqlServerDatabase"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncMemberDbTypeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncMemberDbTypeConverter.cs deleted file mode 100644 index a7be8e6b7c67..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncMemberDbTypeConverter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for SyncMemberDbType. - /// - public sealed class SyncMemberDbTypeConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to SyncMemberDbType by the - /// converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(SyncMemberDbType).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to SyncMemberDbType. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (SyncMemberDbType)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for SyncMemberDbType for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncMemberState.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncMemberState.cs index a88b7fea97c0..8ef9ca4ac2d1 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncMemberState.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncMemberState.cs @@ -10,128 +10,29 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for SyncMemberState. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(SyncMemberStateConverter))] - public struct SyncMemberState : System.IEquatable + public static class SyncMemberState { - private SyncMemberState(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly SyncMemberState SyncInProgress = "SyncInProgress"; - - public static readonly SyncMemberState SyncSucceeded = "SyncSucceeded"; - - public static readonly SyncMemberState SyncFailed = "SyncFailed"; - - public static readonly SyncMemberState DisabledTombstoneCleanup = "DisabledTombstoneCleanup"; - - public static readonly SyncMemberState DisabledBackupRestore = "DisabledBackupRestore"; - - public static readonly SyncMemberState SyncSucceededWithWarnings = "SyncSucceededWithWarnings"; - - public static readonly SyncMemberState SyncCancelling = "SyncCancelling"; - - public static readonly SyncMemberState SyncCancelled = "SyncCancelled"; - - public static readonly SyncMemberState UnProvisioned = "UnProvisioned"; - - public static readonly SyncMemberState Provisioning = "Provisioning"; - - public static readonly SyncMemberState Provisioned = "Provisioned"; - - public static readonly SyncMemberState ProvisionFailed = "ProvisionFailed"; - - public static readonly SyncMemberState DeProvisioning = "DeProvisioning"; - - public static readonly SyncMemberState DeProvisioned = "DeProvisioned"; - - public static readonly SyncMemberState DeProvisionFailed = "DeProvisionFailed"; - - public static readonly SyncMemberState Reprovisioning = "Reprovisioning"; - - public static readonly SyncMemberState ReprovisionFailed = "ReprovisionFailed"; - - public static readonly SyncMemberState UnReprovisioned = "UnReprovisioned"; - - - /// - /// Underlying value of enum SyncMemberState - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for SyncMemberState - /// - public override string ToString() - { - return UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type SyncMemberState - /// - public bool Equals(SyncMemberState e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to SyncMemberState - /// - public static implicit operator SyncMemberState(string value) - { - return new SyncMemberState(value); - } - - /// - /// Implicit operator to convert SyncMemberState to string - /// - public static implicit operator string(SyncMemberState e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum SyncMemberState - /// - public static bool operator == (SyncMemberState e1, SyncMemberState e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum SyncMemberState - /// - public static bool operator != (SyncMemberState e1, SyncMemberState e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for SyncMemberState - /// - public override bool Equals(object obj) - { - return obj is SyncMemberState && Equals((SyncMemberState)obj); - } - - /// - /// Returns for hashCode SyncMemberState - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string SyncInProgress = "SyncInProgress"; + public const string SyncSucceeded = "SyncSucceeded"; + public const string SyncFailed = "SyncFailed"; + public const string DisabledTombstoneCleanup = "DisabledTombstoneCleanup"; + public const string DisabledBackupRestore = "DisabledBackupRestore"; + public const string SyncSucceededWithWarnings = "SyncSucceededWithWarnings"; + public const string SyncCancelling = "SyncCancelling"; + public const string SyncCancelled = "SyncCancelled"; + public const string UnProvisioned = "UnProvisioned"; + public const string Provisioning = "Provisioning"; + public const string Provisioned = "Provisioned"; + public const string ProvisionFailed = "ProvisionFailed"; + public const string DeProvisioning = "DeProvisioning"; + public const string DeProvisioned = "DeProvisioned"; + public const string DeProvisionFailed = "DeProvisionFailed"; + public const string Reprovisioning = "Reprovisioning"; + public const string ReprovisionFailed = "ReprovisionFailed"; + public const string UnReprovisioned = "UnReprovisioned"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncMemberStateConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncMemberStateConverter.cs deleted file mode 100644 index 6e26b4d585bc..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncMemberStateConverter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for SyncMemberState. - /// - public sealed class SyncMemberStateConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to SyncMemberState by the - /// converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(SyncMemberState).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to SyncMemberState. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (SyncMemberState)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for SyncMemberState for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/TransparentDataEncryptionActivity.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/TransparentDataEncryptionActivity.cs index 910daceaab5d..ab34253c2b81 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/TransparentDataEncryptionActivity.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/TransparentDataEncryptionActivity.cs @@ -42,7 +42,7 @@ public TransparentDataEncryptionActivity() /// include: 'Encrypting', 'Decrypting' /// The percent complete of the /// transparent data encryption scan for a database. - public TransparentDataEncryptionActivity(string id = default(string), string name = default(string), string type = default(string), string location = default(string), TransparentDataEncryptionActivityStatus? status = default(TransparentDataEncryptionActivityStatus?), double? percentComplete = default(double?)) + public TransparentDataEncryptionActivity(string id = default(string), string name = default(string), string type = default(string), string location = default(string), string status = default(string), double? percentComplete = default(double?)) : base(id, name, type) { Location = location; @@ -67,7 +67,7 @@ public TransparentDataEncryptionActivity() /// 'Encrypting', 'Decrypting' /// [JsonProperty(PropertyName = "properties.status")] - public TransparentDataEncryptionActivityStatus? Status { get; private set; } + public string Status { get; private set; } /// /// Gets the percent complete of the transparent data encryption scan diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/TransparentDataEncryptionActivityStatus.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/TransparentDataEncryptionActivityStatus.cs index 6a47ce56c7fe..5880bd69d615 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/TransparentDataEncryptionActivityStatus.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/TransparentDataEncryptionActivityStatus.cs @@ -10,102 +10,13 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for TransparentDataEncryptionActivityStatus. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(TransparentDataEncryptionActivityStatusConverter))] - public struct TransparentDataEncryptionActivityStatus : System.IEquatable + public static class TransparentDataEncryptionActivityStatus { - private TransparentDataEncryptionActivityStatus(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly TransparentDataEncryptionActivityStatus Encrypting = "Encrypting"; - - public static readonly TransparentDataEncryptionActivityStatus Decrypting = "Decrypting"; - - - /// - /// Underlying value of enum TransparentDataEncryptionActivityStatus - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for - /// TransparentDataEncryptionActivityStatus - /// - public override string ToString() - { - return UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type TransparentDataEncryptionActivityStatus - /// - public bool Equals(TransparentDataEncryptionActivityStatus e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to - /// TransparentDataEncryptionActivityStatus - /// - public static implicit operator TransparentDataEncryptionActivityStatus(string value) - { - return new TransparentDataEncryptionActivityStatus(value); - } - - /// - /// Implicit operator to convert - /// TransparentDataEncryptionActivityStatus to string - /// - public static implicit operator string(TransparentDataEncryptionActivityStatus e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum - /// TransparentDataEncryptionActivityStatus - /// - public static bool operator == (TransparentDataEncryptionActivityStatus e1, TransparentDataEncryptionActivityStatus e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum - /// TransparentDataEncryptionActivityStatus - /// - public static bool operator != (TransparentDataEncryptionActivityStatus e1, TransparentDataEncryptionActivityStatus e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for - /// TransparentDataEncryptionActivityStatus - /// - public override bool Equals(object obj) - { - return obj is TransparentDataEncryptionActivityStatus && Equals((TransparentDataEncryptionActivityStatus)obj); - } - - /// - /// Returns for hashCode TransparentDataEncryptionActivityStatus - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string Encrypting = "Encrypting"; + public const string Decrypting = "Decrypting"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/TransparentDataEncryptionActivityStatusConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/TransparentDataEncryptionActivityStatusConverter.cs deleted file mode 100644 index 4a694506acac..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/TransparentDataEncryptionActivityStatusConverter.cs +++ /dev/null @@ -1,55 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for TransparentDataEncryptionActivityStatus. - /// - public sealed class TransparentDataEncryptionActivityStatusConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to - /// TransparentDataEncryptionActivityStatus by the converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(TransparentDataEncryptionActivityStatus).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to - /// TransparentDataEncryptionActivityStatus. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (TransparentDataEncryptionActivityStatus)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for TransparentDataEncryptionActivityStatus - /// for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/UnitDefinitionType.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/UnitDefinitionType.cs index 16c3edd9beac..1184776ad156 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/UnitDefinitionType.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/UnitDefinitionType.cs @@ -10,104 +10,17 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for UnitDefinitionType. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(UnitDefinitionTypeConverter))] - public struct UnitDefinitionType : System.IEquatable + public static class UnitDefinitionType { - private UnitDefinitionType(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly UnitDefinitionType Count = "Count"; - - public static readonly UnitDefinitionType Bytes = "Bytes"; - - public static readonly UnitDefinitionType Seconds = "Seconds"; - - public static readonly UnitDefinitionType Percent = "Percent"; - - public static readonly UnitDefinitionType CountPerSecond = "CountPerSecond"; - - public static readonly UnitDefinitionType BytesPerSecond = "BytesPerSecond"; - - - /// - /// Underlying value of enum UnitDefinitionType - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for UnitDefinitionType - /// - public override string ToString() - { - return UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type UnitDefinitionType - /// - public bool Equals(UnitDefinitionType e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to UnitDefinitionType - /// - public static implicit operator UnitDefinitionType(string value) - { - return new UnitDefinitionType(value); - } - - /// - /// Implicit operator to convert UnitDefinitionType to string - /// - public static implicit operator string(UnitDefinitionType e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum UnitDefinitionType - /// - public static bool operator == (UnitDefinitionType e1, UnitDefinitionType e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum UnitDefinitionType - /// - public static bool operator != (UnitDefinitionType e1, UnitDefinitionType e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for UnitDefinitionType - /// - public override bool Equals(object obj) - { - return obj is UnitDefinitionType && Equals((UnitDefinitionType)obj); - } - - /// - /// Returns for hashCode UnitDefinitionType - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string Count = "Count"; + public const string Bytes = "Bytes"; + public const string Seconds = "Seconds"; + public const string Percent = "Percent"; + public const string CountPerSecond = "CountPerSecond"; + public const string BytesPerSecond = "BytesPerSecond"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/UnitDefinitionTypeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/UnitDefinitionTypeConverter.cs deleted file mode 100644 index dda3dfcf2386..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/UnitDefinitionTypeConverter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for UnitDefinitionType. - /// - public sealed class UnitDefinitionTypeConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to UnitDefinitionType by the - /// converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(UnitDefinitionType).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to UnitDefinitionType. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (UnitDefinitionType)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for UnitDefinitionType for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/UnitType.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/UnitType.cs index 0ddad426ce1c..ecd9b7388bdf 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/UnitType.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/UnitType.cs @@ -10,104 +10,17 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for UnitType. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(UnitTypeConverter))] - public struct UnitType : System.IEquatable + public static class UnitType { - private UnitType(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly UnitType Count = "count"; - - public static readonly UnitType Bytes = "bytes"; - - public static readonly UnitType Seconds = "seconds"; - - public static readonly UnitType Percent = "percent"; - - public static readonly UnitType CountPerSecond = "countPerSecond"; - - public static readonly UnitType BytesPerSecond = "bytesPerSecond"; - - - /// - /// Underlying value of enum UnitType - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for UnitType - /// - public override string ToString() - { - return UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type UnitType - /// - public bool Equals(UnitType e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to UnitType - /// - public static implicit operator UnitType(string value) - { - return new UnitType(value); - } - - /// - /// Implicit operator to convert UnitType to string - /// - public static implicit operator string(UnitType e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum UnitType - /// - public static bool operator == (UnitType e1, UnitType e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum UnitType - /// - public static bool operator != (UnitType e1, UnitType e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for UnitType - /// - public override bool Equals(object obj) - { - return obj is UnitType && Equals((UnitType)obj); - } - - /// - /// Returns for hashCode UnitType - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string Count = "count"; + public const string Bytes = "bytes"; + public const string Seconds = "seconds"; + public const string Percent = "percent"; + public const string CountPerSecond = "countPerSecond"; + public const string BytesPerSecond = "bytesPerSecond"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/UnitTypeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/UnitTypeConverter.cs deleted file mode 100644 index a0e37419629f..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/UnitTypeConverter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for UnitType. - /// - public sealed class UnitTypeConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to UnitType by the - /// converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(UnitType).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to UnitType. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (UnitType)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for UnitType for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/VirtualNetworkRule.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/VirtualNetworkRule.cs index d742c4ade135..b34438897190 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/VirtualNetworkRule.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/VirtualNetworkRule.cs @@ -43,7 +43,7 @@ public VirtualNetworkRule() /// Virtual Network Rule State. Possible values /// include: 'Initializing', 'InProgress', 'Ready', 'Deleting', /// 'Unknown' - public VirtualNetworkRule(string virtualNetworkSubnetId, string id = default(string), string name = default(string), string type = default(string), bool? ignoreMissingVnetServiceEndpoint = default(bool?), VirtualNetworkRuleState? state = default(VirtualNetworkRuleState?)) + public VirtualNetworkRule(string virtualNetworkSubnetId, string id = default(string), string name = default(string), string type = default(string), bool? ignoreMissingVnetServiceEndpoint = default(bool?), string state = default(string)) : base(id, name, type) { VirtualNetworkSubnetId = virtualNetworkSubnetId; @@ -75,7 +75,7 @@ public VirtualNetworkRule() /// 'Initializing', 'InProgress', 'Ready', 'Deleting', 'Unknown' /// [JsonProperty(PropertyName = "properties.state")] - public VirtualNetworkRuleState? State { get; private set; } + public string State { get; private set; } /// /// Validate the object. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/VirtualNetworkRuleState.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/VirtualNetworkRuleState.cs index a0aefe8e5a92..ef0dd2f70a5b 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/VirtualNetworkRuleState.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/VirtualNetworkRuleState.cs @@ -10,102 +10,16 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for VirtualNetworkRuleState. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(VirtualNetworkRuleStateConverter))] - public struct VirtualNetworkRuleState : System.IEquatable + public static class VirtualNetworkRuleState { - private VirtualNetworkRuleState(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly VirtualNetworkRuleState Initializing = "Initializing"; - - public static readonly VirtualNetworkRuleState InProgress = "InProgress"; - - public static readonly VirtualNetworkRuleState Ready = "Ready"; - - public static readonly VirtualNetworkRuleState Deleting = "Deleting"; - - public static readonly VirtualNetworkRuleState Unknown = "Unknown"; - - - /// - /// Underlying value of enum VirtualNetworkRuleState - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for VirtualNetworkRuleState - /// - public override string ToString() - { - return UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type VirtualNetworkRuleState - /// - public bool Equals(VirtualNetworkRuleState e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to VirtualNetworkRuleState - /// - public static implicit operator VirtualNetworkRuleState(string value) - { - return new VirtualNetworkRuleState(value); - } - - /// - /// Implicit operator to convert VirtualNetworkRuleState to string - /// - public static implicit operator string(VirtualNetworkRuleState e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum VirtualNetworkRuleState - /// - public static bool operator == (VirtualNetworkRuleState e1, VirtualNetworkRuleState e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum VirtualNetworkRuleState - /// - public static bool operator != (VirtualNetworkRuleState e1, VirtualNetworkRuleState e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for VirtualNetworkRuleState - /// - public override bool Equals(object obj) - { - return obj is VirtualNetworkRuleState && Equals((VirtualNetworkRuleState)obj); - } - - /// - /// Returns for hashCode VirtualNetworkRuleState - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string Initializing = "Initializing"; + public const string InProgress = "InProgress"; + public const string Ready = "Ready"; + public const string Deleting = "Deleting"; + public const string Unknown = "Unknown"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/VirtualNetworkRuleStateConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/VirtualNetworkRuleStateConverter.cs deleted file mode 100644 index 337961087a9c..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/VirtualNetworkRuleStateConverter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for VirtualNetworkRuleState. - /// - public sealed class VirtualNetworkRuleStateConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to VirtualNetworkRuleState - /// by the converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(VirtualNetworkRuleState).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to VirtualNetworkRuleState. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (VirtualNetworkRuleState)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for VirtualNetworkRuleState for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/VulnerabilityAssessmentScanRecord.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/VulnerabilityAssessmentScanRecord.cs index ca8eac5a1248..298f1c24a1f8 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/VulnerabilityAssessmentScanRecord.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/VulnerabilityAssessmentScanRecord.cs @@ -51,7 +51,7 @@ public VulnerabilityAssessmentScanRecord() /// container path. /// The number of failed /// security checks. - public VulnerabilityAssessmentScanRecord(string id = default(string), string name = default(string), string type = default(string), string scanId = default(string), VulnerabilityAssessmentScanTriggerType? triggerType = default(VulnerabilityAssessmentScanTriggerType?), VulnerabilityAssessmentScanState? state = default(VulnerabilityAssessmentScanState?), System.DateTime? startTime = default(System.DateTime?), System.DateTime? endTime = default(System.DateTime?), IList errors = default(IList), string storageContainerPath = default(string), int? numberOfFailedSecurityChecks = default(int?)) + public VulnerabilityAssessmentScanRecord(string id = default(string), string name = default(string), string type = default(string), string scanId = default(string), string triggerType = default(string), string state = default(string), System.DateTime? startTime = default(System.DateTime?), System.DateTime? endTime = default(System.DateTime?), IList errors = default(IList), string storageContainerPath = default(string), int? numberOfFailedSecurityChecks = default(int?)) : base(id, name, type) { ScanId = scanId; @@ -81,14 +81,14 @@ public VulnerabilityAssessmentScanRecord() /// 'Recurring' /// [JsonProperty(PropertyName = "properties.triggerType")] - public VulnerabilityAssessmentScanTriggerType? TriggerType { get; private set; } + public string TriggerType { get; private set; } /// /// Gets the scan status. Possible values include: 'Passed', 'Failed', /// 'FailedToRun', 'InProgress' /// [JsonProperty(PropertyName = "properties.state")] - public VulnerabilityAssessmentScanState? State { get; private set; } + public string State { get; private set; } /// /// Gets the scan start time (UTC). diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/VulnerabilityAssessmentScanState.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/VulnerabilityAssessmentScanState.cs index 5cc58647739b..503c61895227 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/VulnerabilityAssessmentScanState.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/VulnerabilityAssessmentScanState.cs @@ -10,102 +10,15 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for VulnerabilityAssessmentScanState. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(VulnerabilityAssessmentScanStateConverter))] - public struct VulnerabilityAssessmentScanState : System.IEquatable + public static class VulnerabilityAssessmentScanState { - private VulnerabilityAssessmentScanState(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly VulnerabilityAssessmentScanState Passed = "Passed"; - - public static readonly VulnerabilityAssessmentScanState Failed = "Failed"; - - public static readonly VulnerabilityAssessmentScanState FailedToRun = "FailedToRun"; - - public static readonly VulnerabilityAssessmentScanState InProgress = "InProgress"; - - - /// - /// Underlying value of enum VulnerabilityAssessmentScanState - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for VulnerabilityAssessmentScanState - /// - public override string ToString() - { - return UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type VulnerabilityAssessmentScanState - /// - public bool Equals(VulnerabilityAssessmentScanState e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to - /// VulnerabilityAssessmentScanState - /// - public static implicit operator VulnerabilityAssessmentScanState(string value) - { - return new VulnerabilityAssessmentScanState(value); - } - - /// - /// Implicit operator to convert VulnerabilityAssessmentScanState to - /// string - /// - public static implicit operator string(VulnerabilityAssessmentScanState e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum VulnerabilityAssessmentScanState - /// - public static bool operator == (VulnerabilityAssessmentScanState e1, VulnerabilityAssessmentScanState e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum VulnerabilityAssessmentScanState - /// - public static bool operator != (VulnerabilityAssessmentScanState e1, VulnerabilityAssessmentScanState e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for VulnerabilityAssessmentScanState - /// - public override bool Equals(object obj) - { - return obj is VulnerabilityAssessmentScanState && Equals((VulnerabilityAssessmentScanState)obj); - } - - /// - /// Returns for hashCode VulnerabilityAssessmentScanState - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string Passed = "Passed"; + public const string Failed = "Failed"; + public const string FailedToRun = "FailedToRun"; + public const string InProgress = "InProgress"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/VulnerabilityAssessmentScanStateConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/VulnerabilityAssessmentScanStateConverter.cs deleted file mode 100644 index a54163f7d51f..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/VulnerabilityAssessmentScanStateConverter.cs +++ /dev/null @@ -1,55 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for VulnerabilityAssessmentScanState. - /// - public sealed class VulnerabilityAssessmentScanStateConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to - /// VulnerabilityAssessmentScanState by the converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(VulnerabilityAssessmentScanState).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to - /// VulnerabilityAssessmentScanState. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (VulnerabilityAssessmentScanState)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for VulnerabilityAssessmentScanState for - /// serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/VulnerabilityAssessmentScanTriggerType.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/VulnerabilityAssessmentScanTriggerType.cs index 293ed963bdaa..252a76bff40a 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/VulnerabilityAssessmentScanTriggerType.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/VulnerabilityAssessmentScanTriggerType.cs @@ -10,102 +10,13 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for VulnerabilityAssessmentScanTriggerType. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(VulnerabilityAssessmentScanTriggerTypeConverter))] - public struct VulnerabilityAssessmentScanTriggerType : System.IEquatable + public static class VulnerabilityAssessmentScanTriggerType { - private VulnerabilityAssessmentScanTriggerType(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly VulnerabilityAssessmentScanTriggerType OnDemand = "OnDemand"; - - public static readonly VulnerabilityAssessmentScanTriggerType Recurring = "Recurring"; - - - /// - /// Underlying value of enum VulnerabilityAssessmentScanTriggerType - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for - /// VulnerabilityAssessmentScanTriggerType - /// - public override string ToString() - { - return UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type VulnerabilityAssessmentScanTriggerType - /// - public bool Equals(VulnerabilityAssessmentScanTriggerType e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to - /// VulnerabilityAssessmentScanTriggerType - /// - public static implicit operator VulnerabilityAssessmentScanTriggerType(string value) - { - return new VulnerabilityAssessmentScanTriggerType(value); - } - - /// - /// Implicit operator to convert VulnerabilityAssessmentScanTriggerType - /// to string - /// - public static implicit operator string(VulnerabilityAssessmentScanTriggerType e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum - /// VulnerabilityAssessmentScanTriggerType - /// - public static bool operator == (VulnerabilityAssessmentScanTriggerType e1, VulnerabilityAssessmentScanTriggerType e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum - /// VulnerabilityAssessmentScanTriggerType - /// - public static bool operator != (VulnerabilityAssessmentScanTriggerType e1, VulnerabilityAssessmentScanTriggerType e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for - /// VulnerabilityAssessmentScanTriggerType - /// - public override bool Equals(object obj) - { - return obj is VulnerabilityAssessmentScanTriggerType && Equals((VulnerabilityAssessmentScanTriggerType)obj); - } - - /// - /// Returns for hashCode VulnerabilityAssessmentScanTriggerType - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string OnDemand = "OnDemand"; + public const string Recurring = "Recurring"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/VulnerabilityAssessmentScanTriggerTypeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/VulnerabilityAssessmentScanTriggerTypeConverter.cs deleted file mode 100644 index 38737f84fae4..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/VulnerabilityAssessmentScanTriggerTypeConverter.cs +++ /dev/null @@ -1,55 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for VulnerabilityAssessmentScanTriggerType. - /// - public sealed class VulnerabilityAssessmentScanTriggerTypeConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to - /// VulnerabilityAssessmentScanTriggerType by the converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(VulnerabilityAssessmentScanTriggerType).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to - /// VulnerabilityAssessmentScanTriggerType. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (VulnerabilityAssessmentScanTriggerType)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for VulnerabilityAssessmentScanTriggerType for - /// serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/SdkInfo_SqlManagementClient.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/SdkInfo_SqlManagementClient.cs index fb6e69606085..ec16afe5f47c 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/SdkInfo_SqlManagementClient.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/SdkInfo_SqlManagementClient.cs @@ -1,16 +1,24 @@ -using System; -using System.Collections.Generic; -using System.Linq; +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// -internal static partial class SdkInfo +namespace Microsoft.Azure.Management.Sql { - public static IEnumerable> ApiInfo_SqlManagementClient - { - get - { - return new Tuple[] - { + using System; + using System.Collections.Generic; + using System.Linq; + + internal static partial class SdkInfo + { + public static IEnumerable> ApiInfo_SqlManagementClient + { + get + { + return new Tuple[] + { new Tuple("Sql", "BackupLongTermRetentionPolicies", "2017-03-01-preview"), new Tuple("Sql", "BackupShortTermRetentionPolicies", "2020-02-02-preview"), new Tuple("Sql", "Capabilities", "2018-06-01-preview"), @@ -111,7 +119,8 @@ public static IEnumerable> ApiInfo_SqlManagementCl new Tuple("Sql", "VirtualNetworkRules", "2015-05-01-preview"), new Tuple("Sql", "WorkloadClassifiers", "2019-06-01-preview"), new Tuple("Sql", "WorkloadGroups", "2019-06-01-preview"), - }.AsEnumerable(); - } - } + }.AsEnumerable(); + } + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/SqlManagementClient.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/SqlManagementClient.cs index 5062500bd5da..722f55eb1e1a 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/SqlManagementClient.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/SqlManagementClient.cs @@ -55,19 +55,20 @@ public partial class SqlManagementClient : ServiceClient, I public string SubscriptionId { get; set; } /// - /// Gets or sets the preferred language for the response. + /// The preferred language for the response. /// public string AcceptLanguage { get; set; } /// - /// Gets or sets the retry timeout in seconds for Long Running Operations. - /// Default value is 30. + /// The retry timeout in seconds for Long Running Operations. Default value is + /// 30. /// public int? LongRunningOperationRetryTimeout { get; set; } /// - /// When set to true a unique x-ms-client-request-id value is generated and - /// included in each request. Default is true. + /// Whether a unique x-ms-client-request-id should be generated. When set to + /// true a unique x-ms-client-request-id value is generated and included in + /// each request. Default is true. /// public bool? GenerateClientRequestId { get; set; } From 89d804bd054af4cb819e1e6363cd0dd58742035e Mon Sep 17 00:00:00 2001 From: xaliciayang Date: Thu, 3 Sep 2020 19:25:55 -0700 Subject: [PATCH 10/19] switch back generated clients, updated database create test --- .../src/Generated/CapabilitiesOperations.cs | 4 +- .../CapabilitiesOperationsExtensions.cs | 4 +- .../src/Generated/DatabasesOperations.cs | 6 +- .../DatabasesOperationsExtensions.cs | 8 +- .../src/Generated/ICapabilitiesOperations.cs | 2 +- .../src/Generated/IDatabasesOperations.cs | 4 +- .../ILongTermRetentionBackupsOperations.cs | 12 +- ...tentionManagedInstanceBackupsOperations.cs | 12 +- .../Generated/IManagedInstancesOperations.cs | 4 +- .../src/Generated/ISqlManagementClient.cs | 11 +- .../LongTermRetentionBackupsOperations.cs | 24 +- ...ermRetentionBackupsOperationsExtensions.cs | 24 +- ...tentionManagedInstanceBackupsOperations.cs | 24 +- ...agedInstanceBackupsOperationsExtensions.cs | 24 +- .../Generated/ManagedInstancesOperations.cs | 6 +- .../ManagedInstancesOperationsExtensions.cs | 8 +- .../Models/AutoPauseDelayTimeRange.cs | 4 +- .../src/Generated/Models/CapabilityGroup.cs | 98 +++++- .../Models/CapabilityGroupConverter.cs | 53 ++++ .../Generated/Models/CatalogCollationType.cs | 89 +++++- .../Models/CatalogCollationTypeConverter.cs | 53 ++++ .../src/Generated/Models/CreateMode.cs | 113 ++++++- .../Generated/Models/CreateModeConverter.cs | 53 ++++ .../Generated/Models/DatabaseLicenseType.cs | 89 +++++- .../Models/DatabaseLicenseTypeConverter.cs | 53 ++++ .../src/Generated/Models/DatabaseOperation.cs | 4 +- .../src/Generated/Models/DatabaseReadScale.cs | 22 -- .../src/Generated/Models/DatabaseState1.cs | 92 +++++- .../Models/DatabaseState1Converter.cs | 53 ++++ .../src/Generated/Models/DatabaseState2.cs | 92 +++++- .../Models/DatabaseState2Converter.cs | 53 ++++ .../src/Generated/Models/DatabaseState3.cs | 92 +++++- .../Models/DatabaseState3Converter.cs | 53 ++++ .../src/Generated/Models/DatabaseState4.cs | 92 +++++- .../Models/DatabaseState4Converter.cs | 53 ++++ .../src/Generated/Models/DatabaseState5.cs | 92 +++++- .../Models/DatabaseState5Converter.cs | 53 ++++ .../src/Generated/Models/DatabaseState6.cs | 92 +++++- .../Models/DatabaseState6Converter.cs | 53 ++++ .../src/Generated/Models/DatabaseStatus.cs | 146 +++++++-- .../Models/DatabaseStatusConverter.cs | 53 ++++ .../src/Generated/Models/ElasticPool.cs | 6 +- .../Generated/Models/ElasticPoolEdition.cs | 98 +++++- .../Models/ElasticPoolEditionConverter.cs | 53 ++++ .../Models/ElasticPoolLicenseType.cs | 89 +++++- .../Models/ElasticPoolLicenseTypeConverter.cs | 53 ++++ ...erDatabaseMaxPerformanceLevelCapability.cs | 4 +- ...erDatabaseMinPerformanceLevelCapability.cs | 4 +- .../src/Generated/Models/ElasticPoolState.cs | 92 +++++- .../Models/ElasticPoolStateConverter.cs | 53 ++++ .../src/Generated/Models/ElasticPoolUpdate.cs | 4 +- .../Generated/Models/EncryptionProtector.cs | 8 +- .../Models/ExportDatabaseDefinition.cs | 8 +- .../src/Generated/Models/FailoverGroup.cs | 4 +- .../Models/FailoverGroupReadOnlyEndpoint.cs | 4 +- .../Models/FailoverGroupReadWriteEndpoint.cs | 11 +- .../Models/FailoverGroupReplicationRole.cs | 89 +++++- .../FailoverGroupReplicationRoleConverter.cs | 55 ++++ .../src/Generated/Models/IdentityType.cs | 86 +++++- .../Generated/Models/IdentityTypeConverter.cs | 53 ++++ .../ImportExistingDatabaseDefinition.cs | 8 +- .../Models/ImportNewDatabaseDefinition.cs | 8 +- .../Generated/Models/InstanceFailoverGroup.cs | 4 +- .../InstanceFailoverGroupReadOnlyEndpoint.cs | 4 +- .../InstanceFailoverGroupReadWriteEndpoint.cs | 11 +- .../InstanceFailoverGroupReplicationRole.cs | 94 +++++- ...ceFailoverGroupReplicationRoleConverter.cs | 55 ++++ .../src/Generated/Models/InstancePool.cs | 8 +- .../Models/InstancePoolLicenseType.cs | 89 +++++- .../InstancePoolLicenseTypeConverter.cs | 53 ++++ .../src/Generated/Models/JobAgent.cs | 4 +- .../src/Generated/Models/JobAgentState.cs | 98 +++++- .../Models/JobAgentStateConverter.cs | 53 ++++ .../src/Generated/Models/JobExecution.cs | 6 +- .../Generated/Models/JobExecutionLifecycle.cs | 113 ++++++- .../Models/JobExecutionLifecycleConverter.cs | 53 ++++ .../Generated/Models/JobExecutionTarget.cs | 4 +- .../src/Generated/Models/JobStepAction.cs | 6 +- .../Generated/Models/JobStepActionSource.cs | 86 +++++- .../Models/JobStepActionSourceConverter.cs | 53 ++++ .../src/Generated/Models/JobStepActionType.cs | 86 +++++- .../Models/JobStepActionTypeConverter.cs | 53 ++++ .../src/Generated/Models/JobStepOutput.cs | 4 +- .../src/Generated/Models/JobStepOutputType.cs | 86 +++++- .../Models/JobStepOutputTypeConverter.cs | 53 ++++ .../src/Generated/Models/JobTarget.cs | 11 +- .../src/Generated/Models/JobTargetType.cs | 98 +++++- .../Models/JobTargetTypeConverter.cs | 53 ++++ .../src/Generated/Models/LogSizeCapability.cs | 4 +- .../src/Generated/Models/LogSizeUnit.cs | 98 +++++- .../Generated/Models/LogSizeUnitConverter.cs | 53 ++++ .../Models/LongTermRetentionDatabaseState.cs | 94 +++++- ...LongTermRetentionDatabaseStateConverter.cs | 55 ++++ .../src/Generated/Models/ManagedDatabase.cs | 8 +- .../Models/ManagedDatabaseCreateMode.cs | 98 +++++- .../ManagedDatabaseCreateModeConverter.cs | 54 ++++ .../Generated/Models/ManagedDatabaseStatus.cs | 104 ++++++- .../Models/ManagedDatabaseStatusConverter.cs | 53 ++++ .../Generated/Models/ManagedDatabaseUpdate.cs | 8 +- .../src/Generated/Models/ManagedInstance.cs | 10 +- .../ManagedInstanceEncryptionProtector.cs | 8 +- .../Generated/Models/ManagedInstanceKey.cs | 8 +- .../Models/ManagedInstanceLicenseType.cs | 89 +++++- .../ManagedInstanceLicenseTypeConverter.cs | 55 ++++ .../Models/ManagedInstanceOperation.cs | 4 +- .../Models/ManagedInstanceProxyOverride.cs | 92 +++++- .../ManagedInstanceProxyOverrideConverter.cs | 55 ++++ .../Generated/Models/ManagedInstanceUpdate.cs | 10 +- .../Models/ManagedServerCreateMode.cs | 89 +++++- .../ManagedServerCreateModeConverter.cs | 53 ++++ .../Models/ManagementOperationState.cs | 101 ++++++- .../ManagementOperationStateConverter.cs | 54 ++++ .../src/Generated/Models/MaxSizeCapability.cs | 4 +- .../src/Generated/Models/MaxSizeUnit.cs | 95 +++++- .../Generated/Models/MaxSizeUnitConverter.cs | 53 ++++ .../src/Generated/Models/Metric.cs | 4 +- .../src/Generated/Models/MetricDefinition.cs | 6 +- .../src/Generated/Models/Operation.cs | 4 +- .../src/Generated/Models/OperationOrigin.cs | 89 +++++- .../Models/OperationOriginConverter.cs | 53 ++++ .../src/Generated/Models/PartnerInfo.cs | 4 +- .../src/Generated/Models/PartnerRegionInfo.cs | 4 +- .../Generated/Models/PauseDelayTimeUnit.cs | 86 +++++- .../Models/PauseDelayTimeUnitConverter.cs | 53 ++++ .../Models/PerformanceLevelCapability.cs | 4 +- .../Generated/Models/PerformanceLevelUnit.cs | 89 +++++- .../Models/PerformanceLevelUnitConverter.cs | 53 ++++ .../Models/PrimaryAggregationType.cs | 101 ++++++- .../Models/PrimaryAggregationTypeConverter.cs | 53 ++++ .../Models/PrivateEndpointConnection.cs | 4 +- .../PrivateEndpointConnectionProperties.cs | 4 +- .../PrivateEndpointProvisioningState.cs | 100 ++++++- ...ivateEndpointProvisioningStateConverter.cs | 55 ++++ ...inkServiceConnectionStateActionsRequire.cs | 95 +++++- ...eConnectionStateActionsRequireConverter.cs | 55 ++++ ...ivateLinkServiceConnectionStateProperty.cs | 10 +- ...PrivateLinkServiceConnectionStateStatus.cs | 101 ++++++- ...nkServiceConnectionStateStatusConverter.cs | 55 ++++ .../src/Generated/Models/ProvisioningState.cs | 98 +++++- .../Models/ProvisioningStateConverter.cs | 53 ++++ .../Models/ReadOnlyEndpointFailoverPolicy.cs | 91 +++++- ...ReadOnlyEndpointFailoverPolicyConverter.cs | 55 ++++ .../Models/ReadWriteEndpointFailoverPolicy.cs | 91 +++++- ...eadWriteEndpointFailoverPolicyConverter.cs | 55 ++++ .../Models/RecommendedElasticPool.cs | 4 +- .../src/Generated/Models/ReplicaType.cs | 89 +++++- .../Generated/Models/ReplicaTypeConverter.cs | 53 ++++ .../src/Generated/Models/ReplicationLink.cs | 4 +- .../src/Generated/Models/ReplicationState.cs | 95 +++++- .../Models/ReplicationStateConverter.cs | 53 ++++ .../src/Generated/Models/ResourceIdentity.cs | 4 +- .../src/Generated/Models/SampleName.cs | 92 +++++- .../Generated/Models/SampleNameConverter.cs | 53 ++++ .../src/Generated/Models/Server.cs | 4 +- .../src/Generated/Models/ServerKey.cs | 8 +- .../src/Generated/Models/ServerKeyType.cs | 89 +++++- .../Models/ServerKeyTypeConverter.cs | 53 ++++ .../Models/ServerPublicNetworkAccess.cs | 89 +++++- .../ServerPublicNetworkAccessConverter.cs | 54 ++++ .../src/Generated/Models/ServerUpdate.cs | 4 +- .../Generated/Models/ServiceObjectiveName.cs | 278 +++++++++++++----- .../Models/ServiceObjectiveNameConverter.cs | 53 ++++ .../src/Generated/Models/SloUsageMetric.cs | 4 +- .../Generated/Models/StorageAccountType.cs | 92 +++++- .../Models/StorageAccountTypeConverter.cs | 53 ++++ .../src/Generated/Models/StorageKeyType.cs | 89 +++++- .../Models/StorageKeyTypeConverter.cs | 53 ++++ .../src/Generated/Models/SyncAgent.cs | 4 +- .../Models/SyncAgentLinkedDatabase.cs | 4 +- .../src/Generated/Models/SyncAgentState.cs | 92 +++++- .../Models/SyncAgentStateConverter.cs | 53 ++++ .../Models/SyncConflictResolutionPolicy.cs | 89 +++++- .../SyncConflictResolutionPolicyConverter.cs | 55 ++++ .../src/Generated/Models/SyncDirection.cs | 92 +++++- .../Models/SyncDirectionConverter.cs | 53 ++++ .../src/Generated/Models/SyncGroup.cs | 6 +- .../Models/SyncGroupLogProperties.cs | 4 +- .../src/Generated/Models/SyncGroupLogType.cs | 95 +++++- .../Models/SyncGroupLogTypeConverter.cs | 53 ++++ .../src/Generated/Models/SyncGroupState.cs | 98 +++++- .../Models/SyncGroupStateConverter.cs | 53 ++++ .../src/Generated/Models/SyncMember.cs | 8 +- .../src/Generated/Models/SyncMemberDbType.cs | 89 +++++- .../Models/SyncMemberDbTypeConverter.cs | 53 ++++ .../src/Generated/Models/SyncMemberState.cs | 137 +++++++-- .../Models/SyncMemberStateConverter.cs | 53 ++++ .../TransparentDataEncryptionActivity.cs | 4 +- ...TransparentDataEncryptionActivityStatus.cs | 95 +++++- ...ntDataEncryptionActivityStatusConverter.cs | 55 ++++ .../Generated/Models/UnitDefinitionType.cs | 101 ++++++- .../Models/UnitDefinitionTypeConverter.cs | 53 ++++ .../src/Generated/Models/UnitType.cs | 101 ++++++- .../src/Generated/Models/UnitTypeConverter.cs | 53 ++++ .../Generated/Models/VirtualNetworkRule.cs | 4 +- .../Models/VirtualNetworkRuleState.cs | 98 +++++- .../VirtualNetworkRuleStateConverter.cs | 53 ++++ .../VulnerabilityAssessmentScanRecord.cs | 6 +- .../VulnerabilityAssessmentScanState.cs | 97 +++++- ...lnerabilityAssessmentScanStateConverter.cs | 55 ++++ .../VulnerabilityAssessmentScanTriggerType.cs | 95 +++++- ...ilityAssessmentScanTriggerTypeConverter.cs | 55 ++++ .../Generated/SdkInfo_SqlManagementClient.cs | 35 +-- .../src/Generated/SqlManagementClient.cs | 11 +- .../tests/DatabaseCrudScenarioTests.cs | 4 +- 204 files changed, 9575 insertions(+), 700 deletions(-) create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/CapabilityGroupConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/CatalogCollationTypeConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/CreateModeConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseLicenseTypeConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseReadScale.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState1Converter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState2Converter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState3Converter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState4Converter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState5Converter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState6Converter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseStatusConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolEditionConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolLicenseTypeConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolStateConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/FailoverGroupReplicationRoleConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/IdentityTypeConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstanceFailoverGroupReplicationRoleConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstancePoolLicenseTypeConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobAgentStateConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobExecutionLifecycleConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobStepActionSourceConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobStepActionTypeConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobStepOutputTypeConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobTargetTypeConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/LogSizeUnitConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/LongTermRetentionDatabaseStateConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedDatabaseCreateModeConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedDatabaseStatusConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceLicenseTypeConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceProxyOverrideConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedServerCreateModeConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagementOperationStateConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/MaxSizeUnitConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/OperationOriginConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PauseDelayTimeUnitConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PerformanceLevelUnitConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrimaryAggregationTypeConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateEndpointProvisioningStateConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateLinkServiceConnectionStateActionsRequireConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateLinkServiceConnectionStateStatusConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ProvisioningStateConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReadOnlyEndpointFailoverPolicyConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReadWriteEndpointFailoverPolicyConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReplicaTypeConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReplicationStateConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SampleNameConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServerKeyTypeConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServerPublicNetworkAccessConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServiceObjectiveNameConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/StorageAccountTypeConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/StorageKeyTypeConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncAgentStateConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncConflictResolutionPolicyConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncDirectionConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncGroupLogTypeConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncGroupStateConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncMemberDbTypeConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncMemberStateConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/TransparentDataEncryptionActivityStatusConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/UnitDefinitionTypeConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/UnitTypeConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/VirtualNetworkRuleStateConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/VulnerabilityAssessmentScanStateConverter.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/VulnerabilityAssessmentScanTriggerTypeConverter.cs diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/CapabilitiesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/CapabilitiesOperations.cs index 7482a90147f3..12c1138eaeb8 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/CapabilitiesOperations.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/CapabilitiesOperations.cs @@ -83,7 +83,7 @@ internal CapabilitiesOperations(SqlManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> ListByLocationWithHttpMessagesAsync(string locationName, string include = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> ListByLocationWithHttpMessagesAsync(string locationName, CapabilityGroup? include = default(CapabilityGroup?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (locationName == null) { @@ -115,7 +115,7 @@ internal CapabilitiesOperations(SqlManagementClient client) List _queryParameters = new List(); if (include != null) { - _queryParameters.Add(string.Format("include={0}", System.Uri.EscapeDataString(include))); + _queryParameters.Add(string.Format("include={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(include, Client.SerializationSettings).Trim('"')))); } if (apiVersion != null) { diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/CapabilitiesOperationsExtensions.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/CapabilitiesOperationsExtensions.cs index d9be266e240b..70b9d5389404 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/CapabilitiesOperationsExtensions.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/CapabilitiesOperationsExtensions.cs @@ -36,7 +36,7 @@ public static partial class CapabilitiesOperationsExtensions /// 'supportedElasticPoolEditions', 'supportedManagedInstanceVersions', /// 'supportedInstancePoolEditions', 'supportedManagedInstanceEditions' /// - public static LocationCapabilities ListByLocation(this ICapabilitiesOperations operations, string locationName, string include = default(string)) + public static LocationCapabilities ListByLocation(this ICapabilitiesOperations operations, string locationName, CapabilityGroup? include = default(CapabilityGroup?)) { return operations.ListByLocationAsync(locationName, include).GetAwaiter().GetResult(); } @@ -59,7 +59,7 @@ public static partial class CapabilitiesOperationsExtensions /// /// The cancellation token. /// - public static async Task ListByLocationAsync(this ICapabilitiesOperations operations, string locationName, string include = default(string), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task ListByLocationAsync(this ICapabilitiesOperations operations, string locationName, CapabilityGroup? include = default(CapabilityGroup?), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByLocationWithHttpMessagesAsync(locationName, include, null, cancellationToken).ConfigureAwait(false)) { diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/DatabasesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/DatabasesOperations.cs index 61a23af57a49..fb3b1d920ebd 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/DatabasesOperations.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/DatabasesOperations.cs @@ -1654,7 +1654,7 @@ internal DatabasesOperations(SqlManagementClient client) /// /// The cancellation token. /// - public async Task FailoverWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string replicaType = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task FailoverWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, ReplicaType? replicaType = default(ReplicaType?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { // Send request AzureOperationResponse _response = await BeginFailoverWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, replicaType, customHeaders, cancellationToken).ConfigureAwait(false); @@ -2957,7 +2957,7 @@ internal DatabasesOperations(SqlManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task BeginFailoverWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string replicaType = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task BeginFailoverWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, ReplicaType? replicaType = default(ReplicaType?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (resourceGroupName == null) { @@ -3001,7 +3001,7 @@ internal DatabasesOperations(SqlManagementClient client) List _queryParameters = new List(); if (replicaType != null) { - _queryParameters.Add(string.Format("replicaType={0}", System.Uri.EscapeDataString(replicaType))); + _queryParameters.Add(string.Format("replicaType={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(replicaType, Client.SerializationSettings).Trim('"')))); } if (apiVersion != null) { diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/DatabasesOperationsExtensions.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/DatabasesOperationsExtensions.cs index 6a948d5dc3ae..902c1d5692e7 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/DatabasesOperationsExtensions.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/DatabasesOperationsExtensions.cs @@ -670,7 +670,7 @@ public static IPage ListInaccessibleByServer(this IDatabasesOperations /// The type of replica to be failed over. Possible values include: 'Primary', /// 'ReadableSecondary' /// - public static void Failover(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName, string replicaType = default(string)) + public static void Failover(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName, ReplicaType? replicaType = default(ReplicaType?)) { operations.FailoverAsync(resourceGroupName, serverName, databaseName, replicaType).GetAwaiter().GetResult(); } @@ -698,7 +698,7 @@ public static IPage ListInaccessibleByServer(this IDatabasesOperations /// /// The cancellation token. /// - public static async Task FailoverAsync(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName, string replicaType = default(string), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task FailoverAsync(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName, ReplicaType? replicaType = default(ReplicaType?), CancellationToken cancellationToken = default(CancellationToken)) { (await operations.FailoverWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, replicaType, null, cancellationToken).ConfigureAwait(false)).Dispose(); } @@ -1071,7 +1071,7 @@ public static void BeginUpgradeDataWarehouse(this IDatabasesOperations operation /// The type of replica to be failed over. Possible values include: 'Primary', /// 'ReadableSecondary' /// - public static void BeginFailover(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName, string replicaType = default(string)) + public static void BeginFailover(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName, ReplicaType? replicaType = default(ReplicaType?)) { operations.BeginFailoverAsync(resourceGroupName, serverName, databaseName, replicaType).GetAwaiter().GetResult(); } @@ -1099,7 +1099,7 @@ public static void BeginUpgradeDataWarehouse(this IDatabasesOperations operation /// /// The cancellation token. /// - public static async Task BeginFailoverAsync(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName, string replicaType = default(string), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task BeginFailoverAsync(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName, ReplicaType? replicaType = default(ReplicaType?), CancellationToken cancellationToken = default(CancellationToken)) { (await operations.BeginFailoverWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, replicaType, null, cancellationToken).ConfigureAwait(false)).Dispose(); } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ICapabilitiesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ICapabilitiesOperations.cs index e35700693ec1..ff5ce0000f3f 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ICapabilitiesOperations.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ICapabilitiesOperations.cs @@ -51,6 +51,6 @@ public partial interface ICapabilitiesOperations /// /// Thrown when a required parameter is null /// - Task> ListByLocationWithHttpMessagesAsync(string locationName, string include = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> ListByLocationWithHttpMessagesAsync(string locationName, CapabilityGroup? include = default(CapabilityGroup?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IDatabasesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IDatabasesOperations.cs index 5dd990ba07d6..815b7a925482 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IDatabasesOperations.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IDatabasesOperations.cs @@ -441,7 +441,7 @@ public partial interface IDatabasesOperations /// /// Thrown when a required parameter is null /// - Task FailoverWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string replicaType = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task FailoverWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, ReplicaType? replicaType = default(ReplicaType?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Exports a database. /// @@ -685,7 +685,7 @@ public partial interface IDatabasesOperations /// /// Thrown when a required parameter is null /// - Task BeginFailoverWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string replicaType = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task BeginFailoverWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, ReplicaType? replicaType = default(ReplicaType?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Exports a database. /// diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ILongTermRetentionBackupsOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ILongTermRetentionBackupsOperations.cs index 8a567523d58e..9b3dfddd5625 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ILongTermRetentionBackupsOperations.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ILongTermRetentionBackupsOperations.cs @@ -132,7 +132,7 @@ public partial interface ILongTermRetentionBackupsOperations /// /// Thrown when a required parameter is null /// - Task>> ListByResourceGroupDatabaseWithHttpMessagesAsync(string resourceGroupName, string locationName, string longTermRetentionServerName, string longTermRetentionDatabaseName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListByResourceGroupDatabaseWithHttpMessagesAsync(string resourceGroupName, string locationName, string longTermRetentionServerName, string longTermRetentionDatabaseName, bool? onlyLatestPerDatabase = default(bool?), LongTermRetentionDatabaseState? databaseState = default(LongTermRetentionDatabaseState?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Lists the long term retention backups for a given location. /// @@ -167,7 +167,7 @@ public partial interface ILongTermRetentionBackupsOperations /// /// Thrown when a required parameter is null /// - Task>> ListByResourceGroupLocationWithHttpMessagesAsync(string resourceGroupName, string locationName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListByResourceGroupLocationWithHttpMessagesAsync(string resourceGroupName, string locationName, bool? onlyLatestPerDatabase = default(bool?), LongTermRetentionDatabaseState? databaseState = default(LongTermRetentionDatabaseState?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Lists the long term retention backups for a given server. /// @@ -205,7 +205,7 @@ public partial interface ILongTermRetentionBackupsOperations /// /// Thrown when a required parameter is null /// - Task>> ListByResourceGroupServerWithHttpMessagesAsync(string resourceGroupName, string locationName, string longTermRetentionServerName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListByResourceGroupServerWithHttpMessagesAsync(string resourceGroupName, string locationName, string longTermRetentionServerName, bool? onlyLatestPerDatabase = default(bool?), LongTermRetentionDatabaseState? databaseState = default(LongTermRetentionDatabaseState?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Gets a long term retention backup. /// @@ -300,7 +300,7 @@ public partial interface ILongTermRetentionBackupsOperations /// /// Thrown when a required parameter is null /// - Task>> ListByDatabaseWithHttpMessagesAsync(string locationName, string longTermRetentionServerName, string longTermRetentionDatabaseName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListByDatabaseWithHttpMessagesAsync(string locationName, string longTermRetentionServerName, string longTermRetentionDatabaseName, bool? onlyLatestPerDatabase = default(bool?), LongTermRetentionDatabaseState? databaseState = default(LongTermRetentionDatabaseState?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Lists the long term retention backups for a given location. /// @@ -330,7 +330,7 @@ public partial interface ILongTermRetentionBackupsOperations /// /// Thrown when a required parameter is null /// - Task>> ListByLocationWithHttpMessagesAsync(string locationName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListByLocationWithHttpMessagesAsync(string locationName, bool? onlyLatestPerDatabase = default(bool?), LongTermRetentionDatabaseState? databaseState = default(LongTermRetentionDatabaseState?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Lists the long term retention backups for a given server. /// @@ -363,7 +363,7 @@ public partial interface ILongTermRetentionBackupsOperations /// /// Thrown when a required parameter is null /// - Task>> ListByServerWithHttpMessagesAsync(string locationName, string longTermRetentionServerName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListByServerWithHttpMessagesAsync(string locationName, string longTermRetentionServerName, bool? onlyLatestPerDatabase = default(bool?), LongTermRetentionDatabaseState? databaseState = default(LongTermRetentionDatabaseState?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Deletes a long term retention backup. /// diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ILongTermRetentionManagedInstanceBackupsOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ILongTermRetentionManagedInstanceBackupsOperations.cs index 624ead6cd7af..fbd553d5d1f0 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ILongTermRetentionManagedInstanceBackupsOperations.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ILongTermRetentionManagedInstanceBackupsOperations.cs @@ -117,7 +117,7 @@ public partial interface ILongTermRetentionManagedInstanceBackupsOperations /// /// Thrown when a required parameter is null /// - Task>> ListByDatabaseWithHttpMessagesAsync(string locationName, string managedInstanceName, string databaseName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListByDatabaseWithHttpMessagesAsync(string locationName, string managedInstanceName, string databaseName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState1? databaseState = default(DatabaseState1?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Lists the long term retention backups for a given managed instance. /// @@ -150,7 +150,7 @@ public partial interface ILongTermRetentionManagedInstanceBackupsOperations /// /// Thrown when a required parameter is null /// - Task>> ListByInstanceWithHttpMessagesAsync(string locationName, string managedInstanceName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListByInstanceWithHttpMessagesAsync(string locationName, string managedInstanceName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState2? databaseState = default(DatabaseState2?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Lists the long term retention backups for managed databases in a /// given location. @@ -181,7 +181,7 @@ public partial interface ILongTermRetentionManagedInstanceBackupsOperations /// /// Thrown when a required parameter is null /// - Task>> ListByLocationWithHttpMessagesAsync(string locationName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListByLocationWithHttpMessagesAsync(string locationName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState3? databaseState = default(DatabaseState3?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Gets a long term retention backup for a managed database. /// @@ -291,7 +291,7 @@ public partial interface ILongTermRetentionManagedInstanceBackupsOperations /// /// Thrown when a required parameter is null /// - Task>> ListByResourceGroupDatabaseWithHttpMessagesAsync(string resourceGroupName, string locationName, string managedInstanceName, string databaseName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListByResourceGroupDatabaseWithHttpMessagesAsync(string resourceGroupName, string locationName, string managedInstanceName, string databaseName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState4? databaseState = default(DatabaseState4?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Lists the long term retention backups for a given managed instance. /// @@ -329,7 +329,7 @@ public partial interface ILongTermRetentionManagedInstanceBackupsOperations /// /// Thrown when a required parameter is null /// - Task>> ListByResourceGroupInstanceWithHttpMessagesAsync(string resourceGroupName, string locationName, string managedInstanceName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListByResourceGroupInstanceWithHttpMessagesAsync(string resourceGroupName, string locationName, string managedInstanceName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState5? databaseState = default(DatabaseState5?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Lists the long term retention backups for managed databases in a /// given location. @@ -365,7 +365,7 @@ public partial interface ILongTermRetentionManagedInstanceBackupsOperations /// /// Thrown when a required parameter is null /// - Task>> ListByResourceGroupLocationWithHttpMessagesAsync(string resourceGroupName, string locationName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListByResourceGroupLocationWithHttpMessagesAsync(string resourceGroupName, string locationName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState6? databaseState = default(DatabaseState6?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Deletes a long term retention backup. /// diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IManagedInstancesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IManagedInstancesOperations.cs index c650c97d0dd5..f427b0e42b81 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IManagedInstancesOperations.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IManagedInstancesOperations.cs @@ -48,7 +48,7 @@ public partial interface IManagedInstancesOperations /// /// Thrown when a required parameter is null /// - Task FailoverWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, string replicaType = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task FailoverWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, ReplicaType? replicaType = default(ReplicaType?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Gets a list of managed instances in a resource group. /// @@ -255,7 +255,7 @@ public partial interface IManagedInstancesOperations /// /// Thrown when a required parameter is null /// - Task BeginFailoverWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, string replicaType = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task BeginFailoverWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, ReplicaType? replicaType = default(ReplicaType?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Creates or updates a managed instance. /// diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ISqlManagementClient.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ISqlManagementClient.cs index 0ee653cdffc0..07d6c9907662 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ISqlManagementClient.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ISqlManagementClient.cs @@ -49,20 +49,19 @@ public partial interface ISqlManagementClient : System.IDisposable string SubscriptionId { get; set; } /// - /// The preferred language for the response. + /// Gets or sets the preferred language for the response. /// string AcceptLanguage { get; set; } /// - /// The retry timeout in seconds for Long Running Operations. Default - /// value is 30. + /// Gets or sets the retry timeout in seconds for Long Running + /// Operations. Default value is 30. /// int? LongRunningOperationRetryTimeout { get; set; } /// - /// Whether a unique x-ms-client-request-id should be generated. When - /// set to true a unique x-ms-client-request-id value is generated and - /// included in each request. Default is true. + /// When set to true a unique x-ms-client-request-id value is generated + /// and included in each request. Default is true. /// bool? GenerateClientRequestId { get; set; } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/LongTermRetentionBackupsOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/LongTermRetentionBackupsOperations.cs index d96ccd6e161b..6a14d4def090 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/LongTermRetentionBackupsOperations.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/LongTermRetentionBackupsOperations.cs @@ -348,7 +348,7 @@ internal LongTermRetentionBackupsOperations(SqlManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListByResourceGroupDatabaseWithHttpMessagesAsync(string resourceGroupName, string locationName, string longTermRetentionServerName, string longTermRetentionDatabaseName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByResourceGroupDatabaseWithHttpMessagesAsync(string resourceGroupName, string locationName, string longTermRetentionServerName, string longTermRetentionDatabaseName, bool? onlyLatestPerDatabase = default(bool?), LongTermRetentionDatabaseState? databaseState = default(LongTermRetentionDatabaseState?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (resourceGroupName == null) { @@ -403,7 +403,7 @@ internal LongTermRetentionBackupsOperations(SqlManagementClient client) } if (databaseState != null) { - _queryParameters.Add(string.Format("databaseState={0}", System.Uri.EscapeDataString(databaseState))); + _queryParameters.Add(string.Format("databaseState={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(databaseState, Client.SerializationSettings).Trim('"')))); } if (apiVersion != null) { @@ -572,7 +572,7 @@ internal LongTermRetentionBackupsOperations(SqlManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListByResourceGroupLocationWithHttpMessagesAsync(string resourceGroupName, string locationName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByResourceGroupLocationWithHttpMessagesAsync(string resourceGroupName, string locationName, bool? onlyLatestPerDatabase = default(bool?), LongTermRetentionDatabaseState? databaseState = default(LongTermRetentionDatabaseState?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (resourceGroupName == null) { @@ -615,7 +615,7 @@ internal LongTermRetentionBackupsOperations(SqlManagementClient client) } if (databaseState != null) { - _queryParameters.Add(string.Format("databaseState={0}", System.Uri.EscapeDataString(databaseState))); + _queryParameters.Add(string.Format("databaseState={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(databaseState, Client.SerializationSettings).Trim('"')))); } if (apiVersion != null) { @@ -787,7 +787,7 @@ internal LongTermRetentionBackupsOperations(SqlManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListByResourceGroupServerWithHttpMessagesAsync(string resourceGroupName, string locationName, string longTermRetentionServerName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByResourceGroupServerWithHttpMessagesAsync(string resourceGroupName, string locationName, string longTermRetentionServerName, bool? onlyLatestPerDatabase = default(bool?), LongTermRetentionDatabaseState? databaseState = default(LongTermRetentionDatabaseState?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (resourceGroupName == null) { @@ -836,7 +836,7 @@ internal LongTermRetentionBackupsOperations(SqlManagementClient client) } if (databaseState != null) { - _queryParameters.Add(string.Format("databaseState={0}", System.Uri.EscapeDataString(databaseState))); + _queryParameters.Add(string.Format("databaseState={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(databaseState, Client.SerializationSettings).Trim('"')))); } if (apiVersion != null) { @@ -1247,7 +1247,7 @@ internal LongTermRetentionBackupsOperations(SqlManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListByDatabaseWithHttpMessagesAsync(string locationName, string longTermRetentionServerName, string longTermRetentionDatabaseName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByDatabaseWithHttpMessagesAsync(string locationName, string longTermRetentionServerName, string longTermRetentionDatabaseName, bool? onlyLatestPerDatabase = default(bool?), LongTermRetentionDatabaseState? databaseState = default(LongTermRetentionDatabaseState?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (locationName == null) { @@ -1296,7 +1296,7 @@ internal LongTermRetentionBackupsOperations(SqlManagementClient client) } if (databaseState != null) { - _queryParameters.Add(string.Format("databaseState={0}", System.Uri.EscapeDataString(databaseState))); + _queryParameters.Add(string.Format("databaseState={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(databaseState, Client.SerializationSettings).Trim('"')))); } if (apiVersion != null) { @@ -1461,7 +1461,7 @@ internal LongTermRetentionBackupsOperations(SqlManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListByLocationWithHttpMessagesAsync(string locationName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByLocationWithHttpMessagesAsync(string locationName, bool? onlyLatestPerDatabase = default(bool?), LongTermRetentionDatabaseState? databaseState = default(LongTermRetentionDatabaseState?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (locationName == null) { @@ -1498,7 +1498,7 @@ internal LongTermRetentionBackupsOperations(SqlManagementClient client) } if (databaseState != null) { - _queryParameters.Add(string.Format("databaseState={0}", System.Uri.EscapeDataString(databaseState))); + _queryParameters.Add(string.Format("databaseState={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(databaseState, Client.SerializationSettings).Trim('"')))); } if (apiVersion != null) { @@ -1666,7 +1666,7 @@ internal LongTermRetentionBackupsOperations(SqlManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListByServerWithHttpMessagesAsync(string locationName, string longTermRetentionServerName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByServerWithHttpMessagesAsync(string locationName, string longTermRetentionServerName, bool? onlyLatestPerDatabase = default(bool?), LongTermRetentionDatabaseState? databaseState = default(LongTermRetentionDatabaseState?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (locationName == null) { @@ -1709,7 +1709,7 @@ internal LongTermRetentionBackupsOperations(SqlManagementClient client) } if (databaseState != null) { - _queryParameters.Add(string.Format("databaseState={0}", System.Uri.EscapeDataString(databaseState))); + _queryParameters.Add(string.Format("databaseState={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(databaseState, Client.SerializationSettings).Trim('"')))); } if (apiVersion != null) { diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/LongTermRetentionBackupsOperationsExtensions.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/LongTermRetentionBackupsOperationsExtensions.cs index 5e6f4a0dda2b..31c5a25eade6 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/LongTermRetentionBackupsOperationsExtensions.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/LongTermRetentionBackupsOperationsExtensions.cs @@ -164,7 +164,7 @@ public static void DeleteByResourceGroup(this ILongTermRetentionBackupsOperation /// Whether to query against just live databases, just deleted databases, or /// all databases. Possible values include: 'All', 'Live', 'Deleted' /// - public static IPage ListByResourceGroupDatabase(this ILongTermRetentionBackupsOperations operations, string resourceGroupName, string locationName, string longTermRetentionServerName, string longTermRetentionDatabaseName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string)) + public static IPage ListByResourceGroupDatabase(this ILongTermRetentionBackupsOperations operations, string resourceGroupName, string locationName, string longTermRetentionServerName, string longTermRetentionDatabaseName, bool? onlyLatestPerDatabase = default(bool?), LongTermRetentionDatabaseState? databaseState = default(LongTermRetentionDatabaseState?)) { return operations.ListByResourceGroupDatabaseAsync(resourceGroupName, locationName, longTermRetentionServerName, longTermRetentionDatabaseName, onlyLatestPerDatabase, databaseState).GetAwaiter().GetResult(); } @@ -198,7 +198,7 @@ public static void DeleteByResourceGroup(this ILongTermRetentionBackupsOperation /// /// The cancellation token. /// - public static async Task> ListByResourceGroupDatabaseAsync(this ILongTermRetentionBackupsOperations operations, string resourceGroupName, string locationName, string longTermRetentionServerName, string longTermRetentionDatabaseName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListByResourceGroupDatabaseAsync(this ILongTermRetentionBackupsOperations operations, string resourceGroupName, string locationName, string longTermRetentionServerName, string longTermRetentionDatabaseName, bool? onlyLatestPerDatabase = default(bool?), LongTermRetentionDatabaseState? databaseState = default(LongTermRetentionDatabaseState?), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByResourceGroupDatabaseWithHttpMessagesAsync(resourceGroupName, locationName, longTermRetentionServerName, longTermRetentionDatabaseName, onlyLatestPerDatabase, databaseState, null, cancellationToken).ConfigureAwait(false)) { @@ -226,7 +226,7 @@ public static void DeleteByResourceGroup(this ILongTermRetentionBackupsOperation /// Whether to query against just live databases, just deleted databases, or /// all databases. Possible values include: 'All', 'Live', 'Deleted' /// - public static IPage ListByResourceGroupLocation(this ILongTermRetentionBackupsOperations operations, string resourceGroupName, string locationName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string)) + public static IPage ListByResourceGroupLocation(this ILongTermRetentionBackupsOperations operations, string resourceGroupName, string locationName, bool? onlyLatestPerDatabase = default(bool?), LongTermRetentionDatabaseState? databaseState = default(LongTermRetentionDatabaseState?)) { return operations.ListByResourceGroupLocationAsync(resourceGroupName, locationName, onlyLatestPerDatabase, databaseState).GetAwaiter().GetResult(); } @@ -254,7 +254,7 @@ public static void DeleteByResourceGroup(this ILongTermRetentionBackupsOperation /// /// The cancellation token. /// - public static async Task> ListByResourceGroupLocationAsync(this ILongTermRetentionBackupsOperations operations, string resourceGroupName, string locationName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListByResourceGroupLocationAsync(this ILongTermRetentionBackupsOperations operations, string resourceGroupName, string locationName, bool? onlyLatestPerDatabase = default(bool?), LongTermRetentionDatabaseState? databaseState = default(LongTermRetentionDatabaseState?), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByResourceGroupLocationWithHttpMessagesAsync(resourceGroupName, locationName, onlyLatestPerDatabase, databaseState, null, cancellationToken).ConfigureAwait(false)) { @@ -285,7 +285,7 @@ public static void DeleteByResourceGroup(this ILongTermRetentionBackupsOperation /// Whether to query against just live databases, just deleted databases, or /// all databases. Possible values include: 'All', 'Live', 'Deleted' /// - public static IPage ListByResourceGroupServer(this ILongTermRetentionBackupsOperations operations, string resourceGroupName, string locationName, string longTermRetentionServerName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string)) + public static IPage ListByResourceGroupServer(this ILongTermRetentionBackupsOperations operations, string resourceGroupName, string locationName, string longTermRetentionServerName, bool? onlyLatestPerDatabase = default(bool?), LongTermRetentionDatabaseState? databaseState = default(LongTermRetentionDatabaseState?)) { return operations.ListByResourceGroupServerAsync(resourceGroupName, locationName, longTermRetentionServerName, onlyLatestPerDatabase, databaseState).GetAwaiter().GetResult(); } @@ -316,7 +316,7 @@ public static void DeleteByResourceGroup(this ILongTermRetentionBackupsOperation /// /// The cancellation token. /// - public static async Task> ListByResourceGroupServerAsync(this ILongTermRetentionBackupsOperations operations, string resourceGroupName, string locationName, string longTermRetentionServerName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListByResourceGroupServerAsync(this ILongTermRetentionBackupsOperations operations, string resourceGroupName, string locationName, string longTermRetentionServerName, bool? onlyLatestPerDatabase = default(bool?), LongTermRetentionDatabaseState? databaseState = default(LongTermRetentionDatabaseState?), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByResourceGroupServerWithHttpMessagesAsync(resourceGroupName, locationName, longTermRetentionServerName, onlyLatestPerDatabase, databaseState, null, cancellationToken).ConfigureAwait(false)) { @@ -447,7 +447,7 @@ public static void Delete(this ILongTermRetentionBackupsOperations operations, s /// Whether to query against just live databases, just deleted databases, or /// all databases. Possible values include: 'All', 'Live', 'Deleted' /// - public static IPage ListByDatabase(this ILongTermRetentionBackupsOperations operations, string locationName, string longTermRetentionServerName, string longTermRetentionDatabaseName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string)) + public static IPage ListByDatabase(this ILongTermRetentionBackupsOperations operations, string locationName, string longTermRetentionServerName, string longTermRetentionDatabaseName, bool? onlyLatestPerDatabase = default(bool?), LongTermRetentionDatabaseState? databaseState = default(LongTermRetentionDatabaseState?)) { return operations.ListByDatabaseAsync(locationName, longTermRetentionServerName, longTermRetentionDatabaseName, onlyLatestPerDatabase, databaseState).GetAwaiter().GetResult(); } @@ -477,7 +477,7 @@ public static void Delete(this ILongTermRetentionBackupsOperations operations, s /// /// The cancellation token. /// - public static async Task> ListByDatabaseAsync(this ILongTermRetentionBackupsOperations operations, string locationName, string longTermRetentionServerName, string longTermRetentionDatabaseName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListByDatabaseAsync(this ILongTermRetentionBackupsOperations operations, string locationName, string longTermRetentionServerName, string longTermRetentionDatabaseName, bool? onlyLatestPerDatabase = default(bool?), LongTermRetentionDatabaseState? databaseState = default(LongTermRetentionDatabaseState?), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByDatabaseWithHttpMessagesAsync(locationName, longTermRetentionServerName, longTermRetentionDatabaseName, onlyLatestPerDatabase, databaseState, null, cancellationToken).ConfigureAwait(false)) { @@ -501,7 +501,7 @@ public static void Delete(this ILongTermRetentionBackupsOperations operations, s /// Whether to query against just live databases, just deleted databases, or /// all databases. Possible values include: 'All', 'Live', 'Deleted' /// - public static IPage ListByLocation(this ILongTermRetentionBackupsOperations operations, string locationName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string)) + public static IPage ListByLocation(this ILongTermRetentionBackupsOperations operations, string locationName, bool? onlyLatestPerDatabase = default(bool?), LongTermRetentionDatabaseState? databaseState = default(LongTermRetentionDatabaseState?)) { return operations.ListByLocationAsync(locationName, onlyLatestPerDatabase, databaseState).GetAwaiter().GetResult(); } @@ -525,7 +525,7 @@ public static void Delete(this ILongTermRetentionBackupsOperations operations, s /// /// The cancellation token. /// - public static async Task> ListByLocationAsync(this ILongTermRetentionBackupsOperations operations, string locationName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListByLocationAsync(this ILongTermRetentionBackupsOperations operations, string locationName, bool? onlyLatestPerDatabase = default(bool?), LongTermRetentionDatabaseState? databaseState = default(LongTermRetentionDatabaseState?), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByLocationWithHttpMessagesAsync(locationName, onlyLatestPerDatabase, databaseState, null, cancellationToken).ConfigureAwait(false)) { @@ -552,7 +552,7 @@ public static void Delete(this ILongTermRetentionBackupsOperations operations, s /// Whether to query against just live databases, just deleted databases, or /// all databases. Possible values include: 'All', 'Live', 'Deleted' /// - public static IPage ListByServer(this ILongTermRetentionBackupsOperations operations, string locationName, string longTermRetentionServerName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string)) + public static IPage ListByServer(this ILongTermRetentionBackupsOperations operations, string locationName, string longTermRetentionServerName, bool? onlyLatestPerDatabase = default(bool?), LongTermRetentionDatabaseState? databaseState = default(LongTermRetentionDatabaseState?)) { return operations.ListByServerAsync(locationName, longTermRetentionServerName, onlyLatestPerDatabase, databaseState).GetAwaiter().GetResult(); } @@ -579,7 +579,7 @@ public static void Delete(this ILongTermRetentionBackupsOperations operations, s /// /// The cancellation token. /// - public static async Task> ListByServerAsync(this ILongTermRetentionBackupsOperations operations, string locationName, string longTermRetentionServerName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListByServerAsync(this ILongTermRetentionBackupsOperations operations, string locationName, string longTermRetentionServerName, bool? onlyLatestPerDatabase = default(bool?), LongTermRetentionDatabaseState? databaseState = default(LongTermRetentionDatabaseState?), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByServerWithHttpMessagesAsync(locationName, longTermRetentionServerName, onlyLatestPerDatabase, databaseState, null, cancellationToken).ConfigureAwait(false)) { diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/LongTermRetentionManagedInstanceBackupsOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/LongTermRetentionManagedInstanceBackupsOperations.cs index 67eb9ce02161..a43b49f3968c 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/LongTermRetentionManagedInstanceBackupsOperations.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/LongTermRetentionManagedInstanceBackupsOperations.cs @@ -330,7 +330,7 @@ internal LongTermRetentionManagedInstanceBackupsOperations(SqlManagementClient c /// /// A response object containing the response body and response headers. /// - public async Task>> ListByDatabaseWithHttpMessagesAsync(string locationName, string managedInstanceName, string databaseName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByDatabaseWithHttpMessagesAsync(string locationName, string managedInstanceName, string databaseName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState1? databaseState = default(DatabaseState1?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (locationName == null) { @@ -379,7 +379,7 @@ internal LongTermRetentionManagedInstanceBackupsOperations(SqlManagementClient c } if (databaseState != null) { - _queryParameters.Add(string.Format("databaseState={0}", System.Uri.EscapeDataString(databaseState))); + _queryParameters.Add(string.Format("databaseState={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(databaseState, Client.SerializationSettings).Trim('"')))); } if (apiVersion != null) { @@ -547,7 +547,7 @@ internal LongTermRetentionManagedInstanceBackupsOperations(SqlManagementClient c /// /// A response object containing the response body and response headers. /// - public async Task>> ListByInstanceWithHttpMessagesAsync(string locationName, string managedInstanceName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByInstanceWithHttpMessagesAsync(string locationName, string managedInstanceName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState2? databaseState = default(DatabaseState2?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (locationName == null) { @@ -590,7 +590,7 @@ internal LongTermRetentionManagedInstanceBackupsOperations(SqlManagementClient c } if (databaseState != null) { - _queryParameters.Add(string.Format("databaseState={0}", System.Uri.EscapeDataString(databaseState))); + _queryParameters.Add(string.Format("databaseState={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(databaseState, Client.SerializationSettings).Trim('"')))); } if (apiVersion != null) { @@ -756,7 +756,7 @@ internal LongTermRetentionManagedInstanceBackupsOperations(SqlManagementClient c /// /// A response object containing the response body and response headers. /// - public async Task>> ListByLocationWithHttpMessagesAsync(string locationName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByLocationWithHttpMessagesAsync(string locationName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState3? databaseState = default(DatabaseState3?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (locationName == null) { @@ -793,7 +793,7 @@ internal LongTermRetentionManagedInstanceBackupsOperations(SqlManagementClient c } if (databaseState != null) { - _queryParameters.Add(string.Format("databaseState={0}", System.Uri.EscapeDataString(databaseState))); + _queryParameters.Add(string.Format("databaseState={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(databaseState, Client.SerializationSettings).Trim('"')))); } if (apiVersion != null) { @@ -1222,7 +1222,7 @@ internal LongTermRetentionManagedInstanceBackupsOperations(SqlManagementClient c /// /// A response object containing the response body and response headers. /// - public async Task>> ListByResourceGroupDatabaseWithHttpMessagesAsync(string resourceGroupName, string locationName, string managedInstanceName, string databaseName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByResourceGroupDatabaseWithHttpMessagesAsync(string resourceGroupName, string locationName, string managedInstanceName, string databaseName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState4? databaseState = default(DatabaseState4?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (resourceGroupName == null) { @@ -1277,7 +1277,7 @@ internal LongTermRetentionManagedInstanceBackupsOperations(SqlManagementClient c } if (databaseState != null) { - _queryParameters.Add(string.Format("databaseState={0}", System.Uri.EscapeDataString(databaseState))); + _queryParameters.Add(string.Format("databaseState={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(databaseState, Client.SerializationSettings).Trim('"')))); } if (apiVersion != null) { @@ -1449,7 +1449,7 @@ internal LongTermRetentionManagedInstanceBackupsOperations(SqlManagementClient c /// /// A response object containing the response body and response headers. /// - public async Task>> ListByResourceGroupInstanceWithHttpMessagesAsync(string resourceGroupName, string locationName, string managedInstanceName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByResourceGroupInstanceWithHttpMessagesAsync(string resourceGroupName, string locationName, string managedInstanceName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState5? databaseState = default(DatabaseState5?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (resourceGroupName == null) { @@ -1498,7 +1498,7 @@ internal LongTermRetentionManagedInstanceBackupsOperations(SqlManagementClient c } if (databaseState != null) { - _queryParameters.Add(string.Format("databaseState={0}", System.Uri.EscapeDataString(databaseState))); + _queryParameters.Add(string.Format("databaseState={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(databaseState, Client.SerializationSettings).Trim('"')))); } if (apiVersion != null) { @@ -1668,7 +1668,7 @@ internal LongTermRetentionManagedInstanceBackupsOperations(SqlManagementClient c /// /// A response object containing the response body and response headers. /// - public async Task>> ListByResourceGroupLocationWithHttpMessagesAsync(string resourceGroupName, string locationName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByResourceGroupLocationWithHttpMessagesAsync(string resourceGroupName, string locationName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState6? databaseState = default(DatabaseState6?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (resourceGroupName == null) { @@ -1711,7 +1711,7 @@ internal LongTermRetentionManagedInstanceBackupsOperations(SqlManagementClient c } if (databaseState != null) { - _queryParameters.Add(string.Format("databaseState={0}", System.Uri.EscapeDataString(databaseState))); + _queryParameters.Add(string.Format("databaseState={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(databaseState, Client.SerializationSettings).Trim('"')))); } if (apiVersion != null) { diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/LongTermRetentionManagedInstanceBackupsOperationsExtensions.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/LongTermRetentionManagedInstanceBackupsOperationsExtensions.cs index ff1fd78f3bfb..53fb4295a4d8 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/LongTermRetentionManagedInstanceBackupsOperationsExtensions.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/LongTermRetentionManagedInstanceBackupsOperationsExtensions.cs @@ -144,7 +144,7 @@ public static void Delete(this ILongTermRetentionManagedInstanceBackupsOperation /// Whether to query against just live databases, just deleted databases, or /// all databases. Possible values include: 'All', 'Live', 'Deleted' /// - public static IPage ListByDatabase(this ILongTermRetentionManagedInstanceBackupsOperations operations, string locationName, string managedInstanceName, string databaseName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string)) + public static IPage ListByDatabase(this ILongTermRetentionManagedInstanceBackupsOperations operations, string locationName, string managedInstanceName, string databaseName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState1? databaseState = default(DatabaseState1?)) { return operations.ListByDatabaseAsync(locationName, managedInstanceName, databaseName, onlyLatestPerDatabase, databaseState).GetAwaiter().GetResult(); } @@ -174,7 +174,7 @@ public static void Delete(this ILongTermRetentionManagedInstanceBackupsOperation /// /// The cancellation token. /// - public static async Task> ListByDatabaseAsync(this ILongTermRetentionManagedInstanceBackupsOperations operations, string locationName, string managedInstanceName, string databaseName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListByDatabaseAsync(this ILongTermRetentionManagedInstanceBackupsOperations operations, string locationName, string managedInstanceName, string databaseName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState1? databaseState = default(DatabaseState1?), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByDatabaseWithHttpMessagesAsync(locationName, managedInstanceName, databaseName, onlyLatestPerDatabase, databaseState, null, cancellationToken).ConfigureAwait(false)) { @@ -201,7 +201,7 @@ public static void Delete(this ILongTermRetentionManagedInstanceBackupsOperation /// Whether to query against just live databases, just deleted databases, or /// all databases. Possible values include: 'All', 'Live', 'Deleted' /// - public static IPage ListByInstance(this ILongTermRetentionManagedInstanceBackupsOperations operations, string locationName, string managedInstanceName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string)) + public static IPage ListByInstance(this ILongTermRetentionManagedInstanceBackupsOperations operations, string locationName, string managedInstanceName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState2? databaseState = default(DatabaseState2?)) { return operations.ListByInstanceAsync(locationName, managedInstanceName, onlyLatestPerDatabase, databaseState).GetAwaiter().GetResult(); } @@ -228,7 +228,7 @@ public static void Delete(this ILongTermRetentionManagedInstanceBackupsOperation /// /// The cancellation token. /// - public static async Task> ListByInstanceAsync(this ILongTermRetentionManagedInstanceBackupsOperations operations, string locationName, string managedInstanceName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListByInstanceAsync(this ILongTermRetentionManagedInstanceBackupsOperations operations, string locationName, string managedInstanceName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState2? databaseState = default(DatabaseState2?), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByInstanceWithHttpMessagesAsync(locationName, managedInstanceName, onlyLatestPerDatabase, databaseState, null, cancellationToken).ConfigureAwait(false)) { @@ -253,7 +253,7 @@ public static void Delete(this ILongTermRetentionManagedInstanceBackupsOperation /// Whether to query against just live databases, just deleted databases, or /// all databases. Possible values include: 'All', 'Live', 'Deleted' /// - public static IPage ListByLocation(this ILongTermRetentionManagedInstanceBackupsOperations operations, string locationName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string)) + public static IPage ListByLocation(this ILongTermRetentionManagedInstanceBackupsOperations operations, string locationName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState3? databaseState = default(DatabaseState3?)) { return operations.ListByLocationAsync(locationName, onlyLatestPerDatabase, databaseState).GetAwaiter().GetResult(); } @@ -278,7 +278,7 @@ public static void Delete(this ILongTermRetentionManagedInstanceBackupsOperation /// /// The cancellation token. /// - public static async Task> ListByLocationAsync(this ILongTermRetentionManagedInstanceBackupsOperations operations, string locationName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListByLocationAsync(this ILongTermRetentionManagedInstanceBackupsOperations operations, string locationName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState3? databaseState = default(DatabaseState3?), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByLocationWithHttpMessagesAsync(locationName, onlyLatestPerDatabase, databaseState, null, cancellationToken).ConfigureAwait(false)) { @@ -429,7 +429,7 @@ public static void DeleteByResourceGroup(this ILongTermRetentionManagedInstanceB /// Whether to query against just live databases, just deleted databases, or /// all databases. Possible values include: 'All', 'Live', 'Deleted' /// - public static IPage ListByResourceGroupDatabase(this ILongTermRetentionManagedInstanceBackupsOperations operations, string resourceGroupName, string locationName, string managedInstanceName, string databaseName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string)) + public static IPage ListByResourceGroupDatabase(this ILongTermRetentionManagedInstanceBackupsOperations operations, string resourceGroupName, string locationName, string managedInstanceName, string databaseName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState4? databaseState = default(DatabaseState4?)) { return operations.ListByResourceGroupDatabaseAsync(resourceGroupName, locationName, managedInstanceName, databaseName, onlyLatestPerDatabase, databaseState).GetAwaiter().GetResult(); } @@ -463,7 +463,7 @@ public static void DeleteByResourceGroup(this ILongTermRetentionManagedInstanceB /// /// The cancellation token. /// - public static async Task> ListByResourceGroupDatabaseAsync(this ILongTermRetentionManagedInstanceBackupsOperations operations, string resourceGroupName, string locationName, string managedInstanceName, string databaseName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListByResourceGroupDatabaseAsync(this ILongTermRetentionManagedInstanceBackupsOperations operations, string resourceGroupName, string locationName, string managedInstanceName, string databaseName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState4? databaseState = default(DatabaseState4?), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByResourceGroupDatabaseWithHttpMessagesAsync(resourceGroupName, locationName, managedInstanceName, databaseName, onlyLatestPerDatabase, databaseState, null, cancellationToken).ConfigureAwait(false)) { @@ -494,7 +494,7 @@ public static void DeleteByResourceGroup(this ILongTermRetentionManagedInstanceB /// Whether to query against just live databases, just deleted databases, or /// all databases. Possible values include: 'All', 'Live', 'Deleted' /// - public static IPage ListByResourceGroupInstance(this ILongTermRetentionManagedInstanceBackupsOperations operations, string resourceGroupName, string locationName, string managedInstanceName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string)) + public static IPage ListByResourceGroupInstance(this ILongTermRetentionManagedInstanceBackupsOperations operations, string resourceGroupName, string locationName, string managedInstanceName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState5? databaseState = default(DatabaseState5?)) { return operations.ListByResourceGroupInstanceAsync(resourceGroupName, locationName, managedInstanceName, onlyLatestPerDatabase, databaseState).GetAwaiter().GetResult(); } @@ -525,7 +525,7 @@ public static void DeleteByResourceGroup(this ILongTermRetentionManagedInstanceB /// /// The cancellation token. /// - public static async Task> ListByResourceGroupInstanceAsync(this ILongTermRetentionManagedInstanceBackupsOperations operations, string resourceGroupName, string locationName, string managedInstanceName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListByResourceGroupInstanceAsync(this ILongTermRetentionManagedInstanceBackupsOperations operations, string resourceGroupName, string locationName, string managedInstanceName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState5? databaseState = default(DatabaseState5?), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByResourceGroupInstanceWithHttpMessagesAsync(resourceGroupName, locationName, managedInstanceName, onlyLatestPerDatabase, databaseState, null, cancellationToken).ConfigureAwait(false)) { @@ -554,7 +554,7 @@ public static void DeleteByResourceGroup(this ILongTermRetentionManagedInstanceB /// Whether to query against just live databases, just deleted databases, or /// all databases. Possible values include: 'All', 'Live', 'Deleted' /// - public static IPage ListByResourceGroupLocation(this ILongTermRetentionManagedInstanceBackupsOperations operations, string resourceGroupName, string locationName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string)) + public static IPage ListByResourceGroupLocation(this ILongTermRetentionManagedInstanceBackupsOperations operations, string resourceGroupName, string locationName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState6? databaseState = default(DatabaseState6?)) { return operations.ListByResourceGroupLocationAsync(resourceGroupName, locationName, onlyLatestPerDatabase, databaseState).GetAwaiter().GetResult(); } @@ -583,7 +583,7 @@ public static void DeleteByResourceGroup(this ILongTermRetentionManagedInstanceB /// /// The cancellation token. /// - public static async Task> ListByResourceGroupLocationAsync(this ILongTermRetentionManagedInstanceBackupsOperations operations, string resourceGroupName, string locationName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListByResourceGroupLocationAsync(this ILongTermRetentionManagedInstanceBackupsOperations operations, string resourceGroupName, string locationName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState6? databaseState = default(DatabaseState6?), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByResourceGroupLocationWithHttpMessagesAsync(resourceGroupName, locationName, onlyLatestPerDatabase, databaseState, null, cancellationToken).ConfigureAwait(false)) { diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedInstancesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedInstancesOperations.cs index aaa3ffaac776..9dad29e0afce 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedInstancesOperations.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedInstancesOperations.cs @@ -69,7 +69,7 @@ internal ManagedInstancesOperations(SqlManagementClient client) /// /// The cancellation token. /// - public async Task FailoverWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, string replicaType = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task FailoverWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, ReplicaType? replicaType = default(ReplicaType?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { // Send request AzureOperationResponse _response = await BeginFailoverWithHttpMessagesAsync(resourceGroupName, managedInstanceName, replicaType, customHeaders, cancellationToken).ConfigureAwait(false); @@ -934,7 +934,7 @@ internal ManagedInstancesOperations(SqlManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task BeginFailoverWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, string replicaType = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task BeginFailoverWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, ReplicaType? replicaType = default(ReplicaType?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (resourceGroupName == null) { @@ -991,7 +991,7 @@ internal ManagedInstancesOperations(SqlManagementClient client) } if (replicaType != null) { - _queryParameters.Add(string.Format("replicaType={0}", System.Uri.EscapeDataString(replicaType))); + _queryParameters.Add(string.Format("replicaType={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(replicaType, Client.SerializationSettings).Trim('"')))); } if (_queryParameters.Count > 0) { diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedInstancesOperationsExtensions.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedInstancesOperationsExtensions.cs index 4f774c2c2835..7e596b5ca65f 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedInstancesOperationsExtensions.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedInstancesOperationsExtensions.cs @@ -37,7 +37,7 @@ public static partial class ManagedInstancesOperationsExtensions /// The type of replica to be failed over. Possible values include: 'Primary', /// 'ReadableSecondary' /// - public static void Failover(this IManagedInstancesOperations operations, string resourceGroupName, string managedInstanceName, string replicaType = default(string)) + public static void Failover(this IManagedInstancesOperations operations, string resourceGroupName, string managedInstanceName, ReplicaType? replicaType = default(ReplicaType?)) { operations.FailoverAsync(resourceGroupName, managedInstanceName, replicaType).GetAwaiter().GetResult(); } @@ -61,7 +61,7 @@ public static partial class ManagedInstancesOperationsExtensions /// /// The cancellation token. /// - public static async Task FailoverAsync(this IManagedInstancesOperations operations, string resourceGroupName, string managedInstanceName, string replicaType = default(string), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task FailoverAsync(this IManagedInstancesOperations operations, string resourceGroupName, string managedInstanceName, ReplicaType? replicaType = default(ReplicaType?), CancellationToken cancellationToken = default(CancellationToken)) { (await operations.FailoverWithHttpMessagesAsync(resourceGroupName, managedInstanceName, replicaType, null, cancellationToken).ConfigureAwait(false)).Dispose(); } @@ -365,7 +365,7 @@ public static IPage List(this IManagedInstancesOperations opera /// The type of replica to be failed over. Possible values include: 'Primary', /// 'ReadableSecondary' /// - public static void BeginFailover(this IManagedInstancesOperations operations, string resourceGroupName, string managedInstanceName, string replicaType = default(string)) + public static void BeginFailover(this IManagedInstancesOperations operations, string resourceGroupName, string managedInstanceName, ReplicaType? replicaType = default(ReplicaType?)) { operations.BeginFailoverAsync(resourceGroupName, managedInstanceName, replicaType).GetAwaiter().GetResult(); } @@ -389,7 +389,7 @@ public static IPage List(this IManagedInstancesOperations opera /// /// The cancellation token. /// - public static async Task BeginFailoverAsync(this IManagedInstancesOperations operations, string resourceGroupName, string managedInstanceName, string replicaType = default(string), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task BeginFailoverAsync(this IManagedInstancesOperations operations, string resourceGroupName, string managedInstanceName, ReplicaType? replicaType = default(ReplicaType?), CancellationToken cancellationToken = default(CancellationToken)) { (await operations.BeginFailoverWithHttpMessagesAsync(resourceGroupName, managedInstanceName, replicaType, null, cancellationToken).ConfigureAwait(false)).Dispose(); } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/AutoPauseDelayTimeRange.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/AutoPauseDelayTimeRange.cs index e516ef733611..4aa00ee16aaf 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/AutoPauseDelayTimeRange.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/AutoPauseDelayTimeRange.cs @@ -39,7 +39,7 @@ public AutoPauseDelayTimeRange() /// Possible values include: 'Minutes' /// Value that is used to not pause /// (infinite delay before pause) - public AutoPauseDelayTimeRange(int? minValue = default(int?), int? maxValue = default(int?), int? stepSize = default(int?), int? defaultProperty = default(int?), string unit = default(string), int? doNotPauseValue = default(int?)) + public AutoPauseDelayTimeRange(int? minValue = default(int?), int? maxValue = default(int?), int? stepSize = default(int?), int? defaultProperty = default(int?), PauseDelayTimeUnit? unit = default(PauseDelayTimeUnit?), int? doNotPauseValue = default(int?)) { MinValue = minValue; MaxValue = maxValue; @@ -85,7 +85,7 @@ public AutoPauseDelayTimeRange() /// include: 'Minutes' /// [JsonProperty(PropertyName = "unit")] - public string Unit { get; private set; } + public PauseDelayTimeUnit? Unit { get; private set; } /// /// Gets value that is used to not pause (infinite delay before pause) diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/CapabilityGroup.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/CapabilityGroup.cs index b1b3d583cc8f..70665148b823 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/CapabilityGroup.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/CapabilityGroup.cs @@ -10,16 +10,102 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for CapabilityGroup. /// - public static class CapabilityGroup + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(CapabilityGroupConverter))] + public struct CapabilityGroup : System.IEquatable { - public const string SupportedEditions = "supportedEditions"; - public const string SupportedElasticPoolEditions = "supportedElasticPoolEditions"; - public const string SupportedManagedInstanceVersions = "supportedManagedInstanceVersions"; - public const string SupportedInstancePoolEditions = "supportedInstancePoolEditions"; - public const string SupportedManagedInstanceEditions = "supportedManagedInstanceEditions"; + private CapabilityGroup(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly CapabilityGroup SupportedEditions = "supportedEditions"; + + public static readonly CapabilityGroup SupportedElasticPoolEditions = "supportedElasticPoolEditions"; + + public static readonly CapabilityGroup SupportedManagedInstanceVersions = "supportedManagedInstanceVersions"; + + public static readonly CapabilityGroup SupportedInstancePoolEditions = "supportedInstancePoolEditions"; + + public static readonly CapabilityGroup SupportedManagedInstanceEditions = "supportedManagedInstanceEditions"; + + + /// + /// Underlying value of enum CapabilityGroup + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for CapabilityGroup + /// + public override string ToString() + { + return UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type CapabilityGroup + /// + public bool Equals(CapabilityGroup e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to CapabilityGroup + /// + public static implicit operator CapabilityGroup(string value) + { + return new CapabilityGroup(value); + } + + /// + /// Implicit operator to convert CapabilityGroup to string + /// + public static implicit operator string(CapabilityGroup e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum CapabilityGroup + /// + public static bool operator == (CapabilityGroup e1, CapabilityGroup e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum CapabilityGroup + /// + public static bool operator != (CapabilityGroup e1, CapabilityGroup e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for CapabilityGroup + /// + public override bool Equals(object obj) + { + return obj is CapabilityGroup && Equals((CapabilityGroup)obj); + } + + /// + /// Returns for hashCode CapabilityGroup + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/CapabilityGroupConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/CapabilityGroupConverter.cs new file mode 100644 index 000000000000..b648ba1c90cf --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/CapabilityGroupConverter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for CapabilityGroup. + /// + public sealed class CapabilityGroupConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to CapabilityGroup by the + /// converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(CapabilityGroup).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to CapabilityGroup. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (CapabilityGroup)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for CapabilityGroup for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/CatalogCollationType.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/CatalogCollationType.cs index 9f424cc32d9b..f16f92de27e9 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/CatalogCollationType.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/CatalogCollationType.cs @@ -10,13 +10,96 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for CatalogCollationType. /// - public static class CatalogCollationType + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(CatalogCollationTypeConverter))] + public struct CatalogCollationType : System.IEquatable { - public const string DATABASEDEFAULT = "DATABASE_DEFAULT"; - public const string SQLLatin1GeneralCP1CIAS = "SQL_Latin1_General_CP1_CI_AS"; + private CatalogCollationType(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly CatalogCollationType DATABASEDEFAULT = "DATABASE_DEFAULT"; + + public static readonly CatalogCollationType SQLLatin1GeneralCP1CIAS = "SQL_Latin1_General_CP1_CI_AS"; + + + /// + /// Underlying value of enum CatalogCollationType + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for CatalogCollationType + /// + public override string ToString() + { + return UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type CatalogCollationType + /// + public bool Equals(CatalogCollationType e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to CatalogCollationType + /// + public static implicit operator CatalogCollationType(string value) + { + return new CatalogCollationType(value); + } + + /// + /// Implicit operator to convert CatalogCollationType to string + /// + public static implicit operator string(CatalogCollationType e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum CatalogCollationType + /// + public static bool operator == (CatalogCollationType e1, CatalogCollationType e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum CatalogCollationType + /// + public static bool operator != (CatalogCollationType e1, CatalogCollationType e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for CatalogCollationType + /// + public override bool Equals(object obj) + { + return obj is CatalogCollationType && Equals((CatalogCollationType)obj); + } + + /// + /// Returns for hashCode CatalogCollationType + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/CatalogCollationTypeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/CatalogCollationTypeConverter.cs new file mode 100644 index 000000000000..f605382139bd --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/CatalogCollationTypeConverter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for CatalogCollationType. + /// + public sealed class CatalogCollationTypeConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to CatalogCollationType by + /// the converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(CatalogCollationType).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to CatalogCollationType. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (CatalogCollationType)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for CatalogCollationType for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/CreateMode.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/CreateMode.cs index e8415a7b5ea0..187d21aa3da5 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/CreateMode.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/CreateMode.cs @@ -10,21 +10,112 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for CreateMode. /// - public static class CreateMode + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(CreateModeConverter))] + public struct CreateMode : System.IEquatable { - public const string Default = "Default"; - public const string Copy = "Copy"; - public const string Secondary = "Secondary"; - public const string PointInTimeRestore = "PointInTimeRestore"; - public const string Restore = "Restore"; - public const string Recovery = "Recovery"; - public const string RestoreExternalBackup = "RestoreExternalBackup"; - public const string RestoreExternalBackupSecondary = "RestoreExternalBackupSecondary"; - public const string RestoreLongTermRetentionBackup = "RestoreLongTermRetentionBackup"; - public const string OnlineSecondary = "OnlineSecondary"; + private CreateMode(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly CreateMode Default = "Default"; + + public static readonly CreateMode Copy = "Copy"; + + public static readonly CreateMode Secondary = "Secondary"; + + public static readonly CreateMode PointInTimeRestore = "PointInTimeRestore"; + + public static readonly CreateMode Restore = "Restore"; + + public static readonly CreateMode Recovery = "Recovery"; + + public static readonly CreateMode RestoreExternalBackup = "RestoreExternalBackup"; + + public static readonly CreateMode RestoreExternalBackupSecondary = "RestoreExternalBackupSecondary"; + + public static readonly CreateMode RestoreLongTermRetentionBackup = "RestoreLongTermRetentionBackup"; + + public static readonly CreateMode OnlineSecondary = "OnlineSecondary"; + + + /// + /// Underlying value of enum CreateMode + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for CreateMode + /// + public override string ToString() + { + return UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type CreateMode + /// + public bool Equals(CreateMode e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to CreateMode + /// + public static implicit operator CreateMode(string value) + { + return new CreateMode(value); + } + + /// + /// Implicit operator to convert CreateMode to string + /// + public static implicit operator string(CreateMode e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum CreateMode + /// + public static bool operator == (CreateMode e1, CreateMode e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum CreateMode + /// + public static bool operator != (CreateMode e1, CreateMode e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for CreateMode + /// + public override bool Equals(object obj) + { + return obj is CreateMode && Equals((CreateMode)obj); + } + + /// + /// Returns for hashCode CreateMode + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/CreateModeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/CreateModeConverter.cs new file mode 100644 index 000000000000..b46c3e6cdda3 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/CreateModeConverter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for CreateMode. + /// + public sealed class CreateModeConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to CreateMode by the + /// converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(CreateMode).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to CreateMode. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (CreateMode)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for CreateMode for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseLicenseType.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseLicenseType.cs index 8fec77be3faf..18b62df46b65 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseLicenseType.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseLicenseType.cs @@ -10,13 +10,96 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for DatabaseLicenseType. /// - public static class DatabaseLicenseType + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(DatabaseLicenseTypeConverter))] + public struct DatabaseLicenseType : System.IEquatable { - public const string LicenseIncluded = "LicenseIncluded"; - public const string BasePrice = "BasePrice"; + private DatabaseLicenseType(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly DatabaseLicenseType LicenseIncluded = "LicenseIncluded"; + + public static readonly DatabaseLicenseType BasePrice = "BasePrice"; + + + /// + /// Underlying value of enum DatabaseLicenseType + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for DatabaseLicenseType + /// + public override string ToString() + { + return UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type DatabaseLicenseType + /// + public bool Equals(DatabaseLicenseType e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to DatabaseLicenseType + /// + public static implicit operator DatabaseLicenseType(string value) + { + return new DatabaseLicenseType(value); + } + + /// + /// Implicit operator to convert DatabaseLicenseType to string + /// + public static implicit operator string(DatabaseLicenseType e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum DatabaseLicenseType + /// + public static bool operator == (DatabaseLicenseType e1, DatabaseLicenseType e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum DatabaseLicenseType + /// + public static bool operator != (DatabaseLicenseType e1, DatabaseLicenseType e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for DatabaseLicenseType + /// + public override bool Equals(object obj) + { + return obj is DatabaseLicenseType && Equals((DatabaseLicenseType)obj); + } + + /// + /// Returns for hashCode DatabaseLicenseType + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseLicenseTypeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseLicenseTypeConverter.cs new file mode 100644 index 000000000000..d72fe3f966be --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseLicenseTypeConverter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for DatabaseLicenseType. + /// + public sealed class DatabaseLicenseTypeConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to DatabaseLicenseType by + /// the converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(DatabaseLicenseType).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to DatabaseLicenseType. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (DatabaseLicenseType)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for DatabaseLicenseType for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseOperation.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseOperation.cs index 98d64dc4bfb6..4af090f5ddb6 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseOperation.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseOperation.cs @@ -58,7 +58,7 @@ public DatabaseOperation() /// The operation description. /// Whether the operation can be /// cancelled. - public DatabaseOperation(string id = default(string), string name = default(string), string type = default(string), string databaseName = default(string), string operation = default(string), string operationFriendlyName = default(string), int? percentComplete = default(int?), string serverName = default(string), System.DateTime? startTime = default(System.DateTime?), string state = default(string), int? errorCode = default(int?), string errorDescription = default(string), int? errorSeverity = default(int?), bool? isUserError = default(bool?), System.DateTime? estimatedCompletionTime = default(System.DateTime?), string description = default(string), bool? isCancellable = default(bool?)) + public DatabaseOperation(string id = default(string), string name = default(string), string type = default(string), string databaseName = default(string), string operation = default(string), string operationFriendlyName = default(string), int? percentComplete = default(int?), string serverName = default(string), System.DateTime? startTime = default(System.DateTime?), ManagementOperationState? state = default(ManagementOperationState?), int? errorCode = default(int?), string errorDescription = default(string), int? errorSeverity = default(int?), bool? isUserError = default(bool?), System.DateTime? estimatedCompletionTime = default(System.DateTime?), string description = default(string), bool? isCancellable = default(bool?)) : base(id, name, type) { DatabaseName = databaseName; @@ -125,7 +125,7 @@ public DatabaseOperation() /// 'Cancelled' /// [JsonProperty(PropertyName = "properties.state")] - public string State { get; private set; } + public ManagementOperationState? State { get; private set; } /// /// Gets the operation error code. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseReadScale.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseReadScale.cs deleted file mode 100644 index be48a34acdcf..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseReadScale.cs +++ /dev/null @@ -1,22 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - - /// - /// Defines values for DatabaseReadScale. - /// - public static class DatabaseReadScale - { - public const string Enabled = "Enabled"; - public const string Disabled = "Disabled"; - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState1.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState1.cs index 2692f1d2ec2c..649b01882773 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState1.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState1.cs @@ -10,14 +10,98 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for DatabaseState1. /// - public static class DatabaseState1 + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(DatabaseState1Converter))] + public struct DatabaseState1 : System.IEquatable { - public const string All = "All"; - public const string Live = "Live"; - public const string Deleted = "Deleted"; + private DatabaseState1(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly DatabaseState1 All = "All"; + + public static readonly DatabaseState1 Live = "Live"; + + public static readonly DatabaseState1 Deleted = "Deleted"; + + + /// + /// Underlying value of enum DatabaseState1 + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for DatabaseState1 + /// + public override string ToString() + { + return UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type DatabaseState1 + /// + public bool Equals(DatabaseState1 e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to DatabaseState1 + /// + public static implicit operator DatabaseState1(string value) + { + return new DatabaseState1(value); + } + + /// + /// Implicit operator to convert DatabaseState1 to string + /// + public static implicit operator string(DatabaseState1 e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum DatabaseState1 + /// + public static bool operator == (DatabaseState1 e1, DatabaseState1 e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum DatabaseState1 + /// + public static bool operator != (DatabaseState1 e1, DatabaseState1 e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for DatabaseState1 + /// + public override bool Equals(object obj) + { + return obj is DatabaseState1 && Equals((DatabaseState1)obj); + } + + /// + /// Returns for hashCode DatabaseState1 + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState1Converter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState1Converter.cs new file mode 100644 index 000000000000..da7072c0c9bc --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState1Converter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for DatabaseState1. + /// + public sealed class DatabaseState1Converter : JsonConverter + { + + /// + /// Returns if objectType can be converted to DatabaseState1 by the + /// converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(DatabaseState1).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to DatabaseState1. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (DatabaseState1)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for DatabaseState1 for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState2.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState2.cs index fc0c0446db5e..cbf1efaa443e 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState2.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState2.cs @@ -10,14 +10,98 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for DatabaseState2. /// - public static class DatabaseState2 + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(DatabaseState2Converter))] + public struct DatabaseState2 : System.IEquatable { - public const string All = "All"; - public const string Live = "Live"; - public const string Deleted = "Deleted"; + private DatabaseState2(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly DatabaseState2 All = "All"; + + public static readonly DatabaseState2 Live = "Live"; + + public static readonly DatabaseState2 Deleted = "Deleted"; + + + /// + /// Underlying value of enum DatabaseState2 + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for DatabaseState2 + /// + public override string ToString() + { + return UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type DatabaseState2 + /// + public bool Equals(DatabaseState2 e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to DatabaseState2 + /// + public static implicit operator DatabaseState2(string value) + { + return new DatabaseState2(value); + } + + /// + /// Implicit operator to convert DatabaseState2 to string + /// + public static implicit operator string(DatabaseState2 e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum DatabaseState2 + /// + public static bool operator == (DatabaseState2 e1, DatabaseState2 e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum DatabaseState2 + /// + public static bool operator != (DatabaseState2 e1, DatabaseState2 e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for DatabaseState2 + /// + public override bool Equals(object obj) + { + return obj is DatabaseState2 && Equals((DatabaseState2)obj); + } + + /// + /// Returns for hashCode DatabaseState2 + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState2Converter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState2Converter.cs new file mode 100644 index 000000000000..1e4fcb54834f --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState2Converter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for DatabaseState2. + /// + public sealed class DatabaseState2Converter : JsonConverter + { + + /// + /// Returns if objectType can be converted to DatabaseState2 by the + /// converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(DatabaseState2).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to DatabaseState2. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (DatabaseState2)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for DatabaseState2 for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState3.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState3.cs index 65ba2f51d2e0..b2db5803049a 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState3.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState3.cs @@ -10,14 +10,98 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for DatabaseState3. /// - public static class DatabaseState3 + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(DatabaseState3Converter))] + public struct DatabaseState3 : System.IEquatable { - public const string All = "All"; - public const string Live = "Live"; - public const string Deleted = "Deleted"; + private DatabaseState3(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly DatabaseState3 All = "All"; + + public static readonly DatabaseState3 Live = "Live"; + + public static readonly DatabaseState3 Deleted = "Deleted"; + + + /// + /// Underlying value of enum DatabaseState3 + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for DatabaseState3 + /// + public override string ToString() + { + return UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type DatabaseState3 + /// + public bool Equals(DatabaseState3 e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to DatabaseState3 + /// + public static implicit operator DatabaseState3(string value) + { + return new DatabaseState3(value); + } + + /// + /// Implicit operator to convert DatabaseState3 to string + /// + public static implicit operator string(DatabaseState3 e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum DatabaseState3 + /// + public static bool operator == (DatabaseState3 e1, DatabaseState3 e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum DatabaseState3 + /// + public static bool operator != (DatabaseState3 e1, DatabaseState3 e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for DatabaseState3 + /// + public override bool Equals(object obj) + { + return obj is DatabaseState3 && Equals((DatabaseState3)obj); + } + + /// + /// Returns for hashCode DatabaseState3 + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState3Converter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState3Converter.cs new file mode 100644 index 000000000000..ca2f680cafc4 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState3Converter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for DatabaseState3. + /// + public sealed class DatabaseState3Converter : JsonConverter + { + + /// + /// Returns if objectType can be converted to DatabaseState3 by the + /// converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(DatabaseState3).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to DatabaseState3. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (DatabaseState3)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for DatabaseState3 for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState4.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState4.cs index 47eff0771e7d..43ad4a950640 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState4.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState4.cs @@ -10,14 +10,98 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for DatabaseState4. /// - public static class DatabaseState4 + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(DatabaseState4Converter))] + public struct DatabaseState4 : System.IEquatable { - public const string All = "All"; - public const string Live = "Live"; - public const string Deleted = "Deleted"; + private DatabaseState4(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly DatabaseState4 All = "All"; + + public static readonly DatabaseState4 Live = "Live"; + + public static readonly DatabaseState4 Deleted = "Deleted"; + + + /// + /// Underlying value of enum DatabaseState4 + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for DatabaseState4 + /// + public override string ToString() + { + return UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type DatabaseState4 + /// + public bool Equals(DatabaseState4 e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to DatabaseState4 + /// + public static implicit operator DatabaseState4(string value) + { + return new DatabaseState4(value); + } + + /// + /// Implicit operator to convert DatabaseState4 to string + /// + public static implicit operator string(DatabaseState4 e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum DatabaseState4 + /// + public static bool operator == (DatabaseState4 e1, DatabaseState4 e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum DatabaseState4 + /// + public static bool operator != (DatabaseState4 e1, DatabaseState4 e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for DatabaseState4 + /// + public override bool Equals(object obj) + { + return obj is DatabaseState4 && Equals((DatabaseState4)obj); + } + + /// + /// Returns for hashCode DatabaseState4 + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState4Converter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState4Converter.cs new file mode 100644 index 000000000000..c1a2f28537f0 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState4Converter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for DatabaseState4. + /// + public sealed class DatabaseState4Converter : JsonConverter + { + + /// + /// Returns if objectType can be converted to DatabaseState4 by the + /// converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(DatabaseState4).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to DatabaseState4. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (DatabaseState4)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for DatabaseState4 for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState5.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState5.cs index ce9a5903a777..7bb73094aec1 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState5.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState5.cs @@ -10,14 +10,98 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for DatabaseState5. /// - public static class DatabaseState5 + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(DatabaseState5Converter))] + public struct DatabaseState5 : System.IEquatable { - public const string All = "All"; - public const string Live = "Live"; - public const string Deleted = "Deleted"; + private DatabaseState5(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly DatabaseState5 All = "All"; + + public static readonly DatabaseState5 Live = "Live"; + + public static readonly DatabaseState5 Deleted = "Deleted"; + + + /// + /// Underlying value of enum DatabaseState5 + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for DatabaseState5 + /// + public override string ToString() + { + return UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type DatabaseState5 + /// + public bool Equals(DatabaseState5 e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to DatabaseState5 + /// + public static implicit operator DatabaseState5(string value) + { + return new DatabaseState5(value); + } + + /// + /// Implicit operator to convert DatabaseState5 to string + /// + public static implicit operator string(DatabaseState5 e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum DatabaseState5 + /// + public static bool operator == (DatabaseState5 e1, DatabaseState5 e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum DatabaseState5 + /// + public static bool operator != (DatabaseState5 e1, DatabaseState5 e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for DatabaseState5 + /// + public override bool Equals(object obj) + { + return obj is DatabaseState5 && Equals((DatabaseState5)obj); + } + + /// + /// Returns for hashCode DatabaseState5 + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState5Converter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState5Converter.cs new file mode 100644 index 000000000000..78b6f4aa11e5 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState5Converter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for DatabaseState5. + /// + public sealed class DatabaseState5Converter : JsonConverter + { + + /// + /// Returns if objectType can be converted to DatabaseState5 by the + /// converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(DatabaseState5).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to DatabaseState5. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (DatabaseState5)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for DatabaseState5 for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState6.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState6.cs index dc5e76219007..50cbc1fca9bf 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState6.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState6.cs @@ -10,14 +10,98 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for DatabaseState6. /// - public static class DatabaseState6 + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(DatabaseState6Converter))] + public struct DatabaseState6 : System.IEquatable { - public const string All = "All"; - public const string Live = "Live"; - public const string Deleted = "Deleted"; + private DatabaseState6(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly DatabaseState6 All = "All"; + + public static readonly DatabaseState6 Live = "Live"; + + public static readonly DatabaseState6 Deleted = "Deleted"; + + + /// + /// Underlying value of enum DatabaseState6 + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for DatabaseState6 + /// + public override string ToString() + { + return UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type DatabaseState6 + /// + public bool Equals(DatabaseState6 e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to DatabaseState6 + /// + public static implicit operator DatabaseState6(string value) + { + return new DatabaseState6(value); + } + + /// + /// Implicit operator to convert DatabaseState6 to string + /// + public static implicit operator string(DatabaseState6 e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum DatabaseState6 + /// + public static bool operator == (DatabaseState6 e1, DatabaseState6 e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum DatabaseState6 + /// + public static bool operator != (DatabaseState6 e1, DatabaseState6 e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for DatabaseState6 + /// + public override bool Equals(object obj) + { + return obj is DatabaseState6 && Equals((DatabaseState6)obj); + } + + /// + /// Returns for hashCode DatabaseState6 + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState6Converter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState6Converter.cs new file mode 100644 index 000000000000..3a3b9fbabbef --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState6Converter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for DatabaseState6. + /// + public sealed class DatabaseState6Converter : JsonConverter + { + + /// + /// Returns if objectType can be converted to DatabaseState6 by the + /// converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(DatabaseState6).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to DatabaseState6. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (DatabaseState6)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for DatabaseState6 for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseStatus.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseStatus.cs index 5caced77f2da..010a9a945d48 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseStatus.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseStatus.cs @@ -10,32 +10,134 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for DatabaseStatus. /// - public static class DatabaseStatus + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(DatabaseStatusConverter))] + public struct DatabaseStatus : System.IEquatable { - public const string Online = "Online"; - public const string Restoring = "Restoring"; - public const string RecoveryPending = "RecoveryPending"; - public const string Recovering = "Recovering"; - public const string Suspect = "Suspect"; - public const string Offline = "Offline"; - public const string Standby = "Standby"; - public const string Shutdown = "Shutdown"; - public const string EmergencyMode = "EmergencyMode"; - public const string AutoClosed = "AutoClosed"; - public const string Copying = "Copying"; - public const string Creating = "Creating"; - public const string Inaccessible = "Inaccessible"; - public const string OfflineSecondary = "OfflineSecondary"; - public const string Pausing = "Pausing"; - public const string Paused = "Paused"; - public const string Resuming = "Resuming"; - public const string Scaling = "Scaling"; - public const string OfflineChangingDwPerformanceTiers = "OfflineChangingDwPerformanceTiers"; - public const string OnlineChangingDwPerformanceTiers = "OnlineChangingDwPerformanceTiers"; - public const string Disabled = "Disabled"; + private DatabaseStatus(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly DatabaseStatus Online = "Online"; + + public static readonly DatabaseStatus Restoring = "Restoring"; + + public static readonly DatabaseStatus RecoveryPending = "RecoveryPending"; + + public static readonly DatabaseStatus Recovering = "Recovering"; + + public static readonly DatabaseStatus Suspect = "Suspect"; + + public static readonly DatabaseStatus Offline = "Offline"; + + public static readonly DatabaseStatus Standby = "Standby"; + + public static readonly DatabaseStatus Shutdown = "Shutdown"; + + public static readonly DatabaseStatus EmergencyMode = "EmergencyMode"; + + public static readonly DatabaseStatus AutoClosed = "AutoClosed"; + + public static readonly DatabaseStatus Copying = "Copying"; + + public static readonly DatabaseStatus Creating = "Creating"; + + public static readonly DatabaseStatus Inaccessible = "Inaccessible"; + + public static readonly DatabaseStatus OfflineSecondary = "OfflineSecondary"; + + public static readonly DatabaseStatus Pausing = "Pausing"; + + public static readonly DatabaseStatus Paused = "Paused"; + + public static readonly DatabaseStatus Resuming = "Resuming"; + + public static readonly DatabaseStatus Scaling = "Scaling"; + + public static readonly DatabaseStatus OfflineChangingDwPerformanceTiers = "OfflineChangingDwPerformanceTiers"; + + public static readonly DatabaseStatus OnlineChangingDwPerformanceTiers = "OnlineChangingDwPerformanceTiers"; + + public static readonly DatabaseStatus Disabled = "Disabled"; + + + /// + /// Underlying value of enum DatabaseStatus + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for DatabaseStatus + /// + public override string ToString() + { + return UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type DatabaseStatus + /// + public bool Equals(DatabaseStatus e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to DatabaseStatus + /// + public static implicit operator DatabaseStatus(string value) + { + return new DatabaseStatus(value); + } + + /// + /// Implicit operator to convert DatabaseStatus to string + /// + public static implicit operator string(DatabaseStatus e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum DatabaseStatus + /// + public static bool operator == (DatabaseStatus e1, DatabaseStatus e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum DatabaseStatus + /// + public static bool operator != (DatabaseStatus e1, DatabaseStatus e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for DatabaseStatus + /// + public override bool Equals(object obj) + { + return obj is DatabaseStatus && Equals((DatabaseStatus)obj); + } + + /// + /// Returns for hashCode DatabaseStatus + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseStatusConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseStatusConverter.cs new file mode 100644 index 000000000000..9e23c1e959c2 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseStatusConverter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for DatabaseStatus. + /// + public sealed class DatabaseStatusConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to DatabaseStatus by the + /// converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(DatabaseStatus).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to DatabaseStatus. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (DatabaseStatus)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for DatabaseStatus for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPool.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPool.cs index 9e5d861d81d0..0032eb762d43 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPool.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPool.cs @@ -67,7 +67,7 @@ public ElasticPool() /// The license type to apply for this /// elastic pool. Possible values include: 'LicenseIncluded', /// 'BasePrice' - public ElasticPool(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), Sku sku = default(Sku), string kind = default(string), string state = default(string), System.DateTime? creationDate = default(System.DateTime?), long? maxSizeBytes = default(long?), ElasticPoolPerDatabaseSettings perDatabaseSettings = default(ElasticPoolPerDatabaseSettings), bool? zoneRedundant = default(bool?), string licenseType = default(string)) + public ElasticPool(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), Sku sku = default(Sku), string kind = default(string), ElasticPoolState? state = default(ElasticPoolState?), System.DateTime? creationDate = default(System.DateTime?), long? maxSizeBytes = default(long?), ElasticPoolPerDatabaseSettings perDatabaseSettings = default(ElasticPoolPerDatabaseSettings), bool? zoneRedundant = default(bool?), ElasticPoolLicenseType? licenseType = default(ElasticPoolLicenseType?)) : base(location, id, name, type, tags) { Sku = sku; @@ -116,7 +116,7 @@ public ElasticPool() /// 'Creating', 'Ready', 'Disabled' /// [JsonProperty(PropertyName = "properties.state")] - public string State { get; private set; } + public ElasticPoolState? State { get; private set; } /// /// Gets the creation date of the elastic pool (ISO8601 format). @@ -150,7 +150,7 @@ public ElasticPool() /// Possible values include: 'LicenseIncluded', 'BasePrice' /// [JsonProperty(PropertyName = "properties.licenseType")] - public string LicenseType { get; set; } + public ElasticPoolLicenseType? LicenseType { get; set; } /// /// Validate the object. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolEdition.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolEdition.cs index 4ce546476901..04e933f36e63 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolEdition.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolEdition.cs @@ -10,16 +10,102 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for ElasticPoolEdition. /// - public static class ElasticPoolEdition + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(ElasticPoolEditionConverter))] + public struct ElasticPoolEdition : System.IEquatable { - public const string Basic = "Basic"; - public const string Standard = "Standard"; - public const string Premium = "Premium"; - public const string GeneralPurpose = "GeneralPurpose"; - public const string BusinessCritical = "BusinessCritical"; + private ElasticPoolEdition(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly ElasticPoolEdition Basic = "Basic"; + + public static readonly ElasticPoolEdition Standard = "Standard"; + + public static readonly ElasticPoolEdition Premium = "Premium"; + + public static readonly ElasticPoolEdition GeneralPurpose = "GeneralPurpose"; + + public static readonly ElasticPoolEdition BusinessCritical = "BusinessCritical"; + + + /// + /// Underlying value of enum ElasticPoolEdition + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for ElasticPoolEdition + /// + public override string ToString() + { + return UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type ElasticPoolEdition + /// + public bool Equals(ElasticPoolEdition e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to ElasticPoolEdition + /// + public static implicit operator ElasticPoolEdition(string value) + { + return new ElasticPoolEdition(value); + } + + /// + /// Implicit operator to convert ElasticPoolEdition to string + /// + public static implicit operator string(ElasticPoolEdition e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum ElasticPoolEdition + /// + public static bool operator == (ElasticPoolEdition e1, ElasticPoolEdition e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum ElasticPoolEdition + /// + public static bool operator != (ElasticPoolEdition e1, ElasticPoolEdition e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for ElasticPoolEdition + /// + public override bool Equals(object obj) + { + return obj is ElasticPoolEdition && Equals((ElasticPoolEdition)obj); + } + + /// + /// Returns for hashCode ElasticPoolEdition + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolEditionConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolEditionConverter.cs new file mode 100644 index 000000000000..b6041a552074 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolEditionConverter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for ElasticPoolEdition. + /// + public sealed class ElasticPoolEditionConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to ElasticPoolEdition by the + /// converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(ElasticPoolEdition).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to ElasticPoolEdition. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (ElasticPoolEdition)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for ElasticPoolEdition for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolLicenseType.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolLicenseType.cs index 91040cda5998..290ae2618e39 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolLicenseType.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolLicenseType.cs @@ -10,13 +10,96 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for ElasticPoolLicenseType. /// - public static class ElasticPoolLicenseType + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(ElasticPoolLicenseTypeConverter))] + public struct ElasticPoolLicenseType : System.IEquatable { - public const string LicenseIncluded = "LicenseIncluded"; - public const string BasePrice = "BasePrice"; + private ElasticPoolLicenseType(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly ElasticPoolLicenseType LicenseIncluded = "LicenseIncluded"; + + public static readonly ElasticPoolLicenseType BasePrice = "BasePrice"; + + + /// + /// Underlying value of enum ElasticPoolLicenseType + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for ElasticPoolLicenseType + /// + public override string ToString() + { + return UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type ElasticPoolLicenseType + /// + public bool Equals(ElasticPoolLicenseType e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to ElasticPoolLicenseType + /// + public static implicit operator ElasticPoolLicenseType(string value) + { + return new ElasticPoolLicenseType(value); + } + + /// + /// Implicit operator to convert ElasticPoolLicenseType to string + /// + public static implicit operator string(ElasticPoolLicenseType e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum ElasticPoolLicenseType + /// + public static bool operator == (ElasticPoolLicenseType e1, ElasticPoolLicenseType e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum ElasticPoolLicenseType + /// + public static bool operator != (ElasticPoolLicenseType e1, ElasticPoolLicenseType e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for ElasticPoolLicenseType + /// + public override bool Equals(object obj) + { + return obj is ElasticPoolLicenseType && Equals((ElasticPoolLicenseType)obj); + } + + /// + /// Returns for hashCode ElasticPoolLicenseType + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolLicenseTypeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolLicenseTypeConverter.cs new file mode 100644 index 000000000000..553f43659d49 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolLicenseTypeConverter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for ElasticPoolLicenseType. + /// + public sealed class ElasticPoolLicenseTypeConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to ElasticPoolLicenseType by + /// the converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(ElasticPoolLicenseType).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to ElasticPoolLicenseType. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (ElasticPoolLicenseType)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for ElasticPoolLicenseType for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolPerDatabaseMaxPerformanceLevelCapability.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolPerDatabaseMaxPerformanceLevelCapability.cs index 74af2a056139..f82b6812d740 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolPerDatabaseMaxPerformanceLevelCapability.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolPerDatabaseMaxPerformanceLevelCapability.cs @@ -43,7 +43,7 @@ public ElasticPoolPerDatabaseMaxPerformanceLevelCapability() /// include: 'Visible', 'Available', 'Default', 'Disabled' /// The reason for the capability not being /// available. - public ElasticPoolPerDatabaseMaxPerformanceLevelCapability(double? limit = default(double?), string unit = default(string), IList supportedPerDatabaseMinPerformanceLevels = default(IList), CapabilityStatus? status = default(CapabilityStatus?), string reason = default(string)) + public ElasticPoolPerDatabaseMaxPerformanceLevelCapability(double? limit = default(double?), PerformanceLevelUnit? unit = default(PerformanceLevelUnit?), IList supportedPerDatabaseMinPerformanceLevels = default(IList), CapabilityStatus? status = default(CapabilityStatus?), string reason = default(string)) { Limit = limit; Unit = unit; @@ -69,7 +69,7 @@ public ElasticPoolPerDatabaseMaxPerformanceLevelCapability() /// include: 'DTU', 'VCores' /// [JsonProperty(PropertyName = "unit")] - public string Unit { get; private set; } + public PerformanceLevelUnit? Unit { get; private set; } /// /// Gets the list of supported min database performance levels. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolPerDatabaseMinPerformanceLevelCapability.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolPerDatabaseMinPerformanceLevelCapability.cs index 90abdfcd655b..9cea5490a81e 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolPerDatabaseMinPerformanceLevelCapability.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolPerDatabaseMinPerformanceLevelCapability.cs @@ -39,7 +39,7 @@ public ElasticPoolPerDatabaseMinPerformanceLevelCapability() /// include: 'Visible', 'Available', 'Default', 'Disabled' /// The reason for the capability not being /// available. - public ElasticPoolPerDatabaseMinPerformanceLevelCapability(double? limit = default(double?), string unit = default(string), CapabilityStatus? status = default(CapabilityStatus?), string reason = default(string)) + public ElasticPoolPerDatabaseMinPerformanceLevelCapability(double? limit = default(double?), PerformanceLevelUnit? unit = default(PerformanceLevelUnit?), CapabilityStatus? status = default(CapabilityStatus?), string reason = default(string)) { Limit = limit; Unit = unit; @@ -64,7 +64,7 @@ public ElasticPoolPerDatabaseMinPerformanceLevelCapability() /// include: 'DTU', 'VCores' /// [JsonProperty(PropertyName = "unit")] - public string Unit { get; private set; } + public PerformanceLevelUnit? Unit { get; private set; } /// /// Gets the status of the capability. Possible values include: diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolState.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolState.cs index 5e36b8d12088..9e21c9776984 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolState.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolState.cs @@ -10,14 +10,98 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for ElasticPoolState. /// - public static class ElasticPoolState + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(ElasticPoolStateConverter))] + public struct ElasticPoolState : System.IEquatable { - public const string Creating = "Creating"; - public const string Ready = "Ready"; - public const string Disabled = "Disabled"; + private ElasticPoolState(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly ElasticPoolState Creating = "Creating"; + + public static readonly ElasticPoolState Ready = "Ready"; + + public static readonly ElasticPoolState Disabled = "Disabled"; + + + /// + /// Underlying value of enum ElasticPoolState + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for ElasticPoolState + /// + public override string ToString() + { + return UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type ElasticPoolState + /// + public bool Equals(ElasticPoolState e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to ElasticPoolState + /// + public static implicit operator ElasticPoolState(string value) + { + return new ElasticPoolState(value); + } + + /// + /// Implicit operator to convert ElasticPoolState to string + /// + public static implicit operator string(ElasticPoolState e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum ElasticPoolState + /// + public static bool operator == (ElasticPoolState e1, ElasticPoolState e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum ElasticPoolState + /// + public static bool operator != (ElasticPoolState e1, ElasticPoolState e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for ElasticPoolState + /// + public override bool Equals(object obj) + { + return obj is ElasticPoolState && Equals((ElasticPoolState)obj); + } + + /// + /// Returns for hashCode ElasticPoolState + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolStateConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolStateConverter.cs new file mode 100644 index 000000000000..9eae804ada9b --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolStateConverter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for ElasticPoolState. + /// + public sealed class ElasticPoolStateConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to ElasticPoolState by the + /// converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(ElasticPoolState).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to ElasticPoolState. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (ElasticPoolState)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for ElasticPoolState for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolUpdate.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolUpdate.cs index 2fddf59ce1f0..03144be7b350 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolUpdate.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolUpdate.cs @@ -45,7 +45,7 @@ public ElasticPoolUpdate() /// elastic pool. Possible values include: 'LicenseIncluded', /// 'BasePrice' /// Resource tags. - public ElasticPoolUpdate(Sku sku = default(Sku), long? maxSizeBytes = default(long?), ElasticPoolPerDatabaseSettings perDatabaseSettings = default(ElasticPoolPerDatabaseSettings), bool? zoneRedundant = default(bool?), string licenseType = default(string), IDictionary tags = default(IDictionary)) + public ElasticPoolUpdate(Sku sku = default(Sku), long? maxSizeBytes = default(long?), ElasticPoolPerDatabaseSettings perDatabaseSettings = default(ElasticPoolPerDatabaseSettings), bool? zoneRedundant = default(bool?), ElasticPoolLicenseType? licenseType = default(ElasticPoolLicenseType?), IDictionary tags = default(IDictionary)) { Sku = sku; MaxSizeBytes = maxSizeBytes; @@ -92,7 +92,7 @@ public ElasticPoolUpdate() /// Possible values include: 'LicenseIncluded', 'BasePrice' /// [JsonProperty(PropertyName = "properties.licenseType")] - public string LicenseType { get; set; } + public ElasticPoolLicenseType? LicenseType { get; set; } /// /// Gets or sets resource tags. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/EncryptionProtector.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/EncryptionProtector.cs index ea9fe3a5d1a5..8a52edc09327 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/EncryptionProtector.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/EncryptionProtector.cs @@ -46,7 +46,7 @@ public EncryptionProtector() /// The name of the server key. /// The URI of the server key. /// Thumbprint of the server key. - public EncryptionProtector(string serverKeyType, string id = default(string), string name = default(string), string type = default(string), string kind = default(string), string location = default(string), string subregion = default(string), string serverKeyName = default(string), string uri = default(string), string thumbprint = default(string)) + public EncryptionProtector(ServerKeyType serverKeyType, string id = default(string), string name = default(string), string type = default(string), string kind = default(string), string location = default(string), string subregion = default(string), string serverKeyName = default(string), string uri = default(string), string thumbprint = default(string)) : base(id, name, type) { Kind = kind; @@ -95,7 +95,7 @@ public EncryptionProtector() /// 'AzureKeyVault' /// [JsonProperty(PropertyName = "properties.serverKeyType")] - public string ServerKeyType { get; set; } + public ServerKeyType ServerKeyType { get; set; } /// /// Gets the URI of the server key. @@ -117,10 +117,6 @@ public EncryptionProtector() /// public virtual void Validate() { - if (ServerKeyType == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "ServerKeyType"); - } } } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ExportDatabaseDefinition.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ExportDatabaseDefinition.cs index 0a98139a22b7..a5fb485f8718 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ExportDatabaseDefinition.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ExportDatabaseDefinition.cs @@ -41,7 +41,7 @@ public ExportDatabaseDefinition() /// Authentication type. /// Optional resource information to /// enable network isolation for request. - public ExportDatabaseDefinition(string storageKeyType, string storageKey, string storageUri, string administratorLogin, string administratorLoginPassword, string authenticationType = default(string), NetworkIsolationSettings networkIsolation = default(NetworkIsolationSettings)) + public ExportDatabaseDefinition(StorageKeyType storageKeyType, string storageKey, string storageUri, string administratorLogin, string administratorLoginPassword, string authenticationType = default(string), NetworkIsolationSettings networkIsolation = default(NetworkIsolationSettings)) { StorageKeyType = storageKeyType; StorageKey = storageKey; @@ -63,7 +63,7 @@ public ExportDatabaseDefinition() /// 'SharedAccessKey', 'StorageAccessKey' /// [JsonProperty(PropertyName = "storageKeyType")] - public string StorageKeyType { get; set; } + public StorageKeyType StorageKeyType { get; set; } /// /// Gets or sets storage key. @@ -110,10 +110,6 @@ public ExportDatabaseDefinition() /// public virtual void Validate() { - if (StorageKeyType == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "StorageKeyType"); - } if (StorageKey == null) { throw new ValidationException(ValidationRules.CannotBeNull, "StorageKey"); diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/FailoverGroup.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/FailoverGroup.cs index 9fe6b90fb1bd..41197cecd823 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/FailoverGroup.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/FailoverGroup.cs @@ -52,7 +52,7 @@ public FailoverGroup() /// group instance. /// List of databases in the failover /// group. - public FailoverGroup(FailoverGroupReadWriteEndpoint readWriteEndpoint, IList partnerServers, string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), FailoverGroupReadOnlyEndpoint readOnlyEndpoint = default(FailoverGroupReadOnlyEndpoint), string replicationRole = default(string), string replicationState = default(string), IList databases = default(IList)) + public FailoverGroup(FailoverGroupReadWriteEndpoint readWriteEndpoint, IList partnerServers, string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), FailoverGroupReadOnlyEndpoint readOnlyEndpoint = default(FailoverGroupReadOnlyEndpoint), FailoverGroupReplicationRole? replicationRole = default(FailoverGroupReplicationRole?), string replicationState = default(string), IList databases = default(IList)) : base(id, name, type) { Location = location; @@ -100,7 +100,7 @@ public FailoverGroup() /// Possible values include: 'Primary', 'Secondary' /// [JsonProperty(PropertyName = "properties.replicationRole")] - public string ReplicationRole { get; private set; } + public FailoverGroupReplicationRole? ReplicationRole { get; private set; } /// /// Gets replication state of the failover group instance. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/FailoverGroupReadOnlyEndpoint.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/FailoverGroupReadOnlyEndpoint.cs index 161a0d051d5c..cc8c1dbf98fe 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/FailoverGroupReadOnlyEndpoint.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/FailoverGroupReadOnlyEndpoint.cs @@ -34,7 +34,7 @@ public FailoverGroupReadOnlyEndpoint() /// Failover policy of the read-only /// endpoint for the failover group. Possible values include: /// 'Disabled', 'Enabled' - public FailoverGroupReadOnlyEndpoint(string failoverPolicy = default(string)) + public FailoverGroupReadOnlyEndpoint(ReadOnlyEndpointFailoverPolicy? failoverPolicy = default(ReadOnlyEndpointFailoverPolicy?)) { FailoverPolicy = failoverPolicy; CustomInit(); @@ -50,7 +50,7 @@ public FailoverGroupReadOnlyEndpoint() /// failover group. Possible values include: 'Disabled', 'Enabled' /// [JsonProperty(PropertyName = "failoverPolicy")] - public string FailoverPolicy { get; set; } + public ReadOnlyEndpointFailoverPolicy? FailoverPolicy { get; set; } } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/FailoverGroupReadWriteEndpoint.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/FailoverGroupReadWriteEndpoint.cs index 823617cb01ce..f36bd4bfb0d8 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/FailoverGroupReadWriteEndpoint.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/FailoverGroupReadWriteEndpoint.cs @@ -10,7 +10,6 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Microsoft.Rest; using Newtonsoft.Json; using System.Linq; @@ -40,7 +39,7 @@ public FailoverGroupReadWriteEndpoint() /// before failover with data loss is attempted for the read-write /// endpoint. If failoverPolicy is Automatic then /// failoverWithDataLossGracePeriodMinutes is required. - public FailoverGroupReadWriteEndpoint(string failoverPolicy, int? failoverWithDataLossGracePeriodMinutes = default(int?)) + public FailoverGroupReadWriteEndpoint(ReadWriteEndpointFailoverPolicy failoverPolicy, int? failoverWithDataLossGracePeriodMinutes = default(int?)) { FailoverPolicy = failoverPolicy; FailoverWithDataLossGracePeriodMinutes = failoverWithDataLossGracePeriodMinutes; @@ -59,7 +58,7 @@ public FailoverGroupReadWriteEndpoint() /// include: 'Manual', 'Automatic' /// [JsonProperty(PropertyName = "failoverPolicy")] - public string FailoverPolicy { get; set; } + public ReadWriteEndpointFailoverPolicy FailoverPolicy { get; set; } /// /// Gets or sets grace period before failover with data loss is @@ -72,15 +71,11 @@ public FailoverGroupReadWriteEndpoint() /// /// Validate the object. /// - /// + /// /// Thrown if validation fails /// public virtual void Validate() { - if (FailoverPolicy == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "FailoverPolicy"); - } } } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/FailoverGroupReplicationRole.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/FailoverGroupReplicationRole.cs index 380e10a578b4..251e505410d2 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/FailoverGroupReplicationRole.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/FailoverGroupReplicationRole.cs @@ -10,13 +10,96 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for FailoverGroupReplicationRole. /// - public static class FailoverGroupReplicationRole + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(FailoverGroupReplicationRoleConverter))] + public struct FailoverGroupReplicationRole : System.IEquatable { - public const string Primary = "Primary"; - public const string Secondary = "Secondary"; + private FailoverGroupReplicationRole(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly FailoverGroupReplicationRole Primary = "Primary"; + + public static readonly FailoverGroupReplicationRole Secondary = "Secondary"; + + + /// + /// Underlying value of enum FailoverGroupReplicationRole + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for FailoverGroupReplicationRole + /// + public override string ToString() + { + return UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type FailoverGroupReplicationRole + /// + public bool Equals(FailoverGroupReplicationRole e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to FailoverGroupReplicationRole + /// + public static implicit operator FailoverGroupReplicationRole(string value) + { + return new FailoverGroupReplicationRole(value); + } + + /// + /// Implicit operator to convert FailoverGroupReplicationRole to string + /// + public static implicit operator string(FailoverGroupReplicationRole e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum FailoverGroupReplicationRole + /// + public static bool operator == (FailoverGroupReplicationRole e1, FailoverGroupReplicationRole e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum FailoverGroupReplicationRole + /// + public static bool operator != (FailoverGroupReplicationRole e1, FailoverGroupReplicationRole e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for FailoverGroupReplicationRole + /// + public override bool Equals(object obj) + { + return obj is FailoverGroupReplicationRole && Equals((FailoverGroupReplicationRole)obj); + } + + /// + /// Returns for hashCode FailoverGroupReplicationRole + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/FailoverGroupReplicationRoleConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/FailoverGroupReplicationRoleConverter.cs new file mode 100644 index 000000000000..80c2d0b338e3 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/FailoverGroupReplicationRoleConverter.cs @@ -0,0 +1,55 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for FailoverGroupReplicationRole. + /// + public sealed class FailoverGroupReplicationRoleConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to + /// FailoverGroupReplicationRole by the converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(FailoverGroupReplicationRole).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to + /// FailoverGroupReplicationRole. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (FailoverGroupReplicationRole)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for FailoverGroupReplicationRole for + /// serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/IdentityType.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/IdentityType.cs index cb7c7a82b81d..c1c201535595 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/IdentityType.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/IdentityType.cs @@ -10,12 +10,94 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for IdentityType. /// - public static class IdentityType + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(IdentityTypeConverter))] + public struct IdentityType : System.IEquatable { - public const string SystemAssigned = "SystemAssigned"; + private IdentityType(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly IdentityType SystemAssigned = "SystemAssigned"; + + + /// + /// Underlying value of enum IdentityType + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for IdentityType + /// + public override string ToString() + { + return UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type IdentityType + /// + public bool Equals(IdentityType e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to IdentityType + /// + public static implicit operator IdentityType(string value) + { + return new IdentityType(value); + } + + /// + /// Implicit operator to convert IdentityType to string + /// + public static implicit operator string(IdentityType e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum IdentityType + /// + public static bool operator == (IdentityType e1, IdentityType e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum IdentityType + /// + public static bool operator != (IdentityType e1, IdentityType e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for IdentityType + /// + public override bool Equals(object obj) + { + return obj is IdentityType && Equals((IdentityType)obj); + } + + /// + /// Returns for hashCode IdentityType + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/IdentityTypeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/IdentityTypeConverter.cs new file mode 100644 index 000000000000..f171ba65f248 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/IdentityTypeConverter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for IdentityType. + /// + public sealed class IdentityTypeConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to IdentityType by the + /// converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(IdentityType).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to IdentityType. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (IdentityType)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for IdentityType for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ImportExistingDatabaseDefinition.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ImportExistingDatabaseDefinition.cs index 3cca5ca109c9..0c28b55dd451 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ImportExistingDatabaseDefinition.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ImportExistingDatabaseDefinition.cs @@ -43,7 +43,7 @@ public ImportExistingDatabaseDefinition() /// Authentication type. /// Optional resource information to /// enable network isolation for request. - public ImportExistingDatabaseDefinition(string storageKeyType, string storageKey, string storageUri, string administratorLogin, string administratorLoginPassword, string authenticationType = default(string), NetworkIsolationSettings networkIsolation = default(NetworkIsolationSettings)) + public ImportExistingDatabaseDefinition(StorageKeyType storageKeyType, string storageKey, string storageUri, string administratorLogin, string administratorLoginPassword, string authenticationType = default(string), NetworkIsolationSettings networkIsolation = default(NetworkIsolationSettings)) { StorageKeyType = storageKeyType; StorageKey = storageKey; @@ -65,7 +65,7 @@ public ImportExistingDatabaseDefinition() /// 'SharedAccessKey', 'StorageAccessKey' /// [JsonProperty(PropertyName = "storageKeyType")] - public string StorageKeyType { get; set; } + public StorageKeyType StorageKeyType { get; set; } /// /// Gets or sets storage key. @@ -112,10 +112,6 @@ public ImportExistingDatabaseDefinition() /// public virtual void Validate() { - if (StorageKeyType == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "StorageKeyType"); - } if (StorageKey == null) { throw new ValidationException(ValidationRules.CannotBeNull, "StorageKey"); diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ImportNewDatabaseDefinition.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ImportNewDatabaseDefinition.cs index db630e00fd92..d13b7f0797b7 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ImportNewDatabaseDefinition.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ImportNewDatabaseDefinition.cs @@ -49,7 +49,7 @@ public ImportNewDatabaseDefinition() /// Authentication type. /// Optional resource information to /// enable network isolation for request. - public ImportNewDatabaseDefinition(string storageKeyType, string storageKey, string storageUri, string administratorLogin, string administratorLoginPassword, string databaseName = default(string), string edition = default(string), string serviceObjectiveName = default(string), string maxSizeBytes = default(string), string authenticationType = default(string), NetworkIsolationSettings networkIsolation = default(NetworkIsolationSettings)) + public ImportNewDatabaseDefinition(StorageKeyType storageKeyType, string storageKey, string storageUri, string administratorLogin, string administratorLoginPassword, string databaseName = default(string), string edition = default(string), string serviceObjectiveName = default(string), string maxSizeBytes = default(string), string authenticationType = default(string), NetworkIsolationSettings networkIsolation = default(NetworkIsolationSettings)) { DatabaseName = databaseName; Edition = edition; @@ -99,7 +99,7 @@ public ImportNewDatabaseDefinition() /// 'SharedAccessKey', 'StorageAccessKey' /// [JsonProperty(PropertyName = "storageKeyType")] - public string StorageKeyType { get; set; } + public StorageKeyType StorageKeyType { get; set; } /// /// Gets or sets storage key. @@ -146,10 +146,6 @@ public ImportNewDatabaseDefinition() /// public virtual void Validate() { - if (StorageKeyType == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "StorageKeyType"); - } if (StorageKey == null) { throw new ValidationException(ValidationRules.CannotBeNull, "StorageKey"); diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstanceFailoverGroup.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstanceFailoverGroup.cs index 19f2f6800532..bc3ff7416992 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstanceFailoverGroup.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstanceFailoverGroup.cs @@ -50,7 +50,7 @@ public InstanceFailoverGroup() /// 'Secondary' /// Replication state of the failover /// group instance. - public InstanceFailoverGroup(InstanceFailoverGroupReadWriteEndpoint readWriteEndpoint, IList partnerRegions, IList managedInstancePairs, string id = default(string), string name = default(string), string type = default(string), InstanceFailoverGroupReadOnlyEndpoint readOnlyEndpoint = default(InstanceFailoverGroupReadOnlyEndpoint), string replicationRole = default(string), string replicationState = default(string)) + public InstanceFailoverGroup(InstanceFailoverGroupReadWriteEndpoint readWriteEndpoint, IList partnerRegions, IList managedInstancePairs, string id = default(string), string name = default(string), string type = default(string), InstanceFailoverGroupReadOnlyEndpoint readOnlyEndpoint = default(InstanceFailoverGroupReadOnlyEndpoint), InstanceFailoverGroupReplicationRole? replicationRole = default(InstanceFailoverGroupReplicationRole?), string replicationState = default(string)) : base(id, name, type) { ReadWriteEndpoint = readWriteEndpoint; @@ -84,7 +84,7 @@ public InstanceFailoverGroup() /// Possible values include: 'Primary', 'Secondary' /// [JsonProperty(PropertyName = "properties.replicationRole")] - public string ReplicationRole { get; private set; } + public InstanceFailoverGroupReplicationRole? ReplicationRole { get; private set; } /// /// Gets replication state of the failover group instance. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstanceFailoverGroupReadOnlyEndpoint.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstanceFailoverGroupReadOnlyEndpoint.cs index c3e7c22f98d0..5a7e6fcac550 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstanceFailoverGroupReadOnlyEndpoint.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstanceFailoverGroupReadOnlyEndpoint.cs @@ -34,7 +34,7 @@ public InstanceFailoverGroupReadOnlyEndpoint() /// Failover policy of the read-only /// endpoint for the failover group. Possible values include: /// 'Disabled', 'Enabled' - public InstanceFailoverGroupReadOnlyEndpoint(string failoverPolicy = default(string)) + public InstanceFailoverGroupReadOnlyEndpoint(ReadOnlyEndpointFailoverPolicy? failoverPolicy = default(ReadOnlyEndpointFailoverPolicy?)) { FailoverPolicy = failoverPolicy; CustomInit(); @@ -50,7 +50,7 @@ public InstanceFailoverGroupReadOnlyEndpoint() /// failover group. Possible values include: 'Disabled', 'Enabled' /// [JsonProperty(PropertyName = "failoverPolicy")] - public string FailoverPolicy { get; set; } + public ReadOnlyEndpointFailoverPolicy? FailoverPolicy { get; set; } } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstanceFailoverGroupReadWriteEndpoint.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstanceFailoverGroupReadWriteEndpoint.cs index 299752e7bf35..7af96668a660 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstanceFailoverGroupReadWriteEndpoint.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstanceFailoverGroupReadWriteEndpoint.cs @@ -10,7 +10,6 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Microsoft.Rest; using Newtonsoft.Json; using System.Linq; @@ -40,7 +39,7 @@ public InstanceFailoverGroupReadWriteEndpoint() /// before failover with data loss is attempted for the read-write /// endpoint. If failoverPolicy is Automatic then /// failoverWithDataLossGracePeriodMinutes is required. - public InstanceFailoverGroupReadWriteEndpoint(string failoverPolicy, int? failoverWithDataLossGracePeriodMinutes = default(int?)) + public InstanceFailoverGroupReadWriteEndpoint(ReadWriteEndpointFailoverPolicy failoverPolicy, int? failoverWithDataLossGracePeriodMinutes = default(int?)) { FailoverPolicy = failoverPolicy; FailoverWithDataLossGracePeriodMinutes = failoverWithDataLossGracePeriodMinutes; @@ -59,7 +58,7 @@ public InstanceFailoverGroupReadWriteEndpoint() /// include: 'Manual', 'Automatic' /// [JsonProperty(PropertyName = "failoverPolicy")] - public string FailoverPolicy { get; set; } + public ReadWriteEndpointFailoverPolicy FailoverPolicy { get; set; } /// /// Gets or sets grace period before failover with data loss is @@ -72,15 +71,11 @@ public InstanceFailoverGroupReadWriteEndpoint() /// /// Validate the object. /// - /// + /// /// Thrown if validation fails /// public virtual void Validate() { - if (FailoverPolicy == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "FailoverPolicy"); - } } } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstanceFailoverGroupReplicationRole.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstanceFailoverGroupReplicationRole.cs index cd4a463d4d89..abd0ffb3c64d 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstanceFailoverGroupReplicationRole.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstanceFailoverGroupReplicationRole.cs @@ -10,13 +10,101 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for InstanceFailoverGroupReplicationRole. /// - public static class InstanceFailoverGroupReplicationRole + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(InstanceFailoverGroupReplicationRoleConverter))] + public struct InstanceFailoverGroupReplicationRole : System.IEquatable { - public const string Primary = "Primary"; - public const string Secondary = "Secondary"; + private InstanceFailoverGroupReplicationRole(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly InstanceFailoverGroupReplicationRole Primary = "Primary"; + + public static readonly InstanceFailoverGroupReplicationRole Secondary = "Secondary"; + + + /// + /// Underlying value of enum InstanceFailoverGroupReplicationRole + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for + /// InstanceFailoverGroupReplicationRole + /// + public override string ToString() + { + return UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type InstanceFailoverGroupReplicationRole + /// + public bool Equals(InstanceFailoverGroupReplicationRole e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to + /// InstanceFailoverGroupReplicationRole + /// + public static implicit operator InstanceFailoverGroupReplicationRole(string value) + { + return new InstanceFailoverGroupReplicationRole(value); + } + + /// + /// Implicit operator to convert InstanceFailoverGroupReplicationRole + /// to string + /// + public static implicit operator string(InstanceFailoverGroupReplicationRole e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum + /// InstanceFailoverGroupReplicationRole + /// + public static bool operator == (InstanceFailoverGroupReplicationRole e1, InstanceFailoverGroupReplicationRole e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum + /// InstanceFailoverGroupReplicationRole + /// + public static bool operator != (InstanceFailoverGroupReplicationRole e1, InstanceFailoverGroupReplicationRole e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for InstanceFailoverGroupReplicationRole + /// + public override bool Equals(object obj) + { + return obj is InstanceFailoverGroupReplicationRole && Equals((InstanceFailoverGroupReplicationRole)obj); + } + + /// + /// Returns for hashCode InstanceFailoverGroupReplicationRole + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstanceFailoverGroupReplicationRoleConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstanceFailoverGroupReplicationRoleConverter.cs new file mode 100644 index 000000000000..2caa0100d9f8 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstanceFailoverGroupReplicationRoleConverter.cs @@ -0,0 +1,55 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for InstanceFailoverGroupReplicationRole. + /// + public sealed class InstanceFailoverGroupReplicationRoleConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to + /// InstanceFailoverGroupReplicationRole by the converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(InstanceFailoverGroupReplicationRole).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to + /// InstanceFailoverGroupReplicationRole. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (InstanceFailoverGroupReplicationRole)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for InstanceFailoverGroupReplicationRole for + /// serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstancePool.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstancePool.cs index c174f85c08ac..cf25e3b6c40b 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstancePool.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstancePool.cs @@ -48,7 +48,7 @@ public InstancePool() /// Resource type. /// Resource tags. /// The name and tier of the SKU. - public InstancePool(string location, string subnetId, int vCores, string licenseType, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), Sku sku = default(Sku)) + public InstancePool(string location, string subnetId, int vCores, InstancePoolLicenseType licenseType, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), Sku sku = default(Sku)) : base(location, id, name, type, tags) { Sku = sku; @@ -89,7 +89,7 @@ public InstancePool() /// 'LicenseIncluded', 'BasePrice' /// [JsonProperty(PropertyName = "properties.licenseType")] - public string LicenseType { get; set; } + public InstancePoolLicenseType LicenseType { get; set; } /// /// Validate the object. @@ -104,10 +104,6 @@ public override void Validate() { throw new ValidationException(ValidationRules.CannotBeNull, "SubnetId"); } - if (LicenseType == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "LicenseType"); - } if (Sku != null) { Sku.Validate(); diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstancePoolLicenseType.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstancePoolLicenseType.cs index b4371565f980..cdd2c8375b95 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstancePoolLicenseType.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstancePoolLicenseType.cs @@ -10,13 +10,96 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for InstancePoolLicenseType. /// - public static class InstancePoolLicenseType + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(InstancePoolLicenseTypeConverter))] + public struct InstancePoolLicenseType : System.IEquatable { - public const string LicenseIncluded = "LicenseIncluded"; - public const string BasePrice = "BasePrice"; + private InstancePoolLicenseType(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly InstancePoolLicenseType LicenseIncluded = "LicenseIncluded"; + + public static readonly InstancePoolLicenseType BasePrice = "BasePrice"; + + + /// + /// Underlying value of enum InstancePoolLicenseType + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for InstancePoolLicenseType + /// + public override string ToString() + { + return UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type InstancePoolLicenseType + /// + public bool Equals(InstancePoolLicenseType e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to InstancePoolLicenseType + /// + public static implicit operator InstancePoolLicenseType(string value) + { + return new InstancePoolLicenseType(value); + } + + /// + /// Implicit operator to convert InstancePoolLicenseType to string + /// + public static implicit operator string(InstancePoolLicenseType e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum InstancePoolLicenseType + /// + public static bool operator == (InstancePoolLicenseType e1, InstancePoolLicenseType e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum InstancePoolLicenseType + /// + public static bool operator != (InstancePoolLicenseType e1, InstancePoolLicenseType e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for InstancePoolLicenseType + /// + public override bool Equals(object obj) + { + return obj is InstancePoolLicenseType && Equals((InstancePoolLicenseType)obj); + } + + /// + /// Returns for hashCode InstancePoolLicenseType + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstancePoolLicenseTypeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstancePoolLicenseTypeConverter.cs new file mode 100644 index 000000000000..0ebb9e4ee1f4 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstancePoolLicenseTypeConverter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for InstancePoolLicenseType. + /// + public sealed class InstancePoolLicenseTypeConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to InstancePoolLicenseType + /// by the converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(InstancePoolLicenseType).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to InstancePoolLicenseType. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (InstancePoolLicenseType)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for InstancePoolLicenseType for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobAgent.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobAgent.cs index fe6f269eab8a..b82e50f80551 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobAgent.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobAgent.cs @@ -45,7 +45,7 @@ public JobAgent() /// The state of the job agent. Possible values /// include: 'Creating', 'Ready', 'Updating', 'Deleting', /// 'Disabled' - public JobAgent(string location, string databaseId, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), Sku sku = default(Sku), string state = default(string)) + public JobAgent(string location, string databaseId, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), Sku sku = default(Sku), JobAgentState? state = default(JobAgentState?)) : base(location, id, name, type, tags) { Sku = sku; @@ -76,7 +76,7 @@ public JobAgent() /// 'Creating', 'Ready', 'Updating', 'Deleting', 'Disabled' /// [JsonProperty(PropertyName = "properties.state")] - public string State { get; private set; } + public JobAgentState? State { get; private set; } /// /// Validate the object. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobAgentState.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobAgentState.cs index b8897f53cb79..24fec667743f 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobAgentState.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobAgentState.cs @@ -10,16 +10,102 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for JobAgentState. /// - public static class JobAgentState + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(JobAgentStateConverter))] + public struct JobAgentState : System.IEquatable { - public const string Creating = "Creating"; - public const string Ready = "Ready"; - public const string Updating = "Updating"; - public const string Deleting = "Deleting"; - public const string Disabled = "Disabled"; + private JobAgentState(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly JobAgentState Creating = "Creating"; + + public static readonly JobAgentState Ready = "Ready"; + + public static readonly JobAgentState Updating = "Updating"; + + public static readonly JobAgentState Deleting = "Deleting"; + + public static readonly JobAgentState Disabled = "Disabled"; + + + /// + /// Underlying value of enum JobAgentState + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for JobAgentState + /// + public override string ToString() + { + return UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type JobAgentState + /// + public bool Equals(JobAgentState e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to JobAgentState + /// + public static implicit operator JobAgentState(string value) + { + return new JobAgentState(value); + } + + /// + /// Implicit operator to convert JobAgentState to string + /// + public static implicit operator string(JobAgentState e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum JobAgentState + /// + public static bool operator == (JobAgentState e1, JobAgentState e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum JobAgentState + /// + public static bool operator != (JobAgentState e1, JobAgentState e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for JobAgentState + /// + public override bool Equals(object obj) + { + return obj is JobAgentState && Equals((JobAgentState)obj); + } + + /// + /// Returns for hashCode JobAgentState + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobAgentStateConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobAgentStateConverter.cs new file mode 100644 index 000000000000..6c021f921d92 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobAgentStateConverter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for JobAgentState. + /// + public sealed class JobAgentStateConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to JobAgentState by the + /// converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(JobAgentState).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to JobAgentState. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (JobAgentState)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for JobAgentState for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobExecution.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobExecution.cs index 39c3e70baf2c..2c2768198736 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobExecution.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobExecution.cs @@ -61,7 +61,7 @@ public JobExecution() /// The last status or error message. /// The target that this execution is executed /// on. - public JobExecution(string id = default(string), string name = default(string), string type = default(string), int? jobVersion = default(int?), string stepName = default(string), int? stepId = default(int?), System.Guid? jobExecutionId = default(System.Guid?), string lifecycle = default(string), string provisioningState = default(string), System.DateTime? createTime = default(System.DateTime?), System.DateTime? startTime = default(System.DateTime?), System.DateTime? endTime = default(System.DateTime?), int? currentAttempts = default(int?), System.DateTime? currentAttemptStartTime = default(System.DateTime?), string lastMessage = default(string), JobExecutionTarget target = default(JobExecutionTarget)) + public JobExecution(string id = default(string), string name = default(string), string type = default(string), int? jobVersion = default(int?), string stepName = default(string), int? stepId = default(int?), System.Guid? jobExecutionId = default(System.Guid?), JobExecutionLifecycle? lifecycle = default(JobExecutionLifecycle?), ProvisioningState? provisioningState = default(ProvisioningState?), System.DateTime? createTime = default(System.DateTime?), System.DateTime? startTime = default(System.DateTime?), System.DateTime? endTime = default(System.DateTime?), int? currentAttempts = default(int?), System.DateTime? currentAttemptStartTime = default(System.DateTime?), string lastMessage = default(string), JobExecutionTarget target = default(JobExecutionTarget)) : base(id, name, type) { JobVersion = jobVersion; @@ -116,7 +116,7 @@ public JobExecution() /// 'TimedOut', 'Canceled', 'Skipped' /// [JsonProperty(PropertyName = "properties.lifecycle")] - public string Lifecycle { get; private set; } + public JobExecutionLifecycle? Lifecycle { get; private set; } /// /// Gets the ARM provisioning state of the job execution. Possible @@ -124,7 +124,7 @@ public JobExecution() /// 'Canceled' /// [JsonProperty(PropertyName = "properties.provisioningState")] - public string ProvisioningState { get; private set; } + public ProvisioningState? ProvisioningState { get; private set; } /// /// Gets the time that the job execution was created. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobExecutionLifecycle.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobExecutionLifecycle.cs index 37ead7ce7ff5..50d8148bac4e 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobExecutionLifecycle.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobExecutionLifecycle.cs @@ -10,21 +10,112 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for JobExecutionLifecycle. /// - public static class JobExecutionLifecycle + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(JobExecutionLifecycleConverter))] + public struct JobExecutionLifecycle : System.IEquatable { - public const string Created = "Created"; - public const string InProgress = "InProgress"; - public const string WaitingForChildJobExecutions = "WaitingForChildJobExecutions"; - public const string WaitingForRetry = "WaitingForRetry"; - public const string Succeeded = "Succeeded"; - public const string SucceededWithSkipped = "SucceededWithSkipped"; - public const string Failed = "Failed"; - public const string TimedOut = "TimedOut"; - public const string Canceled = "Canceled"; - public const string Skipped = "Skipped"; + private JobExecutionLifecycle(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly JobExecutionLifecycle Created = "Created"; + + public static readonly JobExecutionLifecycle InProgress = "InProgress"; + + public static readonly JobExecutionLifecycle WaitingForChildJobExecutions = "WaitingForChildJobExecutions"; + + public static readonly JobExecutionLifecycle WaitingForRetry = "WaitingForRetry"; + + public static readonly JobExecutionLifecycle Succeeded = "Succeeded"; + + public static readonly JobExecutionLifecycle SucceededWithSkipped = "SucceededWithSkipped"; + + public static readonly JobExecutionLifecycle Failed = "Failed"; + + public static readonly JobExecutionLifecycle TimedOut = "TimedOut"; + + public static readonly JobExecutionLifecycle Canceled = "Canceled"; + + public static readonly JobExecutionLifecycle Skipped = "Skipped"; + + + /// + /// Underlying value of enum JobExecutionLifecycle + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for JobExecutionLifecycle + /// + public override string ToString() + { + return UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type JobExecutionLifecycle + /// + public bool Equals(JobExecutionLifecycle e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to JobExecutionLifecycle + /// + public static implicit operator JobExecutionLifecycle(string value) + { + return new JobExecutionLifecycle(value); + } + + /// + /// Implicit operator to convert JobExecutionLifecycle to string + /// + public static implicit operator string(JobExecutionLifecycle e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum JobExecutionLifecycle + /// + public static bool operator == (JobExecutionLifecycle e1, JobExecutionLifecycle e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum JobExecutionLifecycle + /// + public static bool operator != (JobExecutionLifecycle e1, JobExecutionLifecycle e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for JobExecutionLifecycle + /// + public override bool Equals(object obj) + { + return obj is JobExecutionLifecycle && Equals((JobExecutionLifecycle)obj); + } + + /// + /// Returns for hashCode JobExecutionLifecycle + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobExecutionLifecycleConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobExecutionLifecycleConverter.cs new file mode 100644 index 000000000000..4f1114861711 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobExecutionLifecycleConverter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for JobExecutionLifecycle. + /// + public sealed class JobExecutionLifecycleConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to JobExecutionLifecycle by + /// the converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(JobExecutionLifecycle).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to JobExecutionLifecycle. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (JobExecutionLifecycle)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for JobExecutionLifecycle for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobExecutionTarget.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobExecutionTarget.cs index 6b7e1dff02e8..bd2989561aef 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobExecutionTarget.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobExecutionTarget.cs @@ -34,7 +34,7 @@ public JobExecutionTarget() /// 'SqlServer' /// The server name. /// The database name. - public JobExecutionTarget(string type = default(string), string serverName = default(string), string databaseName = default(string)) + public JobExecutionTarget(JobTargetType? type = default(JobTargetType?), string serverName = default(string), string databaseName = default(string)) { Type = type; ServerName = serverName; @@ -53,7 +53,7 @@ public JobExecutionTarget() /// 'SqlServer' /// [JsonProperty(PropertyName = "type")] - public string Type { get; private set; } + public JobTargetType? Type { get; private set; } /// /// Gets the server name. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobStepAction.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobStepAction.cs index 51941a310406..e550d8f8b04e 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobStepAction.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobStepAction.cs @@ -36,7 +36,7 @@ public JobStepAction() /// Possible values include: 'TSql' /// The source of the action to execute. Possible /// values include: 'Inline' - public JobStepAction(string value, string type = default(string), string source = default(string)) + public JobStepAction(string value, JobStepActionType? type = default(JobStepActionType?), JobStepActionSource? source = default(JobStepActionSource?)) { Type = type; Source = source; @@ -54,14 +54,14 @@ public JobStepAction() /// Possible values include: 'TSql' /// [JsonProperty(PropertyName = "type")] - public string Type { get; set; } + public JobStepActionType? Type { get; set; } /// /// Gets or sets the source of the action to execute. Possible values /// include: 'Inline' /// [JsonProperty(PropertyName = "source")] - public string Source { get; set; } + public JobStepActionSource? Source { get; set; } /// /// Gets or sets the action value, for example the text of the T-SQL diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobStepActionSource.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobStepActionSource.cs index 2f96d3a39604..18f8b1d00e82 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobStepActionSource.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobStepActionSource.cs @@ -10,12 +10,94 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for JobStepActionSource. /// - public static class JobStepActionSource + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(JobStepActionSourceConverter))] + public struct JobStepActionSource : System.IEquatable { - public const string Inline = "Inline"; + private JobStepActionSource(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly JobStepActionSource Inline = "Inline"; + + + /// + /// Underlying value of enum JobStepActionSource + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for JobStepActionSource + /// + public override string ToString() + { + return UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type JobStepActionSource + /// + public bool Equals(JobStepActionSource e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to JobStepActionSource + /// + public static implicit operator JobStepActionSource(string value) + { + return new JobStepActionSource(value); + } + + /// + /// Implicit operator to convert JobStepActionSource to string + /// + public static implicit operator string(JobStepActionSource e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum JobStepActionSource + /// + public static bool operator == (JobStepActionSource e1, JobStepActionSource e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum JobStepActionSource + /// + public static bool operator != (JobStepActionSource e1, JobStepActionSource e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for JobStepActionSource + /// + public override bool Equals(object obj) + { + return obj is JobStepActionSource && Equals((JobStepActionSource)obj); + } + + /// + /// Returns for hashCode JobStepActionSource + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobStepActionSourceConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobStepActionSourceConverter.cs new file mode 100644 index 000000000000..241c078ae7fe --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobStepActionSourceConverter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for JobStepActionSource. + /// + public sealed class JobStepActionSourceConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to JobStepActionSource by + /// the converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(JobStepActionSource).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to JobStepActionSource. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (JobStepActionSource)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for JobStepActionSource for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobStepActionType.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobStepActionType.cs index 6dda291ff321..2352a1ccadd9 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobStepActionType.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobStepActionType.cs @@ -10,12 +10,94 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for JobStepActionType. /// - public static class JobStepActionType + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(JobStepActionTypeConverter))] + public struct JobStepActionType : System.IEquatable { - public const string TSql = "TSql"; + private JobStepActionType(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly JobStepActionType TSql = "TSql"; + + + /// + /// Underlying value of enum JobStepActionType + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for JobStepActionType + /// + public override string ToString() + { + return UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type JobStepActionType + /// + public bool Equals(JobStepActionType e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to JobStepActionType + /// + public static implicit operator JobStepActionType(string value) + { + return new JobStepActionType(value); + } + + /// + /// Implicit operator to convert JobStepActionType to string + /// + public static implicit operator string(JobStepActionType e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum JobStepActionType + /// + public static bool operator == (JobStepActionType e1, JobStepActionType e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum JobStepActionType + /// + public static bool operator != (JobStepActionType e1, JobStepActionType e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for JobStepActionType + /// + public override bool Equals(object obj) + { + return obj is JobStepActionType && Equals((JobStepActionType)obj); + } + + /// + /// Returns for hashCode JobStepActionType + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobStepActionTypeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobStepActionTypeConverter.cs new file mode 100644 index 000000000000..28ded5cdd872 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobStepActionTypeConverter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for JobStepActionType. + /// + public sealed class JobStepActionTypeConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to JobStepActionType by the + /// converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(JobStepActionType).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to JobStepActionType. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (JobStepActionType)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for JobStepActionType for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobStepOutput.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobStepOutput.cs index cdd0db7bec05..c2f8ba1e4bc0 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobStepOutput.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobStepOutput.cs @@ -43,7 +43,7 @@ public JobStepOutput() /// The output destination resource /// group. /// The output destination schema. - public JobStepOutput(string serverName, string databaseName, string tableName, string credential, string type = default(string), System.Guid? subscriptionId = default(System.Guid?), string resourceGroupName = default(string), string schemaName = default(string)) + public JobStepOutput(string serverName, string databaseName, string tableName, string credential, JobStepOutputType? type = default(JobStepOutputType?), System.Guid? subscriptionId = default(System.Guid?), string resourceGroupName = default(string), string schemaName = default(string)) { Type = type; SubscriptionId = subscriptionId; @@ -66,7 +66,7 @@ public JobStepOutput() /// 'SqlDatabase' /// [JsonProperty(PropertyName = "type")] - public string Type { get; set; } + public JobStepOutputType? Type { get; set; } /// /// Gets or sets the output destination subscription id. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobStepOutputType.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobStepOutputType.cs index bb86c8126657..ef25916619b3 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobStepOutputType.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobStepOutputType.cs @@ -10,12 +10,94 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for JobStepOutputType. /// - public static class JobStepOutputType + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(JobStepOutputTypeConverter))] + public struct JobStepOutputType : System.IEquatable { - public const string SqlDatabase = "SqlDatabase"; + private JobStepOutputType(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly JobStepOutputType SqlDatabase = "SqlDatabase"; + + + /// + /// Underlying value of enum JobStepOutputType + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for JobStepOutputType + /// + public override string ToString() + { + return UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type JobStepOutputType + /// + public bool Equals(JobStepOutputType e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to JobStepOutputType + /// + public static implicit operator JobStepOutputType(string value) + { + return new JobStepOutputType(value); + } + + /// + /// Implicit operator to convert JobStepOutputType to string + /// + public static implicit operator string(JobStepOutputType e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum JobStepOutputType + /// + public static bool operator == (JobStepOutputType e1, JobStepOutputType e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum JobStepOutputType + /// + public static bool operator != (JobStepOutputType e1, JobStepOutputType e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for JobStepOutputType + /// + public override bool Equals(object obj) + { + return obj is JobStepOutputType && Equals((JobStepOutputType)obj); + } + + /// + /// Returns for hashCode JobStepOutputType + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobStepOutputTypeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobStepOutputTypeConverter.cs new file mode 100644 index 000000000000..f6e86f9a358b --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobStepOutputTypeConverter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for JobStepOutputType. + /// + public sealed class JobStepOutputTypeConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to JobStepOutputType by the + /// converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(JobStepOutputType).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to JobStepOutputType. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (JobStepOutputType)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for JobStepOutputType for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobTarget.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobTarget.cs index 7d03cc175e67..4d0b124b79da 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobTarget.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobTarget.cs @@ -10,7 +10,6 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Microsoft.Rest; using Newtonsoft.Json; using System.Linq; @@ -44,7 +43,7 @@ public JobTarget() /// The resource ID of the credential /// that is used during job execution to connect to the target and /// determine the list of databases inside the target. - public JobTarget(string type, JobTargetGroupMembershipType? membershipType = default(JobTargetGroupMembershipType?), string serverName = default(string), string databaseName = default(string), string elasticPoolName = default(string), string shardMapName = default(string), string refreshCredential = default(string)) + public JobTarget(JobTargetType type, JobTargetGroupMembershipType? membershipType = default(JobTargetGroupMembershipType?), string serverName = default(string), string databaseName = default(string), string elasticPoolName = default(string), string shardMapName = default(string), string refreshCredential = default(string)) { MembershipType = membershipType; Type = type; @@ -74,7 +73,7 @@ public JobTarget() /// 'SqlServer' /// [JsonProperty(PropertyName = "type")] - public string Type { get; set; } + public JobTargetType Type { get; set; } /// /// Gets or sets the target server name. @@ -111,15 +110,11 @@ public JobTarget() /// /// Validate the object. /// - /// + /// /// Thrown if validation fails /// public virtual void Validate() { - if (Type == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Type"); - } } } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobTargetType.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobTargetType.cs index bf3921ce5ec0..01fbf9a93991 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobTargetType.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobTargetType.cs @@ -10,16 +10,102 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for JobTargetType. /// - public static class JobTargetType + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(JobTargetTypeConverter))] + public struct JobTargetType : System.IEquatable { - public const string TargetGroup = "TargetGroup"; - public const string SqlDatabase = "SqlDatabase"; - public const string SqlElasticPool = "SqlElasticPool"; - public const string SqlShardMap = "SqlShardMap"; - public const string SqlServer = "SqlServer"; + private JobTargetType(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly JobTargetType TargetGroup = "TargetGroup"; + + public static readonly JobTargetType SqlDatabase = "SqlDatabase"; + + public static readonly JobTargetType SqlElasticPool = "SqlElasticPool"; + + public static readonly JobTargetType SqlShardMap = "SqlShardMap"; + + public static readonly JobTargetType SqlServer = "SqlServer"; + + + /// + /// Underlying value of enum JobTargetType + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for JobTargetType + /// + public override string ToString() + { + return UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type JobTargetType + /// + public bool Equals(JobTargetType e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to JobTargetType + /// + public static implicit operator JobTargetType(string value) + { + return new JobTargetType(value); + } + + /// + /// Implicit operator to convert JobTargetType to string + /// + public static implicit operator string(JobTargetType e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum JobTargetType + /// + public static bool operator == (JobTargetType e1, JobTargetType e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum JobTargetType + /// + public static bool operator != (JobTargetType e1, JobTargetType e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for JobTargetType + /// + public override bool Equals(object obj) + { + return obj is JobTargetType && Equals((JobTargetType)obj); + } + + /// + /// Returns for hashCode JobTargetType + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobTargetTypeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobTargetTypeConverter.cs new file mode 100644 index 000000000000..8b117d0ea11e --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobTargetTypeConverter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for JobTargetType. + /// + public sealed class JobTargetTypeConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to JobTargetType by the + /// converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(JobTargetType).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to JobTargetType. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (JobTargetType)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for JobTargetType for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/LogSizeCapability.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/LogSizeCapability.cs index e374ba951793..aaf5d85a541b 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/LogSizeCapability.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/LogSizeCapability.cs @@ -34,7 +34,7 @@ public LogSizeCapability() /// The units that the limit is expressed in. /// Possible values include: 'Megabytes', 'Gigabytes', 'Terabytes', /// 'Petabytes', 'Percent' - public LogSizeCapability(int? limit = default(int?), string unit = default(string)) + public LogSizeCapability(int? limit = default(int?), LogSizeUnit? unit = default(LogSizeUnit?)) { Limit = limit; Unit = unit; @@ -58,7 +58,7 @@ public LogSizeCapability() /// 'Percent' /// [JsonProperty(PropertyName = "unit")] - public string Unit { get; private set; } + public LogSizeUnit? Unit { get; private set; } } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/LogSizeUnit.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/LogSizeUnit.cs index 1b8c8bfc8596..e595a40f2bbc 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/LogSizeUnit.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/LogSizeUnit.cs @@ -10,16 +10,102 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for LogSizeUnit. /// - public static class LogSizeUnit + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(LogSizeUnitConverter))] + public struct LogSizeUnit : System.IEquatable { - public const string Megabytes = "Megabytes"; - public const string Gigabytes = "Gigabytes"; - public const string Terabytes = "Terabytes"; - public const string Petabytes = "Petabytes"; - public const string Percent = "Percent"; + private LogSizeUnit(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly LogSizeUnit Megabytes = "Megabytes"; + + public static readonly LogSizeUnit Gigabytes = "Gigabytes"; + + public static readonly LogSizeUnit Terabytes = "Terabytes"; + + public static readonly LogSizeUnit Petabytes = "Petabytes"; + + public static readonly LogSizeUnit Percent = "Percent"; + + + /// + /// Underlying value of enum LogSizeUnit + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for LogSizeUnit + /// + public override string ToString() + { + return UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type LogSizeUnit + /// + public bool Equals(LogSizeUnit e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to LogSizeUnit + /// + public static implicit operator LogSizeUnit(string value) + { + return new LogSizeUnit(value); + } + + /// + /// Implicit operator to convert LogSizeUnit to string + /// + public static implicit operator string(LogSizeUnit e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum LogSizeUnit + /// + public static bool operator == (LogSizeUnit e1, LogSizeUnit e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum LogSizeUnit + /// + public static bool operator != (LogSizeUnit e1, LogSizeUnit e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for LogSizeUnit + /// + public override bool Equals(object obj) + { + return obj is LogSizeUnit && Equals((LogSizeUnit)obj); + } + + /// + /// Returns for hashCode LogSizeUnit + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/LogSizeUnitConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/LogSizeUnitConverter.cs new file mode 100644 index 000000000000..bb9f436d6278 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/LogSizeUnitConverter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for LogSizeUnit. + /// + public sealed class LogSizeUnitConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to LogSizeUnit by the + /// converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(LogSizeUnit).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to LogSizeUnit. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (LogSizeUnit)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for LogSizeUnit for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/LongTermRetentionDatabaseState.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/LongTermRetentionDatabaseState.cs index 5bcd5d6f4710..341242387fe3 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/LongTermRetentionDatabaseState.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/LongTermRetentionDatabaseState.cs @@ -10,14 +10,100 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for LongTermRetentionDatabaseState. /// - public static class LongTermRetentionDatabaseState + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(LongTermRetentionDatabaseStateConverter))] + public struct LongTermRetentionDatabaseState : System.IEquatable { - public const string All = "All"; - public const string Live = "Live"; - public const string Deleted = "Deleted"; + private LongTermRetentionDatabaseState(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly LongTermRetentionDatabaseState All = "All"; + + public static readonly LongTermRetentionDatabaseState Live = "Live"; + + public static readonly LongTermRetentionDatabaseState Deleted = "Deleted"; + + + /// + /// Underlying value of enum LongTermRetentionDatabaseState + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for LongTermRetentionDatabaseState + /// + public override string ToString() + { + return UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type LongTermRetentionDatabaseState + /// + public bool Equals(LongTermRetentionDatabaseState e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to + /// LongTermRetentionDatabaseState + /// + public static implicit operator LongTermRetentionDatabaseState(string value) + { + return new LongTermRetentionDatabaseState(value); + } + + /// + /// Implicit operator to convert LongTermRetentionDatabaseState to + /// string + /// + public static implicit operator string(LongTermRetentionDatabaseState e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum LongTermRetentionDatabaseState + /// + public static bool operator == (LongTermRetentionDatabaseState e1, LongTermRetentionDatabaseState e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum LongTermRetentionDatabaseState + /// + public static bool operator != (LongTermRetentionDatabaseState e1, LongTermRetentionDatabaseState e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for LongTermRetentionDatabaseState + /// + public override bool Equals(object obj) + { + return obj is LongTermRetentionDatabaseState && Equals((LongTermRetentionDatabaseState)obj); + } + + /// + /// Returns for hashCode LongTermRetentionDatabaseState + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/LongTermRetentionDatabaseStateConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/LongTermRetentionDatabaseStateConverter.cs new file mode 100644 index 000000000000..ecda89352bb8 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/LongTermRetentionDatabaseStateConverter.cs @@ -0,0 +1,55 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for LongTermRetentionDatabaseState. + /// + public sealed class LongTermRetentionDatabaseStateConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to + /// LongTermRetentionDatabaseState by the converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(LongTermRetentionDatabaseState).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to + /// LongTermRetentionDatabaseState. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (LongTermRetentionDatabaseState)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for LongTermRetentionDatabaseState for + /// serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedDatabase.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedDatabase.cs index 097d79ad06b1..d16a278fd6e2 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedDatabase.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedDatabase.cs @@ -93,7 +93,7 @@ public ManagedDatabase() /// of this managed database. /// Last backup file name for restore of /// this managed database. - public ManagedDatabase(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), string collation = default(string), string status = default(string), System.DateTime? creationDate = default(System.DateTime?), System.DateTime? earliestRestorePoint = default(System.DateTime?), System.DateTime? restorePointInTime = default(System.DateTime?), string defaultSecondaryLocation = default(string), string catalogCollation = default(string), string createMode = default(string), string storageContainerUri = default(string), string sourceDatabaseId = default(string), string restorableDroppedDatabaseId = default(string), string storageContainerSasToken = default(string), string failoverGroupId = default(string), string recoverableDatabaseId = default(string), string longTermRetentionBackupResourceId = default(string), bool? autoCompleteRestore = default(bool?), string lastBackupName = default(string)) + public ManagedDatabase(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), string collation = default(string), ManagedDatabaseStatus? status = default(ManagedDatabaseStatus?), System.DateTime? creationDate = default(System.DateTime?), System.DateTime? earliestRestorePoint = default(System.DateTime?), System.DateTime? restorePointInTime = default(System.DateTime?), string defaultSecondaryLocation = default(string), CatalogCollationType? catalogCollation = default(CatalogCollationType?), ManagedDatabaseCreateMode? createMode = default(ManagedDatabaseCreateMode?), string storageContainerUri = default(string), string sourceDatabaseId = default(string), string restorableDroppedDatabaseId = default(string), string storageContainerSasToken = default(string), string failoverGroupId = default(string), string recoverableDatabaseId = default(string), string longTermRetentionBackupResourceId = default(string), bool? autoCompleteRestore = default(bool?), string lastBackupName = default(string)) : base(location, id, name, type, tags) { Collation = collation; @@ -133,7 +133,7 @@ public ManagedDatabase() /// 'Updating' /// [JsonProperty(PropertyName = "properties.status")] - public string Status { get; private set; } + public ManagedDatabaseStatus? Status { get; private set; } /// /// Gets creation date of the database. @@ -167,7 +167,7 @@ public ManagedDatabase() /// include: 'DATABASE_DEFAULT', 'SQL_Latin1_General_CP1_CI_AS' /// [JsonProperty(PropertyName = "properties.catalogCollation")] - public string CatalogCollation { get; set; } + public CatalogCollationType? CatalogCollation { get; set; } /// /// Gets or sets managed database create mode. PointInTimeRestore: @@ -185,7 +185,7 @@ public ManagedDatabase() /// 'Recovery', 'RestoreLongTermRetentionBackup' /// [JsonProperty(PropertyName = "properties.createMode")] - public string CreateMode { get; set; } + public ManagedDatabaseCreateMode? CreateMode { get; set; } /// /// Gets or sets conditional. If createMode is RestoreExternalBackup, diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedDatabaseCreateMode.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedDatabaseCreateMode.cs index c7c1e20d8260..8edb412f8b74 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedDatabaseCreateMode.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedDatabaseCreateMode.cs @@ -10,16 +10,102 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for ManagedDatabaseCreateMode. /// - public static class ManagedDatabaseCreateMode + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(ManagedDatabaseCreateModeConverter))] + public struct ManagedDatabaseCreateMode : System.IEquatable { - public const string Default = "Default"; - public const string RestoreExternalBackup = "RestoreExternalBackup"; - public const string PointInTimeRestore = "PointInTimeRestore"; - public const string Recovery = "Recovery"; - public const string RestoreLongTermRetentionBackup = "RestoreLongTermRetentionBackup"; + private ManagedDatabaseCreateMode(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly ManagedDatabaseCreateMode Default = "Default"; + + public static readonly ManagedDatabaseCreateMode RestoreExternalBackup = "RestoreExternalBackup"; + + public static readonly ManagedDatabaseCreateMode PointInTimeRestore = "PointInTimeRestore"; + + public static readonly ManagedDatabaseCreateMode Recovery = "Recovery"; + + public static readonly ManagedDatabaseCreateMode RestoreLongTermRetentionBackup = "RestoreLongTermRetentionBackup"; + + + /// + /// Underlying value of enum ManagedDatabaseCreateMode + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for ManagedDatabaseCreateMode + /// + public override string ToString() + { + return UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type ManagedDatabaseCreateMode + /// + public bool Equals(ManagedDatabaseCreateMode e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to ManagedDatabaseCreateMode + /// + public static implicit operator ManagedDatabaseCreateMode(string value) + { + return new ManagedDatabaseCreateMode(value); + } + + /// + /// Implicit operator to convert ManagedDatabaseCreateMode to string + /// + public static implicit operator string(ManagedDatabaseCreateMode e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum ManagedDatabaseCreateMode + /// + public static bool operator == (ManagedDatabaseCreateMode e1, ManagedDatabaseCreateMode e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum ManagedDatabaseCreateMode + /// + public static bool operator != (ManagedDatabaseCreateMode e1, ManagedDatabaseCreateMode e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for ManagedDatabaseCreateMode + /// + public override bool Equals(object obj) + { + return obj is ManagedDatabaseCreateMode && Equals((ManagedDatabaseCreateMode)obj); + } + + /// + /// Returns for hashCode ManagedDatabaseCreateMode + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedDatabaseCreateModeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedDatabaseCreateModeConverter.cs new file mode 100644 index 000000000000..bfc490f8b789 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedDatabaseCreateModeConverter.cs @@ -0,0 +1,54 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for ManagedDatabaseCreateMode. + /// + public sealed class ManagedDatabaseCreateModeConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to ManagedDatabaseCreateMode + /// by the converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(ManagedDatabaseCreateMode).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to ManagedDatabaseCreateMode. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (ManagedDatabaseCreateMode)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for ManagedDatabaseCreateMode for + /// serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedDatabaseStatus.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedDatabaseStatus.cs index fb53873a68b4..df66c5020284 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedDatabaseStatus.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedDatabaseStatus.cs @@ -10,18 +10,106 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for ManagedDatabaseStatus. /// - public static class ManagedDatabaseStatus + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(ManagedDatabaseStatusConverter))] + public struct ManagedDatabaseStatus : System.IEquatable { - public const string Online = "Online"; - public const string Offline = "Offline"; - public const string Shutdown = "Shutdown"; - public const string Creating = "Creating"; - public const string Inaccessible = "Inaccessible"; - public const string Restoring = "Restoring"; - public const string Updating = "Updating"; + private ManagedDatabaseStatus(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly ManagedDatabaseStatus Online = "Online"; + + public static readonly ManagedDatabaseStatus Offline = "Offline"; + + public static readonly ManagedDatabaseStatus Shutdown = "Shutdown"; + + public static readonly ManagedDatabaseStatus Creating = "Creating"; + + public static readonly ManagedDatabaseStatus Inaccessible = "Inaccessible"; + + public static readonly ManagedDatabaseStatus Restoring = "Restoring"; + + public static readonly ManagedDatabaseStatus Updating = "Updating"; + + + /// + /// Underlying value of enum ManagedDatabaseStatus + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for ManagedDatabaseStatus + /// + public override string ToString() + { + return UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type ManagedDatabaseStatus + /// + public bool Equals(ManagedDatabaseStatus e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to ManagedDatabaseStatus + /// + public static implicit operator ManagedDatabaseStatus(string value) + { + return new ManagedDatabaseStatus(value); + } + + /// + /// Implicit operator to convert ManagedDatabaseStatus to string + /// + public static implicit operator string(ManagedDatabaseStatus e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum ManagedDatabaseStatus + /// + public static bool operator == (ManagedDatabaseStatus e1, ManagedDatabaseStatus e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum ManagedDatabaseStatus + /// + public static bool operator != (ManagedDatabaseStatus e1, ManagedDatabaseStatus e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for ManagedDatabaseStatus + /// + public override bool Equals(object obj) + { + return obj is ManagedDatabaseStatus && Equals((ManagedDatabaseStatus)obj); + } + + /// + /// Returns for hashCode ManagedDatabaseStatus + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedDatabaseStatusConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedDatabaseStatusConverter.cs new file mode 100644 index 000000000000..3478b2db9f0a --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedDatabaseStatusConverter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for ManagedDatabaseStatus. + /// + public sealed class ManagedDatabaseStatusConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to ManagedDatabaseStatus by + /// the converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(ManagedDatabaseStatus).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to ManagedDatabaseStatus. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (ManagedDatabaseStatus)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for ManagedDatabaseStatus for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedDatabaseUpdate.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedDatabaseUpdate.cs index 4afb5faa70f0..6729a79e652a 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedDatabaseUpdate.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedDatabaseUpdate.cs @@ -89,7 +89,7 @@ public ManagedDatabaseUpdate() /// Last backup file name for restore of /// this managed database. /// Resource tags. - public ManagedDatabaseUpdate(string collation = default(string), string status = default(string), System.DateTime? creationDate = default(System.DateTime?), System.DateTime? earliestRestorePoint = default(System.DateTime?), System.DateTime? restorePointInTime = default(System.DateTime?), string defaultSecondaryLocation = default(string), string catalogCollation = default(string), string createMode = default(string), string storageContainerUri = default(string), string sourceDatabaseId = default(string), string restorableDroppedDatabaseId = default(string), string storageContainerSasToken = default(string), string failoverGroupId = default(string), string recoverableDatabaseId = default(string), string longTermRetentionBackupResourceId = default(string), bool? autoCompleteRestore = default(bool?), string lastBackupName = default(string), IDictionary tags = default(IDictionary)) + public ManagedDatabaseUpdate(string collation = default(string), ManagedDatabaseStatus? status = default(ManagedDatabaseStatus?), System.DateTime? creationDate = default(System.DateTime?), System.DateTime? earliestRestorePoint = default(System.DateTime?), System.DateTime? restorePointInTime = default(System.DateTime?), string defaultSecondaryLocation = default(string), CatalogCollationType? catalogCollation = default(CatalogCollationType?), ManagedDatabaseCreateMode? createMode = default(ManagedDatabaseCreateMode?), string storageContainerUri = default(string), string sourceDatabaseId = default(string), string restorableDroppedDatabaseId = default(string), string storageContainerSasToken = default(string), string failoverGroupId = default(string), string recoverableDatabaseId = default(string), string longTermRetentionBackupResourceId = default(string), bool? autoCompleteRestore = default(bool?), string lastBackupName = default(string), IDictionary tags = default(IDictionary)) { Collation = collation; Status = status; @@ -129,7 +129,7 @@ public ManagedDatabaseUpdate() /// 'Updating' /// [JsonProperty(PropertyName = "properties.status")] - public string Status { get; private set; } + public ManagedDatabaseStatus? Status { get; private set; } /// /// Gets creation date of the database. @@ -163,7 +163,7 @@ public ManagedDatabaseUpdate() /// include: 'DATABASE_DEFAULT', 'SQL_Latin1_General_CP1_CI_AS' /// [JsonProperty(PropertyName = "properties.catalogCollation")] - public string CatalogCollation { get; set; } + public CatalogCollationType? CatalogCollation { get; set; } /// /// Gets or sets managed database create mode. PointInTimeRestore: @@ -181,7 +181,7 @@ public ManagedDatabaseUpdate() /// 'Recovery', 'RestoreLongTermRetentionBackup' /// [JsonProperty(PropertyName = "properties.createMode")] - public string CreateMode { get; set; } + public ManagedDatabaseCreateMode? CreateMode { get; set; } /// /// Gets or sets conditional. If createMode is RestoreExternalBackup, diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstance.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstance.cs index 52cd6203274a..1e0e2bbf1469 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstance.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstance.cs @@ -114,7 +114,7 @@ public ManagedInstance() /// (LocallyRedundantStorage), ZRS (ZoneRedundantStorage) and GRS /// (GeoRedundantStorage). Possible values include: 'GRS', 'LRS', /// 'ZRS' - public ManagedInstance(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), ResourceIdentity identity = default(ResourceIdentity), Sku sku = default(Sku), string provisioningState = default(string), string managedInstanceCreateMode = default(string), string fullyQualifiedDomainName = default(string), string administratorLogin = default(string), string administratorLoginPassword = default(string), string subnetId = default(string), string state = default(string), string licenseType = default(string), int? vCores = default(int?), int? storageSizeInGB = default(int?), string collation = default(string), string dnsZone = default(string), string dnsZonePartner = default(string), bool? publicDataEndpointEnabled = default(bool?), string sourceManagedInstanceId = default(string), System.DateTime? restorePointInTime = default(System.DateTime?), string proxyOverride = default(string), string timezoneId = default(string), string instancePoolId = default(string), string maintenanceConfigurationId = default(string), string minimalTlsVersion = default(string), string storageAccountType = default(string)) + public ManagedInstance(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), ResourceIdentity identity = default(ResourceIdentity), Sku sku = default(Sku), string provisioningState = default(string), ManagedServerCreateMode? managedInstanceCreateMode = default(ManagedServerCreateMode?), string fullyQualifiedDomainName = default(string), string administratorLogin = default(string), string administratorLoginPassword = default(string), string subnetId = default(string), string state = default(string), ManagedInstanceLicenseType? licenseType = default(ManagedInstanceLicenseType?), int? vCores = default(int?), int? storageSizeInGB = default(int?), string collation = default(string), string dnsZone = default(string), string dnsZonePartner = default(string), bool? publicDataEndpointEnabled = default(bool?), string sourceManagedInstanceId = default(string), System.DateTime? restorePointInTime = default(System.DateTime?), ManagedInstanceProxyOverride? proxyOverride = default(ManagedInstanceProxyOverride?), string timezoneId = default(string), string instancePoolId = default(string), string maintenanceConfigurationId = default(string), string minimalTlsVersion = default(string), StorageAccountType? storageAccountType = default(StorageAccountType?)) : base(location, id, name, type, tags) { Identity = identity; @@ -181,7 +181,7 @@ public ManagedInstance() /// 'Default', 'PointInTimeRestore' /// [JsonProperty(PropertyName = "properties.managedInstanceCreateMode")] - public string ManagedInstanceCreateMode { get; set; } + public ManagedServerCreateMode? ManagedInstanceCreateMode { get; set; } /// /// Gets the fully qualified domain name of the managed instance. @@ -223,7 +223,7 @@ public ManagedInstance() /// licenses). Possible values include: 'LicenseIncluded', 'BasePrice' /// [JsonProperty(PropertyName = "properties.licenseType")] - public string LicenseType { get; set; } + public ManagedInstanceLicenseType? LicenseType { get; set; } /// /// Gets or sets the number of vCores. Allowed values: 8, 16, 24, 32, @@ -283,7 +283,7 @@ public ManagedInstance() /// Possible values include: 'Proxy', 'Redirect', 'Default' /// [JsonProperty(PropertyName = "properties.proxyOverride")] - public string ProxyOverride { get; set; } + public ManagedInstanceProxyOverride? ProxyOverride { get; set; } /// /// Gets or sets id of the timezone. Allowed values are timezones @@ -330,7 +330,7 @@ public ManagedInstance() /// values include: 'GRS', 'LRS', 'ZRS' /// [JsonProperty(PropertyName = "properties.storageAccountType")] - public string StorageAccountType { get; set; } + public StorageAccountType? StorageAccountType { get; set; } /// /// Validate the object. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceEncryptionProtector.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceEncryptionProtector.cs index 10a41136245f..73de91c7a668 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceEncryptionProtector.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceEncryptionProtector.cs @@ -46,7 +46,7 @@ public ManagedInstanceEncryptionProtector() /// key. /// The URI of the server key. /// Thumbprint of the server key. - public ManagedInstanceEncryptionProtector(string serverKeyType, string id = default(string), string name = default(string), string type = default(string), string kind = default(string), string serverKeyName = default(string), string uri = default(string), string thumbprint = default(string)) + public ManagedInstanceEncryptionProtector(ServerKeyType serverKeyType, string id = default(string), string name = default(string), string type = default(string), string kind = default(string), string serverKeyName = default(string), string uri = default(string), string thumbprint = default(string)) : base(id, name, type) { Kind = kind; @@ -81,7 +81,7 @@ public ManagedInstanceEncryptionProtector() /// 'AzureKeyVault' /// [JsonProperty(PropertyName = "properties.serverKeyType")] - public string ServerKeyType { get; set; } + public ServerKeyType ServerKeyType { get; set; } /// /// Gets the URI of the server key. @@ -103,10 +103,6 @@ public ManagedInstanceEncryptionProtector() /// public virtual void Validate() { - if (ServerKeyType == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "ServerKeyType"); - } } } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceKey.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceKey.cs index da6ab159a907..b4bd7e381580 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceKey.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceKey.cs @@ -44,7 +44,7 @@ public ManagedInstanceKey() /// AzureKeyVault, then the URI is required. /// Thumbprint of the key. /// The key creation date. - public ManagedInstanceKey(string serverKeyType, string id = default(string), string name = default(string), string type = default(string), string kind = default(string), string uri = default(string), string thumbprint = default(string), System.DateTime? creationDate = default(System.DateTime?)) + public ManagedInstanceKey(ServerKeyType serverKeyType, string id = default(string), string name = default(string), string type = default(string), string kind = default(string), string uri = default(string), string thumbprint = default(string), System.DateTime? creationDate = default(System.DateTime?)) : base(id, name, type) { Kind = kind; @@ -72,7 +72,7 @@ public ManagedInstanceKey() /// Possible values include: 'ServiceManaged', 'AzureKeyVault' /// [JsonProperty(PropertyName = "properties.serverKeyType")] - public string ServerKeyType { get; set; } + public ServerKeyType ServerKeyType { get; set; } /// /// Gets or sets the URI of the key. If the ServerKeyType is @@ -101,10 +101,6 @@ public ManagedInstanceKey() /// public virtual void Validate() { - if (ServerKeyType == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "ServerKeyType"); - } } } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceLicenseType.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceLicenseType.cs index 518832b8e90d..40cc37539f93 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceLicenseType.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceLicenseType.cs @@ -10,13 +10,96 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for ManagedInstanceLicenseType. /// - public static class ManagedInstanceLicenseType + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(ManagedInstanceLicenseTypeConverter))] + public struct ManagedInstanceLicenseType : System.IEquatable { - public const string LicenseIncluded = "LicenseIncluded"; - public const string BasePrice = "BasePrice"; + private ManagedInstanceLicenseType(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly ManagedInstanceLicenseType LicenseIncluded = "LicenseIncluded"; + + public static readonly ManagedInstanceLicenseType BasePrice = "BasePrice"; + + + /// + /// Underlying value of enum ManagedInstanceLicenseType + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for ManagedInstanceLicenseType + /// + public override string ToString() + { + return UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type ManagedInstanceLicenseType + /// + public bool Equals(ManagedInstanceLicenseType e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to ManagedInstanceLicenseType + /// + public static implicit operator ManagedInstanceLicenseType(string value) + { + return new ManagedInstanceLicenseType(value); + } + + /// + /// Implicit operator to convert ManagedInstanceLicenseType to string + /// + public static implicit operator string(ManagedInstanceLicenseType e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum ManagedInstanceLicenseType + /// + public static bool operator == (ManagedInstanceLicenseType e1, ManagedInstanceLicenseType e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum ManagedInstanceLicenseType + /// + public static bool operator != (ManagedInstanceLicenseType e1, ManagedInstanceLicenseType e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for ManagedInstanceLicenseType + /// + public override bool Equals(object obj) + { + return obj is ManagedInstanceLicenseType && Equals((ManagedInstanceLicenseType)obj); + } + + /// + /// Returns for hashCode ManagedInstanceLicenseType + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceLicenseTypeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceLicenseTypeConverter.cs new file mode 100644 index 000000000000..3299377a282e --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceLicenseTypeConverter.cs @@ -0,0 +1,55 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for ManagedInstanceLicenseType. + /// + public sealed class ManagedInstanceLicenseTypeConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to + /// ManagedInstanceLicenseType by the converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(ManagedInstanceLicenseType).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to + /// ManagedInstanceLicenseType. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (ManagedInstanceLicenseType)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for ManagedInstanceLicenseType for + /// serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceOperation.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceOperation.cs index bcec42027099..9c408ac62043 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceOperation.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceOperation.cs @@ -59,7 +59,7 @@ public ManagedInstanceOperation() /// cancelled. /// The operation parameters. /// The operation steps. - public ManagedInstanceOperation(string id = default(string), string name = default(string), string type = default(string), string managedInstanceName = default(string), string operation = default(string), string operationFriendlyName = default(string), int? percentComplete = default(int?), System.DateTime? startTime = default(System.DateTime?), string state = default(string), int? errorCode = default(int?), string errorDescription = default(string), int? errorSeverity = default(int?), bool? isUserError = default(bool?), System.DateTime? estimatedCompletionTime = default(System.DateTime?), string description = default(string), bool? isCancellable = default(bool?), ManagedInstanceOperationParametersPair operationParameters = default(ManagedInstanceOperationParametersPair), ManagedInstanceOperationSteps operationSteps = default(ManagedInstanceOperationSteps)) + public ManagedInstanceOperation(string id = default(string), string name = default(string), string type = default(string), string managedInstanceName = default(string), string operation = default(string), string operationFriendlyName = default(string), int? percentComplete = default(int?), System.DateTime? startTime = default(System.DateTime?), ManagementOperationState? state = default(ManagementOperationState?), int? errorCode = default(int?), string errorDescription = default(string), int? errorSeverity = default(int?), bool? isUserError = default(bool?), System.DateTime? estimatedCompletionTime = default(System.DateTime?), string description = default(string), bool? isCancellable = default(bool?), ManagedInstanceOperationParametersPair operationParameters = default(ManagedInstanceOperationParametersPair), ManagedInstanceOperationSteps operationSteps = default(ManagedInstanceOperationSteps)) : base(id, name, type) { ManagedInstanceName = managedInstanceName; @@ -122,7 +122,7 @@ public ManagedInstanceOperation() /// 'Cancelled' /// [JsonProperty(PropertyName = "properties.state")] - public string State { get; private set; } + public ManagementOperationState? State { get; private set; } /// /// Gets the operation error code. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceProxyOverride.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceProxyOverride.cs index dd6d2f660269..ca55ea27c5b1 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceProxyOverride.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceProxyOverride.cs @@ -10,14 +10,98 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for ManagedInstanceProxyOverride. /// - public static class ManagedInstanceProxyOverride + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(ManagedInstanceProxyOverrideConverter))] + public struct ManagedInstanceProxyOverride : System.IEquatable { - public const string Proxy = "Proxy"; - public const string Redirect = "Redirect"; - public const string Default = "Default"; + private ManagedInstanceProxyOverride(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly ManagedInstanceProxyOverride Proxy = "Proxy"; + + public static readonly ManagedInstanceProxyOverride Redirect = "Redirect"; + + public static readonly ManagedInstanceProxyOverride Default = "Default"; + + + /// + /// Underlying value of enum ManagedInstanceProxyOverride + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for ManagedInstanceProxyOverride + /// + public override string ToString() + { + return UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type ManagedInstanceProxyOverride + /// + public bool Equals(ManagedInstanceProxyOverride e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to ManagedInstanceProxyOverride + /// + public static implicit operator ManagedInstanceProxyOverride(string value) + { + return new ManagedInstanceProxyOverride(value); + } + + /// + /// Implicit operator to convert ManagedInstanceProxyOverride to string + /// + public static implicit operator string(ManagedInstanceProxyOverride e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum ManagedInstanceProxyOverride + /// + public static bool operator == (ManagedInstanceProxyOverride e1, ManagedInstanceProxyOverride e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum ManagedInstanceProxyOverride + /// + public static bool operator != (ManagedInstanceProxyOverride e1, ManagedInstanceProxyOverride e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for ManagedInstanceProxyOverride + /// + public override bool Equals(object obj) + { + return obj is ManagedInstanceProxyOverride && Equals((ManagedInstanceProxyOverride)obj); + } + + /// + /// Returns for hashCode ManagedInstanceProxyOverride + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceProxyOverrideConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceProxyOverrideConverter.cs new file mode 100644 index 000000000000..bf7fbf0f8b03 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceProxyOverrideConverter.cs @@ -0,0 +1,55 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for ManagedInstanceProxyOverride. + /// + public sealed class ManagedInstanceProxyOverrideConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to + /// ManagedInstanceProxyOverride by the converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(ManagedInstanceProxyOverride).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to + /// ManagedInstanceProxyOverride. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (ManagedInstanceProxyOverride)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for ManagedInstanceProxyOverride for + /// serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceUpdate.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceUpdate.cs index ee021f2b815c..612e4dad5760 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceUpdate.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceUpdate.cs @@ -107,7 +107,7 @@ public ManagedInstanceUpdate() /// (GeoRedundantStorage). Possible values include: 'GRS', 'LRS', /// 'ZRS' /// Resource tags. - public ManagedInstanceUpdate(Sku sku = default(Sku), string provisioningState = default(string), string managedInstanceCreateMode = default(string), string fullyQualifiedDomainName = default(string), string administratorLogin = default(string), string administratorLoginPassword = default(string), string subnetId = default(string), string state = default(string), string licenseType = default(string), int? vCores = default(int?), int? storageSizeInGB = default(int?), string collation = default(string), string dnsZone = default(string), string dnsZonePartner = default(string), bool? publicDataEndpointEnabled = default(bool?), string sourceManagedInstanceId = default(string), System.DateTime? restorePointInTime = default(System.DateTime?), string proxyOverride = default(string), string timezoneId = default(string), string instancePoolId = default(string), string maintenanceConfigurationId = default(string), string minimalTlsVersion = default(string), string storageAccountType = default(string), IDictionary tags = default(IDictionary)) + public ManagedInstanceUpdate(Sku sku = default(Sku), string provisioningState = default(string), ManagedServerCreateMode? managedInstanceCreateMode = default(ManagedServerCreateMode?), string fullyQualifiedDomainName = default(string), string administratorLogin = default(string), string administratorLoginPassword = default(string), string subnetId = default(string), string state = default(string), ManagedInstanceLicenseType? licenseType = default(ManagedInstanceLicenseType?), int? vCores = default(int?), int? storageSizeInGB = default(int?), string collation = default(string), string dnsZone = default(string), string dnsZonePartner = default(string), bool? publicDataEndpointEnabled = default(bool?), string sourceManagedInstanceId = default(string), System.DateTime? restorePointInTime = default(System.DateTime?), ManagedInstanceProxyOverride? proxyOverride = default(ManagedInstanceProxyOverride?), string timezoneId = default(string), string instancePoolId = default(string), string maintenanceConfigurationId = default(string), string minimalTlsVersion = default(string), StorageAccountType? storageAccountType = default(StorageAccountType?), IDictionary tags = default(IDictionary)) { Sku = sku; ProvisioningState = provisioningState; @@ -165,7 +165,7 @@ public ManagedInstanceUpdate() /// 'Default', 'PointInTimeRestore' /// [JsonProperty(PropertyName = "properties.managedInstanceCreateMode")] - public string ManagedInstanceCreateMode { get; set; } + public ManagedServerCreateMode? ManagedInstanceCreateMode { get; set; } /// /// Gets the fully qualified domain name of the managed instance. @@ -207,7 +207,7 @@ public ManagedInstanceUpdate() /// licenses). Possible values include: 'LicenseIncluded', 'BasePrice' /// [JsonProperty(PropertyName = "properties.licenseType")] - public string LicenseType { get; set; } + public ManagedInstanceLicenseType? LicenseType { get; set; } /// /// Gets or sets the number of vCores. Allowed values: 8, 16, 24, 32, @@ -267,7 +267,7 @@ public ManagedInstanceUpdate() /// Possible values include: 'Proxy', 'Redirect', 'Default' /// [JsonProperty(PropertyName = "properties.proxyOverride")] - public string ProxyOverride { get; set; } + public ManagedInstanceProxyOverride? ProxyOverride { get; set; } /// /// Gets or sets id of the timezone. Allowed values are timezones @@ -314,7 +314,7 @@ public ManagedInstanceUpdate() /// values include: 'GRS', 'LRS', 'ZRS' /// [JsonProperty(PropertyName = "properties.storageAccountType")] - public string StorageAccountType { get; set; } + public StorageAccountType? StorageAccountType { get; set; } /// /// Gets or sets resource tags. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedServerCreateMode.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedServerCreateMode.cs index 141db5dae3f7..6d1ca26a908f 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedServerCreateMode.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedServerCreateMode.cs @@ -10,13 +10,96 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for ManagedServerCreateMode. /// - public static class ManagedServerCreateMode + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(ManagedServerCreateModeConverter))] + public struct ManagedServerCreateMode : System.IEquatable { - public const string Default = "Default"; - public const string PointInTimeRestore = "PointInTimeRestore"; + private ManagedServerCreateMode(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly ManagedServerCreateMode Default = "Default"; + + public static readonly ManagedServerCreateMode PointInTimeRestore = "PointInTimeRestore"; + + + /// + /// Underlying value of enum ManagedServerCreateMode + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for ManagedServerCreateMode + /// + public override string ToString() + { + return UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type ManagedServerCreateMode + /// + public bool Equals(ManagedServerCreateMode e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to ManagedServerCreateMode + /// + public static implicit operator ManagedServerCreateMode(string value) + { + return new ManagedServerCreateMode(value); + } + + /// + /// Implicit operator to convert ManagedServerCreateMode to string + /// + public static implicit operator string(ManagedServerCreateMode e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum ManagedServerCreateMode + /// + public static bool operator == (ManagedServerCreateMode e1, ManagedServerCreateMode e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum ManagedServerCreateMode + /// + public static bool operator != (ManagedServerCreateMode e1, ManagedServerCreateMode e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for ManagedServerCreateMode + /// + public override bool Equals(object obj) + { + return obj is ManagedServerCreateMode && Equals((ManagedServerCreateMode)obj); + } + + /// + /// Returns for hashCode ManagedServerCreateMode + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedServerCreateModeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedServerCreateModeConverter.cs new file mode 100644 index 000000000000..a634f8a5f8d9 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedServerCreateModeConverter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for ManagedServerCreateMode. + /// + public sealed class ManagedServerCreateModeConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to ManagedServerCreateMode + /// by the converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(ManagedServerCreateMode).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to ManagedServerCreateMode. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (ManagedServerCreateMode)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for ManagedServerCreateMode for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagementOperationState.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagementOperationState.cs index 5cc2d5460636..14fd4ea107c3 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagementOperationState.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagementOperationState.cs @@ -10,17 +10,104 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for ManagementOperationState. /// - public static class ManagementOperationState + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(ManagementOperationStateConverter))] + public struct ManagementOperationState : System.IEquatable { - public const string Pending = "Pending"; - public const string InProgress = "InProgress"; - public const string Succeeded = "Succeeded"; - public const string Failed = "Failed"; - public const string CancelInProgress = "CancelInProgress"; - public const string Cancelled = "Cancelled"; + private ManagementOperationState(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly ManagementOperationState Pending = "Pending"; + + public static readonly ManagementOperationState InProgress = "InProgress"; + + public static readonly ManagementOperationState Succeeded = "Succeeded"; + + public static readonly ManagementOperationState Failed = "Failed"; + + public static readonly ManagementOperationState CancelInProgress = "CancelInProgress"; + + public static readonly ManagementOperationState Cancelled = "Cancelled"; + + + /// + /// Underlying value of enum ManagementOperationState + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for ManagementOperationState + /// + public override string ToString() + { + return UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type ManagementOperationState + /// + public bool Equals(ManagementOperationState e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to ManagementOperationState + /// + public static implicit operator ManagementOperationState(string value) + { + return new ManagementOperationState(value); + } + + /// + /// Implicit operator to convert ManagementOperationState to string + /// + public static implicit operator string(ManagementOperationState e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum ManagementOperationState + /// + public static bool operator == (ManagementOperationState e1, ManagementOperationState e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum ManagementOperationState + /// + public static bool operator != (ManagementOperationState e1, ManagementOperationState e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for ManagementOperationState + /// + public override bool Equals(object obj) + { + return obj is ManagementOperationState && Equals((ManagementOperationState)obj); + } + + /// + /// Returns for hashCode ManagementOperationState + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagementOperationStateConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagementOperationStateConverter.cs new file mode 100644 index 000000000000..a3d6452f16a0 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagementOperationStateConverter.cs @@ -0,0 +1,54 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for ManagementOperationState. + /// + public sealed class ManagementOperationStateConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to ManagementOperationState + /// by the converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(ManagementOperationState).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to ManagementOperationState. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (ManagementOperationState)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for ManagementOperationState for + /// serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/MaxSizeCapability.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/MaxSizeCapability.cs index e0475eee1066..def373f39d61 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/MaxSizeCapability.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/MaxSizeCapability.cs @@ -34,7 +34,7 @@ public MaxSizeCapability() /// The units that the limit is expressed in. /// Possible values include: 'Megabytes', 'Gigabytes', 'Terabytes', /// 'Petabytes' - public MaxSizeCapability(int? limit = default(int?), string unit = default(string)) + public MaxSizeCapability(int? limit = default(int?), MaxSizeUnit? unit = default(MaxSizeUnit?)) { Limit = limit; Unit = unit; @@ -57,7 +57,7 @@ public MaxSizeCapability() /// include: 'Megabytes', 'Gigabytes', 'Terabytes', 'Petabytes' /// [JsonProperty(PropertyName = "unit")] - public string Unit { get; private set; } + public MaxSizeUnit? Unit { get; private set; } } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/MaxSizeUnit.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/MaxSizeUnit.cs index cdf8f43bfd5c..96177a14eaa8 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/MaxSizeUnit.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/MaxSizeUnit.cs @@ -10,15 +10,100 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for MaxSizeUnit. /// - public static class MaxSizeUnit + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(MaxSizeUnitConverter))] + public struct MaxSizeUnit : System.IEquatable { - public const string Megabytes = "Megabytes"; - public const string Gigabytes = "Gigabytes"; - public const string Terabytes = "Terabytes"; - public const string Petabytes = "Petabytes"; + private MaxSizeUnit(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly MaxSizeUnit Megabytes = "Megabytes"; + + public static readonly MaxSizeUnit Gigabytes = "Gigabytes"; + + public static readonly MaxSizeUnit Terabytes = "Terabytes"; + + public static readonly MaxSizeUnit Petabytes = "Petabytes"; + + + /// + /// Underlying value of enum MaxSizeUnit + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for MaxSizeUnit + /// + public override string ToString() + { + return UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type MaxSizeUnit + /// + public bool Equals(MaxSizeUnit e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to MaxSizeUnit + /// + public static implicit operator MaxSizeUnit(string value) + { + return new MaxSizeUnit(value); + } + + /// + /// Implicit operator to convert MaxSizeUnit to string + /// + public static implicit operator string(MaxSizeUnit e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum MaxSizeUnit + /// + public static bool operator == (MaxSizeUnit e1, MaxSizeUnit e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum MaxSizeUnit + /// + public static bool operator != (MaxSizeUnit e1, MaxSizeUnit e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for MaxSizeUnit + /// + public override bool Equals(object obj) + { + return obj is MaxSizeUnit && Equals((MaxSizeUnit)obj); + } + + /// + /// Returns for hashCode MaxSizeUnit + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/MaxSizeUnitConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/MaxSizeUnitConverter.cs new file mode 100644 index 000000000000..a63443040350 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/MaxSizeUnitConverter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for MaxSizeUnit. + /// + public sealed class MaxSizeUnitConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to MaxSizeUnit by the + /// converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(MaxSizeUnit).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to MaxSizeUnit. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (MaxSizeUnit)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for MaxSizeUnit for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/Metric.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/Metric.cs index c2f7e0249613..f81d6baa6b56 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/Metric.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/Metric.cs @@ -43,7 +43,7 @@ public Metric() /// The name information for the metric. /// The metric values for the specified time /// window and timestep. - public Metric(System.DateTime? startTime = default(System.DateTime?), System.DateTime? endTime = default(System.DateTime?), string timeGrain = default(string), string unit = default(string), MetricName name = default(MetricName), IList metricValues = default(IList)) + public Metric(System.DateTime? startTime = default(System.DateTime?), System.DateTime? endTime = default(System.DateTime?), string timeGrain = default(string), UnitType? unit = default(UnitType?), MetricName name = default(MetricName), IList metricValues = default(IList)) { StartTime = startTime; EndTime = endTime; @@ -82,7 +82,7 @@ public Metric() /// 'bytes', 'seconds', 'percent', 'countPerSecond', 'bytesPerSecond' /// [JsonProperty(PropertyName = "unit")] - public string Unit { get; private set; } + public UnitType? Unit { get; private set; } /// /// Gets the name information for the metric. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/MetricDefinition.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/MetricDefinition.cs index 5bd07c0d50f1..dc33003c3588 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/MetricDefinition.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/MetricDefinition.cs @@ -41,7 +41,7 @@ public MetricDefinition() /// 'BytesPerSecond' /// The list of database metric /// availabilities for the metric. - public MetricDefinition(MetricName name = default(MetricName), string primaryAggregationType = default(string), string resourceUri = default(string), string unit = default(string), IList metricAvailabilities = default(IList)) + public MetricDefinition(MetricName name = default(MetricName), PrimaryAggregationType? primaryAggregationType = default(PrimaryAggregationType?), string resourceUri = default(string), UnitDefinitionType? unit = default(UnitDefinitionType?), IList metricAvailabilities = default(IList)) { Name = name; PrimaryAggregationType = primaryAggregationType; @@ -68,7 +68,7 @@ public MetricDefinition() /// 'Minimum', 'Maximum', 'Total' /// [JsonProperty(PropertyName = "primaryAggregationType")] - public string PrimaryAggregationType { get; private set; } + public PrimaryAggregationType? PrimaryAggregationType { get; private set; } /// /// Gets the resource uri of the database. @@ -81,7 +81,7 @@ public MetricDefinition() /// 'Bytes', 'Seconds', 'Percent', 'CountPerSecond', 'BytesPerSecond' /// [JsonProperty(PropertyName = "unit")] - public string Unit { get; private set; } + public UnitDefinitionType? Unit { get; private set; } /// /// Gets the list of database metric availabilities for the metric. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/Operation.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/Operation.cs index fcf0b7b48dbc..d6f75827c8ff 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/Operation.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/Operation.cs @@ -39,7 +39,7 @@ public Operation() /// Possible values include: 'user', 'system' /// Additional descriptions for the /// operation. - public Operation(string name = default(string), OperationDisplay display = default(OperationDisplay), string origin = default(string), IDictionary properties = default(IDictionary)) + public Operation(string name = default(string), OperationDisplay display = default(OperationDisplay), OperationOrigin? origin = default(OperationOrigin?), IDictionary properties = default(IDictionary)) { Name = name; Display = display; @@ -72,7 +72,7 @@ public Operation() /// include: 'user', 'system' /// [JsonProperty(PropertyName = "origin")] - public string Origin { get; private set; } + public OperationOrigin? Origin { get; private set; } /// /// Gets additional descriptions for the operation. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/OperationOrigin.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/OperationOrigin.cs index 4d779e5b4c1a..350fa72bba26 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/OperationOrigin.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/OperationOrigin.cs @@ -10,13 +10,96 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for OperationOrigin. /// - public static class OperationOrigin + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(OperationOriginConverter))] + public struct OperationOrigin : System.IEquatable { - public const string User = "user"; - public const string System = "system"; + private OperationOrigin(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly OperationOrigin User = "user"; + + public static readonly OperationOrigin System = "system"; + + + /// + /// Underlying value of enum OperationOrigin + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for OperationOrigin + /// + public override string ToString() + { + return UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type OperationOrigin + /// + public bool Equals(OperationOrigin e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to OperationOrigin + /// + public static implicit operator OperationOrigin(string value) + { + return new OperationOrigin(value); + } + + /// + /// Implicit operator to convert OperationOrigin to string + /// + public static implicit operator string(OperationOrigin e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum OperationOrigin + /// + public static bool operator == (OperationOrigin e1, OperationOrigin e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum OperationOrigin + /// + public static bool operator != (OperationOrigin e1, OperationOrigin e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for OperationOrigin + /// + public override bool Equals(object obj) + { + return obj is OperationOrigin && Equals((OperationOrigin)obj); + } + + /// + /// Returns for hashCode OperationOrigin + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/OperationOriginConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/OperationOriginConverter.cs new file mode 100644 index 000000000000..4375b48232c9 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/OperationOriginConverter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for OperationOrigin. + /// + public sealed class OperationOriginConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to OperationOrigin by the + /// converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(OperationOrigin).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to OperationOrigin. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (OperationOrigin)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for OperationOrigin for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PartnerInfo.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PartnerInfo.cs index 440a5d14a763..e6fe406b738d 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PartnerInfo.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PartnerInfo.cs @@ -34,7 +34,7 @@ public PartnerInfo() /// Geo location of the partner server. /// Replication role of the partner /// server. Possible values include: 'Primary', 'Secondary' - public PartnerInfo(string id, string location = default(string), string replicationRole = default(string)) + public PartnerInfo(string id, string location = default(string), FailoverGroupReplicationRole? replicationRole = default(FailoverGroupReplicationRole?)) { Id = id; Location = location; @@ -64,7 +64,7 @@ public PartnerInfo() /// include: 'Primary', 'Secondary' /// [JsonProperty(PropertyName = "replicationRole")] - public string ReplicationRole { get; private set; } + public FailoverGroupReplicationRole? ReplicationRole { get; private set; } /// /// Validate the object. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PartnerRegionInfo.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PartnerRegionInfo.cs index 4835389285ef..a816aa9c042f 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PartnerRegionInfo.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PartnerRegionInfo.cs @@ -34,7 +34,7 @@ public PartnerRegionInfo() /// Replication role of the partner /// managed instances. Possible values include: 'Primary', /// 'Secondary' - public PartnerRegionInfo(string location = default(string), string replicationRole = default(string)) + public PartnerRegionInfo(string location = default(string), InstanceFailoverGroupReplicationRole? replicationRole = default(InstanceFailoverGroupReplicationRole?)) { Location = location; ReplicationRole = replicationRole; @@ -57,7 +57,7 @@ public PartnerRegionInfo() /// values include: 'Primary', 'Secondary' /// [JsonProperty(PropertyName = "replicationRole")] - public string ReplicationRole { get; private set; } + public InstanceFailoverGroupReplicationRole? ReplicationRole { get; private set; } } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PauseDelayTimeUnit.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PauseDelayTimeUnit.cs index 3f1dbe1e042c..caa8340bbd93 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PauseDelayTimeUnit.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PauseDelayTimeUnit.cs @@ -10,12 +10,94 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for PauseDelayTimeUnit. /// - public static class PauseDelayTimeUnit + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(PauseDelayTimeUnitConverter))] + public struct PauseDelayTimeUnit : System.IEquatable { - public const string Minutes = "Minutes"; + private PauseDelayTimeUnit(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly PauseDelayTimeUnit Minutes = "Minutes"; + + + /// + /// Underlying value of enum PauseDelayTimeUnit + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for PauseDelayTimeUnit + /// + public override string ToString() + { + return UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type PauseDelayTimeUnit + /// + public bool Equals(PauseDelayTimeUnit e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to PauseDelayTimeUnit + /// + public static implicit operator PauseDelayTimeUnit(string value) + { + return new PauseDelayTimeUnit(value); + } + + /// + /// Implicit operator to convert PauseDelayTimeUnit to string + /// + public static implicit operator string(PauseDelayTimeUnit e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum PauseDelayTimeUnit + /// + public static bool operator == (PauseDelayTimeUnit e1, PauseDelayTimeUnit e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum PauseDelayTimeUnit + /// + public static bool operator != (PauseDelayTimeUnit e1, PauseDelayTimeUnit e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for PauseDelayTimeUnit + /// + public override bool Equals(object obj) + { + return obj is PauseDelayTimeUnit && Equals((PauseDelayTimeUnit)obj); + } + + /// + /// Returns for hashCode PauseDelayTimeUnit + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PauseDelayTimeUnitConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PauseDelayTimeUnitConverter.cs new file mode 100644 index 000000000000..13ba249919e9 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PauseDelayTimeUnitConverter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for PauseDelayTimeUnit. + /// + public sealed class PauseDelayTimeUnitConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to PauseDelayTimeUnit by the + /// converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(PauseDelayTimeUnit).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to PauseDelayTimeUnit. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (PauseDelayTimeUnit)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for PauseDelayTimeUnit for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PerformanceLevelCapability.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PerformanceLevelCapability.cs index 8b04656c9b9c..5e0493983703 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PerformanceLevelCapability.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PerformanceLevelCapability.cs @@ -32,7 +32,7 @@ public PerformanceLevelCapability() /// Performance level value. /// Unit type used to measure performance level. /// Possible values include: 'DTU', 'VCores' - public PerformanceLevelCapability(double? value = default(double?), string unit = default(string)) + public PerformanceLevelCapability(double? value = default(double?), PerformanceLevelUnit? unit = default(PerformanceLevelUnit?)) { Value = value; Unit = unit; @@ -55,7 +55,7 @@ public PerformanceLevelCapability() /// include: 'DTU', 'VCores' /// [JsonProperty(PropertyName = "unit")] - public string Unit { get; private set; } + public PerformanceLevelUnit? Unit { get; private set; } } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PerformanceLevelUnit.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PerformanceLevelUnit.cs index 8eb843ed2bc3..a115b6322345 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PerformanceLevelUnit.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PerformanceLevelUnit.cs @@ -10,13 +10,96 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for PerformanceLevelUnit. /// - public static class PerformanceLevelUnit + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(PerformanceLevelUnitConverter))] + public struct PerformanceLevelUnit : System.IEquatable { - public const string DTU = "DTU"; - public const string VCores = "VCores"; + private PerformanceLevelUnit(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly PerformanceLevelUnit DTU = "DTU"; + + public static readonly PerformanceLevelUnit VCores = "VCores"; + + + /// + /// Underlying value of enum PerformanceLevelUnit + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for PerformanceLevelUnit + /// + public override string ToString() + { + return UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type PerformanceLevelUnit + /// + public bool Equals(PerformanceLevelUnit e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to PerformanceLevelUnit + /// + public static implicit operator PerformanceLevelUnit(string value) + { + return new PerformanceLevelUnit(value); + } + + /// + /// Implicit operator to convert PerformanceLevelUnit to string + /// + public static implicit operator string(PerformanceLevelUnit e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum PerformanceLevelUnit + /// + public static bool operator == (PerformanceLevelUnit e1, PerformanceLevelUnit e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum PerformanceLevelUnit + /// + public static bool operator != (PerformanceLevelUnit e1, PerformanceLevelUnit e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for PerformanceLevelUnit + /// + public override bool Equals(object obj) + { + return obj is PerformanceLevelUnit && Equals((PerformanceLevelUnit)obj); + } + + /// + /// Returns for hashCode PerformanceLevelUnit + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PerformanceLevelUnitConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PerformanceLevelUnitConverter.cs new file mode 100644 index 000000000000..3d58b1c585e4 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PerformanceLevelUnitConverter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for PerformanceLevelUnit. + /// + public sealed class PerformanceLevelUnitConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to PerformanceLevelUnit by + /// the converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(PerformanceLevelUnit).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to PerformanceLevelUnit. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (PerformanceLevelUnit)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for PerformanceLevelUnit for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrimaryAggregationType.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrimaryAggregationType.cs index d863b177f680..fc710e285372 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrimaryAggregationType.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrimaryAggregationType.cs @@ -10,17 +10,104 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for PrimaryAggregationType. /// - public static class PrimaryAggregationType + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(PrimaryAggregationTypeConverter))] + public struct PrimaryAggregationType : System.IEquatable { - public const string None = "None"; - public const string Average = "Average"; - public const string Count = "Count"; - public const string Minimum = "Minimum"; - public const string Maximum = "Maximum"; - public const string Total = "Total"; + private PrimaryAggregationType(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly PrimaryAggregationType None = "None"; + + public static readonly PrimaryAggregationType Average = "Average"; + + public static readonly PrimaryAggregationType Count = "Count"; + + public static readonly PrimaryAggregationType Minimum = "Minimum"; + + public static readonly PrimaryAggregationType Maximum = "Maximum"; + + public static readonly PrimaryAggregationType Total = "Total"; + + + /// + /// Underlying value of enum PrimaryAggregationType + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for PrimaryAggregationType + /// + public override string ToString() + { + return UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type PrimaryAggregationType + /// + public bool Equals(PrimaryAggregationType e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to PrimaryAggregationType + /// + public static implicit operator PrimaryAggregationType(string value) + { + return new PrimaryAggregationType(value); + } + + /// + /// Implicit operator to convert PrimaryAggregationType to string + /// + public static implicit operator string(PrimaryAggregationType e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum PrimaryAggregationType + /// + public static bool operator == (PrimaryAggregationType e1, PrimaryAggregationType e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum PrimaryAggregationType + /// + public static bool operator != (PrimaryAggregationType e1, PrimaryAggregationType e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for PrimaryAggregationType + /// + public override bool Equals(object obj) + { + return obj is PrimaryAggregationType && Equals((PrimaryAggregationType)obj); + } + + /// + /// Returns for hashCode PrimaryAggregationType + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrimaryAggregationTypeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrimaryAggregationTypeConverter.cs new file mode 100644 index 000000000000..72fcf7333fdf --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrimaryAggregationTypeConverter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for PrimaryAggregationType. + /// + public sealed class PrimaryAggregationTypeConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to PrimaryAggregationType by + /// the converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(PrimaryAggregationType).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to PrimaryAggregationType. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (PrimaryAggregationType)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for PrimaryAggregationType for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateEndpointConnection.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateEndpointConnection.cs index 1e5b5bd72283..7d429e5f86b5 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateEndpointConnection.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateEndpointConnection.cs @@ -42,7 +42,7 @@ public PrivateEndpointConnection() /// State of the private endpoint /// connection. Possible values include: 'Approving', 'Ready', /// 'Dropping', 'Failed', 'Rejecting' - public PrivateEndpointConnection(string id = default(string), string name = default(string), string type = default(string), PrivateEndpointProperty privateEndpoint = default(PrivateEndpointProperty), PrivateLinkServiceConnectionStateProperty privateLinkServiceConnectionState = default(PrivateLinkServiceConnectionStateProperty), string provisioningState = default(string)) + public PrivateEndpointConnection(string id = default(string), string name = default(string), string type = default(string), PrivateEndpointProperty privateEndpoint = default(PrivateEndpointProperty), PrivateLinkServiceConnectionStateProperty privateLinkServiceConnectionState = default(PrivateLinkServiceConnectionStateProperty), PrivateEndpointProvisioningState? provisioningState = default(PrivateEndpointProvisioningState?)) : base(id, name, type) { PrivateEndpoint = privateEndpoint; @@ -73,7 +73,7 @@ public PrivateEndpointConnection() /// include: 'Approving', 'Ready', 'Dropping', 'Failed', 'Rejecting' /// [JsonProperty(PropertyName = "properties.provisioningState")] - public string ProvisioningState { get; private set; } + public PrivateEndpointProvisioningState? ProvisioningState { get; private set; } /// /// Validate the object. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateEndpointConnectionProperties.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateEndpointConnectionProperties.cs index 86d661659397..09f479a5dad3 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateEndpointConnectionProperties.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateEndpointConnectionProperties.cs @@ -38,7 +38,7 @@ public PrivateEndpointConnectionProperties() /// State of the private endpoint /// connection. Possible values include: 'Approving', 'Ready', /// 'Dropping', 'Failed', 'Rejecting' - public PrivateEndpointConnectionProperties(PrivateEndpointProperty privateEndpoint = default(PrivateEndpointProperty), PrivateLinkServiceConnectionStateProperty privateLinkServiceConnectionState = default(PrivateLinkServiceConnectionStateProperty), string provisioningState = default(string)) + public PrivateEndpointConnectionProperties(PrivateEndpointProperty privateEndpoint = default(PrivateEndpointProperty), PrivateLinkServiceConnectionStateProperty privateLinkServiceConnectionState = default(PrivateLinkServiceConnectionStateProperty), PrivateEndpointProvisioningState? provisioningState = default(PrivateEndpointProvisioningState?)) { PrivateEndpoint = privateEndpoint; PrivateLinkServiceConnectionState = privateLinkServiceConnectionState; @@ -68,7 +68,7 @@ public PrivateEndpointConnectionProperties() /// include: 'Approving', 'Ready', 'Dropping', 'Failed', 'Rejecting' /// [JsonProperty(PropertyName = "provisioningState")] - public string ProvisioningState { get; private set; } + public PrivateEndpointProvisioningState? ProvisioningState { get; private set; } /// /// Validate the object. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateEndpointProvisioningState.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateEndpointProvisioningState.cs index 8b51147cfcf2..13b8474b6d40 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateEndpointProvisioningState.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateEndpointProvisioningState.cs @@ -10,16 +10,104 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for PrivateEndpointProvisioningState. /// - public static class PrivateEndpointProvisioningState + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(PrivateEndpointProvisioningStateConverter))] + public struct PrivateEndpointProvisioningState : System.IEquatable { - public const string Approving = "Approving"; - public const string Ready = "Ready"; - public const string Dropping = "Dropping"; - public const string Failed = "Failed"; - public const string Rejecting = "Rejecting"; + private PrivateEndpointProvisioningState(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly PrivateEndpointProvisioningState Approving = "Approving"; + + public static readonly PrivateEndpointProvisioningState Ready = "Ready"; + + public static readonly PrivateEndpointProvisioningState Dropping = "Dropping"; + + public static readonly PrivateEndpointProvisioningState Failed = "Failed"; + + public static readonly PrivateEndpointProvisioningState Rejecting = "Rejecting"; + + + /// + /// Underlying value of enum PrivateEndpointProvisioningState + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for PrivateEndpointProvisioningState + /// + public override string ToString() + { + return UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type PrivateEndpointProvisioningState + /// + public bool Equals(PrivateEndpointProvisioningState e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to + /// PrivateEndpointProvisioningState + /// + public static implicit operator PrivateEndpointProvisioningState(string value) + { + return new PrivateEndpointProvisioningState(value); + } + + /// + /// Implicit operator to convert PrivateEndpointProvisioningState to + /// string + /// + public static implicit operator string(PrivateEndpointProvisioningState e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum PrivateEndpointProvisioningState + /// + public static bool operator == (PrivateEndpointProvisioningState e1, PrivateEndpointProvisioningState e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum PrivateEndpointProvisioningState + /// + public static bool operator != (PrivateEndpointProvisioningState e1, PrivateEndpointProvisioningState e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for PrivateEndpointProvisioningState + /// + public override bool Equals(object obj) + { + return obj is PrivateEndpointProvisioningState && Equals((PrivateEndpointProvisioningState)obj); + } + + /// + /// Returns for hashCode PrivateEndpointProvisioningState + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateEndpointProvisioningStateConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateEndpointProvisioningStateConverter.cs new file mode 100644 index 000000000000..4aba156c0b1e --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateEndpointProvisioningStateConverter.cs @@ -0,0 +1,55 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for PrivateEndpointProvisioningState. + /// + public sealed class PrivateEndpointProvisioningStateConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to + /// PrivateEndpointProvisioningState by the converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(PrivateEndpointProvisioningState).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to + /// PrivateEndpointProvisioningState. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (PrivateEndpointProvisioningState)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for PrivateEndpointProvisioningState for + /// serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateLinkServiceConnectionStateActionsRequire.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateLinkServiceConnectionStateActionsRequire.cs index 65076ffb9e33..9d4f37c6de77 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateLinkServiceConnectionStateActionsRequire.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateLinkServiceConnectionStateActionsRequire.cs @@ -10,12 +10,103 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for PrivateLinkServiceConnectionStateActionsRequire. /// - public static class PrivateLinkServiceConnectionStateActionsRequire + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(PrivateLinkServiceConnectionStateActionsRequireConverter))] + public struct PrivateLinkServiceConnectionStateActionsRequire : System.IEquatable { - public const string None = "None"; + private PrivateLinkServiceConnectionStateActionsRequire(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly PrivateLinkServiceConnectionStateActionsRequire None = "None"; + + + /// + /// Underlying value of enum + /// PrivateLinkServiceConnectionStateActionsRequire + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for + /// PrivateLinkServiceConnectionStateActionsRequire + /// + public override string ToString() + { + return UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type + /// PrivateLinkServiceConnectionStateActionsRequire + /// + public bool Equals(PrivateLinkServiceConnectionStateActionsRequire e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to + /// PrivateLinkServiceConnectionStateActionsRequire + /// + public static implicit operator PrivateLinkServiceConnectionStateActionsRequire(string value) + { + return new PrivateLinkServiceConnectionStateActionsRequire(value); + } + + /// + /// Implicit operator to convert + /// PrivateLinkServiceConnectionStateActionsRequire to string + /// + public static implicit operator string(PrivateLinkServiceConnectionStateActionsRequire e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum + /// PrivateLinkServiceConnectionStateActionsRequire + /// + public static bool operator == (PrivateLinkServiceConnectionStateActionsRequire e1, PrivateLinkServiceConnectionStateActionsRequire e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum + /// PrivateLinkServiceConnectionStateActionsRequire + /// + public static bool operator != (PrivateLinkServiceConnectionStateActionsRequire e1, PrivateLinkServiceConnectionStateActionsRequire e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for + /// PrivateLinkServiceConnectionStateActionsRequire + /// + public override bool Equals(object obj) + { + return obj is PrivateLinkServiceConnectionStateActionsRequire && Equals((PrivateLinkServiceConnectionStateActionsRequire)obj); + } + + /// + /// Returns for hashCode + /// PrivateLinkServiceConnectionStateActionsRequire + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateLinkServiceConnectionStateActionsRequireConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateLinkServiceConnectionStateActionsRequireConverter.cs new file mode 100644 index 000000000000..11ba9fac5962 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateLinkServiceConnectionStateActionsRequireConverter.cs @@ -0,0 +1,55 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for PrivateLinkServiceConnectionStateActionsRequire. + /// + public sealed class PrivateLinkServiceConnectionStateActionsRequireConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to + /// PrivateLinkServiceConnectionStateActionsRequire by the converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(PrivateLinkServiceConnectionStateActionsRequire).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to + /// PrivateLinkServiceConnectionStateActionsRequire. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (PrivateLinkServiceConnectionStateActionsRequire)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for + /// PrivateLinkServiceConnectionStateActionsRequire for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateLinkServiceConnectionStateProperty.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateLinkServiceConnectionStateProperty.cs index b37af54682f7..35c59ae42bc3 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateLinkServiceConnectionStateProperty.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateLinkServiceConnectionStateProperty.cs @@ -36,7 +36,7 @@ public PrivateLinkServiceConnectionStateProperty() /// description. /// The actions required for private link /// service connection. Possible values include: 'None' - public PrivateLinkServiceConnectionStateProperty(string status, string description, string actionsRequired = default(string)) + public PrivateLinkServiceConnectionStateProperty(PrivateLinkServiceConnectionStateStatus status, string description, PrivateLinkServiceConnectionStateActionsRequire? actionsRequired = default(PrivateLinkServiceConnectionStateActionsRequire?)) { Status = status; Description = description; @@ -54,7 +54,7 @@ public PrivateLinkServiceConnectionStateProperty() /// values include: 'Approved', 'Pending', 'Rejected', 'Disconnected' /// [JsonProperty(PropertyName = "status")] - public string Status { get; set; } + public PrivateLinkServiceConnectionStateStatus Status { get; set; } /// /// Gets or sets the private link service connection description. @@ -67,7 +67,7 @@ public PrivateLinkServiceConnectionStateProperty() /// Possible values include: 'None' /// [JsonProperty(PropertyName = "actionsRequired")] - public string ActionsRequired { get; private set; } + public PrivateLinkServiceConnectionStateActionsRequire? ActionsRequired { get; private set; } /// /// Validate the object. @@ -77,10 +77,6 @@ public PrivateLinkServiceConnectionStateProperty() /// public virtual void Validate() { - if (Status == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Status"); - } if (Description == null) { throw new ValidationException(ValidationRules.CannotBeNull, "Description"); diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateLinkServiceConnectionStateStatus.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateLinkServiceConnectionStateStatus.cs index 625f7c0aed92..8a205f8eb4b8 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateLinkServiceConnectionStateStatus.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateLinkServiceConnectionStateStatus.cs @@ -10,15 +10,106 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for PrivateLinkServiceConnectionStateStatus. /// - public static class PrivateLinkServiceConnectionStateStatus + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(PrivateLinkServiceConnectionStateStatusConverter))] + public struct PrivateLinkServiceConnectionStateStatus : System.IEquatable { - public const string Approved = "Approved"; - public const string Pending = "Pending"; - public const string Rejected = "Rejected"; - public const string Disconnected = "Disconnected"; + private PrivateLinkServiceConnectionStateStatus(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly PrivateLinkServiceConnectionStateStatus Approved = "Approved"; + + public static readonly PrivateLinkServiceConnectionStateStatus Pending = "Pending"; + + public static readonly PrivateLinkServiceConnectionStateStatus Rejected = "Rejected"; + + public static readonly PrivateLinkServiceConnectionStateStatus Disconnected = "Disconnected"; + + + /// + /// Underlying value of enum PrivateLinkServiceConnectionStateStatus + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for + /// PrivateLinkServiceConnectionStateStatus + /// + public override string ToString() + { + return UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type PrivateLinkServiceConnectionStateStatus + /// + public bool Equals(PrivateLinkServiceConnectionStateStatus e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to + /// PrivateLinkServiceConnectionStateStatus + /// + public static implicit operator PrivateLinkServiceConnectionStateStatus(string value) + { + return new PrivateLinkServiceConnectionStateStatus(value); + } + + /// + /// Implicit operator to convert + /// PrivateLinkServiceConnectionStateStatus to string + /// + public static implicit operator string(PrivateLinkServiceConnectionStateStatus e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum + /// PrivateLinkServiceConnectionStateStatus + /// + public static bool operator == (PrivateLinkServiceConnectionStateStatus e1, PrivateLinkServiceConnectionStateStatus e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum + /// PrivateLinkServiceConnectionStateStatus + /// + public static bool operator != (PrivateLinkServiceConnectionStateStatus e1, PrivateLinkServiceConnectionStateStatus e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for + /// PrivateLinkServiceConnectionStateStatus + /// + public override bool Equals(object obj) + { + return obj is PrivateLinkServiceConnectionStateStatus && Equals((PrivateLinkServiceConnectionStateStatus)obj); + } + + /// + /// Returns for hashCode PrivateLinkServiceConnectionStateStatus + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateLinkServiceConnectionStateStatusConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateLinkServiceConnectionStateStatusConverter.cs new file mode 100644 index 000000000000..5b6c95b39411 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateLinkServiceConnectionStateStatusConverter.cs @@ -0,0 +1,55 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for PrivateLinkServiceConnectionStateStatus. + /// + public sealed class PrivateLinkServiceConnectionStateStatusConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to + /// PrivateLinkServiceConnectionStateStatus by the converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(PrivateLinkServiceConnectionStateStatus).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to + /// PrivateLinkServiceConnectionStateStatus. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (PrivateLinkServiceConnectionStateStatus)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for PrivateLinkServiceConnectionStateStatus + /// for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ProvisioningState.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ProvisioningState.cs index 86dff5006da9..ac6c1d688463 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ProvisioningState.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ProvisioningState.cs @@ -10,16 +10,102 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for ProvisioningState. /// - public static class ProvisioningState + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(ProvisioningStateConverter))] + public struct ProvisioningState : System.IEquatable { - public const string Created = "Created"; - public const string InProgress = "InProgress"; - public const string Succeeded = "Succeeded"; - public const string Failed = "Failed"; - public const string Canceled = "Canceled"; + private ProvisioningState(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly ProvisioningState Created = "Created"; + + public static readonly ProvisioningState InProgress = "InProgress"; + + public static readonly ProvisioningState Succeeded = "Succeeded"; + + public static readonly ProvisioningState Failed = "Failed"; + + public static readonly ProvisioningState Canceled = "Canceled"; + + + /// + /// Underlying value of enum ProvisioningState + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for ProvisioningState + /// + public override string ToString() + { + return UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type ProvisioningState + /// + public bool Equals(ProvisioningState e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to ProvisioningState + /// + public static implicit operator ProvisioningState(string value) + { + return new ProvisioningState(value); + } + + /// + /// Implicit operator to convert ProvisioningState to string + /// + public static implicit operator string(ProvisioningState e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum ProvisioningState + /// + public static bool operator == (ProvisioningState e1, ProvisioningState e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum ProvisioningState + /// + public static bool operator != (ProvisioningState e1, ProvisioningState e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for ProvisioningState + /// + public override bool Equals(object obj) + { + return obj is ProvisioningState && Equals((ProvisioningState)obj); + } + + /// + /// Returns for hashCode ProvisioningState + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ProvisioningStateConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ProvisioningStateConverter.cs new file mode 100644 index 000000000000..1daf14e3574a --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ProvisioningStateConverter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for ProvisioningState. + /// + public sealed class ProvisioningStateConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to ProvisioningState by the + /// converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(ProvisioningState).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to ProvisioningState. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (ProvisioningState)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for ProvisioningState for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReadOnlyEndpointFailoverPolicy.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReadOnlyEndpointFailoverPolicy.cs index 4d78fadf1980..6ceb6583de86 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReadOnlyEndpointFailoverPolicy.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReadOnlyEndpointFailoverPolicy.cs @@ -10,13 +10,98 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for ReadOnlyEndpointFailoverPolicy. /// - public static class ReadOnlyEndpointFailoverPolicy + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(ReadOnlyEndpointFailoverPolicyConverter))] + public struct ReadOnlyEndpointFailoverPolicy : System.IEquatable { - public const string Disabled = "Disabled"; - public const string Enabled = "Enabled"; + private ReadOnlyEndpointFailoverPolicy(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly ReadOnlyEndpointFailoverPolicy Disabled = "Disabled"; + + public static readonly ReadOnlyEndpointFailoverPolicy Enabled = "Enabled"; + + + /// + /// Underlying value of enum ReadOnlyEndpointFailoverPolicy + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for ReadOnlyEndpointFailoverPolicy + /// + public override string ToString() + { + return UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type ReadOnlyEndpointFailoverPolicy + /// + public bool Equals(ReadOnlyEndpointFailoverPolicy e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to + /// ReadOnlyEndpointFailoverPolicy + /// + public static implicit operator ReadOnlyEndpointFailoverPolicy(string value) + { + return new ReadOnlyEndpointFailoverPolicy(value); + } + + /// + /// Implicit operator to convert ReadOnlyEndpointFailoverPolicy to + /// string + /// + public static implicit operator string(ReadOnlyEndpointFailoverPolicy e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum ReadOnlyEndpointFailoverPolicy + /// + public static bool operator == (ReadOnlyEndpointFailoverPolicy e1, ReadOnlyEndpointFailoverPolicy e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum ReadOnlyEndpointFailoverPolicy + /// + public static bool operator != (ReadOnlyEndpointFailoverPolicy e1, ReadOnlyEndpointFailoverPolicy e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for ReadOnlyEndpointFailoverPolicy + /// + public override bool Equals(object obj) + { + return obj is ReadOnlyEndpointFailoverPolicy && Equals((ReadOnlyEndpointFailoverPolicy)obj); + } + + /// + /// Returns for hashCode ReadOnlyEndpointFailoverPolicy + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReadOnlyEndpointFailoverPolicyConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReadOnlyEndpointFailoverPolicyConverter.cs new file mode 100644 index 000000000000..f2b2352a5cee --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReadOnlyEndpointFailoverPolicyConverter.cs @@ -0,0 +1,55 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for ReadOnlyEndpointFailoverPolicy. + /// + public sealed class ReadOnlyEndpointFailoverPolicyConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to + /// ReadOnlyEndpointFailoverPolicy by the converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(ReadOnlyEndpointFailoverPolicy).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to + /// ReadOnlyEndpointFailoverPolicy. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (ReadOnlyEndpointFailoverPolicy)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for ReadOnlyEndpointFailoverPolicy for + /// serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReadWriteEndpointFailoverPolicy.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReadWriteEndpointFailoverPolicy.cs index 1ea812a89b20..08e2db05c2e7 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReadWriteEndpointFailoverPolicy.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReadWriteEndpointFailoverPolicy.cs @@ -10,13 +10,98 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for ReadWriteEndpointFailoverPolicy. /// - public static class ReadWriteEndpointFailoverPolicy + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(ReadWriteEndpointFailoverPolicyConverter))] + public struct ReadWriteEndpointFailoverPolicy : System.IEquatable { - public const string Manual = "Manual"; - public const string Automatic = "Automatic"; + private ReadWriteEndpointFailoverPolicy(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly ReadWriteEndpointFailoverPolicy Manual = "Manual"; + + public static readonly ReadWriteEndpointFailoverPolicy Automatic = "Automatic"; + + + /// + /// Underlying value of enum ReadWriteEndpointFailoverPolicy + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for ReadWriteEndpointFailoverPolicy + /// + public override string ToString() + { + return UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type ReadWriteEndpointFailoverPolicy + /// + public bool Equals(ReadWriteEndpointFailoverPolicy e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to + /// ReadWriteEndpointFailoverPolicy + /// + public static implicit operator ReadWriteEndpointFailoverPolicy(string value) + { + return new ReadWriteEndpointFailoverPolicy(value); + } + + /// + /// Implicit operator to convert ReadWriteEndpointFailoverPolicy to + /// string + /// + public static implicit operator string(ReadWriteEndpointFailoverPolicy e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum ReadWriteEndpointFailoverPolicy + /// + public static bool operator == (ReadWriteEndpointFailoverPolicy e1, ReadWriteEndpointFailoverPolicy e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum ReadWriteEndpointFailoverPolicy + /// + public static bool operator != (ReadWriteEndpointFailoverPolicy e1, ReadWriteEndpointFailoverPolicy e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for ReadWriteEndpointFailoverPolicy + /// + public override bool Equals(object obj) + { + return obj is ReadWriteEndpointFailoverPolicy && Equals((ReadWriteEndpointFailoverPolicy)obj); + } + + /// + /// Returns for hashCode ReadWriteEndpointFailoverPolicy + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReadWriteEndpointFailoverPolicyConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReadWriteEndpointFailoverPolicyConverter.cs new file mode 100644 index 000000000000..953d3b242b00 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReadWriteEndpointFailoverPolicyConverter.cs @@ -0,0 +1,55 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for ReadWriteEndpointFailoverPolicy. + /// + public sealed class ReadWriteEndpointFailoverPolicyConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to + /// ReadWriteEndpointFailoverPolicy by the converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(ReadWriteEndpointFailoverPolicy).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to + /// ReadWriteEndpointFailoverPolicy. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (ReadWriteEndpointFailoverPolicy)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for ReadWriteEndpointFailoverPolicy for + /// serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/RecommendedElasticPool.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/RecommendedElasticPool.cs index 64bc89c9d26f..ee7c2e27ec44 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/RecommendedElasticPool.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/RecommendedElasticPool.cs @@ -58,7 +58,7 @@ public RecommendedElasticPool() /// Expanded property /// The list of databases housed in the server. /// Expanded property - public RecommendedElasticPool(string id = default(string), string name = default(string), string type = default(string), string databaseEdition = default(string), double? dtu = default(double?), double? databaseDtuMin = default(double?), double? databaseDtuMax = default(double?), double? storageMB = default(double?), System.DateTime? observationPeriodStart = default(System.DateTime?), System.DateTime? observationPeriodEnd = default(System.DateTime?), double? maxObservedDtu = default(double?), double? maxObservedStorageMB = default(double?), IList databases = default(IList), IList metrics = default(IList)) + public RecommendedElasticPool(string id = default(string), string name = default(string), string type = default(string), ElasticPoolEdition? databaseEdition = default(ElasticPoolEdition?), double? dtu = default(double?), double? databaseDtuMin = default(double?), double? databaseDtuMax = default(double?), double? storageMB = default(double?), System.DateTime? observationPeriodStart = default(System.DateTime?), System.DateTime? observationPeriodEnd = default(System.DateTime?), double? maxObservedDtu = default(double?), double? maxObservedStorageMB = default(double?), IList databases = default(IList), IList metrics = default(IList)) : base(id, name, type) { DatabaseEdition = databaseEdition; @@ -87,7 +87,7 @@ public RecommendedElasticPool() /// 'GeneralPurpose', 'BusinessCritical' /// [JsonProperty(PropertyName = "properties.databaseEdition")] - public string DatabaseEdition { get; private set; } + public ElasticPoolEdition? DatabaseEdition { get; private set; } /// /// Gets or sets the DTU for the recommended elastic pool. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReplicaType.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReplicaType.cs index f7a52812ab85..2050f79eaa5e 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReplicaType.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReplicaType.cs @@ -10,13 +10,96 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for ReplicaType. /// - public static class ReplicaType + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(ReplicaTypeConverter))] + public struct ReplicaType : System.IEquatable { - public const string Primary = "Primary"; - public const string ReadableSecondary = "ReadableSecondary"; + private ReplicaType(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly ReplicaType Primary = "Primary"; + + public static readonly ReplicaType ReadableSecondary = "ReadableSecondary"; + + + /// + /// Underlying value of enum ReplicaType + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for ReplicaType + /// + public override string ToString() + { + return UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type ReplicaType + /// + public bool Equals(ReplicaType e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to ReplicaType + /// + public static implicit operator ReplicaType(string value) + { + return new ReplicaType(value); + } + + /// + /// Implicit operator to convert ReplicaType to string + /// + public static implicit operator string(ReplicaType e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum ReplicaType + /// + public static bool operator == (ReplicaType e1, ReplicaType e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum ReplicaType + /// + public static bool operator != (ReplicaType e1, ReplicaType e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for ReplicaType + /// + public override bool Equals(object obj) + { + return obj is ReplicaType && Equals((ReplicaType)obj); + } + + /// + /// Returns for hashCode ReplicaType + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReplicaTypeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReplicaTypeConverter.cs new file mode 100644 index 000000000000..2dc81d8fbb2b --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReplicaTypeConverter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for ReplicaType. + /// + public sealed class ReplicaTypeConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to ReplicaType by the + /// converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(ReplicaType).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to ReplicaType. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (ReplicaType)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for ReplicaType for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReplicationLink.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReplicationLink.cs index 0d886828bfad..d1de4fb55e02 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReplicationLink.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReplicationLink.cs @@ -60,7 +60,7 @@ public ReplicationLink() /// The replication state for the /// replication link. Possible values include: 'PENDING', 'SEEDING', /// 'CATCH_UP', 'SUSPENDED' - public ReplicationLink(string id = default(string), string name = default(string), string type = default(string), string location = default(string), bool? isTerminationAllowed = default(bool?), string replicationMode = default(string), string partnerServer = default(string), string partnerDatabase = default(string), string partnerLocation = default(string), ReplicationRole? role = default(ReplicationRole?), ReplicationRole? partnerRole = default(ReplicationRole?), System.DateTime? startTime = default(System.DateTime?), int? percentComplete = default(int?), string replicationState = default(string)) + public ReplicationLink(string id = default(string), string name = default(string), string type = default(string), string location = default(string), bool? isTerminationAllowed = default(bool?), string replicationMode = default(string), string partnerServer = default(string), string partnerDatabase = default(string), string partnerLocation = default(string), ReplicationRole? role = default(ReplicationRole?), ReplicationRole? partnerRole = default(ReplicationRole?), System.DateTime? startTime = default(System.DateTime?), int? percentComplete = default(int?), ReplicationState? replicationState = default(ReplicationState?)) : base(id, name, type) { Location = location; @@ -152,7 +152,7 @@ public ReplicationLink() /// values include: 'PENDING', 'SEEDING', 'CATCH_UP', 'SUSPENDED' /// [JsonProperty(PropertyName = "properties.replicationState")] - public string ReplicationState { get; private set; } + public ReplicationState? ReplicationState { get; private set; } } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReplicationState.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReplicationState.cs index 067c14bdb345..e84297c1c21a 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReplicationState.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReplicationState.cs @@ -10,15 +10,100 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for ReplicationState. /// - public static class ReplicationState + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(ReplicationStateConverter))] + public struct ReplicationState : System.IEquatable { - public const string PENDING = "PENDING"; - public const string SEEDING = "SEEDING"; - public const string CATCHUP = "CATCH_UP"; - public const string SUSPENDED = "SUSPENDED"; + private ReplicationState(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly ReplicationState PENDING = "PENDING"; + + public static readonly ReplicationState SEEDING = "SEEDING"; + + public static readonly ReplicationState CATCHUP = "CATCH_UP"; + + public static readonly ReplicationState SUSPENDED = "SUSPENDED"; + + + /// + /// Underlying value of enum ReplicationState + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for ReplicationState + /// + public override string ToString() + { + return UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type ReplicationState + /// + public bool Equals(ReplicationState e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to ReplicationState + /// + public static implicit operator ReplicationState(string value) + { + return new ReplicationState(value); + } + + /// + /// Implicit operator to convert ReplicationState to string + /// + public static implicit operator string(ReplicationState e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum ReplicationState + /// + public static bool operator == (ReplicationState e1, ReplicationState e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum ReplicationState + /// + public static bool operator != (ReplicationState e1, ReplicationState e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for ReplicationState + /// + public override bool Equals(object obj) + { + return obj is ReplicationState && Equals((ReplicationState)obj); + } + + /// + /// Returns for hashCode ReplicationState + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReplicationStateConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReplicationStateConverter.cs new file mode 100644 index 000000000000..37a054974228 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReplicationStateConverter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for ReplicationState. + /// + public sealed class ReplicationStateConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to ReplicationState by the + /// converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(ReplicationState).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to ReplicationState. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (ReplicationState)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for ReplicationState for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ResourceIdentity.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ResourceIdentity.cs index d3f9595700d3..5fbf0848c174 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ResourceIdentity.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ResourceIdentity.cs @@ -37,7 +37,7 @@ public ResourceIdentity() /// 'SystemAssigned' /// The Azure Active Directory tenant /// id. - public ResourceIdentity(System.Guid? principalId = default(System.Guid?), string type = default(string), System.Guid? tenantId = default(System.Guid?)) + public ResourceIdentity(System.Guid? principalId = default(System.Guid?), IdentityType? type = default(IdentityType?), System.Guid? tenantId = default(System.Guid?)) { PrincipalId = principalId; Type = type; @@ -63,7 +63,7 @@ public ResourceIdentity() /// 'SystemAssigned' /// [JsonProperty(PropertyName = "type")] - public string Type { get; set; } + public IdentityType? Type { get; set; } /// /// Gets the Azure Active Directory tenant id. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SampleName.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SampleName.cs index 92a7ff7a1560..6f400bda716c 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SampleName.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SampleName.cs @@ -10,14 +10,98 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for SampleName. /// - public static class SampleName + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(SampleNameConverter))] + public struct SampleName : System.IEquatable { - public const string AdventureWorksLT = "AdventureWorksLT"; - public const string WideWorldImportersStd = "WideWorldImportersStd"; - public const string WideWorldImportersFull = "WideWorldImportersFull"; + private SampleName(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly SampleName AdventureWorksLT = "AdventureWorksLT"; + + public static readonly SampleName WideWorldImportersStd = "WideWorldImportersStd"; + + public static readonly SampleName WideWorldImportersFull = "WideWorldImportersFull"; + + + /// + /// Underlying value of enum SampleName + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for SampleName + /// + public override string ToString() + { + return UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type SampleName + /// + public bool Equals(SampleName e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to SampleName + /// + public static implicit operator SampleName(string value) + { + return new SampleName(value); + } + + /// + /// Implicit operator to convert SampleName to string + /// + public static implicit operator string(SampleName e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum SampleName + /// + public static bool operator == (SampleName e1, SampleName e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum SampleName + /// + public static bool operator != (SampleName e1, SampleName e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for SampleName + /// + public override bool Equals(object obj) + { + return obj is SampleName && Equals((SampleName)obj); + } + + /// + /// Returns for hashCode SampleName + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SampleNameConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SampleNameConverter.cs new file mode 100644 index 000000000000..fb7b9b68f517 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SampleNameConverter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for SampleName. + /// + public sealed class SampleNameConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to SampleName by the + /// converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(SampleName).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to SampleName. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (SampleName)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for SampleName for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/Server.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/Server.cs index ceb028f78c6f..e7b9dc14b8f5 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/Server.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/Server.cs @@ -59,7 +59,7 @@ public Server() /// access is allowed for this server. Value is optional but if passed /// in, must be 'Enabled' or 'Disabled'. Possible values include: /// 'Enabled', 'Disabled' - public Server(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), ResourceIdentity identity = default(ResourceIdentity), string kind = default(string), string administratorLogin = default(string), string administratorLoginPassword = default(string), string version = default(string), string state = default(string), string fullyQualifiedDomainName = default(string), IList privateEndpointConnections = default(IList), string minimalTlsVersion = default(string), string publicNetworkAccess = default(string)) + public Server(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), ResourceIdentity identity = default(ResourceIdentity), string kind = default(string), string administratorLogin = default(string), string administratorLoginPassword = default(string), string version = default(string), string state = default(string), string fullyQualifiedDomainName = default(string), IList privateEndpointConnections = default(IList), string minimalTlsVersion = default(string), ServerPublicNetworkAccess? publicNetworkAccess = default(ServerPublicNetworkAccess?)) : base(location, id, name, type, tags) { Identity = identity; @@ -144,7 +144,7 @@ public Server() /// or 'Disabled'. Possible values include: 'Enabled', 'Disabled' /// [JsonProperty(PropertyName = "properties.publicNetworkAccess")] - public string PublicNetworkAccess { get; set; } + public ServerPublicNetworkAccess? PublicNetworkAccess { get; set; } /// /// Validate the object. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServerKey.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServerKey.cs index 75567c92ac7e..ec2a227780a5 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServerKey.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServerKey.cs @@ -45,7 +45,7 @@ public ServerKey() /// The URI of the server key. /// Thumbprint of the server key. /// The server key creation date. - public ServerKey(string serverKeyType, string id = default(string), string name = default(string), string type = default(string), string kind = default(string), string location = default(string), string subregion = default(string), string uri = default(string), string thumbprint = default(string), System.DateTime? creationDate = default(System.DateTime?)) + public ServerKey(ServerKeyType serverKeyType, string id = default(string), string name = default(string), string type = default(string), string kind = default(string), string location = default(string), string subregion = default(string), string uri = default(string), string thumbprint = default(string), System.DateTime? creationDate = default(System.DateTime?)) : base(id, name, type) { Kind = kind; @@ -88,7 +88,7 @@ public ServerKey() /// 'AzureKeyVault' /// [JsonProperty(PropertyName = "properties.serverKeyType")] - public string ServerKeyType { get; set; } + public ServerKeyType ServerKeyType { get; set; } /// /// Gets or sets the URI of the server key. @@ -116,10 +116,6 @@ public ServerKey() /// public virtual void Validate() { - if (ServerKeyType == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "ServerKeyType"); - } } } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServerKeyType.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServerKeyType.cs index 3358ddccad1e..9c0f2dcd8226 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServerKeyType.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServerKeyType.cs @@ -10,13 +10,96 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for ServerKeyType. /// - public static class ServerKeyType + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(ServerKeyTypeConverter))] + public struct ServerKeyType : System.IEquatable { - public const string ServiceManaged = "ServiceManaged"; - public const string AzureKeyVault = "AzureKeyVault"; + private ServerKeyType(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly ServerKeyType ServiceManaged = "ServiceManaged"; + + public static readonly ServerKeyType AzureKeyVault = "AzureKeyVault"; + + + /// + /// Underlying value of enum ServerKeyType + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for ServerKeyType + /// + public override string ToString() + { + return UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type ServerKeyType + /// + public bool Equals(ServerKeyType e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to ServerKeyType + /// + public static implicit operator ServerKeyType(string value) + { + return new ServerKeyType(value); + } + + /// + /// Implicit operator to convert ServerKeyType to string + /// + public static implicit operator string(ServerKeyType e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum ServerKeyType + /// + public static bool operator == (ServerKeyType e1, ServerKeyType e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum ServerKeyType + /// + public static bool operator != (ServerKeyType e1, ServerKeyType e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for ServerKeyType + /// + public override bool Equals(object obj) + { + return obj is ServerKeyType && Equals((ServerKeyType)obj); + } + + /// + /// Returns for hashCode ServerKeyType + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServerKeyTypeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServerKeyTypeConverter.cs new file mode 100644 index 000000000000..eaaa4bf4d7cf --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServerKeyTypeConverter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for ServerKeyType. + /// + public sealed class ServerKeyTypeConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to ServerKeyType by the + /// converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(ServerKeyType).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to ServerKeyType. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (ServerKeyType)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for ServerKeyType for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServerPublicNetworkAccess.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServerPublicNetworkAccess.cs index 6b611e0db6a3..58c6df5bf2c8 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServerPublicNetworkAccess.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServerPublicNetworkAccess.cs @@ -10,13 +10,96 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for ServerPublicNetworkAccess. /// - public static class ServerPublicNetworkAccess + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(ServerPublicNetworkAccessConverter))] + public struct ServerPublicNetworkAccess : System.IEquatable { - public const string Enabled = "Enabled"; - public const string Disabled = "Disabled"; + private ServerPublicNetworkAccess(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly ServerPublicNetworkAccess Enabled = "Enabled"; + + public static readonly ServerPublicNetworkAccess Disabled = "Disabled"; + + + /// + /// Underlying value of enum ServerPublicNetworkAccess + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for ServerPublicNetworkAccess + /// + public override string ToString() + { + return UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type ServerPublicNetworkAccess + /// + public bool Equals(ServerPublicNetworkAccess e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to ServerPublicNetworkAccess + /// + public static implicit operator ServerPublicNetworkAccess(string value) + { + return new ServerPublicNetworkAccess(value); + } + + /// + /// Implicit operator to convert ServerPublicNetworkAccess to string + /// + public static implicit operator string(ServerPublicNetworkAccess e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum ServerPublicNetworkAccess + /// + public static bool operator == (ServerPublicNetworkAccess e1, ServerPublicNetworkAccess e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum ServerPublicNetworkAccess + /// + public static bool operator != (ServerPublicNetworkAccess e1, ServerPublicNetworkAccess e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for ServerPublicNetworkAccess + /// + public override bool Equals(object obj) + { + return obj is ServerPublicNetworkAccess && Equals((ServerPublicNetworkAccess)obj); + } + + /// + /// Returns for hashCode ServerPublicNetworkAccess + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServerPublicNetworkAccessConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServerPublicNetworkAccessConverter.cs new file mode 100644 index 000000000000..bd8c40a3ddfc --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServerPublicNetworkAccessConverter.cs @@ -0,0 +1,54 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for ServerPublicNetworkAccess. + /// + public sealed class ServerPublicNetworkAccessConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to ServerPublicNetworkAccess + /// by the converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(ServerPublicNetworkAccess).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to ServerPublicNetworkAccess. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (ServerPublicNetworkAccess)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for ServerPublicNetworkAccess for + /// serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServerUpdate.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServerUpdate.cs index cd86344ea902..3131ab12bf44 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServerUpdate.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServerUpdate.cs @@ -51,7 +51,7 @@ public ServerUpdate() /// in, must be 'Enabled' or 'Disabled'. Possible values include: /// 'Enabled', 'Disabled' /// Resource tags. - public ServerUpdate(string administratorLogin = default(string), string administratorLoginPassword = default(string), string version = default(string), string state = default(string), string fullyQualifiedDomainName = default(string), IList privateEndpointConnections = default(IList), string minimalTlsVersion = default(string), string publicNetworkAccess = default(string), IDictionary tags = default(IDictionary)) + public ServerUpdate(string administratorLogin = default(string), string administratorLoginPassword = default(string), string version = default(string), string state = default(string), string fullyQualifiedDomainName = default(string), IList privateEndpointConnections = default(IList), string minimalTlsVersion = default(string), ServerPublicNetworkAccess? publicNetworkAccess = default(ServerPublicNetworkAccess?), IDictionary tags = default(IDictionary)) { AdministratorLogin = administratorLogin; AdministratorLoginPassword = administratorLoginPassword; @@ -121,7 +121,7 @@ public ServerUpdate() /// or 'Disabled'. Possible values include: 'Enabled', 'Disabled' /// [JsonProperty(PropertyName = "properties.publicNetworkAccess")] - public string PublicNetworkAccess { get; set; } + public ServerPublicNetworkAccess? PublicNetworkAccess { get; set; } /// /// Gets or sets resource tags. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServiceObjectiveName.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServiceObjectiveName.cs index befe17ba9bbf..86c882966c9c 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServiceObjectiveName.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServiceObjectiveName.cs @@ -10,76 +10,222 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for ServiceObjectiveName. /// - public static class ServiceObjectiveName + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(ServiceObjectiveNameConverter))] + public struct ServiceObjectiveName : System.IEquatable { - public const string System = "System"; - public const string System0 = "System0"; - public const string System1 = "System1"; - public const string System2 = "System2"; - public const string System3 = "System3"; - public const string System4 = "System4"; - public const string System2L = "System2L"; - public const string System3L = "System3L"; - public const string System4L = "System4L"; - public const string Free = "Free"; - public const string Basic = "Basic"; - public const string S0 = "S0"; - public const string S1 = "S1"; - public const string S2 = "S2"; - public const string S3 = "S3"; - public const string S4 = "S4"; - public const string S6 = "S6"; - public const string S7 = "S7"; - public const string S9 = "S9"; - public const string S12 = "S12"; - public const string P1 = "P1"; - public const string P2 = "P2"; - public const string P3 = "P3"; - public const string P4 = "P4"; - public const string P6 = "P6"; - public const string P11 = "P11"; - public const string P15 = "P15"; - public const string PRS1 = "PRS1"; - public const string PRS2 = "PRS2"; - public const string PRS4 = "PRS4"; - public const string PRS6 = "PRS6"; - public const string DW100 = "DW100"; - public const string DW200 = "DW200"; - public const string DW300 = "DW300"; - public const string DW400 = "DW400"; - public const string DW500 = "DW500"; - public const string DW600 = "DW600"; - public const string DW1000 = "DW1000"; - public const string DW1200 = "DW1200"; - public const string DW1000c = "DW1000c"; - public const string DW1500 = "DW1500"; - public const string DW1500c = "DW1500c"; - public const string DW2000 = "DW2000"; - public const string DW2000c = "DW2000c"; - public const string DW3000 = "DW3000"; - public const string DW2500c = "DW2500c"; - public const string DW3000c = "DW3000c"; - public const string DW6000 = "DW6000"; - public const string DW5000c = "DW5000c"; - public const string DW6000c = "DW6000c"; - public const string DW7500c = "DW7500c"; - public const string DW10000c = "DW10000c"; - public const string DW15000c = "DW15000c"; - public const string DW30000c = "DW30000c"; - public const string DS100 = "DS100"; - public const string DS200 = "DS200"; - public const string DS300 = "DS300"; - public const string DS400 = "DS400"; - public const string DS500 = "DS500"; - public const string DS600 = "DS600"; - public const string DS1000 = "DS1000"; - public const string DS1200 = "DS1200"; - public const string DS1500 = "DS1500"; - public const string DS2000 = "DS2000"; - public const string ElasticPool = "ElasticPool"; + private ServiceObjectiveName(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly ServiceObjectiveName System = "System"; + + public static readonly ServiceObjectiveName System0 = "System0"; + + public static readonly ServiceObjectiveName System1 = "System1"; + + public static readonly ServiceObjectiveName System2 = "System2"; + + public static readonly ServiceObjectiveName System3 = "System3"; + + public static readonly ServiceObjectiveName System4 = "System4"; + + public static readonly ServiceObjectiveName System2L = "System2L"; + + public static readonly ServiceObjectiveName System3L = "System3L"; + + public static readonly ServiceObjectiveName System4L = "System4L"; + + public static readonly ServiceObjectiveName Free = "Free"; + + public static readonly ServiceObjectiveName Basic = "Basic"; + + public static readonly ServiceObjectiveName S0 = "S0"; + + public static readonly ServiceObjectiveName S1 = "S1"; + + public static readonly ServiceObjectiveName S2 = "S2"; + + public static readonly ServiceObjectiveName S3 = "S3"; + + public static readonly ServiceObjectiveName S4 = "S4"; + + public static readonly ServiceObjectiveName S6 = "S6"; + + public static readonly ServiceObjectiveName S7 = "S7"; + + public static readonly ServiceObjectiveName S9 = "S9"; + + public static readonly ServiceObjectiveName S12 = "S12"; + + public static readonly ServiceObjectiveName P1 = "P1"; + + public static readonly ServiceObjectiveName P2 = "P2"; + + public static readonly ServiceObjectiveName P3 = "P3"; + + public static readonly ServiceObjectiveName P4 = "P4"; + + public static readonly ServiceObjectiveName P6 = "P6"; + + public static readonly ServiceObjectiveName P11 = "P11"; + + public static readonly ServiceObjectiveName P15 = "P15"; + + public static readonly ServiceObjectiveName PRS1 = "PRS1"; + + public static readonly ServiceObjectiveName PRS2 = "PRS2"; + + public static readonly ServiceObjectiveName PRS4 = "PRS4"; + + public static readonly ServiceObjectiveName PRS6 = "PRS6"; + + public static readonly ServiceObjectiveName DW100 = "DW100"; + + public static readonly ServiceObjectiveName DW200 = "DW200"; + + public static readonly ServiceObjectiveName DW300 = "DW300"; + + public static readonly ServiceObjectiveName DW400 = "DW400"; + + public static readonly ServiceObjectiveName DW500 = "DW500"; + + public static readonly ServiceObjectiveName DW600 = "DW600"; + + public static readonly ServiceObjectiveName DW1000 = "DW1000"; + + public static readonly ServiceObjectiveName DW1200 = "DW1200"; + + public static readonly ServiceObjectiveName DW1000c = "DW1000c"; + + public static readonly ServiceObjectiveName DW1500 = "DW1500"; + + public static readonly ServiceObjectiveName DW1500c = "DW1500c"; + + public static readonly ServiceObjectiveName DW2000 = "DW2000"; + + public static readonly ServiceObjectiveName DW2000c = "DW2000c"; + + public static readonly ServiceObjectiveName DW3000 = "DW3000"; + + public static readonly ServiceObjectiveName DW2500c = "DW2500c"; + + public static readonly ServiceObjectiveName DW3000c = "DW3000c"; + + public static readonly ServiceObjectiveName DW6000 = "DW6000"; + + public static readonly ServiceObjectiveName DW5000c = "DW5000c"; + + public static readonly ServiceObjectiveName DW6000c = "DW6000c"; + + public static readonly ServiceObjectiveName DW7500c = "DW7500c"; + + public static readonly ServiceObjectiveName DW10000c = "DW10000c"; + + public static readonly ServiceObjectiveName DW15000c = "DW15000c"; + + public static readonly ServiceObjectiveName DW30000c = "DW30000c"; + + public static readonly ServiceObjectiveName DS100 = "DS100"; + + public static readonly ServiceObjectiveName DS200 = "DS200"; + + public static readonly ServiceObjectiveName DS300 = "DS300"; + + public static readonly ServiceObjectiveName DS400 = "DS400"; + + public static readonly ServiceObjectiveName DS500 = "DS500"; + + public static readonly ServiceObjectiveName DS600 = "DS600"; + + public static readonly ServiceObjectiveName DS1000 = "DS1000"; + + public static readonly ServiceObjectiveName DS1200 = "DS1200"; + + public static readonly ServiceObjectiveName DS1500 = "DS1500"; + + public static readonly ServiceObjectiveName DS2000 = "DS2000"; + + public static readonly ServiceObjectiveName ElasticPool = "ElasticPool"; + + + /// + /// Underlying value of enum ServiceObjectiveName + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for ServiceObjectiveName + /// + public override string ToString() + { + return UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type ServiceObjectiveName + /// + public bool Equals(ServiceObjectiveName e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to ServiceObjectiveName + /// + public static implicit operator ServiceObjectiveName(string value) + { + return new ServiceObjectiveName(value); + } + + /// + /// Implicit operator to convert ServiceObjectiveName to string + /// + public static implicit operator string(ServiceObjectiveName e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum ServiceObjectiveName + /// + public static bool operator == (ServiceObjectiveName e1, ServiceObjectiveName e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum ServiceObjectiveName + /// + public static bool operator != (ServiceObjectiveName e1, ServiceObjectiveName e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for ServiceObjectiveName + /// + public override bool Equals(object obj) + { + return obj is ServiceObjectiveName && Equals((ServiceObjectiveName)obj); + } + + /// + /// Returns for hashCode ServiceObjectiveName + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServiceObjectiveNameConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServiceObjectiveNameConverter.cs new file mode 100644 index 000000000000..a9fcced25ad5 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServiceObjectiveNameConverter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for ServiceObjectiveName. + /// + public sealed class ServiceObjectiveNameConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to ServiceObjectiveName by + /// the converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(ServiceObjectiveName).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to ServiceObjectiveName. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (ServiceObjectiveName)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for ServiceObjectiveName for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SloUsageMetric.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SloUsageMetric.cs index 0f4b019f4948..e3ff7d022675 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SloUsageMetric.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SloUsageMetric.cs @@ -44,7 +44,7 @@ public SloUsageMetric() /// for SLO usage metric. /// Gets or sets inRangeTimeRatio for /// SLO usage metric. - public SloUsageMetric(string serviceLevelObjective = default(string), System.Guid serviceLevelObjectiveId = default(System.Guid), double inRangeTimeRatio = default(double)) + public SloUsageMetric(ServiceObjectiveName? serviceLevelObjective = default(ServiceObjectiveName?), System.Guid serviceLevelObjectiveId = default(System.Guid), double inRangeTimeRatio = default(double)) { ServiceLevelObjective = serviceLevelObjective; ServiceLevelObjectiveId = serviceLevelObjectiveId; @@ -71,7 +71,7 @@ public SloUsageMetric() /// 'DS1500', 'DS2000', 'ElasticPool' /// [JsonProperty(PropertyName = "serviceLevelObjective")] - public string ServiceLevelObjective { get; private set; } + public ServiceObjectiveName? ServiceLevelObjective { get; private set; } /// /// Gets the serviceLevelObjectiveId for SLO usage metric. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/StorageAccountType.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/StorageAccountType.cs index f174ff85775d..7e59838e8140 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/StorageAccountType.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/StorageAccountType.cs @@ -10,14 +10,98 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for StorageAccountType. /// - public static class StorageAccountType + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(StorageAccountTypeConverter))] + public struct StorageAccountType : System.IEquatable { - public const string GRS = "GRS"; - public const string LRS = "LRS"; - public const string ZRS = "ZRS"; + private StorageAccountType(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly StorageAccountType GRS = "GRS"; + + public static readonly StorageAccountType LRS = "LRS"; + + public static readonly StorageAccountType ZRS = "ZRS"; + + + /// + /// Underlying value of enum StorageAccountType + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for StorageAccountType + /// + public override string ToString() + { + return UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type StorageAccountType + /// + public bool Equals(StorageAccountType e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to StorageAccountType + /// + public static implicit operator StorageAccountType(string value) + { + return new StorageAccountType(value); + } + + /// + /// Implicit operator to convert StorageAccountType to string + /// + public static implicit operator string(StorageAccountType e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum StorageAccountType + /// + public static bool operator == (StorageAccountType e1, StorageAccountType e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum StorageAccountType + /// + public static bool operator != (StorageAccountType e1, StorageAccountType e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for StorageAccountType + /// + public override bool Equals(object obj) + { + return obj is StorageAccountType && Equals((StorageAccountType)obj); + } + + /// + /// Returns for hashCode StorageAccountType + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/StorageAccountTypeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/StorageAccountTypeConverter.cs new file mode 100644 index 000000000000..64f6d37618d0 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/StorageAccountTypeConverter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for StorageAccountType. + /// + public sealed class StorageAccountTypeConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to StorageAccountType by the + /// converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(StorageAccountType).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to StorageAccountType. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (StorageAccountType)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for StorageAccountType for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/StorageKeyType.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/StorageKeyType.cs index ccbd48d44a48..f4ae7a72c85a 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/StorageKeyType.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/StorageKeyType.cs @@ -10,13 +10,96 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for StorageKeyType. /// - public static class StorageKeyType + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(StorageKeyTypeConverter))] + public struct StorageKeyType : System.IEquatable { - public const string SharedAccessKey = "SharedAccessKey"; - public const string StorageAccessKey = "StorageAccessKey"; + private StorageKeyType(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly StorageKeyType SharedAccessKey = "SharedAccessKey"; + + public static readonly StorageKeyType StorageAccessKey = "StorageAccessKey"; + + + /// + /// Underlying value of enum StorageKeyType + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for StorageKeyType + /// + public override string ToString() + { + return UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type StorageKeyType + /// + public bool Equals(StorageKeyType e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to StorageKeyType + /// + public static implicit operator StorageKeyType(string value) + { + return new StorageKeyType(value); + } + + /// + /// Implicit operator to convert StorageKeyType to string + /// + public static implicit operator string(StorageKeyType e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum StorageKeyType + /// + public static bool operator == (StorageKeyType e1, StorageKeyType e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum StorageKeyType + /// + public static bool operator != (StorageKeyType e1, StorageKeyType e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for StorageKeyType + /// + public override bool Equals(object obj) + { + return obj is StorageKeyType && Equals((StorageKeyType)obj); + } + + /// + /// Returns for hashCode StorageKeyType + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/StorageKeyTypeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/StorageKeyTypeConverter.cs new file mode 100644 index 000000000000..b1a7b808de9a --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/StorageKeyTypeConverter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for StorageKeyType. + /// + public sealed class StorageKeyTypeConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to StorageKeyType by the + /// converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(StorageKeyType).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to StorageKeyType. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (StorageKeyType)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for StorageKeyType for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncAgent.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncAgent.cs index dd27b72537d5..2f810854b151 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncAgent.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncAgent.cs @@ -47,7 +47,7 @@ public SyncAgent() /// Expiration time of the sync agent /// version. /// Version of the sync agent. - public SyncAgent(string id = default(string), string name = default(string), string type = default(string), string syncAgentName = default(string), string syncDatabaseId = default(string), System.DateTime? lastAliveTime = default(System.DateTime?), string state = default(string), bool? isUpToDate = default(bool?), System.DateTime? expiryTime = default(System.DateTime?), string version = default(string)) + public SyncAgent(string id = default(string), string name = default(string), string type = default(string), string syncAgentName = default(string), string syncDatabaseId = default(string), System.DateTime? lastAliveTime = default(System.DateTime?), SyncAgentState? state = default(SyncAgentState?), bool? isUpToDate = default(bool?), System.DateTime? expiryTime = default(System.DateTime?), string version = default(string)) : base(id, name, type) { SyncAgentName = syncAgentName; @@ -89,7 +89,7 @@ public SyncAgent() /// 'Offline', 'NeverConnected' /// [JsonProperty(PropertyName = "properties.state")] - public string State { get; private set; } + public SyncAgentState? State { get; private set; } /// /// Gets if the sync agent version is up to date. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncAgentLinkedDatabase.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncAgentLinkedDatabase.cs index 075a8cd921cc..b9993a161b2e 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncAgentLinkedDatabase.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncAgentLinkedDatabase.cs @@ -48,7 +48,7 @@ public SyncAgentLinkedDatabase() /// database. /// User name of the sync agent linked /// database. - public SyncAgentLinkedDatabase(string id = default(string), string name = default(string), string type = default(string), string databaseType = default(string), string databaseId = default(string), string description = default(string), string serverName = default(string), string databaseName = default(string), string userName = default(string)) + public SyncAgentLinkedDatabase(string id = default(string), string name = default(string), string type = default(string), SyncMemberDbType? databaseType = default(SyncMemberDbType?), string databaseId = default(string), string description = default(string), string serverName = default(string), string databaseName = default(string), string userName = default(string)) : base(id, name, type) { DatabaseType = databaseType; @@ -70,7 +70,7 @@ public SyncAgentLinkedDatabase() /// include: 'AzureSqlDatabase', 'SqlServerDatabase' /// [JsonProperty(PropertyName = "properties.databaseType")] - public string DatabaseType { get; private set; } + public SyncMemberDbType? DatabaseType { get; private set; } /// /// Gets id of the sync agent linked database. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncAgentState.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncAgentState.cs index 3c0f38964739..08b49470357f 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncAgentState.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncAgentState.cs @@ -10,14 +10,98 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for SyncAgentState. /// - public static class SyncAgentState + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(SyncAgentStateConverter))] + public struct SyncAgentState : System.IEquatable { - public const string Online = "Online"; - public const string Offline = "Offline"; - public const string NeverConnected = "NeverConnected"; + private SyncAgentState(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly SyncAgentState Online = "Online"; + + public static readonly SyncAgentState Offline = "Offline"; + + public static readonly SyncAgentState NeverConnected = "NeverConnected"; + + + /// + /// Underlying value of enum SyncAgentState + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for SyncAgentState + /// + public override string ToString() + { + return UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type SyncAgentState + /// + public bool Equals(SyncAgentState e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to SyncAgentState + /// + public static implicit operator SyncAgentState(string value) + { + return new SyncAgentState(value); + } + + /// + /// Implicit operator to convert SyncAgentState to string + /// + public static implicit operator string(SyncAgentState e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum SyncAgentState + /// + public static bool operator == (SyncAgentState e1, SyncAgentState e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum SyncAgentState + /// + public static bool operator != (SyncAgentState e1, SyncAgentState e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for SyncAgentState + /// + public override bool Equals(object obj) + { + return obj is SyncAgentState && Equals((SyncAgentState)obj); + } + + /// + /// Returns for hashCode SyncAgentState + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncAgentStateConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncAgentStateConverter.cs new file mode 100644 index 000000000000..1aa815ca2c27 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncAgentStateConverter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for SyncAgentState. + /// + public sealed class SyncAgentStateConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to SyncAgentState by the + /// converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(SyncAgentState).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to SyncAgentState. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (SyncAgentState)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for SyncAgentState for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncConflictResolutionPolicy.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncConflictResolutionPolicy.cs index ce499c6de853..9308ff10219c 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncConflictResolutionPolicy.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncConflictResolutionPolicy.cs @@ -10,13 +10,96 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for SyncConflictResolutionPolicy. /// - public static class SyncConflictResolutionPolicy + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(SyncConflictResolutionPolicyConverter))] + public struct SyncConflictResolutionPolicy : System.IEquatable { - public const string HubWin = "HubWin"; - public const string MemberWin = "MemberWin"; + private SyncConflictResolutionPolicy(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly SyncConflictResolutionPolicy HubWin = "HubWin"; + + public static readonly SyncConflictResolutionPolicy MemberWin = "MemberWin"; + + + /// + /// Underlying value of enum SyncConflictResolutionPolicy + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for SyncConflictResolutionPolicy + /// + public override string ToString() + { + return UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type SyncConflictResolutionPolicy + /// + public bool Equals(SyncConflictResolutionPolicy e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to SyncConflictResolutionPolicy + /// + public static implicit operator SyncConflictResolutionPolicy(string value) + { + return new SyncConflictResolutionPolicy(value); + } + + /// + /// Implicit operator to convert SyncConflictResolutionPolicy to string + /// + public static implicit operator string(SyncConflictResolutionPolicy e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum SyncConflictResolutionPolicy + /// + public static bool operator == (SyncConflictResolutionPolicy e1, SyncConflictResolutionPolicy e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum SyncConflictResolutionPolicy + /// + public static bool operator != (SyncConflictResolutionPolicy e1, SyncConflictResolutionPolicy e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for SyncConflictResolutionPolicy + /// + public override bool Equals(object obj) + { + return obj is SyncConflictResolutionPolicy && Equals((SyncConflictResolutionPolicy)obj); + } + + /// + /// Returns for hashCode SyncConflictResolutionPolicy + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncConflictResolutionPolicyConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncConflictResolutionPolicyConverter.cs new file mode 100644 index 000000000000..b412bdc31b29 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncConflictResolutionPolicyConverter.cs @@ -0,0 +1,55 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for SyncConflictResolutionPolicy. + /// + public sealed class SyncConflictResolutionPolicyConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to + /// SyncConflictResolutionPolicy by the converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(SyncConflictResolutionPolicy).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to + /// SyncConflictResolutionPolicy. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (SyncConflictResolutionPolicy)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for SyncConflictResolutionPolicy for + /// serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncDirection.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncDirection.cs index 67774a8584fd..2041f5b6f040 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncDirection.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncDirection.cs @@ -10,14 +10,98 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for SyncDirection. /// - public static class SyncDirection + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(SyncDirectionConverter))] + public struct SyncDirection : System.IEquatable { - public const string Bidirectional = "Bidirectional"; - public const string OneWayMemberToHub = "OneWayMemberToHub"; - public const string OneWayHubToMember = "OneWayHubToMember"; + private SyncDirection(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly SyncDirection Bidirectional = "Bidirectional"; + + public static readonly SyncDirection OneWayMemberToHub = "OneWayMemberToHub"; + + public static readonly SyncDirection OneWayHubToMember = "OneWayHubToMember"; + + + /// + /// Underlying value of enum SyncDirection + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for SyncDirection + /// + public override string ToString() + { + return UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type SyncDirection + /// + public bool Equals(SyncDirection e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to SyncDirection + /// + public static implicit operator SyncDirection(string value) + { + return new SyncDirection(value); + } + + /// + /// Implicit operator to convert SyncDirection to string + /// + public static implicit operator string(SyncDirection e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum SyncDirection + /// + public static bool operator == (SyncDirection e1, SyncDirection e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum SyncDirection + /// + public static bool operator != (SyncDirection e1, SyncDirection e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for SyncDirection + /// + public override bool Equals(object obj) + { + return obj is SyncDirection && Equals((SyncDirection)obj); + } + + /// + /// Returns for hashCode SyncDirection + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncDirectionConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncDirectionConverter.cs new file mode 100644 index 000000000000..8b3d0ea72510 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncDirectionConverter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for SyncDirection. + /// + public sealed class SyncDirectionConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to SyncDirection by the + /// converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(SyncDirection).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to SyncDirection. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (SyncDirection)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for SyncDirection for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncGroup.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncGroup.cs index 7a16030cfff4..30da9e6c32c8 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncGroup.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncGroup.cs @@ -53,7 +53,7 @@ public SyncGroup() /// Sync schema of the sync group. /// If use private link /// connection is enabled. - public SyncGroup(string id = default(string), string name = default(string), string type = default(string), int? interval = default(int?), System.DateTime? lastSyncTime = default(System.DateTime?), string conflictResolutionPolicy = default(string), string syncDatabaseId = default(string), string hubDatabaseUserName = default(string), string hubDatabasePassword = default(string), string syncState = default(string), SyncGroupSchema schema = default(SyncGroupSchema), bool? usePrivateLinkConnection = default(bool?)) + public SyncGroup(string id = default(string), string name = default(string), string type = default(string), int? interval = default(int?), System.DateTime? lastSyncTime = default(System.DateTime?), SyncConflictResolutionPolicy? conflictResolutionPolicy = default(SyncConflictResolutionPolicy?), string syncDatabaseId = default(string), string hubDatabaseUserName = default(string), string hubDatabasePassword = default(string), SyncGroupState? syncState = default(SyncGroupState?), SyncGroupSchema schema = default(SyncGroupSchema), bool? usePrivateLinkConnection = default(bool?)) : base(id, name, type) { Interval = interval; @@ -90,7 +90,7 @@ public SyncGroup() /// values include: 'HubWin', 'MemberWin' /// [JsonProperty(PropertyName = "properties.conflictResolutionPolicy")] - public string ConflictResolutionPolicy { get; set; } + public SyncConflictResolutionPolicy? ConflictResolutionPolicy { get; set; } /// /// Gets or sets ARM resource id of the sync database in the sync @@ -116,7 +116,7 @@ public SyncGroup() /// 'NotReady', 'Error', 'Warning', 'Progressing', 'Good' /// [JsonProperty(PropertyName = "properties.syncState")] - public string SyncState { get; private set; } + public SyncGroupState? SyncState { get; private set; } /// /// Gets or sets sync schema of the sync group. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncGroupLogProperties.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncGroupLogProperties.cs index f587146600e2..b2a7136b00fb 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncGroupLogProperties.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncGroupLogProperties.cs @@ -37,7 +37,7 @@ public SyncGroupLogProperties() /// TracingId of the sync group log. /// OperationStatus of the sync group /// log. - public SyncGroupLogProperties(System.DateTime? timestamp = default(System.DateTime?), string type = default(string), string source = default(string), string details = default(string), System.Guid? tracingId = default(System.Guid?), string operationStatus = default(string)) + public SyncGroupLogProperties(System.DateTime? timestamp = default(System.DateTime?), SyncGroupLogType? type = default(SyncGroupLogType?), string source = default(string), string details = default(string), System.Guid? tracingId = default(System.Guid?), string operationStatus = default(string)) { Timestamp = timestamp; Type = type; @@ -64,7 +64,7 @@ public SyncGroupLogProperties() /// 'Error', 'Warning', 'Success' /// [JsonProperty(PropertyName = "type")] - public string Type { get; private set; } + public SyncGroupLogType? Type { get; private set; } /// /// Gets source of the sync group log. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncGroupLogType.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncGroupLogType.cs index fb3ce4637cfc..6e38e4cc4305 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncGroupLogType.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncGroupLogType.cs @@ -10,15 +10,100 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for SyncGroupLogType. /// - public static class SyncGroupLogType + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(SyncGroupLogTypeConverter))] + public struct SyncGroupLogType : System.IEquatable { - public const string All = "All"; - public const string Error = "Error"; - public const string Warning = "Warning"; - public const string Success = "Success"; + private SyncGroupLogType(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly SyncGroupLogType All = "All"; + + public static readonly SyncGroupLogType Error = "Error"; + + public static readonly SyncGroupLogType Warning = "Warning"; + + public static readonly SyncGroupLogType Success = "Success"; + + + /// + /// Underlying value of enum SyncGroupLogType + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for SyncGroupLogType + /// + public override string ToString() + { + return UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type SyncGroupLogType + /// + public bool Equals(SyncGroupLogType e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to SyncGroupLogType + /// + public static implicit operator SyncGroupLogType(string value) + { + return new SyncGroupLogType(value); + } + + /// + /// Implicit operator to convert SyncGroupLogType to string + /// + public static implicit operator string(SyncGroupLogType e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum SyncGroupLogType + /// + public static bool operator == (SyncGroupLogType e1, SyncGroupLogType e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum SyncGroupLogType + /// + public static bool operator != (SyncGroupLogType e1, SyncGroupLogType e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for SyncGroupLogType + /// + public override bool Equals(object obj) + { + return obj is SyncGroupLogType && Equals((SyncGroupLogType)obj); + } + + /// + /// Returns for hashCode SyncGroupLogType + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncGroupLogTypeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncGroupLogTypeConverter.cs new file mode 100644 index 000000000000..224fd4dfab5f --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncGroupLogTypeConverter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for SyncGroupLogType. + /// + public sealed class SyncGroupLogTypeConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to SyncGroupLogType by the + /// converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(SyncGroupLogType).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to SyncGroupLogType. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (SyncGroupLogType)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for SyncGroupLogType for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncGroupState.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncGroupState.cs index 4367211c97bc..4642c76efc95 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncGroupState.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncGroupState.cs @@ -10,16 +10,102 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for SyncGroupState. /// - public static class SyncGroupState + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(SyncGroupStateConverter))] + public struct SyncGroupState : System.IEquatable { - public const string NotReady = "NotReady"; - public const string Error = "Error"; - public const string Warning = "Warning"; - public const string Progressing = "Progressing"; - public const string Good = "Good"; + private SyncGroupState(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly SyncGroupState NotReady = "NotReady"; + + public static readonly SyncGroupState Error = "Error"; + + public static readonly SyncGroupState Warning = "Warning"; + + public static readonly SyncGroupState Progressing = "Progressing"; + + public static readonly SyncGroupState Good = "Good"; + + + /// + /// Underlying value of enum SyncGroupState + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for SyncGroupState + /// + public override string ToString() + { + return UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type SyncGroupState + /// + public bool Equals(SyncGroupState e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to SyncGroupState + /// + public static implicit operator SyncGroupState(string value) + { + return new SyncGroupState(value); + } + + /// + /// Implicit operator to convert SyncGroupState to string + /// + public static implicit operator string(SyncGroupState e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum SyncGroupState + /// + public static bool operator == (SyncGroupState e1, SyncGroupState e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum SyncGroupState + /// + public static bool operator != (SyncGroupState e1, SyncGroupState e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for SyncGroupState + /// + public override bool Equals(object obj) + { + return obj is SyncGroupState && Equals((SyncGroupState)obj); + } + + /// + /// Returns for hashCode SyncGroupState + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncGroupStateConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncGroupStateConverter.cs new file mode 100644 index 000000000000..b9183c88b750 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncGroupStateConverter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for SyncGroupState. + /// + public sealed class SyncGroupStateConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to SyncGroupState by the + /// converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(SyncGroupState).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to SyncGroupState. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (SyncGroupState)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for SyncGroupState for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncMember.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncMember.cs index a2c6837a2407..828d184e1f29 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncMember.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncMember.cs @@ -65,7 +65,7 @@ public SyncMember() /// 'UnProvisioned', 'Provisioning', 'Provisioned', 'ProvisionFailed', /// 'DeProvisioning', 'DeProvisioned', 'DeProvisionFailed', /// 'Reprovisioning', 'ReprovisionFailed', 'UnReprovisioned' - public SyncMember(string id = default(string), string name = default(string), string type = default(string), string databaseType = default(string), string syncAgentId = default(string), System.Guid? sqlServerDatabaseId = default(System.Guid?), string syncMemberAzureDatabaseResourceId = default(string), bool? usePrivateLinkConnection = default(bool?), string serverName = default(string), string databaseName = default(string), string userName = default(string), string password = default(string), string syncDirection = default(string), string syncState = default(string)) + public SyncMember(string id = default(string), string name = default(string), string type = default(string), SyncMemberDbType? databaseType = default(SyncMemberDbType?), string syncAgentId = default(string), System.Guid? sqlServerDatabaseId = default(System.Guid?), string syncMemberAzureDatabaseResourceId = default(string), bool? usePrivateLinkConnection = default(bool?), string serverName = default(string), string databaseName = default(string), string userName = default(string), string password = default(string), SyncDirection? syncDirection = default(SyncDirection?), SyncMemberState? syncState = default(SyncMemberState?)) : base(id, name, type) { DatabaseType = databaseType; @@ -92,7 +92,7 @@ public SyncMember() /// include: 'AzureSqlDatabase', 'SqlServerDatabase' /// [JsonProperty(PropertyName = "properties.databaseType")] - public string DatabaseType { get; set; } + public SyncMemberDbType? DatabaseType { get; set; } /// /// Gets or sets ARM resource id of the sync agent in the sync member. @@ -149,7 +149,7 @@ public SyncMember() /// include: 'Bidirectional', 'OneWayMemberToHub', 'OneWayHubToMember' /// [JsonProperty(PropertyName = "properties.syncDirection")] - public string SyncDirection { get; set; } + public SyncDirection? SyncDirection { get; set; } /// /// Gets sync state of the sync member. Possible values include: @@ -161,7 +161,7 @@ public SyncMember() /// 'Reprovisioning', 'ReprovisionFailed', 'UnReprovisioned' /// [JsonProperty(PropertyName = "properties.syncState")] - public string SyncState { get; private set; } + public SyncMemberState? SyncState { get; private set; } } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncMemberDbType.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncMemberDbType.cs index 62c0d7fda443..4135c5b95395 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncMemberDbType.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncMemberDbType.cs @@ -10,13 +10,96 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for SyncMemberDbType. /// - public static class SyncMemberDbType + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(SyncMemberDbTypeConverter))] + public struct SyncMemberDbType : System.IEquatable { - public const string AzureSqlDatabase = "AzureSqlDatabase"; - public const string SqlServerDatabase = "SqlServerDatabase"; + private SyncMemberDbType(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly SyncMemberDbType AzureSqlDatabase = "AzureSqlDatabase"; + + public static readonly SyncMemberDbType SqlServerDatabase = "SqlServerDatabase"; + + + /// + /// Underlying value of enum SyncMemberDbType + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for SyncMemberDbType + /// + public override string ToString() + { + return UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type SyncMemberDbType + /// + public bool Equals(SyncMemberDbType e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to SyncMemberDbType + /// + public static implicit operator SyncMemberDbType(string value) + { + return new SyncMemberDbType(value); + } + + /// + /// Implicit operator to convert SyncMemberDbType to string + /// + public static implicit operator string(SyncMemberDbType e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum SyncMemberDbType + /// + public static bool operator == (SyncMemberDbType e1, SyncMemberDbType e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum SyncMemberDbType + /// + public static bool operator != (SyncMemberDbType e1, SyncMemberDbType e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for SyncMemberDbType + /// + public override bool Equals(object obj) + { + return obj is SyncMemberDbType && Equals((SyncMemberDbType)obj); + } + + /// + /// Returns for hashCode SyncMemberDbType + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncMemberDbTypeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncMemberDbTypeConverter.cs new file mode 100644 index 000000000000..a7be8e6b7c67 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncMemberDbTypeConverter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for SyncMemberDbType. + /// + public sealed class SyncMemberDbTypeConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to SyncMemberDbType by the + /// converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(SyncMemberDbType).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to SyncMemberDbType. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (SyncMemberDbType)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for SyncMemberDbType for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncMemberState.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncMemberState.cs index 8ef9ca4ac2d1..a88b7fea97c0 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncMemberState.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncMemberState.cs @@ -10,29 +10,128 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for SyncMemberState. /// - public static class SyncMemberState + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(SyncMemberStateConverter))] + public struct SyncMemberState : System.IEquatable { - public const string SyncInProgress = "SyncInProgress"; - public const string SyncSucceeded = "SyncSucceeded"; - public const string SyncFailed = "SyncFailed"; - public const string DisabledTombstoneCleanup = "DisabledTombstoneCleanup"; - public const string DisabledBackupRestore = "DisabledBackupRestore"; - public const string SyncSucceededWithWarnings = "SyncSucceededWithWarnings"; - public const string SyncCancelling = "SyncCancelling"; - public const string SyncCancelled = "SyncCancelled"; - public const string UnProvisioned = "UnProvisioned"; - public const string Provisioning = "Provisioning"; - public const string Provisioned = "Provisioned"; - public const string ProvisionFailed = "ProvisionFailed"; - public const string DeProvisioning = "DeProvisioning"; - public const string DeProvisioned = "DeProvisioned"; - public const string DeProvisionFailed = "DeProvisionFailed"; - public const string Reprovisioning = "Reprovisioning"; - public const string ReprovisionFailed = "ReprovisionFailed"; - public const string UnReprovisioned = "UnReprovisioned"; + private SyncMemberState(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly SyncMemberState SyncInProgress = "SyncInProgress"; + + public static readonly SyncMemberState SyncSucceeded = "SyncSucceeded"; + + public static readonly SyncMemberState SyncFailed = "SyncFailed"; + + public static readonly SyncMemberState DisabledTombstoneCleanup = "DisabledTombstoneCleanup"; + + public static readonly SyncMemberState DisabledBackupRestore = "DisabledBackupRestore"; + + public static readonly SyncMemberState SyncSucceededWithWarnings = "SyncSucceededWithWarnings"; + + public static readonly SyncMemberState SyncCancelling = "SyncCancelling"; + + public static readonly SyncMemberState SyncCancelled = "SyncCancelled"; + + public static readonly SyncMemberState UnProvisioned = "UnProvisioned"; + + public static readonly SyncMemberState Provisioning = "Provisioning"; + + public static readonly SyncMemberState Provisioned = "Provisioned"; + + public static readonly SyncMemberState ProvisionFailed = "ProvisionFailed"; + + public static readonly SyncMemberState DeProvisioning = "DeProvisioning"; + + public static readonly SyncMemberState DeProvisioned = "DeProvisioned"; + + public static readonly SyncMemberState DeProvisionFailed = "DeProvisionFailed"; + + public static readonly SyncMemberState Reprovisioning = "Reprovisioning"; + + public static readonly SyncMemberState ReprovisionFailed = "ReprovisionFailed"; + + public static readonly SyncMemberState UnReprovisioned = "UnReprovisioned"; + + + /// + /// Underlying value of enum SyncMemberState + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for SyncMemberState + /// + public override string ToString() + { + return UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type SyncMemberState + /// + public bool Equals(SyncMemberState e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to SyncMemberState + /// + public static implicit operator SyncMemberState(string value) + { + return new SyncMemberState(value); + } + + /// + /// Implicit operator to convert SyncMemberState to string + /// + public static implicit operator string(SyncMemberState e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum SyncMemberState + /// + public static bool operator == (SyncMemberState e1, SyncMemberState e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum SyncMemberState + /// + public static bool operator != (SyncMemberState e1, SyncMemberState e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for SyncMemberState + /// + public override bool Equals(object obj) + { + return obj is SyncMemberState && Equals((SyncMemberState)obj); + } + + /// + /// Returns for hashCode SyncMemberState + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncMemberStateConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncMemberStateConverter.cs new file mode 100644 index 000000000000..6e26b4d585bc --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncMemberStateConverter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for SyncMemberState. + /// + public sealed class SyncMemberStateConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to SyncMemberState by the + /// converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(SyncMemberState).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to SyncMemberState. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (SyncMemberState)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for SyncMemberState for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/TransparentDataEncryptionActivity.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/TransparentDataEncryptionActivity.cs index ab34253c2b81..910daceaab5d 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/TransparentDataEncryptionActivity.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/TransparentDataEncryptionActivity.cs @@ -42,7 +42,7 @@ public TransparentDataEncryptionActivity() /// include: 'Encrypting', 'Decrypting' /// The percent complete of the /// transparent data encryption scan for a database. - public TransparentDataEncryptionActivity(string id = default(string), string name = default(string), string type = default(string), string location = default(string), string status = default(string), double? percentComplete = default(double?)) + public TransparentDataEncryptionActivity(string id = default(string), string name = default(string), string type = default(string), string location = default(string), TransparentDataEncryptionActivityStatus? status = default(TransparentDataEncryptionActivityStatus?), double? percentComplete = default(double?)) : base(id, name, type) { Location = location; @@ -67,7 +67,7 @@ public TransparentDataEncryptionActivity() /// 'Encrypting', 'Decrypting' /// [JsonProperty(PropertyName = "properties.status")] - public string Status { get; private set; } + public TransparentDataEncryptionActivityStatus? Status { get; private set; } /// /// Gets the percent complete of the transparent data encryption scan diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/TransparentDataEncryptionActivityStatus.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/TransparentDataEncryptionActivityStatus.cs index 5880bd69d615..6a47ce56c7fe 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/TransparentDataEncryptionActivityStatus.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/TransparentDataEncryptionActivityStatus.cs @@ -10,13 +10,102 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for TransparentDataEncryptionActivityStatus. /// - public static class TransparentDataEncryptionActivityStatus + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(TransparentDataEncryptionActivityStatusConverter))] + public struct TransparentDataEncryptionActivityStatus : System.IEquatable { - public const string Encrypting = "Encrypting"; - public const string Decrypting = "Decrypting"; + private TransparentDataEncryptionActivityStatus(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly TransparentDataEncryptionActivityStatus Encrypting = "Encrypting"; + + public static readonly TransparentDataEncryptionActivityStatus Decrypting = "Decrypting"; + + + /// + /// Underlying value of enum TransparentDataEncryptionActivityStatus + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for + /// TransparentDataEncryptionActivityStatus + /// + public override string ToString() + { + return UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type TransparentDataEncryptionActivityStatus + /// + public bool Equals(TransparentDataEncryptionActivityStatus e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to + /// TransparentDataEncryptionActivityStatus + /// + public static implicit operator TransparentDataEncryptionActivityStatus(string value) + { + return new TransparentDataEncryptionActivityStatus(value); + } + + /// + /// Implicit operator to convert + /// TransparentDataEncryptionActivityStatus to string + /// + public static implicit operator string(TransparentDataEncryptionActivityStatus e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum + /// TransparentDataEncryptionActivityStatus + /// + public static bool operator == (TransparentDataEncryptionActivityStatus e1, TransparentDataEncryptionActivityStatus e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum + /// TransparentDataEncryptionActivityStatus + /// + public static bool operator != (TransparentDataEncryptionActivityStatus e1, TransparentDataEncryptionActivityStatus e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for + /// TransparentDataEncryptionActivityStatus + /// + public override bool Equals(object obj) + { + return obj is TransparentDataEncryptionActivityStatus && Equals((TransparentDataEncryptionActivityStatus)obj); + } + + /// + /// Returns for hashCode TransparentDataEncryptionActivityStatus + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/TransparentDataEncryptionActivityStatusConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/TransparentDataEncryptionActivityStatusConverter.cs new file mode 100644 index 000000000000..4a694506acac --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/TransparentDataEncryptionActivityStatusConverter.cs @@ -0,0 +1,55 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for TransparentDataEncryptionActivityStatus. + /// + public sealed class TransparentDataEncryptionActivityStatusConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to + /// TransparentDataEncryptionActivityStatus by the converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(TransparentDataEncryptionActivityStatus).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to + /// TransparentDataEncryptionActivityStatus. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (TransparentDataEncryptionActivityStatus)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for TransparentDataEncryptionActivityStatus + /// for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/UnitDefinitionType.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/UnitDefinitionType.cs index 1184776ad156..16c3edd9beac 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/UnitDefinitionType.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/UnitDefinitionType.cs @@ -10,17 +10,104 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for UnitDefinitionType. /// - public static class UnitDefinitionType + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(UnitDefinitionTypeConverter))] + public struct UnitDefinitionType : System.IEquatable { - public const string Count = "Count"; - public const string Bytes = "Bytes"; - public const string Seconds = "Seconds"; - public const string Percent = "Percent"; - public const string CountPerSecond = "CountPerSecond"; - public const string BytesPerSecond = "BytesPerSecond"; + private UnitDefinitionType(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly UnitDefinitionType Count = "Count"; + + public static readonly UnitDefinitionType Bytes = "Bytes"; + + public static readonly UnitDefinitionType Seconds = "Seconds"; + + public static readonly UnitDefinitionType Percent = "Percent"; + + public static readonly UnitDefinitionType CountPerSecond = "CountPerSecond"; + + public static readonly UnitDefinitionType BytesPerSecond = "BytesPerSecond"; + + + /// + /// Underlying value of enum UnitDefinitionType + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for UnitDefinitionType + /// + public override string ToString() + { + return UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type UnitDefinitionType + /// + public bool Equals(UnitDefinitionType e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to UnitDefinitionType + /// + public static implicit operator UnitDefinitionType(string value) + { + return new UnitDefinitionType(value); + } + + /// + /// Implicit operator to convert UnitDefinitionType to string + /// + public static implicit operator string(UnitDefinitionType e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum UnitDefinitionType + /// + public static bool operator == (UnitDefinitionType e1, UnitDefinitionType e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum UnitDefinitionType + /// + public static bool operator != (UnitDefinitionType e1, UnitDefinitionType e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for UnitDefinitionType + /// + public override bool Equals(object obj) + { + return obj is UnitDefinitionType && Equals((UnitDefinitionType)obj); + } + + /// + /// Returns for hashCode UnitDefinitionType + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/UnitDefinitionTypeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/UnitDefinitionTypeConverter.cs new file mode 100644 index 000000000000..dda3dfcf2386 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/UnitDefinitionTypeConverter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for UnitDefinitionType. + /// + public sealed class UnitDefinitionTypeConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to UnitDefinitionType by the + /// converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(UnitDefinitionType).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to UnitDefinitionType. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (UnitDefinitionType)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for UnitDefinitionType for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/UnitType.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/UnitType.cs index ecd9b7388bdf..0ddad426ce1c 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/UnitType.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/UnitType.cs @@ -10,17 +10,104 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for UnitType. /// - public static class UnitType + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(UnitTypeConverter))] + public struct UnitType : System.IEquatable { - public const string Count = "count"; - public const string Bytes = "bytes"; - public const string Seconds = "seconds"; - public const string Percent = "percent"; - public const string CountPerSecond = "countPerSecond"; - public const string BytesPerSecond = "bytesPerSecond"; + private UnitType(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly UnitType Count = "count"; + + public static readonly UnitType Bytes = "bytes"; + + public static readonly UnitType Seconds = "seconds"; + + public static readonly UnitType Percent = "percent"; + + public static readonly UnitType CountPerSecond = "countPerSecond"; + + public static readonly UnitType BytesPerSecond = "bytesPerSecond"; + + + /// + /// Underlying value of enum UnitType + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for UnitType + /// + public override string ToString() + { + return UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type UnitType + /// + public bool Equals(UnitType e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to UnitType + /// + public static implicit operator UnitType(string value) + { + return new UnitType(value); + } + + /// + /// Implicit operator to convert UnitType to string + /// + public static implicit operator string(UnitType e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum UnitType + /// + public static bool operator == (UnitType e1, UnitType e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum UnitType + /// + public static bool operator != (UnitType e1, UnitType e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for UnitType + /// + public override bool Equals(object obj) + { + return obj is UnitType && Equals((UnitType)obj); + } + + /// + /// Returns for hashCode UnitType + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/UnitTypeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/UnitTypeConverter.cs new file mode 100644 index 000000000000..a0e37419629f --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/UnitTypeConverter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for UnitType. + /// + public sealed class UnitTypeConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to UnitType by the + /// converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(UnitType).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to UnitType. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (UnitType)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for UnitType for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/VirtualNetworkRule.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/VirtualNetworkRule.cs index b34438897190..d742c4ade135 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/VirtualNetworkRule.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/VirtualNetworkRule.cs @@ -43,7 +43,7 @@ public VirtualNetworkRule() /// Virtual Network Rule State. Possible values /// include: 'Initializing', 'InProgress', 'Ready', 'Deleting', /// 'Unknown' - public VirtualNetworkRule(string virtualNetworkSubnetId, string id = default(string), string name = default(string), string type = default(string), bool? ignoreMissingVnetServiceEndpoint = default(bool?), string state = default(string)) + public VirtualNetworkRule(string virtualNetworkSubnetId, string id = default(string), string name = default(string), string type = default(string), bool? ignoreMissingVnetServiceEndpoint = default(bool?), VirtualNetworkRuleState? state = default(VirtualNetworkRuleState?)) : base(id, name, type) { VirtualNetworkSubnetId = virtualNetworkSubnetId; @@ -75,7 +75,7 @@ public VirtualNetworkRule() /// 'Initializing', 'InProgress', 'Ready', 'Deleting', 'Unknown' /// [JsonProperty(PropertyName = "properties.state")] - public string State { get; private set; } + public VirtualNetworkRuleState? State { get; private set; } /// /// Validate the object. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/VirtualNetworkRuleState.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/VirtualNetworkRuleState.cs index ef0dd2f70a5b..a0aefe8e5a92 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/VirtualNetworkRuleState.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/VirtualNetworkRuleState.cs @@ -10,16 +10,102 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for VirtualNetworkRuleState. /// - public static class VirtualNetworkRuleState + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(VirtualNetworkRuleStateConverter))] + public struct VirtualNetworkRuleState : System.IEquatable { - public const string Initializing = "Initializing"; - public const string InProgress = "InProgress"; - public const string Ready = "Ready"; - public const string Deleting = "Deleting"; - public const string Unknown = "Unknown"; + private VirtualNetworkRuleState(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly VirtualNetworkRuleState Initializing = "Initializing"; + + public static readonly VirtualNetworkRuleState InProgress = "InProgress"; + + public static readonly VirtualNetworkRuleState Ready = "Ready"; + + public static readonly VirtualNetworkRuleState Deleting = "Deleting"; + + public static readonly VirtualNetworkRuleState Unknown = "Unknown"; + + + /// + /// Underlying value of enum VirtualNetworkRuleState + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for VirtualNetworkRuleState + /// + public override string ToString() + { + return UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type VirtualNetworkRuleState + /// + public bool Equals(VirtualNetworkRuleState e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to VirtualNetworkRuleState + /// + public static implicit operator VirtualNetworkRuleState(string value) + { + return new VirtualNetworkRuleState(value); + } + + /// + /// Implicit operator to convert VirtualNetworkRuleState to string + /// + public static implicit operator string(VirtualNetworkRuleState e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum VirtualNetworkRuleState + /// + public static bool operator == (VirtualNetworkRuleState e1, VirtualNetworkRuleState e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum VirtualNetworkRuleState + /// + public static bool operator != (VirtualNetworkRuleState e1, VirtualNetworkRuleState e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for VirtualNetworkRuleState + /// + public override bool Equals(object obj) + { + return obj is VirtualNetworkRuleState && Equals((VirtualNetworkRuleState)obj); + } + + /// + /// Returns for hashCode VirtualNetworkRuleState + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/VirtualNetworkRuleStateConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/VirtualNetworkRuleStateConverter.cs new file mode 100644 index 000000000000..337961087a9c --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/VirtualNetworkRuleStateConverter.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for VirtualNetworkRuleState. + /// + public sealed class VirtualNetworkRuleStateConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to VirtualNetworkRuleState + /// by the converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(VirtualNetworkRuleState).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to VirtualNetworkRuleState. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (VirtualNetworkRuleState)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for VirtualNetworkRuleState for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/VulnerabilityAssessmentScanRecord.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/VulnerabilityAssessmentScanRecord.cs index 298f1c24a1f8..ca8eac5a1248 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/VulnerabilityAssessmentScanRecord.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/VulnerabilityAssessmentScanRecord.cs @@ -51,7 +51,7 @@ public VulnerabilityAssessmentScanRecord() /// container path. /// The number of failed /// security checks. - public VulnerabilityAssessmentScanRecord(string id = default(string), string name = default(string), string type = default(string), string scanId = default(string), string triggerType = default(string), string state = default(string), System.DateTime? startTime = default(System.DateTime?), System.DateTime? endTime = default(System.DateTime?), IList errors = default(IList), string storageContainerPath = default(string), int? numberOfFailedSecurityChecks = default(int?)) + public VulnerabilityAssessmentScanRecord(string id = default(string), string name = default(string), string type = default(string), string scanId = default(string), VulnerabilityAssessmentScanTriggerType? triggerType = default(VulnerabilityAssessmentScanTriggerType?), VulnerabilityAssessmentScanState? state = default(VulnerabilityAssessmentScanState?), System.DateTime? startTime = default(System.DateTime?), System.DateTime? endTime = default(System.DateTime?), IList errors = default(IList), string storageContainerPath = default(string), int? numberOfFailedSecurityChecks = default(int?)) : base(id, name, type) { ScanId = scanId; @@ -81,14 +81,14 @@ public VulnerabilityAssessmentScanRecord() /// 'Recurring' /// [JsonProperty(PropertyName = "properties.triggerType")] - public string TriggerType { get; private set; } + public VulnerabilityAssessmentScanTriggerType? TriggerType { get; private set; } /// /// Gets the scan status. Possible values include: 'Passed', 'Failed', /// 'FailedToRun', 'InProgress' /// [JsonProperty(PropertyName = "properties.state")] - public string State { get; private set; } + public VulnerabilityAssessmentScanState? State { get; private set; } /// /// Gets the scan start time (UTC). diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/VulnerabilityAssessmentScanState.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/VulnerabilityAssessmentScanState.cs index 503c61895227..5cc58647739b 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/VulnerabilityAssessmentScanState.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/VulnerabilityAssessmentScanState.cs @@ -10,15 +10,102 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for VulnerabilityAssessmentScanState. /// - public static class VulnerabilityAssessmentScanState + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(VulnerabilityAssessmentScanStateConverter))] + public struct VulnerabilityAssessmentScanState : System.IEquatable { - public const string Passed = "Passed"; - public const string Failed = "Failed"; - public const string FailedToRun = "FailedToRun"; - public const string InProgress = "InProgress"; + private VulnerabilityAssessmentScanState(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly VulnerabilityAssessmentScanState Passed = "Passed"; + + public static readonly VulnerabilityAssessmentScanState Failed = "Failed"; + + public static readonly VulnerabilityAssessmentScanState FailedToRun = "FailedToRun"; + + public static readonly VulnerabilityAssessmentScanState InProgress = "InProgress"; + + + /// + /// Underlying value of enum VulnerabilityAssessmentScanState + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for VulnerabilityAssessmentScanState + /// + public override string ToString() + { + return UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type VulnerabilityAssessmentScanState + /// + public bool Equals(VulnerabilityAssessmentScanState e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to + /// VulnerabilityAssessmentScanState + /// + public static implicit operator VulnerabilityAssessmentScanState(string value) + { + return new VulnerabilityAssessmentScanState(value); + } + + /// + /// Implicit operator to convert VulnerabilityAssessmentScanState to + /// string + /// + public static implicit operator string(VulnerabilityAssessmentScanState e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum VulnerabilityAssessmentScanState + /// + public static bool operator == (VulnerabilityAssessmentScanState e1, VulnerabilityAssessmentScanState e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum VulnerabilityAssessmentScanState + /// + public static bool operator != (VulnerabilityAssessmentScanState e1, VulnerabilityAssessmentScanState e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for VulnerabilityAssessmentScanState + /// + public override bool Equals(object obj) + { + return obj is VulnerabilityAssessmentScanState && Equals((VulnerabilityAssessmentScanState)obj); + } + + /// + /// Returns for hashCode VulnerabilityAssessmentScanState + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/VulnerabilityAssessmentScanStateConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/VulnerabilityAssessmentScanStateConverter.cs new file mode 100644 index 000000000000..a54163f7d51f --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/VulnerabilityAssessmentScanStateConverter.cs @@ -0,0 +1,55 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for VulnerabilityAssessmentScanState. + /// + public sealed class VulnerabilityAssessmentScanStateConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to + /// VulnerabilityAssessmentScanState by the converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(VulnerabilityAssessmentScanState).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to + /// VulnerabilityAssessmentScanState. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (VulnerabilityAssessmentScanState)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for VulnerabilityAssessmentScanState for + /// serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/VulnerabilityAssessmentScanTriggerType.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/VulnerabilityAssessmentScanTriggerType.cs index 252a76bff40a..293ed963bdaa 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/VulnerabilityAssessmentScanTriggerType.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/VulnerabilityAssessmentScanTriggerType.cs @@ -10,13 +10,102 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Newtonsoft.Json; /// /// Defines values for VulnerabilityAssessmentScanTriggerType. /// - public static class VulnerabilityAssessmentScanTriggerType + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(VulnerabilityAssessmentScanTriggerTypeConverter))] + public struct VulnerabilityAssessmentScanTriggerType : System.IEquatable { - public const string OnDemand = "OnDemand"; - public const string Recurring = "Recurring"; + private VulnerabilityAssessmentScanTriggerType(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly VulnerabilityAssessmentScanTriggerType OnDemand = "OnDemand"; + + public static readonly VulnerabilityAssessmentScanTriggerType Recurring = "Recurring"; + + + /// + /// Underlying value of enum VulnerabilityAssessmentScanTriggerType + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for + /// VulnerabilityAssessmentScanTriggerType + /// + public override string ToString() + { + return UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type VulnerabilityAssessmentScanTriggerType + /// + public bool Equals(VulnerabilityAssessmentScanTriggerType e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to + /// VulnerabilityAssessmentScanTriggerType + /// + public static implicit operator VulnerabilityAssessmentScanTriggerType(string value) + { + return new VulnerabilityAssessmentScanTriggerType(value); + } + + /// + /// Implicit operator to convert VulnerabilityAssessmentScanTriggerType + /// to string + /// + public static implicit operator string(VulnerabilityAssessmentScanTriggerType e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum + /// VulnerabilityAssessmentScanTriggerType + /// + public static bool operator == (VulnerabilityAssessmentScanTriggerType e1, VulnerabilityAssessmentScanTriggerType e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum + /// VulnerabilityAssessmentScanTriggerType + /// + public static bool operator != (VulnerabilityAssessmentScanTriggerType e1, VulnerabilityAssessmentScanTriggerType e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for + /// VulnerabilityAssessmentScanTriggerType + /// + public override bool Equals(object obj) + { + return obj is VulnerabilityAssessmentScanTriggerType && Equals((VulnerabilityAssessmentScanTriggerType)obj); + } + + /// + /// Returns for hashCode VulnerabilityAssessmentScanTriggerType + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/VulnerabilityAssessmentScanTriggerTypeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/VulnerabilityAssessmentScanTriggerTypeConverter.cs new file mode 100644 index 000000000000..38737f84fae4 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/VulnerabilityAssessmentScanTriggerTypeConverter.cs @@ -0,0 +1,55 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for VulnerabilityAssessmentScanTriggerType. + /// + public sealed class VulnerabilityAssessmentScanTriggerTypeConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to + /// VulnerabilityAssessmentScanTriggerType by the converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(VulnerabilityAssessmentScanTriggerType).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to + /// VulnerabilityAssessmentScanTriggerType. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (VulnerabilityAssessmentScanTriggerType)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for VulnerabilityAssessmentScanTriggerType for + /// serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/SdkInfo_SqlManagementClient.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/SdkInfo_SqlManagementClient.cs index ec16afe5f47c..fb6e69606085 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/SdkInfo_SqlManagementClient.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/SdkInfo_SqlManagementClient.cs @@ -1,24 +1,16 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// +using System; +using System.Collections.Generic; +using System.Linq; -namespace Microsoft.Azure.Management.Sql +internal static partial class SdkInfo { - using System; - using System.Collections.Generic; - using System.Linq; - - internal static partial class SdkInfo - { - public static IEnumerable> ApiInfo_SqlManagementClient - { - get - { - return new Tuple[] - { + public static IEnumerable> ApiInfo_SqlManagementClient + { + get + { + return new Tuple[] + { new Tuple("Sql", "BackupLongTermRetentionPolicies", "2017-03-01-preview"), new Tuple("Sql", "BackupShortTermRetentionPolicies", "2020-02-02-preview"), new Tuple("Sql", "Capabilities", "2018-06-01-preview"), @@ -119,8 +111,7 @@ public static IEnumerable> ApiInfo_SqlManagementCl new Tuple("Sql", "VirtualNetworkRules", "2015-05-01-preview"), new Tuple("Sql", "WorkloadClassifiers", "2019-06-01-preview"), new Tuple("Sql", "WorkloadGroups", "2019-06-01-preview"), - }.AsEnumerable(); - } - } - } + }.AsEnumerable(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/SqlManagementClient.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/SqlManagementClient.cs index 722f55eb1e1a..5062500bd5da 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/SqlManagementClient.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/SqlManagementClient.cs @@ -55,20 +55,19 @@ public partial class SqlManagementClient : ServiceClient, I public string SubscriptionId { get; set; } /// - /// The preferred language for the response. + /// Gets or sets the preferred language for the response. /// public string AcceptLanguage { get; set; } /// - /// The retry timeout in seconds for Long Running Operations. Default value is - /// 30. + /// Gets or sets the retry timeout in seconds for Long Running Operations. + /// Default value is 30. /// public int? LongRunningOperationRetryTimeout { get; set; } /// - /// Whether a unique x-ms-client-request-id should be generated. When set to - /// true a unique x-ms-client-request-id value is generated and included in - /// each request. Default is true. + /// When set to true a unique x-ms-client-request-id value is generated and + /// included in each request. Default is true. /// public bool? GenerateClientRequestId { get; set; } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/tests/DatabaseCrudScenarioTests.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/tests/DatabaseCrudScenarioTests.cs index 50e1958e2e75..590829ea34bb 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/tests/DatabaseCrudScenarioTests.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/tests/DatabaseCrudScenarioTests.cs @@ -55,7 +55,7 @@ public void TestCreateDropDatabase() Tags = tags, CreateMode = "Default", SampleName = SampleName.AdventureWorksLT, - StorageAccountType = "LRS", + StorageAccountType = "GRS", }; var db2 = sqlClient.Databases.CreateOrUpdate(resourceGroup.Name, server.Name, dbName, db2Input); Assert.NotNull(db2); @@ -117,7 +117,7 @@ public void TestCreateDropDatabase() var db8Input = new Database() { Location = server.Location, - StorageAccountType = "LRS", + StorageAccountType = "GRS", }; var db8 = sqlClient.Databases.CreateOrUpdate(resourceGroup.Name, server.Name, dbName, db8Input); Assert.NotNull(db8); From b042d6b5adbc8b85332f2a0d7800dba55a389030 Mon Sep 17 00:00:00 2001 From: xaliciayang Date: Thu, 3 Sep 2020 19:45:50 -0700 Subject: [PATCH 11/19] reinstate deleted model, add updated test session --- .../src/Generated/Models/DatabaseReadScale.cs | 22 + .../TestCreateDropDatabase.json | 1684 ++++++++++------- 2 files changed, 1025 insertions(+), 681 deletions(-) create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseReadScale.cs diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseReadScale.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseReadScale.cs new file mode 100644 index 000000000000..be48a34acdcf --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseReadScale.cs @@ -0,0 +1,22 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + + /// + /// Defines values for DatabaseReadScale. + /// + public static class DatabaseReadScale + { + public const string Enabled = "Enabled"; + public const string Disabled = "Disabled"; + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/tests/SessionRecords/DatabaseCrudScenarioTests/TestCreateDropDatabase.json b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/tests/SessionRecords/DatabaseCrudScenarioTests/TestCreateDropDatabase.json index 0653e6bb7f69..9308daf60804 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/tests/SessionRecords/DatabaseCrudScenarioTests/TestCreateDropDatabase.json +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/tests/SessionRecords/DatabaseCrudScenarioTests/TestCreateDropDatabase.json @@ -1,13 +1,13 @@ { "Entries": [ { - "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourcegroups/sqlcrudtest-8781?api-version=2017-05-10", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTg3ODE/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourcegroups/sqlcrudtest-5569?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTU1Njk/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"location\": \"Southeast Asia\",\r\n \"tags\": {\r\n \"sqlcrudtest-8781\": \"2020-09-01 20:22:29Z\"\r\n }\r\n}", + "RequestBody": "{\r\n \"location\": \"Southeast Asia\",\r\n \"tags\": {\r\n \"sqlcrudtest-5569\": \"2020-09-04 02:27:27Z\"\r\n }\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "7459b706-cdb6-4d0a-9bf5-7141add86e0a" + "624e24e5-a1ad-4a97-b182-14085bab67d2" ], "accept-language": [ "en-US" @@ -30,7 +30,7 @@ "no-cache" ], "Date": [ - "Tue, 01 Sep 2020 20:22:32 GMT" + "Fri, 04 Sep 2020 02:27:29 GMT" ], "Pragma": [ "no-cache" @@ -39,13 +39,13 @@ "1199" ], "x-ms-request-id": [ - "6d8e8892-a07c-4463-bc1f-3ac21891dda5" + "a032b8fa-1763-4141-b864-aa013463d381" ], "x-ms-correlation-request-id": [ - "6d8e8892-a07c-4463-bc1f-3ac21891dda5" + "a032b8fa-1763-4141-b864-aa013463d381" ], "x-ms-routing-request-id": [ - "WESTUS:20200901T202232Z:6d8e8892-a07c-4463-bc1f-3ac21891dda5" + "WESTUS:20200904T022729Z:a032b8fa-1763-4141-b864-aa013463d381" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -63,17 +63,17 @@ "-1" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781\",\r\n \"name\": \"sqlcrudtest-8781\",\r\n \"location\": \"southeastasia\",\r\n \"tags\": {\r\n \"sqlcrudtest-8781\": \"2020-09-01 20:22:29Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-5569\",\r\n \"name\": \"sqlcrudtest-5569\",\r\n \"location\": \"southeastasia\",\r\n \"tags\": {\r\n \"sqlcrudtest-5569\": \"2020-09-04 02:27:27Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", "StatusCode": 201 }, { - "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/servers/sqlcrudtest-3000?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3ODEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zMDAwP2FwaS12ZXJzaW9uPTIwMTktMDYtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-5569/providers/Microsoft.Sql/servers/sqlcrudtest-9821?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1NjkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05ODIxP2FwaS12ZXJzaW9uPTIwMTktMDYtMDEtcHJldmlldw==", "RequestMethod": "PUT", "RequestBody": "{\r\n \"properties\": {\r\n \"administratorLogin\": \"dummylogin\",\r\n \"administratorLoginPassword\": \"Un53cuRE!\",\r\n \"version\": \"12.0\"\r\n },\r\n \"location\": \"Southeast Asia\",\r\n \"tags\": {}\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "80be94e0-d97b-4eb8-8119-fd852cd949b0" + "b336fd3c-4e73-4a16-b0ac-74326297e796" ], "accept-language": [ "en-US" @@ -82,7 +82,7 @@ "FxVersion/4.6.26614.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.14393.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.45.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" ], "Content-Type": [ "application/json; charset=utf-8" @@ -96,13 +96,13 @@ "no-cache" ], "Date": [ - "Tue, 01 Sep 2020 20:22:37 GMT" + "Fri, 04 Sep 2020 02:27:36 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/locations/southeastasia/serverOperationResults/8cd10201-cfac-4e84-a655-b80db6f71d55?api-version=2019-06-01-preview" + "https://management.azure.com/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-5569/providers/Microsoft.Sql/locations/southeastasia/serverOperationResults/7e6d410f-60f2-468a-8b9f-366a1e82e757?api-version=2019-06-01-preview" ], "Retry-After": [ "1" @@ -111,19 +111,19 @@ "Microsoft-HTTPAPI/2.0" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/locations/southeastasia/serverAzureAsyncOperation/8cd10201-cfac-4e84-a655-b80db6f71d55?api-version=2019-06-01-preview" + "https://management.azure.com/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-5569/providers/Microsoft.Sql/locations/southeastasia/serverAzureAsyncOperation/7e6d410f-60f2-468a-8b9f-366a1e82e757?api-version=2019-06-01-preview" ], "x-ms-request-id": [ - "8cd10201-cfac-4e84-a655-b80db6f71d55" + "7e6d410f-60f2-468a-8b9f-366a1e82e757" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1199" ], "x-ms-correlation-request-id": [ - "01b3c0df-8464-45e7-949e-9636514e9c7e" + "414c0bf6-5f12-47fd-bbeb-aad2cecd22a9" ], "x-ms-routing-request-id": [ - "WESTUS:20200901T202238Z:01b3c0df-8464-45e7-949e-9636514e9c7e" + "WESTUS:20200904T022736Z:414c0bf6-5f12-47fd-bbeb-aad2cecd22a9" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -132,7 +132,7 @@ "nosniff" ], "Content-Length": [ - "74" + "73" ], "Content-Type": [ "application/json; charset=utf-8" @@ -141,12 +141,12 @@ "-1" ] }, - "ResponseBody": "{\r\n \"operation\": \"UpsertLogicalServer\",\r\n \"startTime\": \"2020-09-01T20:22:38.517Z\"\r\n}", + "ResponseBody": "{\r\n \"operation\": \"UpsertLogicalServer\",\r\n \"startTime\": \"2020-09-04T02:27:36.57Z\"\r\n}", "StatusCode": 202 }, { - "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/locations/southeastasia/serverAzureAsyncOperation/8cd10201-cfac-4e84-a655-b80db6f71d55?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3ODEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3NvdXRoZWFzdGFzaWEvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi84Y2QxMDIwMS1jZmFjLTRlODQtYTY1NS1iODBkYjZmNzFkNTU/YXBpLXZlcnNpb249MjAxOS0wNi0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-5569/providers/Microsoft.Sql/locations/southeastasia/serverAzureAsyncOperation/7e6d410f-60f2-468a-8b9f-366a1e82e757?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1NjkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3NvdXRoZWFzdGFzaWEvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi83ZTZkNDEwZi02MGYyLTQ2OGEtOGI5Zi0zNjZhMWU4MmU3NTc/YXBpLXZlcnNpb249MjAxOS0wNi0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -154,7 +154,7 @@ "FxVersion/4.6.26614.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.14393.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.45.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" ] }, "ResponseHeaders": { @@ -162,7 +162,7 @@ "no-cache" ], "Date": [ - "Tue, 01 Sep 2020 20:22:39 GMT" + "Fri, 04 Sep 2020 02:27:37 GMT" ], "Pragma": [ "no-cache" @@ -174,16 +174,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "09586bc8-2365-485a-90f3-2ddeab20c43a" + "6311e05e-151e-43bb-86af-de14bce1444e" ], "x-ms-ratelimit-remaining-subscription-reads": [ "11999" ], "x-ms-correlation-request-id": [ - "acecd089-42cb-45d6-9157-a7faf83b410d" + "fc70be61-a4c1-4980-8be0-eb15d3e5e942" ], "x-ms-routing-request-id": [ - "WESTUS:20200901T202239Z:acecd089-42cb-45d6-9157-a7faf83b410d" + "WESTUS:20200904T022738Z:fc70be61-a4c1-4980-8be0-eb15d3e5e942" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -192,7 +192,7 @@ "nosniff" ], "Content-Length": [ - "108" + "107" ], "Content-Type": [ "application/json; charset=utf-8" @@ -201,12 +201,12 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"8cd10201-cfac-4e84-a655-b80db6f71d55\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-01T20:22:38.517Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"7e6d410f-60f2-468a-8b9f-366a1e82e757\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-04T02:27:36.57Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/locations/southeastasia/serverAzureAsyncOperation/8cd10201-cfac-4e84-a655-b80db6f71d55?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3ODEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3NvdXRoZWFzdGFzaWEvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi84Y2QxMDIwMS1jZmFjLTRlODQtYTY1NS1iODBkYjZmNzFkNTU/YXBpLXZlcnNpb249MjAxOS0wNi0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-5569/providers/Microsoft.Sql/locations/southeastasia/serverAzureAsyncOperation/7e6d410f-60f2-468a-8b9f-366a1e82e757?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1NjkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3NvdXRoZWFzdGFzaWEvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi83ZTZkNDEwZi02MGYyLTQ2OGEtOGI5Zi0zNjZhMWU4MmU3NTc/YXBpLXZlcnNpb249MjAxOS0wNi0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -214,7 +214,7 @@ "FxVersion/4.6.26614.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.14393.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.45.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" ] }, "ResponseHeaders": { @@ -222,7 +222,7 @@ "no-cache" ], "Date": [ - "Tue, 01 Sep 2020 20:22:40 GMT" + "Fri, 04 Sep 2020 02:27:39 GMT" ], "Pragma": [ "no-cache" @@ -234,16 +234,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "e6cd26e6-2a58-4893-ba0f-d9fa404f9279" + "1dc2be0f-0d5d-4f43-bbfc-f41f2ca7c119" ], "x-ms-ratelimit-remaining-subscription-reads": [ "11998" ], "x-ms-correlation-request-id": [ - "f12c5072-1ca5-46ab-b21e-e0a3271d28f2" + "54a7ab0c-1413-4517-a28f-02277004aa7c" ], "x-ms-routing-request-id": [ - "WESTUS:20200901T202241Z:f12c5072-1ca5-46ab-b21e-e0a3271d28f2" + "WESTUS:20200904T022739Z:54a7ab0c-1413-4517-a28f-02277004aa7c" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -252,7 +252,7 @@ "nosniff" ], "Content-Length": [ - "108" + "107" ], "Content-Type": [ "application/json; charset=utf-8" @@ -261,12 +261,12 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"8cd10201-cfac-4e84-a655-b80db6f71d55\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-01T20:22:38.517Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"7e6d410f-60f2-468a-8b9f-366a1e82e757\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-04T02:27:36.57Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/locations/southeastasia/serverAzureAsyncOperation/8cd10201-cfac-4e84-a655-b80db6f71d55?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3ODEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3NvdXRoZWFzdGFzaWEvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi84Y2QxMDIwMS1jZmFjLTRlODQtYTY1NS1iODBkYjZmNzFkNTU/YXBpLXZlcnNpb249MjAxOS0wNi0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-5569/providers/Microsoft.Sql/locations/southeastasia/serverAzureAsyncOperation/7e6d410f-60f2-468a-8b9f-366a1e82e757?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1NjkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3NvdXRoZWFzdGFzaWEvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi83ZTZkNDEwZi02MGYyLTQ2OGEtOGI5Zi0zNjZhMWU4MmU3NTc/YXBpLXZlcnNpb249MjAxOS0wNi0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -274,7 +274,7 @@ "FxVersion/4.6.26614.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.14393.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.45.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" ] }, "ResponseHeaders": { @@ -282,7 +282,7 @@ "no-cache" ], "Date": [ - "Tue, 01 Sep 2020 20:22:41 GMT" + "Fri, 04 Sep 2020 02:27:40 GMT" ], "Pragma": [ "no-cache" @@ -294,16 +294,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "1e24c49f-175f-4e05-9ef4-1e5cf37fca7d" + "b1e84de4-db0f-4468-97f3-8359fc783b9f" ], "x-ms-ratelimit-remaining-subscription-reads": [ "11997" ], "x-ms-correlation-request-id": [ - "65b9e0d6-a5e2-433e-88f0-d3e2adc6109e" + "46ca049e-eabc-475b-adee-606ee196f9a9" ], "x-ms-routing-request-id": [ - "WESTUS:20200901T202242Z:65b9e0d6-a5e2-433e-88f0-d3e2adc6109e" + "WESTUS:20200904T022740Z:46ca049e-eabc-475b-adee-606ee196f9a9" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -312,7 +312,7 @@ "nosniff" ], "Content-Length": [ - "108" + "107" ], "Content-Type": [ "application/json; charset=utf-8" @@ -321,12 +321,12 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"8cd10201-cfac-4e84-a655-b80db6f71d55\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-01T20:22:38.517Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"7e6d410f-60f2-468a-8b9f-366a1e82e757\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-04T02:27:36.57Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/locations/southeastasia/serverAzureAsyncOperation/8cd10201-cfac-4e84-a655-b80db6f71d55?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3ODEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3NvdXRoZWFzdGFzaWEvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi84Y2QxMDIwMS1jZmFjLTRlODQtYTY1NS1iODBkYjZmNzFkNTU/YXBpLXZlcnNpb249MjAxOS0wNi0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-5569/providers/Microsoft.Sql/locations/southeastasia/serverAzureAsyncOperation/7e6d410f-60f2-468a-8b9f-366a1e82e757?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1NjkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3NvdXRoZWFzdGFzaWEvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi83ZTZkNDEwZi02MGYyLTQ2OGEtOGI5Zi0zNjZhMWU4MmU3NTc/YXBpLXZlcnNpb249MjAxOS0wNi0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -334,7 +334,7 @@ "FxVersion/4.6.26614.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.14393.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.45.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" ] }, "ResponseHeaders": { @@ -342,7 +342,7 @@ "no-cache" ], "Date": [ - "Tue, 01 Sep 2020 20:22:42 GMT" + "Fri, 04 Sep 2020 02:27:41 GMT" ], "Pragma": [ "no-cache" @@ -354,16 +354,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "aa41248b-714c-497e-a04f-2876611b5543" + "c3a3600d-38bc-40ae-8a82-9de625e07850" ], "x-ms-ratelimit-remaining-subscription-reads": [ "11996" ], "x-ms-correlation-request-id": [ - "d7651c6c-7355-451b-bc17-ec559c50c064" + "7f1b26a1-ba04-47f5-8c4d-c6941cd5e3fa" ], "x-ms-routing-request-id": [ - "WESTUS:20200901T202243Z:d7651c6c-7355-451b-bc17-ec559c50c064" + "WESTUS:20200904T022741Z:7f1b26a1-ba04-47f5-8c4d-c6941cd5e3fa" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -372,7 +372,7 @@ "nosniff" ], "Content-Length": [ - "108" + "107" ], "Content-Type": [ "application/json; charset=utf-8" @@ -381,12 +381,12 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"8cd10201-cfac-4e84-a655-b80db6f71d55\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-01T20:22:38.517Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"7e6d410f-60f2-468a-8b9f-366a1e82e757\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-04T02:27:36.57Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/locations/southeastasia/serverAzureAsyncOperation/8cd10201-cfac-4e84-a655-b80db6f71d55?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3ODEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3NvdXRoZWFzdGFzaWEvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi84Y2QxMDIwMS1jZmFjLTRlODQtYTY1NS1iODBkYjZmNzFkNTU/YXBpLXZlcnNpb249MjAxOS0wNi0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-5569/providers/Microsoft.Sql/locations/southeastasia/serverAzureAsyncOperation/7e6d410f-60f2-468a-8b9f-366a1e82e757?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1NjkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3NvdXRoZWFzdGFzaWEvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi83ZTZkNDEwZi02MGYyLTQ2OGEtOGI5Zi0zNjZhMWU4MmU3NTc/YXBpLXZlcnNpb249MjAxOS0wNi0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -394,7 +394,7 @@ "FxVersion/4.6.26614.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.14393.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.45.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" ] }, "ResponseHeaders": { @@ -402,7 +402,7 @@ "no-cache" ], "Date": [ - "Tue, 01 Sep 2020 20:23:02 GMT" + "Fri, 04 Sep 2020 02:28:01 GMT" ], "Pragma": [ "no-cache" @@ -414,16 +414,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "b5531bf4-87ec-4413-b479-e201fcece6d5" + "ef92e6a9-9999-4a48-89d0-39db8a8371a6" ], "x-ms-ratelimit-remaining-subscription-reads": [ "11995" ], "x-ms-correlation-request-id": [ - "6378ccf7-4bf5-42ed-a503-61cdb647a3de" + "1fa3c492-c188-421d-8dcf-876ed99398c6" ], "x-ms-routing-request-id": [ - "WESTUS:20200901T202303Z:6378ccf7-4bf5-42ed-a503-61cdb647a3de" + "WESTUS:20200904T022801Z:1fa3c492-c188-421d-8dcf-876ed99398c6" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -432,7 +432,7 @@ "nosniff" ], "Content-Length": [ - "108" + "107" ], "Content-Type": [ "application/json; charset=utf-8" @@ -441,12 +441,12 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"8cd10201-cfac-4e84-a655-b80db6f71d55\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-01T20:22:38.517Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"7e6d410f-60f2-468a-8b9f-366a1e82e757\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-04T02:27:36.57Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/locations/southeastasia/serverAzureAsyncOperation/8cd10201-cfac-4e84-a655-b80db6f71d55?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3ODEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3NvdXRoZWFzdGFzaWEvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi84Y2QxMDIwMS1jZmFjLTRlODQtYTY1NS1iODBkYjZmNzFkNTU/YXBpLXZlcnNpb249MjAxOS0wNi0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-5569/providers/Microsoft.Sql/locations/southeastasia/serverAzureAsyncOperation/7e6d410f-60f2-468a-8b9f-366a1e82e757?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1NjkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3NvdXRoZWFzdGFzaWEvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi83ZTZkNDEwZi02MGYyLTQ2OGEtOGI5Zi0zNjZhMWU4MmU3NTc/YXBpLXZlcnNpb249MjAxOS0wNi0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -454,7 +454,7 @@ "FxVersion/4.6.26614.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.14393.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.45.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" ] }, "ResponseHeaders": { @@ -462,28 +462,28 @@ "no-cache" ], "Date": [ - "Tue, 01 Sep 2020 20:23:24 GMT" + "Fri, 04 Sep 2020 02:28:21 GMT" ], "Pragma": [ "no-cache" ], "Retry-After": [ - "15" + "20" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "76fa5f69-0a00-4603-b2c1-137d518273dd" + "6f5b14d8-813a-4348-bd66-a51894be73ea" ], "x-ms-ratelimit-remaining-subscription-reads": [ "11994" ], "x-ms-correlation-request-id": [ - "9225a47a-1c97-48d9-a03d-ebc92f1b450f" + "8d4c27ef-148e-439f-a087-19602dd6d97e" ], "x-ms-routing-request-id": [ - "WESTUS:20200901T202324Z:9225a47a-1c97-48d9-a03d-ebc92f1b450f" + "WESTUS:20200904T022822Z:8d4c27ef-148e-439f-a087-19602dd6d97e" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -501,12 +501,12 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"8cd10201-cfac-4e84-a655-b80db6f71d55\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2020-09-01T20:22:38.517Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"7e6d410f-60f2-468a-8b9f-366a1e82e757\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-04T02:27:36.57Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/servers/sqlcrudtest-3000?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3ODEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zMDAwP2FwaS12ZXJzaW9uPTIwMTktMDYtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-5569/providers/Microsoft.Sql/locations/southeastasia/serverAzureAsyncOperation/7e6d410f-60f2-468a-8b9f-366a1e82e757?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1NjkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3NvdXRoZWFzdGFzaWEvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi83ZTZkNDEwZi02MGYyLTQ2OGEtOGI5Zi0zNjZhMWU4MmU3NTc/YXBpLXZlcnNpb249MjAxOS0wNi0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -514,7 +514,7 @@ "FxVersion/4.6.26614.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.14393.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.45.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" ] }, "ResponseHeaders": { @@ -522,25 +522,85 @@ "no-cache" ], "Date": [ - "Tue, 01 Sep 2020 20:23:24 GMT" + "Fri, 04 Sep 2020 02:28:41 GMT" ], "Pragma": [ "no-cache" ], + "Retry-After": [ + "15" + ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "af7a5915-963e-4e47-a53c-138682aef81d" + "437037fe-cc3c-4cd4-a6b9-cdac167b2bb0" ], "x-ms-ratelimit-remaining-subscription-reads": [ "11993" ], "x-ms-correlation-request-id": [ - "3a7fc00d-b6df-4e66-9d33-e0ac7e9f3382" + "2a9ec9ec-7ee8-4a6b-8fa8-885b6fde07cf" ], "x-ms-routing-request-id": [ - "WESTUS:20200901T202324Z:3a7fc00d-b6df-4e66-9d33-e0ac7e9f3382" + "WESTUS:20200904T022842Z:2a9ec9ec-7ee8-4a6b-8fa8-885b6fde07cf" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "106" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"7e6d410f-60f2-468a-8b9f-366a1e82e757\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2020-09-04T02:27:36.57Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-5569/providers/Microsoft.Sql/servers/sqlcrudtest-9821?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1NjkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05ODIxP2FwaS12ZXJzaW9uPTIwMTktMDYtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 04 Sep 2020 02:28:42 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "82360059-1eee-409d-a739-ebe0a937b150" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11992" + ], + "x-ms-correlation-request-id": [ + "6479195c-3ed0-49c4-890e-731743ecd39f" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200904T022842Z:6479195c-3ed0-49c4-890e-731743ecd39f" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -558,17 +618,17 @@ "-1" ] }, - "ResponseBody": "{\r\n \"kind\": \"v12.0\",\r\n \"properties\": {\r\n \"administratorLogin\": \"dummylogin\",\r\n \"version\": \"12.0\",\r\n \"state\": \"Ready\",\r\n \"fullyQualifiedDomainName\": \"sqlcrudtest-3000.database.windows.net\",\r\n \"privateEndpointConnections\": [],\r\n \"publicNetworkAccess\": \"Enabled\"\r\n },\r\n \"location\": \"southeastasia\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/servers/sqlcrudtest-3000\",\r\n \"name\": \"sqlcrudtest-3000\",\r\n \"type\": \"Microsoft.Sql/servers\"\r\n}", + "ResponseBody": "{\r\n \"kind\": \"v12.0\",\r\n \"properties\": {\r\n \"administratorLogin\": \"dummylogin\",\r\n \"version\": \"12.0\",\r\n \"state\": \"Ready\",\r\n \"fullyQualifiedDomainName\": \"sqlcrudtest-9821.database.windows.net\",\r\n \"privateEndpointConnections\": [],\r\n \"publicNetworkAccess\": \"Enabled\"\r\n },\r\n \"location\": \"southeastasia\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-5569/providers/Microsoft.Sql/servers/sqlcrudtest-9821\",\r\n \"name\": \"sqlcrudtest-9821\",\r\n \"type\": \"Microsoft.Sql/servers\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/servers/sqlcrudtest-3000/databases/sqlcrudtest-1701?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3ODEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zMDAwL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC0xNzAxP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-5569/providers/Microsoft.Sql/servers/sqlcrudtest-9821/databases/sqlcrudtest-1791?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1NjkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05ODIxL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC0xNzkxP2FwaS12ZXJzaW9uPTIwMTktMDYtMDEtcHJldmlldw==", "RequestMethod": "PUT", "RequestBody": "{\r\n \"location\": \"southeastasia\"\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "c5536b04-5dfa-4156-b2f1-dfdffbba54ee" + "1783f4dc-9a68-4bda-890d-bf28fcc4d367" ], "accept-language": [ "en-US" @@ -577,7 +637,7 @@ "FxVersion/4.6.26614.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.14393.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.45.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" ], "Content-Type": [ "application/json; charset=utf-8" @@ -591,13 +651,13 @@ "no-cache" ], "Date": [ - "Tue, 01 Sep 2020 20:23:30 GMT" + "Fri, 04 Sep 2020 02:28:46 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/locations/southeastasia/databaseOperationResults/f79e7f2d-b995-4fc9-a3b5-093cac35e5ab?api-version=2017-10-01-preview" + "https://management.azure.com/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-5569/providers/Microsoft.Sql/locations/southeastasia/databaseOperationResults/33ad2693-ccfd-41a4-a65e-8c49a2f41ff4?api-version=2019-06-01-preview" ], "Retry-After": [ "15" @@ -606,19 +666,19 @@ "Microsoft-HTTPAPI/2.0" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/locations/southeastasia/databaseAzureAsyncOperation/f79e7f2d-b995-4fc9-a3b5-093cac35e5ab?api-version=2017-10-01-preview" + "https://management.azure.com/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-5569/providers/Microsoft.Sql/locations/southeastasia/databaseAzureAsyncOperation/33ad2693-ccfd-41a4-a65e-8c49a2f41ff4?api-version=2019-06-01-preview" ], "x-ms-request-id": [ - "f79e7f2d-b995-4fc9-a3b5-093cac35e5ab" + "33ad2693-ccfd-41a4-a65e-8c49a2f41ff4" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1198" ], "x-ms-correlation-request-id": [ - "50104b3a-c8d9-49e4-aa66-1de3adb182e1" + "23e9f5af-7bd1-4b59-9c79-fc8126e65073" ], "x-ms-routing-request-id": [ - "WESTUS:20200901T202330Z:50104b3a-c8d9-49e4-aa66-1de3adb182e1" + "WESTUS:20200904T022846Z:23e9f5af-7bd1-4b59-9c79-fc8126e65073" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -636,12 +696,12 @@ "-1" ] }, - "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2020-09-01T20:23:30.66Z\"\r\n}", + "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2020-09-04T02:28:46.61Z\"\r\n}", "StatusCode": 202 }, { - "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/locations/southeastasia/databaseAzureAsyncOperation/f79e7f2d-b995-4fc9-a3b5-093cac35e5ab?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3ODEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3NvdXRoZWFzdGFzaWEvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2Y3OWU3ZjJkLWI5OTUtNGZjOS1hM2I1LTA5M2NhYzM1ZTVhYj9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-5569/providers/Microsoft.Sql/locations/southeastasia/databaseAzureAsyncOperation/33ad2693-ccfd-41a4-a65e-8c49a2f41ff4?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1NjkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3NvdXRoZWFzdGFzaWEvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzMzYWQyNjkzLWNjZmQtNDFhNC1hNjVlLThjNDlhMmY0MWZmND9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -649,7 +709,7 @@ "FxVersion/4.6.26614.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.14393.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.45.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" ] }, "ResponseHeaders": { @@ -657,7 +717,7 @@ "no-cache" ], "Date": [ - "Tue, 01 Sep 2020 20:23:45 GMT" + "Fri, 04 Sep 2020 02:29:01 GMT" ], "Pragma": [ "no-cache" @@ -669,16 +729,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "fdaf5dec-eda2-4c3f-9a4a-720c114d63f9" + "78453da4-6347-4e47-ac28-5673aa6873be" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11992" + "11991" ], "x-ms-correlation-request-id": [ - "15d00a0c-df3b-4179-9ddf-45358b99a9b6" + "c236d178-2fb3-4ce8-99df-a5b3dae2aadb" ], "x-ms-routing-request-id": [ - "WESTUS:20200901T202346Z:15d00a0c-df3b-4179-9ddf-45358b99a9b6" + "WESTUS:20200904T022902Z:c236d178-2fb3-4ce8-99df-a5b3dae2aadb" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -696,12 +756,12 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"f79e7f2d-b995-4fc9-a3b5-093cac35e5ab\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-01T20:23:30.66Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"33ad2693-ccfd-41a4-a65e-8c49a2f41ff4\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-04T02:28:46.61Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/locations/southeastasia/databaseAzureAsyncOperation/f79e7f2d-b995-4fc9-a3b5-093cac35e5ab?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3ODEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3NvdXRoZWFzdGFzaWEvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2Y3OWU3ZjJkLWI5OTUtNGZjOS1hM2I1LTA5M2NhYzM1ZTVhYj9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-5569/providers/Microsoft.Sql/locations/southeastasia/databaseAzureAsyncOperation/33ad2693-ccfd-41a4-a65e-8c49a2f41ff4?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1NjkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3NvdXRoZWFzdGFzaWEvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzMzYWQyNjkzLWNjZmQtNDFhNC1hNjVlLThjNDlhMmY0MWZmND9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -709,7 +769,7 @@ "FxVersion/4.6.26614.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.14393.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.45.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" ] }, "ResponseHeaders": { @@ -717,7 +777,7 @@ "no-cache" ], "Date": [ - "Tue, 01 Sep 2020 20:24:01 GMT" + "Fri, 04 Sep 2020 02:29:16 GMT" ], "Pragma": [ "no-cache" @@ -729,16 +789,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "12e8ff1a-61f5-45a7-ac49-952bdcbc630a" + "e3d13420-45e2-4649-b122-d499a58b5f5c" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11991" + "11990" ], "x-ms-correlation-request-id": [ - "07c97179-7c95-4618-97e9-a6e7028bafdd" + "96b262d2-3a42-4da7-96d5-40295dcff078" ], "x-ms-routing-request-id": [ - "WESTUS:20200901T202401Z:07c97179-7c95-4618-97e9-a6e7028bafdd" + "WESTUS:20200904T022917Z:96b262d2-3a42-4da7-96d5-40295dcff078" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -756,12 +816,12 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"f79e7f2d-b995-4fc9-a3b5-093cac35e5ab\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-01T20:23:30.66Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"33ad2693-ccfd-41a4-a65e-8c49a2f41ff4\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-04T02:28:46.61Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/locations/southeastasia/databaseAzureAsyncOperation/f79e7f2d-b995-4fc9-a3b5-093cac35e5ab?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3ODEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3NvdXRoZWFzdGFzaWEvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2Y3OWU3ZjJkLWI5OTUtNGZjOS1hM2I1LTA5M2NhYzM1ZTVhYj9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-5569/providers/Microsoft.Sql/locations/southeastasia/databaseAzureAsyncOperation/33ad2693-ccfd-41a4-a65e-8c49a2f41ff4?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1NjkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3NvdXRoZWFzdGFzaWEvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzMzYWQyNjkzLWNjZmQtNDFhNC1hNjVlLThjNDlhMmY0MWZmND9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -769,7 +829,7 @@ "FxVersion/4.6.26614.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.14393.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.45.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" ] }, "ResponseHeaders": { @@ -777,7 +837,7 @@ "no-cache" ], "Date": [ - "Tue, 01 Sep 2020 20:24:16 GMT" + "Fri, 04 Sep 2020 02:29:31 GMT" ], "Pragma": [ "no-cache" @@ -789,16 +849,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "7f61a037-4886-4c0d-a294-531e9ae23d69" + "607f7284-d85f-475f-a080-2b5ac99b15a9" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11990" + "11989" ], "x-ms-correlation-request-id": [ - "1bf6dab3-5043-4e6e-ae15-bdc069c96352" + "0eb3965b-0b43-442f-bd8b-7fe51a055f27" ], "x-ms-routing-request-id": [ - "WESTUS:20200901T202416Z:1bf6dab3-5043-4e6e-ae15-bdc069c96352" + "WESTUS:20200904T022932Z:0eb3965b-0b43-442f-bd8b-7fe51a055f27" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -816,12 +876,12 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"f79e7f2d-b995-4fc9-a3b5-093cac35e5ab\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2020-09-01T20:23:30.66Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"33ad2693-ccfd-41a4-a65e-8c49a2f41ff4\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2020-09-04T02:28:46.61Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/servers/sqlcrudtest-3000/databases/sqlcrudtest-1701?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3ODEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zMDAwL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC0xNzAxP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-5569/providers/Microsoft.Sql/servers/sqlcrudtest-9821/databases/sqlcrudtest-1791?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1NjkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05ODIxL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC0xNzkxP2FwaS12ZXJzaW9uPTIwMTktMDYtMDEtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -829,7 +889,7 @@ "FxVersion/4.6.26614.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.14393.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.45.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" ] }, "ResponseHeaders": { @@ -837,7 +897,7 @@ "no-cache" ], "Date": [ - "Tue, 01 Sep 2020 20:24:16 GMT" + "Fri, 04 Sep 2020 02:29:31 GMT" ], "Pragma": [ "no-cache" @@ -846,16 +906,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "3d6fe7ae-baa3-4a19-8d0a-1289a400369a" + "b28e1b20-76ee-4dd7-b75f-2a20c2c115c6" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11989" + "11988" ], "x-ms-correlation-request-id": [ - "9f297e74-cd5b-4ea5-9407-41cd2ee4a0a4" + "cb2e1640-4511-4aab-9929-654b4076b6e9" ], "x-ms-routing-request-id": [ - "WESTUS:20200901T202416Z:9f297e74-cd5b-4ea5-9407-41cd2ee4a0a4" + "WESTUS:20200904T022932Z:cb2e1640-4511-4aab-9929-654b4076b6e9" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -864,7 +924,7 @@ "nosniff" ], "Content-Length": [ - "999" + "1026" ], "Content-Type": [ "application/json; charset=utf-8" @@ -873,17 +933,17 @@ "-1" ] }, - "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"GP_Gen5\",\r\n \"tier\": \"GeneralPurpose\",\r\n \"family\": \"Gen5\",\r\n \"capacity\": 2\r\n },\r\n \"kind\": \"v12.0,user,vcore\",\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": 34359738368,\r\n \"status\": \"Online\",\r\n \"databaseId\": \"6ebc0e05-63d9-4c42-a8dc-9722fd58828b\",\r\n \"creationDate\": \"2020-09-01T20:24:04.417Z\",\r\n \"currentServiceObjectiveName\": \"GP_Gen5_2\",\r\n \"requestedServiceObjectiveName\": \"GP_Gen5_2\",\r\n \"defaultSecondaryLocation\": \"eastasia\",\r\n \"catalogCollation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"zoneRedundant\": false,\r\n \"licenseType\": \"LicenseIncluded\",\r\n \"maxLogSizeBytes\": 10307502080,\r\n \"earliestRestoreDate\": \"2020-09-01T20:54:04.417Z\",\r\n \"readScale\": \"Disabled\",\r\n \"readReplicaCount\": 0,\r\n \"currentSku\": {\r\n \"name\": \"GP_Gen5\",\r\n \"tier\": \"GeneralPurpose\",\r\n \"family\": \"Gen5\",\r\n \"capacity\": 2\r\n }\r\n },\r\n \"location\": \"southeastasia\",\r\n \"id\": \"/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/servers/sqlcrudtest-3000/databases/sqlcrudtest-1701\",\r\n \"name\": \"sqlcrudtest-1701\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"GP_Gen5\",\r\n \"tier\": \"GeneralPurpose\",\r\n \"family\": \"Gen5\",\r\n \"capacity\": 2\r\n },\r\n \"kind\": \"v12.0,user,vcore\",\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": 34359738368,\r\n \"status\": \"Online\",\r\n \"databaseId\": \"9b51bb86-64f6-4ee1-a79f-fe70ac5a1e2a\",\r\n \"creationDate\": \"2020-09-04T02:29:24.413Z\",\r\n \"currentServiceObjectiveName\": \"GP_Gen5_2\",\r\n \"requestedServiceObjectiveName\": \"GP_Gen5_2\",\r\n \"defaultSecondaryLocation\": \"eastasia\",\r\n \"catalogCollation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"zoneRedundant\": false,\r\n \"licenseType\": \"LicenseIncluded\",\r\n \"maxLogSizeBytes\": 10307502080,\r\n \"earliestRestoreDate\": \"2020-09-04T02:59:24.413Z\",\r\n \"readScale\": \"Disabled\",\r\n \"readReplicaCount\": 0,\r\n \"currentSku\": {\r\n \"name\": \"GP_Gen5\",\r\n \"tier\": \"GeneralPurpose\",\r\n \"family\": \"Gen5\",\r\n \"capacity\": 2\r\n },\r\n \"storageAccountType\": \"GRS\"\r\n },\r\n \"location\": \"southeastasia\",\r\n \"id\": \"/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-5569/providers/Microsoft.Sql/servers/sqlcrudtest-9821/databases/sqlcrudtest-1791\",\r\n \"name\": \"sqlcrudtest-1791\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/servers/sqlcrudtest-3000/databases/sqlcrudtest-4254?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3ODEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zMDAwL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC00MjU0P2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-5569/providers/Microsoft.Sql/servers/sqlcrudtest-9821/databases/sqlcrudtest-7153?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1NjkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05ODIxL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC03MTUzP2FwaS12ZXJzaW9uPTIwMTktMDYtMDEtcHJldmlldw==", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"Basic\"\r\n },\r\n \"properties\": {\r\n \"createMode\": \"Default\",\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": 2147483648,\r\n \"sampleName\": \"AdventureWorksLT\"\r\n },\r\n \"location\": \"southeastasia\",\r\n \"tags\": {\r\n \"tagKey1\": \"TagValue1\"\r\n }\r\n}", + "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"Basic\"\r\n },\r\n \"properties\": {\r\n \"createMode\": \"Default\",\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": 2147483648,\r\n \"sampleName\": \"AdventureWorksLT\",\r\n \"storageAccountType\": \"GRS\"\r\n },\r\n \"location\": \"southeastasia\",\r\n \"tags\": {\r\n \"tagKey1\": \"TagValue1\"\r\n }\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "2d9334f7-582b-46f6-a2a9-9741c47b894a" + "cd4f27f2-8274-44c4-86ac-7eb0e2c8b9f5" ], "accept-language": [ "en-US" @@ -892,13 +952,13 @@ "FxVersion/4.6.26614.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.14393.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.45.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" ], "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "297" + "331" ] }, "ResponseHeaders": { @@ -906,13 +966,13 @@ "no-cache" ], "Date": [ - "Tue, 01 Sep 2020 20:24:21 GMT" + "Fri, 04 Sep 2020 02:29:33 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/locations/southeastasia/databaseOperationResults/174fdc9f-ced6-4b56-b9bf-db12f0cb9d65?api-version=2017-10-01-preview" + "https://management.azure.com/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-5569/providers/Microsoft.Sql/locations/southeastasia/databaseOperationResults/202071b3-b526-4845-8cf7-d23a42036deb?api-version=2019-06-01-preview" ], "Retry-After": [ "15" @@ -921,19 +981,19 @@ "Microsoft-HTTPAPI/2.0" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/locations/southeastasia/databaseAzureAsyncOperation/174fdc9f-ced6-4b56-b9bf-db12f0cb9d65?api-version=2017-10-01-preview" + "https://management.azure.com/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-5569/providers/Microsoft.Sql/locations/southeastasia/databaseAzureAsyncOperation/202071b3-b526-4845-8cf7-d23a42036deb?api-version=2019-06-01-preview" ], "x-ms-request-id": [ - "174fdc9f-ced6-4b56-b9bf-db12f0cb9d65" + "202071b3-b526-4845-8cf7-d23a42036deb" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1197" ], "x-ms-correlation-request-id": [ - "d078cbdb-d5b0-43d3-b9f4-c61d5e3886e1" + "64390127-291f-42ea-b0c2-ab38ef679cd7" ], "x-ms-routing-request-id": [ - "WESTUS:20200901T202421Z:d078cbdb-d5b0-43d3-b9f4-c61d5e3886e1" + "WESTUS:20200904T022934Z:64390127-291f-42ea-b0c2-ab38ef679cd7" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -951,12 +1011,12 @@ "-1" ] }, - "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2020-09-01T20:24:21.547Z\"\r\n}", + "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2020-09-04T02:29:34.773Z\"\r\n}", "StatusCode": 202 }, { - "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/locations/southeastasia/databaseAzureAsyncOperation/174fdc9f-ced6-4b56-b9bf-db12f0cb9d65?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3ODEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3NvdXRoZWFzdGFzaWEvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzE3NGZkYzlmLWNlZDYtNGI1Ni1iOWJmLWRiMTJmMGNiOWQ2NT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-5569/providers/Microsoft.Sql/locations/southeastasia/databaseAzureAsyncOperation/202071b3-b526-4845-8cf7-d23a42036deb?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1NjkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3NvdXRoZWFzdGFzaWEvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzIwMjA3MWIzLWI1MjYtNDg0NS04Y2Y3LWQyM2E0MjAzNmRlYj9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -964,7 +1024,7 @@ "FxVersion/4.6.26614.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.14393.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.45.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" ] }, "ResponseHeaders": { @@ -972,7 +1032,7 @@ "no-cache" ], "Date": [ - "Tue, 01 Sep 2020 20:24:36 GMT" + "Fri, 04 Sep 2020 02:29:50 GMT" ], "Pragma": [ "no-cache" @@ -984,76 +1044,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "8d6d381d-28ae-4cab-baf1-685ec5c0c883" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11988" - ], - "x-ms-correlation-request-id": [ - "13aa6eb2-6d5d-4313-8397-2f96f701e666" - ], - "x-ms-routing-request-id": [ - "WESTUS:20200901T202436Z:13aa6eb2-6d5d-4313-8397-2f96f701e666" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Content-Length": [ - "108" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"name\": \"174fdc9f-ced6-4b56-b9bf-db12f0cb9d65\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-01T20:24:21.547Z\"\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/locations/southeastasia/databaseAzureAsyncOperation/174fdc9f-ced6-4b56-b9bf-db12f0cb9d65?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3ODEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3NvdXRoZWFzdGFzaWEvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzE3NGZkYzlmLWNlZDYtNGI1Ni1iOWJmLWRiMTJmMGNiOWQ2NT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.26614.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.14393.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.45.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Tue, 01 Sep 2020 20:24:51 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Retry-After": [ - "15" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-request-id": [ - "e5169cfc-eaa1-4e5d-8f99-1c5823ea6a39" + "ed5329e5-bed8-4ad4-9905-be716e5cdc3f" ], "x-ms-ratelimit-remaining-subscription-reads": [ "11987" ], "x-ms-correlation-request-id": [ - "9cbb5a3c-f88c-4c89-9bda-54ddccb32222" + "b12e44d4-8fc1-446b-b113-b36064914296" ], "x-ms-routing-request-id": [ - "WESTUS:20200901T202452Z:9cbb5a3c-f88c-4c89-9bda-54ddccb32222" + "WESTUS:20200904T022950Z:b12e44d4-8fc1-446b-b113-b36064914296" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1071,12 +1071,12 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"174fdc9f-ced6-4b56-b9bf-db12f0cb9d65\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-01T20:24:21.547Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"202071b3-b526-4845-8cf7-d23a42036deb\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-04T02:29:34.773Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/locations/southeastasia/databaseAzureAsyncOperation/174fdc9f-ced6-4b56-b9bf-db12f0cb9d65?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3ODEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3NvdXRoZWFzdGFzaWEvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzE3NGZkYzlmLWNlZDYtNGI1Ni1iOWJmLWRiMTJmMGNiOWQ2NT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-5569/providers/Microsoft.Sql/locations/southeastasia/databaseAzureAsyncOperation/202071b3-b526-4845-8cf7-d23a42036deb?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1NjkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3NvdXRoZWFzdGFzaWEvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzIwMjA3MWIzLWI1MjYtNDg0NS04Y2Y3LWQyM2E0MjAzNmRlYj9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -1084,7 +1084,7 @@ "FxVersion/4.6.26614.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.14393.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.45.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" ] }, "ResponseHeaders": { @@ -1092,7 +1092,7 @@ "no-cache" ], "Date": [ - "Tue, 01 Sep 2020 20:25:06 GMT" + "Fri, 04 Sep 2020 02:30:05 GMT" ], "Pragma": [ "no-cache" @@ -1104,16 +1104,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "10591bce-674a-4b05-be3b-05cb1220643c" + "ab645474-5401-4cab-b881-f10e5268716e" ], "x-ms-ratelimit-remaining-subscription-reads": [ "11986" ], "x-ms-correlation-request-id": [ - "03381cc5-618c-470e-9a64-72bec411789a" + "fdf84e75-d41c-48a5-8072-3dbeab48d177" ], "x-ms-routing-request-id": [ - "WESTUS:20200901T202507Z:03381cc5-618c-470e-9a64-72bec411789a" + "WESTUS:20200904T023005Z:fdf84e75-d41c-48a5-8072-3dbeab48d177" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1131,12 +1131,12 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"174fdc9f-ced6-4b56-b9bf-db12f0cb9d65\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-01T20:24:21.547Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"202071b3-b526-4845-8cf7-d23a42036deb\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-04T02:29:34.773Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/locations/southeastasia/databaseAzureAsyncOperation/174fdc9f-ced6-4b56-b9bf-db12f0cb9d65?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3ODEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3NvdXRoZWFzdGFzaWEvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzE3NGZkYzlmLWNlZDYtNGI1Ni1iOWJmLWRiMTJmMGNiOWQ2NT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-5569/providers/Microsoft.Sql/locations/southeastasia/databaseAzureAsyncOperation/202071b3-b526-4845-8cf7-d23a42036deb?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1NjkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3NvdXRoZWFzdGFzaWEvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzIwMjA3MWIzLWI1MjYtNDg0NS04Y2Y3LWQyM2E0MjAzNmRlYj9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -1144,7 +1144,7 @@ "FxVersion/4.6.26614.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.14393.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.45.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" ] }, "ResponseHeaders": { @@ -1152,7 +1152,7 @@ "no-cache" ], "Date": [ - "Tue, 01 Sep 2020 20:25:21 GMT" + "Fri, 04 Sep 2020 02:30:20 GMT" ], "Pragma": [ "no-cache" @@ -1164,16 +1164,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "709d62b3-5400-482e-ba09-1253a3040297" + "1e4647e6-490b-47ba-8c06-aa825bd091c8" ], "x-ms-ratelimit-remaining-subscription-reads": [ "11985" ], "x-ms-correlation-request-id": [ - "ccb14377-e080-40ce-8331-4f43118be088" + "404f758b-f174-4e4a-bc4c-401768ec1f3e" ], "x-ms-routing-request-id": [ - "WESTUS:20200901T202522Z:ccb14377-e080-40ce-8331-4f43118be088" + "WESTUS:20200904T023020Z:404f758b-f174-4e4a-bc4c-401768ec1f3e" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1191,12 +1191,12 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"174fdc9f-ced6-4b56-b9bf-db12f0cb9d65\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2020-09-01T20:24:21.547Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"202071b3-b526-4845-8cf7-d23a42036deb\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2020-09-04T02:29:34.773Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/servers/sqlcrudtest-3000/databases/sqlcrudtest-4254?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3ODEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zMDAwL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC00MjU0P2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-5569/providers/Microsoft.Sql/servers/sqlcrudtest-9821/databases/sqlcrudtest-7153?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1NjkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05ODIxL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC03MTUzP2FwaS12ZXJzaW9uPTIwMTktMDYtMDEtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -1204,7 +1204,7 @@ "FxVersion/4.6.26614.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.14393.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.45.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" ] }, "ResponseHeaders": { @@ -1212,7 +1212,7 @@ "no-cache" ], "Date": [ - "Tue, 01 Sep 2020 20:25:22 GMT" + "Fri, 04 Sep 2020 02:30:20 GMT" ], "Pragma": [ "no-cache" @@ -1221,16 +1221,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "6635badf-263a-41a9-8e84-4903bd5b42a7" + "b8effefb-3da2-4063-8f71-2eef84f64d7b" ], "x-ms-ratelimit-remaining-subscription-reads": [ "11984" ], "x-ms-correlation-request-id": [ - "cb5593cb-734e-4eff-8934-3e6aed7e7416" + "b2b10467-1802-4d88-8b39-2d824b488740" ], "x-ms-routing-request-id": [ - "WESTUS:20200901T202522Z:cb5593cb-734e-4eff-8934-3e6aed7e7416" + "WESTUS:20200904T023020Z:b2b10467-1802-4d88-8b39-2d824b488740" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1239,7 +1239,7 @@ "nosniff" ], "Content-Length": [ - "899" + "924" ], "Content-Type": [ "application/json; charset=utf-8" @@ -1248,17 +1248,17 @@ "-1" ] }, - "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Basic\",\r\n \"tier\": \"Basic\",\r\n \"capacity\": 5\r\n },\r\n \"kind\": \"v12.0,user\",\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": 2147483648,\r\n \"status\": \"Online\",\r\n \"databaseId\": \"560beb01-c9c0-4a5f-997e-ba73f3e94d79\",\r\n \"creationDate\": \"2020-09-01T20:25:12.067Z\",\r\n \"currentServiceObjectiveName\": \"Basic\",\r\n \"requestedServiceObjectiveName\": \"Basic\",\r\n \"defaultSecondaryLocation\": \"eastasia\",\r\n \"catalogCollation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"zoneRedundant\": false,\r\n \"earliestRestoreDate\": \"2020-09-01T20:55:12.067Z\",\r\n \"readScale\": \"Disabled\",\r\n \"readReplicaCount\": 0,\r\n \"currentSku\": {\r\n \"name\": \"Basic\",\r\n \"tier\": \"Basic\",\r\n \"capacity\": 5\r\n }\r\n },\r\n \"location\": \"southeastasia\",\r\n \"tags\": {\r\n \"tagKey1\": \"TagValue1\"\r\n },\r\n \"id\": \"/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/servers/sqlcrudtest-3000/databases/sqlcrudtest-4254\",\r\n \"name\": \"sqlcrudtest-4254\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Basic\",\r\n \"tier\": \"Basic\",\r\n \"capacity\": 5\r\n },\r\n \"kind\": \"v12.0,user\",\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": 2147483648,\r\n \"status\": \"Online\",\r\n \"databaseId\": \"4485ad9a-275d-4301-ad4f-af8c02b7602e\",\r\n \"creationDate\": \"2020-09-04T02:30:17.29Z\",\r\n \"currentServiceObjectiveName\": \"Basic\",\r\n \"requestedServiceObjectiveName\": \"Basic\",\r\n \"defaultSecondaryLocation\": \"eastasia\",\r\n \"catalogCollation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"zoneRedundant\": false,\r\n \"earliestRestoreDate\": \"2020-09-04T03:00:17.29Z\",\r\n \"readScale\": \"Disabled\",\r\n \"readReplicaCount\": 0,\r\n \"currentSku\": {\r\n \"name\": \"Basic\",\r\n \"tier\": \"Basic\",\r\n \"capacity\": 5\r\n },\r\n \"storageAccountType\": \"GRS\"\r\n },\r\n \"location\": \"southeastasia\",\r\n \"tags\": {\r\n \"tagKey1\": \"TagValue1\"\r\n },\r\n \"id\": \"/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-5569/providers/Microsoft.Sql/servers/sqlcrudtest-9821/databases/sqlcrudtest-7153\",\r\n \"name\": \"sqlcrudtest-7153\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/servers/sqlcrudtest-3000/databases/sqlcrudtest-7309?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3ODEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zMDAwL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC03MzA5P2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-5569/providers/Microsoft.Sql/servers/sqlcrudtest-9821/databases/sqlcrudtest-4457?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1NjkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05ODIxL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC00NDU3P2FwaS12ZXJzaW9uPTIwMTktMDYtMDEtcHJldmlldw==", "RequestMethod": "PUT", "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"S0\"\r\n },\r\n \"location\": \"southeastasia\",\r\n \"tags\": {\r\n \"tagKey1\": \"TagValue1\"\r\n }\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "6e8adf47-8580-4a1a-8863-42959bb7d9e4" + "87a03426-49f7-49f0-bd60-712a46e22deb" ], "accept-language": [ "en-US" @@ -1267,7 +1267,7 @@ "FxVersion/4.6.26614.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.14393.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.45.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" ], "Content-Type": [ "application/json; charset=utf-8" @@ -1281,13 +1281,13 @@ "no-cache" ], "Date": [ - "Tue, 01 Sep 2020 20:25:27 GMT" + "Fri, 04 Sep 2020 02:30:23 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/locations/southeastasia/databaseOperationResults/da53b54f-6afb-44a3-9217-971a77e6691e?api-version=2017-10-01-preview" + "https://management.azure.com/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-5569/providers/Microsoft.Sql/locations/southeastasia/databaseOperationResults/ee0f6dc6-67af-4026-ae17-637d46c56d7b?api-version=2019-06-01-preview" ], "Retry-After": [ "15" @@ -1296,19 +1296,19 @@ "Microsoft-HTTPAPI/2.0" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/locations/southeastasia/databaseAzureAsyncOperation/da53b54f-6afb-44a3-9217-971a77e6691e?api-version=2017-10-01-preview" + "https://management.azure.com/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-5569/providers/Microsoft.Sql/locations/southeastasia/databaseAzureAsyncOperation/ee0f6dc6-67af-4026-ae17-637d46c56d7b?api-version=2019-06-01-preview" ], "x-ms-request-id": [ - "da53b54f-6afb-44a3-9217-971a77e6691e" + "ee0f6dc6-67af-4026-ae17-637d46c56d7b" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1196" ], "x-ms-correlation-request-id": [ - "ff6f2677-c7dc-4a1a-91bc-4d26a31437bb" + "118286c0-c9ea-4112-8be9-0c9bc4616104" ], "x-ms-routing-request-id": [ - "WESTUS:20200901T202527Z:ff6f2677-c7dc-4a1a-91bc-4d26a31437bb" + "WESTUS:20200904T023024Z:118286c0-c9ea-4112-8be9-0c9bc4616104" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1326,12 +1326,12 @@ "-1" ] }, - "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2020-09-01T20:25:27.677Z\"\r\n}", + "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2020-09-04T02:30:23.867Z\"\r\n}", "StatusCode": 202 }, { - "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/locations/southeastasia/databaseAzureAsyncOperation/da53b54f-6afb-44a3-9217-971a77e6691e?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3ODEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3NvdXRoZWFzdGFzaWEvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2RhNTNiNTRmLTZhZmItNDRhMy05MjE3LTk3MWE3N2U2NjkxZT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-5569/providers/Microsoft.Sql/locations/southeastasia/databaseAzureAsyncOperation/ee0f6dc6-67af-4026-ae17-637d46c56d7b?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1NjkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3NvdXRoZWFzdGFzaWEvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2VlMGY2ZGM2LTY3YWYtNDAyNi1hZTE3LTYzN2Q0NmM1NmQ3Yj9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -1339,7 +1339,7 @@ "FxVersion/4.6.26614.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.14393.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.45.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" ] }, "ResponseHeaders": { @@ -1347,7 +1347,7 @@ "no-cache" ], "Date": [ - "Tue, 01 Sep 2020 20:25:42 GMT" + "Fri, 04 Sep 2020 02:30:38 GMT" ], "Pragma": [ "no-cache" @@ -1359,16 +1359,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "1bcbe0d5-8770-49b4-b679-03d8d8a56db9" + "bcf5f796-8a2e-4629-9f6b-5b0e2eb36a9f" ], "x-ms-ratelimit-remaining-subscription-reads": [ "11983" ], "x-ms-correlation-request-id": [ - "aef2b3b4-c718-4a5f-8f22-ef19c0d1253d" + "564a7984-1f0b-4ce8-88d6-9f4aab59f50b" ], "x-ms-routing-request-id": [ - "WESTUS:20200901T202543Z:aef2b3b4-c718-4a5f-8f22-ef19c0d1253d" + "WESTUS:20200904T023039Z:564a7984-1f0b-4ce8-88d6-9f4aab59f50b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1386,12 +1386,12 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"da53b54f-6afb-44a3-9217-971a77e6691e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-01T20:25:27.677Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"ee0f6dc6-67af-4026-ae17-637d46c56d7b\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-04T02:30:23.867Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/locations/southeastasia/databaseAzureAsyncOperation/da53b54f-6afb-44a3-9217-971a77e6691e?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3ODEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3NvdXRoZWFzdGFzaWEvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2RhNTNiNTRmLTZhZmItNDRhMy05MjE3LTk3MWE3N2U2NjkxZT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-5569/providers/Microsoft.Sql/locations/southeastasia/databaseAzureAsyncOperation/ee0f6dc6-67af-4026-ae17-637d46c56d7b?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1NjkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3NvdXRoZWFzdGFzaWEvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2VlMGY2ZGM2LTY3YWYtNDAyNi1hZTE3LTYzN2Q0NmM1NmQ3Yj9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -1399,7 +1399,7 @@ "FxVersion/4.6.26614.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.14393.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.45.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" ] }, "ResponseHeaders": { @@ -1407,7 +1407,7 @@ "no-cache" ], "Date": [ - "Tue, 01 Sep 2020 20:25:57 GMT" + "Fri, 04 Sep 2020 02:30:54 GMT" ], "Pragma": [ "no-cache" @@ -1419,16 +1419,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "32b9509a-07a3-4190-ab62-6dc7af4cb69e" + "ea683bb6-04d8-4100-8ff9-582f250ef75e" ], "x-ms-ratelimit-remaining-subscription-reads": [ "11982" ], "x-ms-correlation-request-id": [ - "27dda7a4-cb05-4478-b30b-90167067ba59" + "74c42b20-fde0-4dc0-a0b9-d58faa49a431" ], "x-ms-routing-request-id": [ - "WESTUS:20200901T202558Z:27dda7a4-cb05-4478-b30b-90167067ba59" + "WESTUS:20200904T023054Z:74c42b20-fde0-4dc0-a0b9-d58faa49a431" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1446,12 +1446,12 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"da53b54f-6afb-44a3-9217-971a77e6691e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-01T20:25:27.677Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"ee0f6dc6-67af-4026-ae17-637d46c56d7b\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-04T02:30:23.867Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/locations/southeastasia/databaseAzureAsyncOperation/da53b54f-6afb-44a3-9217-971a77e6691e?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3ODEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3NvdXRoZWFzdGFzaWEvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2RhNTNiNTRmLTZhZmItNDRhMy05MjE3LTk3MWE3N2U2NjkxZT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-5569/providers/Microsoft.Sql/locations/southeastasia/databaseAzureAsyncOperation/ee0f6dc6-67af-4026-ae17-637d46c56d7b?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1NjkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3NvdXRoZWFzdGFzaWEvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2VlMGY2ZGM2LTY3YWYtNDAyNi1hZTE3LTYzN2Q0NmM1NmQ3Yj9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -1459,7 +1459,7 @@ "FxVersion/4.6.26614.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.14393.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.45.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" ] }, "ResponseHeaders": { @@ -1467,7 +1467,7 @@ "no-cache" ], "Date": [ - "Tue, 01 Sep 2020 20:26:12 GMT" + "Fri, 04 Sep 2020 02:31:09 GMT" ], "Pragma": [ "no-cache" @@ -1479,16 +1479,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "3408cb0f-048c-4d58-b0a5-70eb83ec9877" + "c41a9d50-7061-47f6-ad13-9a06cd32ac4d" ], "x-ms-ratelimit-remaining-subscription-reads": [ "11981" ], "x-ms-correlation-request-id": [ - "f888d66b-70e0-4002-9b91-12c44c7fcdae" + "f6d207d6-69b3-44af-9c40-ae7f3e29b3c0" ], "x-ms-routing-request-id": [ - "WESTUS:20200901T202613Z:f888d66b-70e0-4002-9b91-12c44c7fcdae" + "WESTUS:20200904T023109Z:f6d207d6-69b3-44af-9c40-ae7f3e29b3c0" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1506,12 +1506,12 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"da53b54f-6afb-44a3-9217-971a77e6691e\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2020-09-01T20:25:27.677Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"ee0f6dc6-67af-4026-ae17-637d46c56d7b\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2020-09-04T02:30:23.867Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/servers/sqlcrudtest-3000/databases/sqlcrudtest-7309?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3ODEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zMDAwL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC03MzA5P2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-5569/providers/Microsoft.Sql/servers/sqlcrudtest-9821/databases/sqlcrudtest-4457?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1NjkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05ODIxL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC00NDU3P2FwaS12ZXJzaW9uPTIwMTktMDYtMDEtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -1519,7 +1519,7 @@ "FxVersion/4.6.26614.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.14393.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.45.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" ] }, "ResponseHeaders": { @@ -1527,7 +1527,7 @@ "no-cache" ], "Date": [ - "Tue, 01 Sep 2020 20:26:12 GMT" + "Fri, 04 Sep 2020 02:31:09 GMT" ], "Pragma": [ "no-cache" @@ -1536,16 +1536,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "49177873-a9c6-4c09-95e5-bc1c040d8309" + "0ad50300-716c-497f-a0a7-5d3618b31f1f" ], "x-ms-ratelimit-remaining-subscription-reads": [ "11980" ], "x-ms-correlation-request-id": [ - "fab4fc5b-76d5-4e32-aaa6-395c2ba09ec4" + "fd34a3a1-4ee7-4ae5-8a37-f5c7a038447e" ], "x-ms-routing-request-id": [ - "WESTUS:20200901T202613Z:fab4fc5b-76d5-4e32-aaa6-395c2ba09ec4" + "WESTUS:20200904T023109Z:fd34a3a1-4ee7-4ae5-8a37-f5c7a038447e" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1554,7 +1554,7 @@ "nosniff" ], "Content-Length": [ - "909" + "936" ], "Content-Type": [ "application/json; charset=utf-8" @@ -1563,17 +1563,17 @@ "-1" ] }, - "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 10\r\n },\r\n \"kind\": \"v12.0,user\",\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": 268435456000,\r\n \"status\": \"Online\",\r\n \"databaseId\": \"863f7572-3d11-4845-9e05-8379aaa5f56a\",\r\n \"creationDate\": \"2020-09-01T20:26:08.273Z\",\r\n \"currentServiceObjectiveName\": \"S0\",\r\n \"requestedServiceObjectiveName\": \"S0\",\r\n \"defaultSecondaryLocation\": \"eastasia\",\r\n \"catalogCollation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"zoneRedundant\": false,\r\n \"earliestRestoreDate\": \"2020-09-01T20:56:08.273Z\",\r\n \"readScale\": \"Disabled\",\r\n \"readReplicaCount\": 0,\r\n \"currentSku\": {\r\n \"name\": \"Standard\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 10\r\n }\r\n },\r\n \"location\": \"southeastasia\",\r\n \"tags\": {\r\n \"tagKey1\": \"TagValue1\"\r\n },\r\n \"id\": \"/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/servers/sqlcrudtest-3000/databases/sqlcrudtest-7309\",\r\n \"name\": \"sqlcrudtest-7309\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 10\r\n },\r\n \"kind\": \"v12.0,user\",\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": 268435456000,\r\n \"status\": \"Online\",\r\n \"databaseId\": \"bb3213d5-a101-4538-83de-c51b965cb8c9\",\r\n \"creationDate\": \"2020-09-04T02:31:02.117Z\",\r\n \"currentServiceObjectiveName\": \"S0\",\r\n \"requestedServiceObjectiveName\": \"S0\",\r\n \"defaultSecondaryLocation\": \"eastasia\",\r\n \"catalogCollation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"zoneRedundant\": false,\r\n \"earliestRestoreDate\": \"2020-09-04T03:01:02.117Z\",\r\n \"readScale\": \"Disabled\",\r\n \"readReplicaCount\": 0,\r\n \"currentSku\": {\r\n \"name\": \"Standard\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 10\r\n },\r\n \"storageAccountType\": \"GRS\"\r\n },\r\n \"location\": \"southeastasia\",\r\n \"tags\": {\r\n \"tagKey1\": \"TagValue1\"\r\n },\r\n \"id\": \"/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-5569/providers/Microsoft.Sql/servers/sqlcrudtest-9821/databases/sqlcrudtest-4457\",\r\n \"name\": \"sqlcrudtest-4457\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/servers/sqlcrudtest-3000/databases/sqlcrudtest-8833?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3ODEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zMDAwL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC04ODMzP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-5569/providers/Microsoft.Sql/servers/sqlcrudtest-9821/databases/sqlcrudtest-2763?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1NjkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05ODIxL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC0yNzYzP2FwaS12ZXJzaW9uPTIwMTktMDYtMDEtcHJldmlldw==", "RequestMethod": "PUT", "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"GP_S_Gen5_2\"\r\n },\r\n \"properties\": {\r\n \"autoPauseDelay\": 360,\r\n \"minCapacity\": 0.5\r\n },\r\n \"location\": \"southeastasia\",\r\n \"tags\": {\r\n \"tagKey1\": \"TagValue1\"\r\n }\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "242dc36e-39d5-43ec-812f-50a102ea8bb6" + "8e008976-c5b4-483a-be9c-02fec1c8a156" ], "accept-language": [ "en-US" @@ -1582,7 +1582,7 @@ "FxVersion/4.6.26614.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.14393.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.45.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" ], "Content-Type": [ "application/json; charset=utf-8" @@ -1596,13 +1596,13 @@ "no-cache" ], "Date": [ - "Tue, 01 Sep 2020 20:26:16 GMT" + "Fri, 04 Sep 2020 02:31:11 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/locations/southeastasia/databaseOperationResults/91a6ccdd-a34f-4e58-b2c3-84a239fd32fe?api-version=2017-10-01-preview" + "https://management.azure.com/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-5569/providers/Microsoft.Sql/locations/southeastasia/databaseOperationResults/4a2c13a9-b328-468a-a989-32300070b489?api-version=2019-06-01-preview" ], "Retry-After": [ "15" @@ -1611,19 +1611,19 @@ "Microsoft-HTTPAPI/2.0" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/locations/southeastasia/databaseAzureAsyncOperation/91a6ccdd-a34f-4e58-b2c3-84a239fd32fe?api-version=2017-10-01-preview" + "https://management.azure.com/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-5569/providers/Microsoft.Sql/locations/southeastasia/databaseAzureAsyncOperation/4a2c13a9-b328-468a-a989-32300070b489?api-version=2019-06-01-preview" ], "x-ms-request-id": [ - "91a6ccdd-a34f-4e58-b2c3-84a239fd32fe" + "4a2c13a9-b328-468a-a989-32300070b489" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1195" ], "x-ms-correlation-request-id": [ - "609224cb-efd7-429e-bced-d43763dccd3b" + "6286610d-7d4e-4e35-844a-4b162081f081" ], "x-ms-routing-request-id": [ - "WESTUS:20200901T202617Z:609224cb-efd7-429e-bced-d43763dccd3b" + "WESTUS:20200904T023111Z:6286610d-7d4e-4e35-844a-4b162081f081" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1632,7 +1632,7 @@ "nosniff" ], "Content-Length": [ - "76" + "75" ], "Content-Type": [ "application/json; charset=utf-8" @@ -1641,12 +1641,12 @@ "-1" ] }, - "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2020-09-01T20:26:17.523Z\"\r\n}", + "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2020-09-04T02:31:11.46Z\"\r\n}", "StatusCode": 202 }, { - "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/locations/southeastasia/databaseAzureAsyncOperation/91a6ccdd-a34f-4e58-b2c3-84a239fd32fe?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3ODEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3NvdXRoZWFzdGFzaWEvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzkxYTZjY2RkLWEzNGYtNGU1OC1iMmMzLTg0YTIzOWZkMzJmZT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-5569/providers/Microsoft.Sql/locations/southeastasia/databaseAzureAsyncOperation/4a2c13a9-b328-468a-a989-32300070b489?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1NjkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3NvdXRoZWFzdGFzaWEvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzRhMmMxM2E5LWIzMjgtNDY4YS1hOTg5LTMyMzAwMDcwYjQ4OT9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -1654,7 +1654,7 @@ "FxVersion/4.6.26614.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.14393.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.45.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" ] }, "ResponseHeaders": { @@ -1662,7 +1662,7 @@ "no-cache" ], "Date": [ - "Tue, 01 Sep 2020 20:26:32 GMT" + "Fri, 04 Sep 2020 02:31:26 GMT" ], "Pragma": [ "no-cache" @@ -1674,16 +1674,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "74a605cc-71e1-4d19-9cea-0ce8ad2ac92a" + "1dee986a-4962-4da5-882f-05f376ca0e0d" ], "x-ms-ratelimit-remaining-subscription-reads": [ "11979" ], "x-ms-correlation-request-id": [ - "1faa771d-30e6-4df3-8c2b-a84fd391e1a8" + "5fdfae41-9edc-445b-9f2e-c0f39e34ffb6" ], "x-ms-routing-request-id": [ - "WESTUS:20200901T202632Z:1faa771d-30e6-4df3-8c2b-a84fd391e1a8" + "WESTUS:20200904T023127Z:5fdfae41-9edc-445b-9f2e-c0f39e34ffb6" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1692,7 +1692,7 @@ "nosniff" ], "Content-Length": [ - "108" + "107" ], "Content-Type": [ "application/json; charset=utf-8" @@ -1701,12 +1701,12 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"91a6ccdd-a34f-4e58-b2c3-84a239fd32fe\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-01T20:26:17.523Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"4a2c13a9-b328-468a-a989-32300070b489\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-04T02:31:11.46Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/locations/southeastasia/databaseAzureAsyncOperation/91a6ccdd-a34f-4e58-b2c3-84a239fd32fe?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3ODEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3NvdXRoZWFzdGFzaWEvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzkxYTZjY2RkLWEzNGYtNGU1OC1iMmMzLTg0YTIzOWZkMzJmZT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-5569/providers/Microsoft.Sql/locations/southeastasia/databaseAzureAsyncOperation/4a2c13a9-b328-468a-a989-32300070b489?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1NjkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3NvdXRoZWFzdGFzaWEvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzRhMmMxM2E5LWIzMjgtNDY4YS1hOTg5LTMyMzAwMDcwYjQ4OT9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -1714,7 +1714,7 @@ "FxVersion/4.6.26614.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.14393.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.45.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" ] }, "ResponseHeaders": { @@ -1722,7 +1722,7 @@ "no-cache" ], "Date": [ - "Tue, 01 Sep 2020 20:26:48 GMT" + "Fri, 04 Sep 2020 02:31:41 GMT" ], "Pragma": [ "no-cache" @@ -1734,16 +1734,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "e46af2d9-55c5-45be-89ac-f49b2aba8e91" + "86ecbf16-c5c5-4c5d-b9ae-4581920de9dd" ], "x-ms-ratelimit-remaining-subscription-reads": [ "11978" ], "x-ms-correlation-request-id": [ - "e357ea36-5fb5-48c1-bbf4-5e2c80deac5e" + "fc121aa0-9039-4d45-acb4-7925912e5436" ], "x-ms-routing-request-id": [ - "WESTUS:20200901T202648Z:e357ea36-5fb5-48c1-bbf4-5e2c80deac5e" + "WESTUS:20200904T023142Z:fc121aa0-9039-4d45-acb4-7925912e5436" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1752,7 +1752,7 @@ "nosniff" ], "Content-Length": [ - "108" + "107" ], "Content-Type": [ "application/json; charset=utf-8" @@ -1761,12 +1761,12 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"91a6ccdd-a34f-4e58-b2c3-84a239fd32fe\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-01T20:26:17.523Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"4a2c13a9-b328-468a-a989-32300070b489\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-04T02:31:11.46Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/locations/southeastasia/databaseAzureAsyncOperation/91a6ccdd-a34f-4e58-b2c3-84a239fd32fe?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3ODEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3NvdXRoZWFzdGFzaWEvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzkxYTZjY2RkLWEzNGYtNGU1OC1iMmMzLTg0YTIzOWZkMzJmZT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-5569/providers/Microsoft.Sql/locations/southeastasia/databaseAzureAsyncOperation/4a2c13a9-b328-468a-a989-32300070b489?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1NjkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3NvdXRoZWFzdGFzaWEvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzRhMmMxM2E5LWIzMjgtNDY4YS1hOTg5LTMyMzAwMDcwYjQ4OT9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -1774,7 +1774,7 @@ "FxVersion/4.6.26614.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.14393.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.45.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" ] }, "ResponseHeaders": { @@ -1782,7 +1782,7 @@ "no-cache" ], "Date": [ - "Tue, 01 Sep 2020 20:27:03 GMT" + "Fri, 04 Sep 2020 02:31:57 GMT" ], "Pragma": [ "no-cache" @@ -1794,16 +1794,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "908a08f5-ccc3-4dd9-a264-7080091fde19" + "ff082276-ce31-4b59-a85d-52e17386c59d" ], "x-ms-ratelimit-remaining-subscription-reads": [ "11977" ], "x-ms-correlation-request-id": [ - "8c7ee285-58e5-4513-b5cd-794bd049c03c" + "00001de6-e04e-4061-a1dc-07ba2da34ee7" ], "x-ms-routing-request-id": [ - "WESTUS:20200901T202703Z:8c7ee285-58e5-4513-b5cd-794bd049c03c" + "WESTUS:20200904T023157Z:00001de6-e04e-4061-a1dc-07ba2da34ee7" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1812,7 +1812,7 @@ "nosniff" ], "Content-Length": [ - "107" + "106" ], "Content-Type": [ "application/json; charset=utf-8" @@ -1821,12 +1821,12 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"91a6ccdd-a34f-4e58-b2c3-84a239fd32fe\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2020-09-01T20:26:17.523Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"4a2c13a9-b328-468a-a989-32300070b489\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2020-09-04T02:31:11.46Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/servers/sqlcrudtest-3000/databases/sqlcrudtest-8833?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3ODEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zMDAwL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC04ODMzP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-5569/providers/Microsoft.Sql/servers/sqlcrudtest-9821/databases/sqlcrudtest-2763?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1NjkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05ODIxL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC0yNzYzP2FwaS12ZXJzaW9uPTIwMTktMDYtMDEtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -1834,7 +1834,7 @@ "FxVersion/4.6.26614.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.14393.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.45.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" ] }, "ResponseHeaders": { @@ -1842,7 +1842,7 @@ "no-cache" ], "Date": [ - "Tue, 01 Sep 2020 20:27:03 GMT" + "Fri, 04 Sep 2020 02:31:57 GMT" ], "Pragma": [ "no-cache" @@ -1851,16 +1851,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "0ae77b43-bf73-4a5f-894a-08f3cdd5d558" + "fa119325-5f69-4e92-ae82-68bad1ed92ff" ], "x-ms-ratelimit-remaining-subscription-reads": [ "11976" ], "x-ms-correlation-request-id": [ - "33f2b4e5-a059-4efc-b622-9604eef04d6a" + "b1dd14df-f781-4657-a60f-f7045bcd3088" ], "x-ms-routing-request-id": [ - "WESTUS:20200901T202703Z:33f2b4e5-a059-4efc-b622-9604eef04d6a" + "WESTUS:20200904T023158Z:b1dd14df-f781-4657-a60f-f7045bcd3088" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1869,7 +1869,7 @@ "nosniff" ], "Content-Length": [ - "1059" + "1084" ], "Content-Type": [ "application/json; charset=utf-8" @@ -1878,17 +1878,17 @@ "-1" ] }, - "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"GP_S_Gen5\",\r\n \"tier\": \"GeneralPurpose\",\r\n \"family\": \"Gen5\",\r\n \"capacity\": 2\r\n },\r\n \"kind\": \"v12.0,user,vcore,serverless\",\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": 34359738368,\r\n \"status\": \"Online\",\r\n \"databaseId\": \"0cc24350-b906-41bd-b2ea-9c32cb18e659\",\r\n \"creationDate\": \"2020-09-01T20:26:55.963Z\",\r\n \"currentServiceObjectiveName\": \"GP_S_Gen5_2\",\r\n \"requestedServiceObjectiveName\": \"GP_S_Gen5_2\",\r\n \"defaultSecondaryLocation\": \"eastasia\",\r\n \"catalogCollation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"zoneRedundant\": false,\r\n \"maxLogSizeBytes\": 10307502080,\r\n \"earliestRestoreDate\": \"2020-09-01T20:56:55.963Z\",\r\n \"readScale\": \"Disabled\",\r\n \"readReplicaCount\": 0,\r\n \"currentSku\": {\r\n \"name\": \"GP_S_Gen5\",\r\n \"tier\": \"GeneralPurpose\",\r\n \"family\": \"Gen5\",\r\n \"capacity\": 2\r\n },\r\n \"autoPauseDelay\": 360,\r\n \"minCapacity\": 0.5\r\n },\r\n \"location\": \"southeastasia\",\r\n \"tags\": {\r\n \"tagKey1\": \"TagValue1\"\r\n },\r\n \"id\": \"/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/servers/sqlcrudtest-3000/databases/sqlcrudtest-8833\",\r\n \"name\": \"sqlcrudtest-8833\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"GP_S_Gen5\",\r\n \"tier\": \"GeneralPurpose\",\r\n \"family\": \"Gen5\",\r\n \"capacity\": 2\r\n },\r\n \"kind\": \"v12.0,user,vcore,serverless\",\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": 34359738368,\r\n \"status\": \"Online\",\r\n \"databaseId\": \"c2ba2cb4-e52a-43e5-8f45-25280d07e977\",\r\n \"creationDate\": \"2020-09-04T02:31:47.76Z\",\r\n \"currentServiceObjectiveName\": \"GP_S_Gen5_2\",\r\n \"requestedServiceObjectiveName\": \"GP_S_Gen5_2\",\r\n \"defaultSecondaryLocation\": \"eastasia\",\r\n \"catalogCollation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"zoneRedundant\": false,\r\n \"maxLogSizeBytes\": 10307502080,\r\n \"earliestRestoreDate\": \"2020-09-04T03:01:47.76Z\",\r\n \"readScale\": \"Disabled\",\r\n \"readReplicaCount\": 0,\r\n \"currentSku\": {\r\n \"name\": \"GP_S_Gen5\",\r\n \"tier\": \"GeneralPurpose\",\r\n \"family\": \"Gen5\",\r\n \"capacity\": 2\r\n },\r\n \"autoPauseDelay\": 360,\r\n \"storageAccountType\": \"GRS\",\r\n \"minCapacity\": 0.5\r\n },\r\n \"location\": \"southeastasia\",\r\n \"tags\": {\r\n \"tagKey1\": \"TagValue1\"\r\n },\r\n \"id\": \"/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-5569/providers/Microsoft.Sql/servers/sqlcrudtest-9821/databases/sqlcrudtest-2763\",\r\n \"name\": \"sqlcrudtest-2763\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/servers/sqlcrudtest-3000/databases/sqlcrudtest-6589?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3ODEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zMDAwL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC02NTg5P2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-5569/providers/Microsoft.Sql/servers/sqlcrudtest-9821/databases/sqlcrudtest-936?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1NjkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05ODIxL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC05MzY/YXBpLXZlcnNpb249MjAxOS0wNi0wMS1wcmV2aWV3", "RequestMethod": "PUT", "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"P1\"\r\n },\r\n \"properties\": {\r\n \"readScale\": \"Enabled\"\r\n },\r\n \"location\": \"southeastasia\"\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "f1f5caed-a510-4f66-82ed-529cbf3893bb" + "0734f47d-be35-459c-9c8a-1d8888cdcec8" ], "accept-language": [ "en-US" @@ -1897,7 +1897,7 @@ "FxVersion/4.6.26614.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.14393.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.45.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" ], "Content-Type": [ "application/json; charset=utf-8" @@ -1911,13 +1911,13 @@ "no-cache" ], "Date": [ - "Tue, 01 Sep 2020 20:27:06 GMT" + "Fri, 04 Sep 2020 02:32:00 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/locations/southeastasia/databaseOperationResults/aff7fd74-8275-4417-9e98-32c0173efbf4?api-version=2017-10-01-preview" + "https://management.azure.com/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-5569/providers/Microsoft.Sql/locations/southeastasia/databaseOperationResults/483a4de9-d386-4302-b362-147112130b0a?api-version=2019-06-01-preview" ], "Retry-After": [ "15" @@ -1926,19 +1926,19 @@ "Microsoft-HTTPAPI/2.0" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/locations/southeastasia/databaseAzureAsyncOperation/aff7fd74-8275-4417-9e98-32c0173efbf4?api-version=2017-10-01-preview" + "https://management.azure.com/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-5569/providers/Microsoft.Sql/locations/southeastasia/databaseAzureAsyncOperation/483a4de9-d386-4302-b362-147112130b0a?api-version=2019-06-01-preview" ], "x-ms-request-id": [ - "aff7fd74-8275-4417-9e98-32c0173efbf4" + "483a4de9-d386-4302-b362-147112130b0a" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1194" ], "x-ms-correlation-request-id": [ - "7b700e8c-84e6-4904-8c88-4b6b60986217" + "a98862dc-ccb3-4972-9ff9-3c9ab798d6d4" ], "x-ms-routing-request-id": [ - "WESTUS:20200901T202706Z:7b700e8c-84e6-4904-8c88-4b6b60986217" + "WESTUS:20200904T023200Z:a98862dc-ccb3-4972-9ff9-3c9ab798d6d4" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1956,12 +1956,12 @@ "-1" ] }, - "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2020-09-01T20:27:06.383Z\"\r\n}", + "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2020-09-04T02:32:00.663Z\"\r\n}", "StatusCode": 202 }, { - "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/locations/southeastasia/databaseAzureAsyncOperation/aff7fd74-8275-4417-9e98-32c0173efbf4?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3ODEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3NvdXRoZWFzdGFzaWEvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2FmZjdmZDc0LTgyNzUtNDQxNy05ZTk4LTMyYzAxNzNlZmJmND9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-5569/providers/Microsoft.Sql/locations/southeastasia/databaseAzureAsyncOperation/483a4de9-d386-4302-b362-147112130b0a?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1NjkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3NvdXRoZWFzdGFzaWEvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzQ4M2E0ZGU5LWQzODYtNDMwMi1iMzYyLTE0NzExMjEzMGIwYT9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -1969,7 +1969,7 @@ "FxVersion/4.6.26614.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.14393.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.45.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" ] }, "ResponseHeaders": { @@ -1977,7 +1977,7 @@ "no-cache" ], "Date": [ - "Tue, 01 Sep 2020 20:27:21 GMT" + "Fri, 04 Sep 2020 02:32:15 GMT" ], "Pragma": [ "no-cache" @@ -1989,16 +1989,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "17aab23c-a487-4cd3-a7b1-00451acb7937" + "487803b0-d7ca-45c4-a641-4c820f9c05c3" ], "x-ms-ratelimit-remaining-subscription-reads": [ "11975" ], "x-ms-correlation-request-id": [ - "87977b63-f16e-47c9-a50d-939f78c414cb" + "153d6c46-387f-4fbd-b9d9-0bd1f4256907" ], "x-ms-routing-request-id": [ - "WESTUS:20200901T202721Z:87977b63-f16e-47c9-a50d-939f78c414cb" + "WESTUS:20200904T023216Z:153d6c46-387f-4fbd-b9d9-0bd1f4256907" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -2016,12 +2016,12 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"aff7fd74-8275-4417-9e98-32c0173efbf4\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-01T20:27:06.383Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"483a4de9-d386-4302-b362-147112130b0a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-04T02:32:00.663Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/locations/southeastasia/databaseAzureAsyncOperation/aff7fd74-8275-4417-9e98-32c0173efbf4?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3ODEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3NvdXRoZWFzdGFzaWEvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2FmZjdmZDc0LTgyNzUtNDQxNy05ZTk4LTMyYzAxNzNlZmJmND9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-5569/providers/Microsoft.Sql/locations/southeastasia/databaseAzureAsyncOperation/483a4de9-d386-4302-b362-147112130b0a?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1NjkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3NvdXRoZWFzdGFzaWEvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzQ4M2E0ZGU5LWQzODYtNDMwMi1iMzYyLTE0NzExMjEzMGIwYT9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -2029,7 +2029,7 @@ "FxVersion/4.6.26614.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.14393.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.45.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" ] }, "ResponseHeaders": { @@ -2037,7 +2037,7 @@ "no-cache" ], "Date": [ - "Tue, 01 Sep 2020 20:27:36 GMT" + "Fri, 04 Sep 2020 02:32:30 GMT" ], "Pragma": [ "no-cache" @@ -2049,16 +2049,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "3ad901eb-bf59-4787-b002-b674bca76194" + "4cf4be01-e349-461b-bab4-78ef1a448f77" ], "x-ms-ratelimit-remaining-subscription-reads": [ "11974" ], "x-ms-correlation-request-id": [ - "cd126b72-bd78-4fc5-93ce-43c1c7645f9a" + "cbb97baf-ba9f-4a78-969f-9dc0a1e19059" ], "x-ms-routing-request-id": [ - "WESTUS:20200901T202736Z:cd126b72-bd78-4fc5-93ce-43c1c7645f9a" + "WESTUS:20200904T023231Z:cbb97baf-ba9f-4a78-969f-9dc0a1e19059" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -2076,12 +2076,12 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"aff7fd74-8275-4417-9e98-32c0173efbf4\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-01T20:27:06.383Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"483a4de9-d386-4302-b362-147112130b0a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-04T02:32:00.663Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/locations/southeastasia/databaseAzureAsyncOperation/aff7fd74-8275-4417-9e98-32c0173efbf4?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3ODEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3NvdXRoZWFzdGFzaWEvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2FmZjdmZDc0LTgyNzUtNDQxNy05ZTk4LTMyYzAxNzNlZmJmND9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-5569/providers/Microsoft.Sql/locations/southeastasia/databaseAzureAsyncOperation/483a4de9-d386-4302-b362-147112130b0a?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1NjkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3NvdXRoZWFzdGFzaWEvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzQ4M2E0ZGU5LWQzODYtNDMwMi1iMzYyLTE0NzExMjEzMGIwYT9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -2089,7 +2089,7 @@ "FxVersion/4.6.26614.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.14393.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.45.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" ] }, "ResponseHeaders": { @@ -2097,7 +2097,7 @@ "no-cache" ], "Date": [ - "Tue, 01 Sep 2020 20:27:51 GMT" + "Fri, 04 Sep 2020 02:32:45 GMT" ], "Pragma": [ "no-cache" @@ -2109,16 +2109,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "6b717ebf-63ef-4d41-a45c-e5930c331ad7" + "b643eed7-f8d2-4e66-ad9a-3443b42f7159" ], "x-ms-ratelimit-remaining-subscription-reads": [ "11973" ], "x-ms-correlation-request-id": [ - "d9e27a93-ab59-4741-8520-e0c02b1d173f" + "59481959-e079-45fe-a7d3-75e8f371f3fe" ], "x-ms-routing-request-id": [ - "WESTUS:20200901T202752Z:d9e27a93-ab59-4741-8520-e0c02b1d173f" + "WESTUS:20200904T023246Z:59481959-e079-45fe-a7d3-75e8f371f3fe" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -2136,12 +2136,12 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"aff7fd74-8275-4417-9e98-32c0173efbf4\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-01T20:27:06.383Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"483a4de9-d386-4302-b362-147112130b0a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-04T02:32:00.663Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/locations/southeastasia/databaseAzureAsyncOperation/aff7fd74-8275-4417-9e98-32c0173efbf4?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3ODEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3NvdXRoZWFzdGFzaWEvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2FmZjdmZDc0LTgyNzUtNDQxNy05ZTk4LTMyYzAxNzNlZmJmND9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-5569/providers/Microsoft.Sql/locations/southeastasia/databaseAzureAsyncOperation/483a4de9-d386-4302-b362-147112130b0a?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1NjkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3NvdXRoZWFzdGFzaWEvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzQ4M2E0ZGU5LWQzODYtNDMwMi1iMzYyLTE0NzExMjEzMGIwYT9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -2149,7 +2149,7 @@ "FxVersion/4.6.26614.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.14393.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.45.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" ] }, "ResponseHeaders": { @@ -2157,7 +2157,7 @@ "no-cache" ], "Date": [ - "Tue, 01 Sep 2020 20:28:06 GMT" + "Fri, 04 Sep 2020 02:33:00 GMT" ], "Pragma": [ "no-cache" @@ -2169,16 +2169,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "c4ff6815-2e4b-4c73-be4c-3766a94e6ada" + "227a290b-0a82-4bd6-9c6a-034dfb061c14" ], "x-ms-ratelimit-remaining-subscription-reads": [ "11972" ], "x-ms-correlation-request-id": [ - "14d1e159-17b4-4e7f-b087-14c6e387b936" + "49b0ceba-e4c8-4623-9cd8-6eceb14cd305" ], "x-ms-routing-request-id": [ - "WESTUS:20200901T202807Z:14d1e159-17b4-4e7f-b087-14c6e387b936" + "WESTUS:20200904T023301Z:49b0ceba-e4c8-4623-9cd8-6eceb14cd305" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -2196,12 +2196,12 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"aff7fd74-8275-4417-9e98-32c0173efbf4\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2020-09-01T20:27:06.383Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"483a4de9-d386-4302-b362-147112130b0a\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2020-09-04T02:32:00.663Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/servers/sqlcrudtest-3000/databases/sqlcrudtest-6589?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3ODEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zMDAwL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC02NTg5P2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-5569/providers/Microsoft.Sql/servers/sqlcrudtest-9821/databases/sqlcrudtest-936?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1NjkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05ODIxL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC05MzY/YXBpLXZlcnNpb249MjAxOS0wNi0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -2209,7 +2209,7 @@ "FxVersion/4.6.26614.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.14393.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.45.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" ] }, "ResponseHeaders": { @@ -2217,7 +2217,7 @@ "no-cache" ], "Date": [ - "Tue, 01 Sep 2020 20:28:07 GMT" + "Fri, 04 Sep 2020 02:33:01 GMT" ], "Pragma": [ "no-cache" @@ -2226,16 +2226,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "e6d20580-78d2-4425-a034-d0e4fdc540a9" + "b7184c1d-4c48-4435-9a97-8ef6207f2399" ], "x-ms-ratelimit-remaining-subscription-reads": [ "11971" ], "x-ms-correlation-request-id": [ - "c2b7a748-45c1-43ff-b325-b91d41071b02" + "32042e77-2cca-4efc-ab03-cb7adbc465ce" ], "x-ms-routing-request-id": [ - "WESTUS:20200901T202807Z:c2b7a748-45c1-43ff-b325-b91d41071b02" + "WESTUS:20200904T023302Z:32042e77-2cca-4efc-ab03-cb7adbc465ce" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -2244,7 +2244,7 @@ "nosniff" ], "Content-Length": [ - "875" + "898" ], "Content-Type": [ "application/json; charset=utf-8" @@ -2253,17 +2253,17 @@ "-1" ] }, - "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Premium\",\r\n \"tier\": \"Premium\",\r\n \"capacity\": 125\r\n },\r\n \"kind\": \"v12.0,user\",\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": 536870912000,\r\n \"status\": \"Online\",\r\n \"databaseId\": \"44bfd167-f867-4124-8d35-ba533ad37e75\",\r\n \"creationDate\": \"2020-09-01T20:28:04.123Z\",\r\n \"currentServiceObjectiveName\": \"P1\",\r\n \"requestedServiceObjectiveName\": \"P1\",\r\n \"defaultSecondaryLocation\": \"eastasia\",\r\n \"catalogCollation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"zoneRedundant\": false,\r\n \"earliestRestoreDate\": \"2020-09-01T20:58:04.123Z\",\r\n \"readScale\": \"Enabled\",\r\n \"readReplicaCount\": 1,\r\n \"currentSku\": {\r\n \"name\": \"Premium\",\r\n \"tier\": \"Premium\",\r\n \"capacity\": 125\r\n }\r\n },\r\n \"location\": \"southeastasia\",\r\n \"id\": \"/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/servers/sqlcrudtest-3000/databases/sqlcrudtest-6589\",\r\n \"name\": \"sqlcrudtest-6589\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Premium\",\r\n \"tier\": \"Premium\",\r\n \"capacity\": 125\r\n },\r\n \"kind\": \"v12.0,user\",\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": 536870912000,\r\n \"status\": \"Online\",\r\n \"databaseId\": \"e6e76a7c-7bcd-4704-8f18-305564be9ff2\",\r\n \"creationDate\": \"2020-09-04T02:32:53.82Z\",\r\n \"currentServiceObjectiveName\": \"P1\",\r\n \"requestedServiceObjectiveName\": \"P1\",\r\n \"defaultSecondaryLocation\": \"eastasia\",\r\n \"catalogCollation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"zoneRedundant\": false,\r\n \"earliestRestoreDate\": \"2020-09-04T03:02:53.82Z\",\r\n \"readScale\": \"Enabled\",\r\n \"readReplicaCount\": 1,\r\n \"currentSku\": {\r\n \"name\": \"Premium\",\r\n \"tier\": \"Premium\",\r\n \"capacity\": 125\r\n },\r\n \"storageAccountType\": \"GRS\"\r\n },\r\n \"location\": \"southeastasia\",\r\n \"id\": \"/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-5569/providers/Microsoft.Sql/servers/sqlcrudtest-9821/databases/sqlcrudtest-936\",\r\n \"name\": \"sqlcrudtest-936\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/servers/sqlcrudtest-3000/databases/sqlcrudtest-1042?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3ODEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zMDAwL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC0xMDQyP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-5569/providers/Microsoft.Sql/servers/sqlcrudtest-9821/databases/sqlcrudtest-1826?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1NjkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05ODIxL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC0xODI2P2FwaS12ZXJzaW9uPTIwMTktMDYtMDEtcHJldmlldw==", "RequestMethod": "PUT", "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"HS_Gen5_4\",\r\n \"tier\": \"Hyperscale\"\r\n },\r\n \"properties\": {\r\n \"readReplicaCount\": 4\r\n },\r\n \"location\": \"southeastasia\"\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "84d57482-b7a8-4e3a-8925-dbf39c823f21" + "f3c1c6ea-e489-4028-90dd-ba638c59af90" ], "accept-language": [ "en-US" @@ -2272,7 +2272,7 @@ "FxVersion/4.6.26614.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.14393.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.45.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" ], "Content-Type": [ "application/json; charset=utf-8" @@ -2286,13 +2286,13 @@ "no-cache" ], "Date": [ - "Tue, 01 Sep 2020 20:28:11 GMT" + "Fri, 04 Sep 2020 02:33:05 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/locations/southeastasia/databaseOperationResults/0aefb61e-9858-4673-9101-1e79461f0442?api-version=2017-10-01-preview" + "https://management.azure.com/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-5569/providers/Microsoft.Sql/locations/southeastasia/databaseOperationResults/d196d11a-be09-4018-bac5-d4900bed06e3?api-version=2019-06-01-preview" ], "Retry-After": [ "15" @@ -2301,19 +2301,19 @@ "Microsoft-HTTPAPI/2.0" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/locations/southeastasia/databaseAzureAsyncOperation/0aefb61e-9858-4673-9101-1e79461f0442?api-version=2017-10-01-preview" + "https://management.azure.com/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-5569/providers/Microsoft.Sql/locations/southeastasia/databaseAzureAsyncOperation/d196d11a-be09-4018-bac5-d4900bed06e3?api-version=2019-06-01-preview" ], "x-ms-request-id": [ - "0aefb61e-9858-4673-9101-1e79461f0442" + "d196d11a-be09-4018-bac5-d4900bed06e3" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1193" ], "x-ms-correlation-request-id": [ - "b868aeb4-6cf4-4fcb-be5d-797f6e7081ed" + "0c4edae2-3fbc-4780-89bd-757b3efdc442" ], "x-ms-routing-request-id": [ - "WESTUS:20200901T202812Z:b868aeb4-6cf4-4fcb-be5d-797f6e7081ed" + "WESTUS:20200904T023306Z:0c4edae2-3fbc-4780-89bd-757b3efdc442" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -2331,12 +2331,12 @@ "-1" ] }, - "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2020-09-01T20:28:12.187Z\"\r\n}", + "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2020-09-04T02:33:06.463Z\"\r\n}", "StatusCode": 202 }, { - "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/locations/southeastasia/databaseAzureAsyncOperation/0aefb61e-9858-4673-9101-1e79461f0442?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3ODEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3NvdXRoZWFzdGFzaWEvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzBhZWZiNjFlLTk4NTgtNDY3My05MTAxLTFlNzk0NjFmMDQ0Mj9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-5569/providers/Microsoft.Sql/locations/southeastasia/databaseAzureAsyncOperation/d196d11a-be09-4018-bac5-d4900bed06e3?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1NjkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3NvdXRoZWFzdGFzaWEvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2QxOTZkMTFhLWJlMDktNDAxOC1iYWM1LWQ0OTAwYmVkMDZlMz9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -2344,7 +2344,7 @@ "FxVersion/4.6.26614.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.14393.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.45.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" ] }, "ResponseHeaders": { @@ -2352,7 +2352,7 @@ "no-cache" ], "Date": [ - "Tue, 01 Sep 2020 20:28:26 GMT" + "Fri, 04 Sep 2020 02:33:21 GMT" ], "Pragma": [ "no-cache" @@ -2364,16 +2364,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "810f3cfa-b6d4-464b-a753-e62d86587b32" + "74d3457b-bca7-4c75-945a-609d47c60c0b" ], "x-ms-ratelimit-remaining-subscription-reads": [ "11970" ], "x-ms-correlation-request-id": [ - "4b56b99c-34d2-4185-9aba-0349b7c73293" + "ea041ce3-01a8-489b-8015-9bbfa9a719e7" ], "x-ms-routing-request-id": [ - "WESTUS:20200901T202827Z:4b56b99c-34d2-4185-9aba-0349b7c73293" + "WESTUS:20200904T023321Z:ea041ce3-01a8-489b-8015-9bbfa9a719e7" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -2391,12 +2391,12 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"0aefb61e-9858-4673-9101-1e79461f0442\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-01T20:28:12.187Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"d196d11a-be09-4018-bac5-d4900bed06e3\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-04T02:33:06.463Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/locations/southeastasia/databaseAzureAsyncOperation/0aefb61e-9858-4673-9101-1e79461f0442?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3ODEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3NvdXRoZWFzdGFzaWEvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzBhZWZiNjFlLTk4NTgtNDY3My05MTAxLTFlNzk0NjFmMDQ0Mj9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-5569/providers/Microsoft.Sql/locations/southeastasia/databaseAzureAsyncOperation/d196d11a-be09-4018-bac5-d4900bed06e3?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1NjkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3NvdXRoZWFzdGFzaWEvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2QxOTZkMTFhLWJlMDktNDAxOC1iYWM1LWQ0OTAwYmVkMDZlMz9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -2404,7 +2404,7 @@ "FxVersion/4.6.26614.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.14393.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.45.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" ] }, "ResponseHeaders": { @@ -2412,7 +2412,7 @@ "no-cache" ], "Date": [ - "Tue, 01 Sep 2020 20:28:42 GMT" + "Fri, 04 Sep 2020 02:33:36 GMT" ], "Pragma": [ "no-cache" @@ -2424,16 +2424,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "be9c20ee-9ef3-4c30-b6e3-a27f0ee28aae" + "16117ba3-d6a3-4aa6-8e63-feec2d0996c0" ], "x-ms-ratelimit-remaining-subscription-reads": [ "11969" ], "x-ms-correlation-request-id": [ - "90fe96ad-0e88-4267-a144-0e0db0805490" + "77f0474f-1b90-4a2c-b258-a1ca8966b088" ], "x-ms-routing-request-id": [ - "WESTUS:20200901T202843Z:90fe96ad-0e88-4267-a144-0e0db0805490" + "WESTUS:20200904T023337Z:77f0474f-1b90-4a2c-b258-a1ca8966b088" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -2451,12 +2451,12 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"0aefb61e-9858-4673-9101-1e79461f0442\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-01T20:28:12.187Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"d196d11a-be09-4018-bac5-d4900bed06e3\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-04T02:33:06.463Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/locations/southeastasia/databaseAzureAsyncOperation/0aefb61e-9858-4673-9101-1e79461f0442?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3ODEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3NvdXRoZWFzdGFzaWEvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzBhZWZiNjFlLTk4NTgtNDY3My05MTAxLTFlNzk0NjFmMDQ0Mj9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-5569/providers/Microsoft.Sql/locations/southeastasia/databaseAzureAsyncOperation/d196d11a-be09-4018-bac5-d4900bed06e3?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1NjkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3NvdXRoZWFzdGFzaWEvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2QxOTZkMTFhLWJlMDktNDAxOC1iYWM1LWQ0OTAwYmVkMDZlMz9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -2464,7 +2464,7 @@ "FxVersion/4.6.26614.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.14393.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.45.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" ] }, "ResponseHeaders": { @@ -2472,7 +2472,7 @@ "no-cache" ], "Date": [ - "Tue, 01 Sep 2020 20:28:57 GMT" + "Fri, 04 Sep 2020 02:33:52 GMT" ], "Pragma": [ "no-cache" @@ -2484,16 +2484,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "45d50f9a-4c92-4d3d-996d-1a015d1de64c" + "3ff87741-fa58-421d-8e57-4e998aafc9ba" ], "x-ms-ratelimit-remaining-subscription-reads": [ "11968" ], "x-ms-correlation-request-id": [ - "392b5a41-8ed3-41cc-8a9d-1500da25985f" + "7f1ce52b-0ef5-4430-b273-0098801b1da2" ], "x-ms-routing-request-id": [ - "WESTUS:20200901T202858Z:392b5a41-8ed3-41cc-8a9d-1500da25985f" + "WESTUS:20200904T023352Z:7f1ce52b-0ef5-4430-b273-0098801b1da2" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -2511,12 +2511,12 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"0aefb61e-9858-4673-9101-1e79461f0442\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-01T20:28:12.187Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"d196d11a-be09-4018-bac5-d4900bed06e3\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-04T02:33:06.463Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/locations/southeastasia/databaseAzureAsyncOperation/0aefb61e-9858-4673-9101-1e79461f0442?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3ODEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3NvdXRoZWFzdGFzaWEvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzBhZWZiNjFlLTk4NTgtNDY3My05MTAxLTFlNzk0NjFmMDQ0Mj9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-5569/providers/Microsoft.Sql/locations/southeastasia/databaseAzureAsyncOperation/d196d11a-be09-4018-bac5-d4900bed06e3?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1NjkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3NvdXRoZWFzdGFzaWEvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2QxOTZkMTFhLWJlMDktNDAxOC1iYWM1LWQ0OTAwYmVkMDZlMz9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -2524,7 +2524,7 @@ "FxVersion/4.6.26614.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.14393.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.45.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" ] }, "ResponseHeaders": { @@ -2532,7 +2532,7 @@ "no-cache" ], "Date": [ - "Tue, 01 Sep 2020 20:29:13 GMT" + "Fri, 04 Sep 2020 02:34:07 GMT" ], "Pragma": [ "no-cache" @@ -2544,16 +2544,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "d1430967-8614-4e3a-9498-fa7671813124" + "9e2156df-6147-4d8a-8c9b-3f512a45ab1e" ], "x-ms-ratelimit-remaining-subscription-reads": [ "11967" ], "x-ms-correlation-request-id": [ - "31613cdf-d16b-4d02-8339-c5ba3d6a0dae" + "66007729-15c6-4cb9-8c11-6cdf94baeb3a" ], "x-ms-routing-request-id": [ - "WESTUS:20200901T202913Z:31613cdf-d16b-4d02-8339-c5ba3d6a0dae" + "WESTUS:20200904T023407Z:66007729-15c6-4cb9-8c11-6cdf94baeb3a" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -2571,12 +2571,12 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"0aefb61e-9858-4673-9101-1e79461f0442\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-01T20:28:12.187Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"d196d11a-be09-4018-bac5-d4900bed06e3\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-04T02:33:06.463Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/locations/southeastasia/databaseAzureAsyncOperation/0aefb61e-9858-4673-9101-1e79461f0442?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3ODEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3NvdXRoZWFzdGFzaWEvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzBhZWZiNjFlLTk4NTgtNDY3My05MTAxLTFlNzk0NjFmMDQ0Mj9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-5569/providers/Microsoft.Sql/locations/southeastasia/databaseAzureAsyncOperation/d196d11a-be09-4018-bac5-d4900bed06e3?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1NjkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3NvdXRoZWFzdGFzaWEvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2QxOTZkMTFhLWJlMDktNDAxOC1iYWM1LWQ0OTAwYmVkMDZlMz9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -2584,7 +2584,7 @@ "FxVersion/4.6.26614.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.14393.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.45.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" ] }, "ResponseHeaders": { @@ -2592,7 +2592,7 @@ "no-cache" ], "Date": [ - "Tue, 01 Sep 2020 20:29:28 GMT" + "Fri, 04 Sep 2020 02:34:22 GMT" ], "Pragma": [ "no-cache" @@ -2604,16 +2604,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "d4e0a3cf-8549-44e7-b1f7-d36e75972c14" + "0bc08b7d-fe53-412a-a460-d551d6c25b04" ], "x-ms-ratelimit-remaining-subscription-reads": [ "11966" ], "x-ms-correlation-request-id": [ - "56c777be-b4a2-4574-9be3-2883471e2158" + "01a7385e-a07b-4e5c-9a0e-8e92d287528b" ], "x-ms-routing-request-id": [ - "WESTUS:20200901T202929Z:56c777be-b4a2-4574-9be3-2883471e2158" + "WESTUS:20200904T023422Z:01a7385e-a07b-4e5c-9a0e-8e92d287528b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -2631,12 +2631,12 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"0aefb61e-9858-4673-9101-1e79461f0442\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-01T20:28:12.187Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"d196d11a-be09-4018-bac5-d4900bed06e3\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-04T02:33:06.463Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/locations/southeastasia/databaseAzureAsyncOperation/0aefb61e-9858-4673-9101-1e79461f0442?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3ODEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3NvdXRoZWFzdGFzaWEvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzBhZWZiNjFlLTk4NTgtNDY3My05MTAxLTFlNzk0NjFmMDQ0Mj9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-5569/providers/Microsoft.Sql/locations/southeastasia/databaseAzureAsyncOperation/d196d11a-be09-4018-bac5-d4900bed06e3?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1NjkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3NvdXRoZWFzdGFzaWEvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2QxOTZkMTFhLWJlMDktNDAxOC1iYWM1LWQ0OTAwYmVkMDZlMz9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -2644,7 +2644,7 @@ "FxVersion/4.6.26614.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.14393.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.45.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" ] }, "ResponseHeaders": { @@ -2652,7 +2652,7 @@ "no-cache" ], "Date": [ - "Tue, 01 Sep 2020 20:29:44 GMT" + "Fri, 04 Sep 2020 02:34:37 GMT" ], "Pragma": [ "no-cache" @@ -2664,16 +2664,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "ae5e2a3f-4491-4f49-a41a-24d2730a6651" + "0dc01600-7940-4dd8-a30d-90dbd067bb62" ], "x-ms-ratelimit-remaining-subscription-reads": [ "11965" ], "x-ms-correlation-request-id": [ - "c6c86195-1a5f-4cff-be75-55b77ec30011" + "e372cc71-8436-47d7-8df6-ddaae345e483" ], "x-ms-routing-request-id": [ - "WESTUS:20200901T202944Z:c6c86195-1a5f-4cff-be75-55b77ec30011" + "WESTUS:20200904T023437Z:e372cc71-8436-47d7-8df6-ddaae345e483" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -2691,12 +2691,12 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"0aefb61e-9858-4673-9101-1e79461f0442\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-01T20:28:12.187Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"d196d11a-be09-4018-bac5-d4900bed06e3\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-04T02:33:06.463Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/locations/southeastasia/databaseAzureAsyncOperation/0aefb61e-9858-4673-9101-1e79461f0442?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3ODEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3NvdXRoZWFzdGFzaWEvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzBhZWZiNjFlLTk4NTgtNDY3My05MTAxLTFlNzk0NjFmMDQ0Mj9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-5569/providers/Microsoft.Sql/locations/southeastasia/databaseAzureAsyncOperation/d196d11a-be09-4018-bac5-d4900bed06e3?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1NjkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3NvdXRoZWFzdGFzaWEvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2QxOTZkMTFhLWJlMDktNDAxOC1iYWM1LWQ0OTAwYmVkMDZlMz9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -2704,7 +2704,7 @@ "FxVersion/4.6.26614.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.14393.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.45.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" ] }, "ResponseHeaders": { @@ -2712,7 +2712,7 @@ "no-cache" ], "Date": [ - "Tue, 01 Sep 2020 20:29:59 GMT" + "Fri, 04 Sep 2020 02:34:52 GMT" ], "Pragma": [ "no-cache" @@ -2724,16 +2724,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "c57fe3ed-2ab4-4921-a815-fbe062209f21" + "3aaa488a-7485-423b-8d38-7f105fcc1230" ], "x-ms-ratelimit-remaining-subscription-reads": [ "11964" ], "x-ms-correlation-request-id": [ - "c2cf97e4-411c-4d7b-b5b2-ca048748aa72" + "a5b1eb94-6eba-45af-b100-3e43ad2ce654" ], "x-ms-routing-request-id": [ - "WESTUS:20200901T202959Z:c2cf97e4-411c-4d7b-b5b2-ca048748aa72" + "WESTUS:20200904T023453Z:a5b1eb94-6eba-45af-b100-3e43ad2ce654" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -2751,12 +2751,12 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"0aefb61e-9858-4673-9101-1e79461f0442\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-01T20:28:12.187Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"d196d11a-be09-4018-bac5-d4900bed06e3\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-04T02:33:06.463Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/locations/southeastasia/databaseAzureAsyncOperation/0aefb61e-9858-4673-9101-1e79461f0442?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3ODEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3NvdXRoZWFzdGFzaWEvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzBhZWZiNjFlLTk4NTgtNDY3My05MTAxLTFlNzk0NjFmMDQ0Mj9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-5569/providers/Microsoft.Sql/locations/southeastasia/databaseAzureAsyncOperation/d196d11a-be09-4018-bac5-d4900bed06e3?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1NjkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3NvdXRoZWFzdGFzaWEvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2QxOTZkMTFhLWJlMDktNDAxOC1iYWM1LWQ0OTAwYmVkMDZlMz9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -2764,7 +2764,7 @@ "FxVersion/4.6.26614.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.14393.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.45.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" ] }, "ResponseHeaders": { @@ -2772,7 +2772,7 @@ "no-cache" ], "Date": [ - "Tue, 01 Sep 2020 20:30:14 GMT" + "Fri, 04 Sep 2020 02:35:07 GMT" ], "Pragma": [ "no-cache" @@ -2784,16 +2784,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "73fbc815-a49a-4407-83d0-0738f7bdd273" + "dc85e331-cb4b-4ab6-8b72-fed70d734ab0" ], "x-ms-ratelimit-remaining-subscription-reads": [ "11963" ], "x-ms-correlation-request-id": [ - "802514e7-aaca-429a-844c-fbd8d897e9e0" + "517424e2-1a01-40f9-96c6-7f816df13bcb" ], "x-ms-routing-request-id": [ - "WESTUS:20200901T203014Z:802514e7-aaca-429a-844c-fbd8d897e9e0" + "WESTUS:20200904T023508Z:517424e2-1a01-40f9-96c6-7f816df13bcb" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -2811,12 +2811,12 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"0aefb61e-9858-4673-9101-1e79461f0442\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-01T20:28:12.187Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"d196d11a-be09-4018-bac5-d4900bed06e3\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-04T02:33:06.463Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/locations/southeastasia/databaseAzureAsyncOperation/0aefb61e-9858-4673-9101-1e79461f0442?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3ODEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3NvdXRoZWFzdGFzaWEvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzBhZWZiNjFlLTk4NTgtNDY3My05MTAxLTFlNzk0NjFmMDQ0Mj9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-5569/providers/Microsoft.Sql/locations/southeastasia/databaseAzureAsyncOperation/d196d11a-be09-4018-bac5-d4900bed06e3?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1NjkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3NvdXRoZWFzdGFzaWEvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2QxOTZkMTFhLWJlMDktNDAxOC1iYWM1LWQ0OTAwYmVkMDZlMz9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -2824,7 +2824,7 @@ "FxVersion/4.6.26614.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.14393.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.45.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" ] }, "ResponseHeaders": { @@ -2832,7 +2832,7 @@ "no-cache" ], "Date": [ - "Tue, 01 Sep 2020 20:30:29 GMT" + "Fri, 04 Sep 2020 02:35:22 GMT" ], "Pragma": [ "no-cache" @@ -2844,16 +2844,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "09b7a2ef-180e-4c6e-9967-936ad2662a67" + "3ded9722-b4a0-43f1-a9a7-d2d86dbe0d27" ], "x-ms-ratelimit-remaining-subscription-reads": [ "11962" ], "x-ms-correlation-request-id": [ - "3aa55bc0-3fa4-4d08-a30e-61792ae768fd" + "edad291e-da3e-4e15-b3d3-b0a6b472cd09" ], "x-ms-routing-request-id": [ - "WESTUS:20200901T203029Z:3aa55bc0-3fa4-4d08-a30e-61792ae768fd" + "WESTUS:20200904T023523Z:edad291e-da3e-4e15-b3d3-b0a6b472cd09" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -2862,7 +2862,64 @@ "nosniff" ], "Content-Length": [ - "108" + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"d196d11a-be09-4018-bac5-d4900bed06e3\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2020-09-04T02:33:06.463Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-5569/providers/Microsoft.Sql/servers/sqlcrudtest-9821/databases/sqlcrudtest-1826?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1NjkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05ODIxL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC0xODI2P2FwaS12ZXJzaW9uPTIwMTktMDYtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 04 Sep 2020 02:35:23 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "db7a4f9a-9e90-4003-92ad-5268d2de3a77" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11961" + ], + "x-ms-correlation-request-id": [ + "b1012d22-0298-451e-a0c0-20a70e75e880" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200904T023524Z:b1012d22-0298-451e-a0c0-20a70e75e880" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "967" ], "Content-Type": [ "application/json; charset=utf-8" @@ -2871,12 +2928,90 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"0aefb61e-9858-4673-9101-1e79461f0442\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-01T20:28:12.187Z\"\r\n}", + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"HS_Gen5\",\r\n \"tier\": \"Hyperscale\",\r\n \"family\": \"Gen5\",\r\n \"capacity\": 4\r\n },\r\n \"kind\": \"v12.0,user,vcore,hyperscale\",\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": -1,\r\n \"status\": \"Online\",\r\n \"databaseId\": \"2f6abd7c-b454-4112-992d-162dd72e75a3\",\r\n \"creationDate\": \"2020-09-04T02:35:20.547Z\",\r\n \"currentServiceObjectiveName\": \"HS_Gen5_4\",\r\n \"requestedServiceObjectiveName\": \"HS_Gen5_4\",\r\n \"defaultSecondaryLocation\": \"eastasia\",\r\n \"catalogCollation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"licenseType\": \"LicenseIncluded\",\r\n \"earliestRestoreDate\": \"2020-09-04T02:35:20.547Z\",\r\n \"readScale\": \"Enabled\",\r\n \"readReplicaCount\": 4,\r\n \"currentSku\": {\r\n \"name\": \"HS_Gen5\",\r\n \"tier\": \"Hyperscale\",\r\n \"family\": \"Gen5\",\r\n \"capacity\": 4\r\n },\r\n \"storageAccountType\": \"GRS\"\r\n },\r\n \"location\": \"southeastasia\",\r\n \"id\": \"/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-5569/providers/Microsoft.Sql/servers/sqlcrudtest-9821/databases/sqlcrudtest-1826\",\r\n \"name\": \"sqlcrudtest-1826\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/locations/southeastasia/databaseAzureAsyncOperation/0aefb61e-9858-4673-9101-1e79461f0442?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3ODEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3NvdXRoZWFzdGFzaWEvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzBhZWZiNjFlLTk4NTgtNDY3My05MTAxLTFlNzk0NjFmMDQ0Mj9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-5569/providers/Microsoft.Sql/servers/sqlcrudtest-9821/databases/sqlcrudtest-7928?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1NjkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05ODIxL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC03OTI4P2FwaS12ZXJzaW9uPTIwMTktMDYtMDEtcHJldmlldw==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"storageAccountType\": \"GRS\"\r\n },\r\n \"location\": \"southeastasia\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "5ffac50b-b2d0-4417-b610-0eb3abae6b67" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "93" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 04 Sep 2020 02:35:28 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-5569/providers/Microsoft.Sql/locations/southeastasia/databaseOperationResults/9db96a16-663f-4f12-a3f5-0f685123a72c?api-version=2019-06-01-preview" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-5569/providers/Microsoft.Sql/locations/southeastasia/databaseAzureAsyncOperation/9db96a16-663f-4f12-a3f5-0f685123a72c?api-version=2019-06-01-preview" + ], + "x-ms-request-id": [ + "9db96a16-663f-4f12-a3f5-0f685123a72c" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1192" + ], + "x-ms-correlation-request-id": [ + "7ab4dc9c-43e8-4a10-9614-ba0d5ec0f823" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200904T023529Z:7ab4dc9c-43e8-4a10-9614-ba0d5ec0f823" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "76" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2020-09-04T02:35:29.557Z\"\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-5569/providers/Microsoft.Sql/locations/southeastasia/databaseAzureAsyncOperation/9db96a16-663f-4f12-a3f5-0f685123a72c?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1NjkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3NvdXRoZWFzdGFzaWEvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzlkYjk2YTE2LTY2M2YtNGYxMi1hM2Y1LTBmNjg1MTIzYTcyYz9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -2884,7 +3019,7 @@ "FxVersion/4.6.26614.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.14393.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.45.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" ] }, "ResponseHeaders": { @@ -2892,7 +3027,7 @@ "no-cache" ], "Date": [ - "Tue, 01 Sep 2020 20:30:44 GMT" + "Fri, 04 Sep 2020 02:35:44 GMT" ], "Pragma": [ "no-cache" @@ -2904,16 +3039,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "75a0cc06-e217-4c78-ad6f-765e70e3f130" + "968cd6d9-7302-4e74-8eeb-47b94a304216" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11961" + "11960" ], "x-ms-correlation-request-id": [ - "204e00ff-9d23-42f2-b1fa-237824fc2861" + "f08a1af5-fd06-47f4-8e29-014401bc63a8" ], "x-ms-routing-request-id": [ - "WESTUS:20200901T203045Z:204e00ff-9d23-42f2-b1fa-237824fc2861" + "WESTUS:20200904T023544Z:f08a1af5-fd06-47f4-8e29-014401bc63a8" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -2931,12 +3066,12 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"0aefb61e-9858-4673-9101-1e79461f0442\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-01T20:28:12.187Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"9db96a16-663f-4f12-a3f5-0f685123a72c\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-04T02:35:29.557Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/locations/southeastasia/databaseAzureAsyncOperation/0aefb61e-9858-4673-9101-1e79461f0442?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3ODEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3NvdXRoZWFzdGFzaWEvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzBhZWZiNjFlLTk4NTgtNDY3My05MTAxLTFlNzk0NjFmMDQ0Mj9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-5569/providers/Microsoft.Sql/locations/southeastasia/databaseAzureAsyncOperation/9db96a16-663f-4f12-a3f5-0f685123a72c?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1NjkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3NvdXRoZWFzdGFzaWEvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzlkYjk2YTE2LTY2M2YtNGYxMi1hM2Y1LTBmNjg1MTIzYTcyYz9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -2944,7 +3079,7 @@ "FxVersion/4.6.26614.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.14393.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.45.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" ] }, "ResponseHeaders": { @@ -2952,7 +3087,7 @@ "no-cache" ], "Date": [ - "Tue, 01 Sep 2020 20:30:59 GMT" + "Fri, 04 Sep 2020 02:35:59 GMT" ], "Pragma": [ "no-cache" @@ -2964,16 +3099,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "e264a8ce-e717-437d-a202-950a0d6caf9e" + "a2fb7319-4e2f-4e00-9bbe-d150488dcb72" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11960" + "11959" ], "x-ms-correlation-request-id": [ - "c4d24652-d0e0-41dd-aa72-3947f8ca2d70" + "1b845556-e38a-488d-b6e1-2f6ba42f9840" ], "x-ms-routing-request-id": [ - "WESTUS:20200901T203100Z:c4d24652-d0e0-41dd-aa72-3947f8ca2d70" + "WESTUS:20200904T023600Z:1b845556-e38a-488d-b6e1-2f6ba42f9840" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -2991,12 +3126,12 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"0aefb61e-9858-4673-9101-1e79461f0442\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2020-09-01T20:28:12.187Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"9db96a16-663f-4f12-a3f5-0f685123a72c\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2020-09-04T02:35:29.557Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/servers/sqlcrudtest-3000/databases/sqlcrudtest-1042?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3ODEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zMDAwL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC0xMDQyP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-5569/providers/Microsoft.Sql/servers/sqlcrudtest-9821/databases/sqlcrudtest-7928?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1NjkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05ODIxL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC03OTI4P2FwaS12ZXJzaW9uPTIwMTktMDYtMDEtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -3004,7 +3139,7 @@ "FxVersion/4.6.26614.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.14393.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.45.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" ] }, "ResponseHeaders": { @@ -3012,7 +3147,7 @@ "no-cache" ], "Date": [ - "Tue, 01 Sep 2020 20:30:59 GMT" + "Fri, 04 Sep 2020 02:35:59 GMT" ], "Pragma": [ "no-cache" @@ -3021,16 +3156,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "336ad5f6-926c-498c-93b0-1085c415c60c" + "f54ce9f8-ac45-453e-9d9d-e2911b0a5ca6" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11959" + "11958" ], "x-ms-correlation-request-id": [ - "f70a64e2-5170-46fe-94ed-80da43261d8e" + "cd1bba3c-157c-4072-aaae-8a4d09d0e8c3" ], "x-ms-routing-request-id": [ - "WESTUS:20200901T203100Z:f70a64e2-5170-46fe-94ed-80da43261d8e" + "WESTUS:20200904T023600Z:cd1bba3c-157c-4072-aaae-8a4d09d0e8c3" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -3039,7 +3174,7 @@ "nosniff" ], "Content-Length": [ - "938" + "1026" ], "Content-Type": [ "application/json; charset=utf-8" @@ -3048,17 +3183,17 @@ "-1" ] }, - "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"HS_Gen5\",\r\n \"tier\": \"Hyperscale\",\r\n \"family\": \"Gen5\",\r\n \"capacity\": 4\r\n },\r\n \"kind\": \"v12.0,user,vcore,hyperscale\",\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": -1,\r\n \"status\": \"Online\",\r\n \"databaseId\": \"d2198703-f895-4c74-b1d5-f25200eed9d3\",\r\n \"creationDate\": \"2020-09-01T20:30:48.19Z\",\r\n \"currentServiceObjectiveName\": \"HS_Gen5_4\",\r\n \"requestedServiceObjectiveName\": \"HS_Gen5_4\",\r\n \"defaultSecondaryLocation\": \"eastasia\",\r\n \"catalogCollation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"licenseType\": \"LicenseIncluded\",\r\n \"earliestRestoreDate\": \"2020-09-01T20:30:48.19Z\",\r\n \"readScale\": \"Enabled\",\r\n \"readReplicaCount\": 4,\r\n \"currentSku\": {\r\n \"name\": \"HS_Gen5\",\r\n \"tier\": \"Hyperscale\",\r\n \"family\": \"Gen5\",\r\n \"capacity\": 4\r\n }\r\n },\r\n \"location\": \"southeastasia\",\r\n \"id\": \"/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/servers/sqlcrudtest-3000/databases/sqlcrudtest-1042\",\r\n \"name\": \"sqlcrudtest-1042\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"GP_Gen5\",\r\n \"tier\": \"GeneralPurpose\",\r\n \"family\": \"Gen5\",\r\n \"capacity\": 2\r\n },\r\n \"kind\": \"v12.0,user,vcore\",\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": 34359738368,\r\n \"status\": \"Online\",\r\n \"databaseId\": \"b69dc919-2286-4824-bc2b-99b577c8b48a\",\r\n \"creationDate\": \"2020-09-04T02:35:57.343Z\",\r\n \"currentServiceObjectiveName\": \"GP_Gen5_2\",\r\n \"requestedServiceObjectiveName\": \"GP_Gen5_2\",\r\n \"defaultSecondaryLocation\": \"eastasia\",\r\n \"catalogCollation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"zoneRedundant\": false,\r\n \"licenseType\": \"LicenseIncluded\",\r\n \"maxLogSizeBytes\": 10307502080,\r\n \"earliestRestoreDate\": \"2020-09-04T03:05:57.343Z\",\r\n \"readScale\": \"Disabled\",\r\n \"readReplicaCount\": 0,\r\n \"currentSku\": {\r\n \"name\": \"GP_Gen5\",\r\n \"tier\": \"GeneralPurpose\",\r\n \"family\": \"Gen5\",\r\n \"capacity\": 2\r\n },\r\n \"storageAccountType\": \"GRS\"\r\n },\r\n \"location\": \"southeastasia\",\r\n \"id\": \"/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-5569/providers/Microsoft.Sql/servers/sqlcrudtest-9821/databases/sqlcrudtest-7928\",\r\n \"name\": \"sqlcrudtest-7928\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/servers/sqlcrudtest-3000/databases/sqlcrudtest-1701?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3ODEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zMDAwL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC0xNzAxP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-5569/providers/Microsoft.Sql/servers/sqlcrudtest-9821/databases/sqlcrudtest-1791?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1NjkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05ODIxL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC0xNzkxP2FwaS12ZXJzaW9uPTIwMTktMDYtMDEtcHJldmlldw==", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "cd2af31a-4a7e-45a5-a918-7c8efece24ad" + "ed20e215-cb70-4b13-b5ad-9ca7199d64c4" ], "accept-language": [ "en-US" @@ -3067,7 +3202,7 @@ "FxVersion/4.6.26614.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.14393.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.45.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" ] }, "ResponseHeaders": { @@ -3075,13 +3210,13 @@ "no-cache" ], "Date": [ - "Tue, 01 Sep 2020 20:31:01 GMT" + "Fri, 04 Sep 2020 02:36:00 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/locations/southeastasia/databaseOperationResults/9947dd1a-2710-4888-b7bb-5e95a33af83a?api-version=2017-10-01-preview" + "https://management.azure.com/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-5569/providers/Microsoft.Sql/locations/southeastasia/databaseOperationResults/0604277a-a433-4451-9acc-b2b7fc6b03a1?api-version=2019-06-01-preview" ], "Retry-After": [ "15" @@ -3090,19 +3225,19 @@ "Microsoft-HTTPAPI/2.0" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/locations/southeastasia/databaseAzureAsyncOperation/9947dd1a-2710-4888-b7bb-5e95a33af83a?api-version=2017-10-01-preview" + "https://management.azure.com/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-5569/providers/Microsoft.Sql/locations/southeastasia/databaseAzureAsyncOperation/0604277a-a433-4451-9acc-b2b7fc6b03a1?api-version=2019-06-01-preview" ], "x-ms-request-id": [ - "9947dd1a-2710-4888-b7bb-5e95a33af83a" + "0604277a-a433-4451-9acc-b2b7fc6b03a1" ], "x-ms-ratelimit-remaining-subscription-deletes": [ "14999" ], "x-ms-correlation-request-id": [ - "260f35a5-74f7-4ed6-91a2-32f0d06b6de4" + "d510c604-0411-43a8-a810-e989efcc834a" ], "x-ms-routing-request-id": [ - "WESTUS:20200901T203101Z:260f35a5-74f7-4ed6-91a2-32f0d06b6de4" + "WESTUS:20200904T023601Z:d510c604-0411-43a8-a810-e989efcc834a" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -3120,12 +3255,12 @@ "-1" ] }, - "ResponseBody": "{\r\n \"operation\": \"DropLogicalDatabase\",\r\n \"startTime\": \"2020-09-01T20:31:01.807Z\"\r\n}", + "ResponseBody": "{\r\n \"operation\": \"DropLogicalDatabase\",\r\n \"startTime\": \"2020-09-04T02:36:00.933Z\"\r\n}", "StatusCode": 202 }, { - "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/locations/southeastasia/databaseAzureAsyncOperation/9947dd1a-2710-4888-b7bb-5e95a33af83a?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3ODEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3NvdXRoZWFzdGFzaWEvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzk5NDdkZDFhLTI3MTAtNDg4OC1iN2JiLTVlOTVhMzNhZjgzYT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-5569/providers/Microsoft.Sql/locations/southeastasia/databaseAzureAsyncOperation/0604277a-a433-4451-9acc-b2b7fc6b03a1?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1NjkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3NvdXRoZWFzdGFzaWEvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzA2MDQyNzdhLWE0MzMtNDQ1MS05YWNjLWIyYjdmYzZiMDNhMT9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -3133,7 +3268,7 @@ "FxVersion/4.6.26614.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.14393.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.45.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" ] }, "ResponseHeaders": { @@ -3141,7 +3276,7 @@ "no-cache" ], "Date": [ - "Tue, 01 Sep 2020 20:31:16 GMT" + "Fri, 04 Sep 2020 02:36:16 GMT" ], "Pragma": [ "no-cache" @@ -3153,16 +3288,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "1a5f3317-89ec-4fc6-b063-6b151387edf9" + "91f3ae06-2a98-412e-b643-d766d5960654" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11958" + "11957" ], "x-ms-correlation-request-id": [ - "628d50d9-8c4d-4bee-96a7-5e6488acccf6" + "7eb8094b-48a1-4a47-84bb-6a7fa1e12cff" ], "x-ms-routing-request-id": [ - "WESTUS:20200901T203117Z:628d50d9-8c4d-4bee-96a7-5e6488acccf6" + "WESTUS:20200904T023616Z:7eb8094b-48a1-4a47-84bb-6a7fa1e12cff" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -3180,12 +3315,12 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"9947dd1a-2710-4888-b7bb-5e95a33af83a\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2020-09-01T20:31:01.807Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"0604277a-a433-4451-9acc-b2b7fc6b03a1\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2020-09-04T02:36:00.933Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/locations/southeastasia/databaseOperationResults/9947dd1a-2710-4888-b7bb-5e95a33af83a?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3ODEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3NvdXRoZWFzdGFzaWEvZGF0YWJhc2VPcGVyYXRpb25SZXN1bHRzLzk5NDdkZDFhLTI3MTAtNDg4OC1iN2JiLTVlOTVhMzNhZjgzYT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-5569/providers/Microsoft.Sql/locations/southeastasia/databaseOperationResults/0604277a-a433-4451-9acc-b2b7fc6b03a1?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1NjkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3NvdXRoZWFzdGFzaWEvZGF0YWJhc2VPcGVyYXRpb25SZXN1bHRzLzA2MDQyNzdhLWE0MzMtNDQ1MS05YWNjLWIyYjdmYzZiMDNhMT9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -3193,7 +3328,7 @@ "FxVersion/4.6.26614.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.14393.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.45.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" ] }, "ResponseHeaders": { @@ -3201,7 +3336,7 @@ "no-cache" ], "Date": [ - "Tue, 01 Sep 2020 20:31:16 GMT" + "Fri, 04 Sep 2020 02:36:16 GMT" ], "Pragma": [ "no-cache" @@ -3210,16 +3345,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "041948cf-d8f0-4feb-adf4-90b8edfba708" + "f85bb431-ffce-4b73-a043-d569d663cf0a" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11957" + "11956" ], "x-ms-correlation-request-id": [ - "b8ac9a8a-dfe6-4943-a9e2-f1fbc9cfb593" + "b47a6e59-7282-4dd9-a903-6c8cef2f7cf0" ], "x-ms-routing-request-id": [ - "WESTUS:20200901T203117Z:b8ac9a8a-dfe6-4943-a9e2-f1fbc9cfb593" + "WESTUS:20200904T023616Z:b47a6e59-7282-4dd9-a903-6c8cef2f7cf0" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -3238,13 +3373,13 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/servers/sqlcrudtest-3000/databases/sqlcrudtest-4254?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3ODEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zMDAwL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC00MjU0P2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-5569/providers/Microsoft.Sql/servers/sqlcrudtest-9821/databases/sqlcrudtest-7153?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1NjkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05ODIxL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC03MTUzP2FwaS12ZXJzaW9uPTIwMTktMDYtMDEtcHJldmlldw==", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "1b14c034-b876-4e5d-a84b-bb483652dfc2" + "b5315b9b-8278-4f61-b3fa-2c24ac4a88c2" ], "accept-language": [ "en-US" @@ -3253,7 +3388,7 @@ "FxVersion/4.6.26614.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.14393.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.45.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" ] }, "ResponseHeaders": { @@ -3261,13 +3396,13 @@ "no-cache" ], "Date": [ - "Tue, 01 Sep 2020 20:31:17 GMT" + "Fri, 04 Sep 2020 02:36:17 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/locations/southeastasia/databaseOperationResults/ebf3c649-7f05-4691-b7f4-7a0226c9d629?api-version=2017-10-01-preview" + "https://management.azure.com/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-5569/providers/Microsoft.Sql/locations/southeastasia/databaseOperationResults/8210cfd3-c02f-4e07-941c-63bb4c8173c6?api-version=2019-06-01-preview" ], "Retry-After": [ "15" @@ -3276,19 +3411,19 @@ "Microsoft-HTTPAPI/2.0" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/locations/southeastasia/databaseAzureAsyncOperation/ebf3c649-7f05-4691-b7f4-7a0226c9d629?api-version=2017-10-01-preview" + "https://management.azure.com/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-5569/providers/Microsoft.Sql/locations/southeastasia/databaseAzureAsyncOperation/8210cfd3-c02f-4e07-941c-63bb4c8173c6?api-version=2019-06-01-preview" ], "x-ms-request-id": [ - "ebf3c649-7f05-4691-b7f4-7a0226c9d629" + "8210cfd3-c02f-4e07-941c-63bb4c8173c6" ], "x-ms-ratelimit-remaining-subscription-deletes": [ "14998" ], "x-ms-correlation-request-id": [ - "54d4579b-17f8-45e2-a1e6-34c2dd45b94b" + "d094ff1a-4bdf-4cd5-a748-8b1d257f63b4" ], "x-ms-routing-request-id": [ - "WESTUS:20200901T203118Z:54d4579b-17f8-45e2-a1e6-34c2dd45b94b" + "WESTUS:20200904T023617Z:d094ff1a-4bdf-4cd5-a748-8b1d257f63b4" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -3297,7 +3432,7 @@ "nosniff" ], "Content-Length": [ - "73" + "74" ], "Content-Type": [ "application/json; charset=utf-8" @@ -3306,12 +3441,12 @@ "-1" ] }, - "ResponseBody": "{\r\n \"operation\": \"DropLogicalDatabase\",\r\n \"startTime\": \"2020-09-01T20:31:17.92Z\"\r\n}", + "ResponseBody": "{\r\n \"operation\": \"DropLogicalDatabase\",\r\n \"startTime\": \"2020-09-04T02:36:17.347Z\"\r\n}", "StatusCode": 202 }, { - "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/locations/southeastasia/databaseAzureAsyncOperation/ebf3c649-7f05-4691-b7f4-7a0226c9d629?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3ODEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3NvdXRoZWFzdGFzaWEvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2ViZjNjNjQ5LTdmMDUtNDY5MS1iN2Y0LTdhMDIyNmM5ZDYyOT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-5569/providers/Microsoft.Sql/locations/southeastasia/databaseAzureAsyncOperation/8210cfd3-c02f-4e07-941c-63bb4c8173c6?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1NjkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3NvdXRoZWFzdGFzaWEvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzgyMTBjZmQzLWMwMmYtNGUwNy05NDFjLTYzYmI0YzgxNzNjNj9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -3319,7 +3454,7 @@ "FxVersion/4.6.26614.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.14393.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.45.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" ] }, "ResponseHeaders": { @@ -3327,7 +3462,7 @@ "no-cache" ], "Date": [ - "Tue, 01 Sep 2020 20:31:32 GMT" + "Fri, 04 Sep 2020 02:36:32 GMT" ], "Pragma": [ "no-cache" @@ -3339,16 +3474,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "6dde17f1-a568-41bd-be8c-8f2f37d026c1" + "469aff66-28bc-4f45-8e37-83f286d9704f" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11956" + "11955" ], "x-ms-correlation-request-id": [ - "07639bb2-b22b-4460-984d-208c9b528f1d" + "c3eebfe1-5311-4128-952b-291f1eb0553c" ], "x-ms-routing-request-id": [ - "WESTUS:20200901T203133Z:07639bb2-b22b-4460-984d-208c9b528f1d" + "WESTUS:20200904T023632Z:c3eebfe1-5311-4128-952b-291f1eb0553c" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -3357,7 +3492,7 @@ "nosniff" ], "Content-Length": [ - "106" + "107" ], "Content-Type": [ "application/json; charset=utf-8" @@ -3366,12 +3501,12 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"ebf3c649-7f05-4691-b7f4-7a0226c9d629\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2020-09-01T20:31:17.92Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"8210cfd3-c02f-4e07-941c-63bb4c8173c6\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2020-09-04T02:36:17.347Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/locations/southeastasia/databaseOperationResults/ebf3c649-7f05-4691-b7f4-7a0226c9d629?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3ODEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3NvdXRoZWFzdGFzaWEvZGF0YWJhc2VPcGVyYXRpb25SZXN1bHRzL2ViZjNjNjQ5LTdmMDUtNDY5MS1iN2Y0LTdhMDIyNmM5ZDYyOT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-5569/providers/Microsoft.Sql/locations/southeastasia/databaseOperationResults/8210cfd3-c02f-4e07-941c-63bb4c8173c6?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1NjkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3NvdXRoZWFzdGFzaWEvZGF0YWJhc2VPcGVyYXRpb25SZXN1bHRzLzgyMTBjZmQzLWMwMmYtNGUwNy05NDFjLTYzYmI0YzgxNzNjNj9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -3379,7 +3514,7 @@ "FxVersion/4.6.26614.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.14393.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.45.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" ] }, "ResponseHeaders": { @@ -3387,7 +3522,7 @@ "no-cache" ], "Date": [ - "Tue, 01 Sep 2020 20:31:32 GMT" + "Fri, 04 Sep 2020 02:36:32 GMT" ], "Pragma": [ "no-cache" @@ -3396,16 +3531,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "065e99d2-143d-4785-b0a7-d9993cbcd1b4" + "7c7d57e6-c4a6-49e8-aed2-62d8d79beaf8" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11955" + "11954" ], "x-ms-correlation-request-id": [ - "569b3090-7267-4b75-9b4a-495739105b9a" + "45f1d38b-4a81-4640-9848-4e1deeb0520f" ], "x-ms-routing-request-id": [ - "WESTUS:20200901T203133Z:569b3090-7267-4b75-9b4a-495739105b9a" + "WESTUS:20200904T023632Z:45f1d38b-4a81-4640-9848-4e1deeb0520f" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -3424,13 +3559,13 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/servers/sqlcrudtest-3000/databases/sqlcrudtest-7309?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3ODEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zMDAwL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC03MzA5P2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-5569/providers/Microsoft.Sql/servers/sqlcrudtest-9821/databases/sqlcrudtest-4457?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1NjkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05ODIxL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC00NDU3P2FwaS12ZXJzaW9uPTIwMTktMDYtMDEtcHJldmlldw==", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "990780fb-20e7-4e93-91f7-e7c790e28530" + "4fab92bd-d8e3-4c17-8790-44153d676874" ], "accept-language": [ "en-US" @@ -3439,7 +3574,7 @@ "FxVersion/4.6.26614.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.14393.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.45.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" ] }, "ResponseHeaders": { @@ -3447,13 +3582,13 @@ "no-cache" ], "Date": [ - "Tue, 01 Sep 2020 20:31:33 GMT" + "Fri, 04 Sep 2020 02:36:33 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/locations/southeastasia/databaseOperationResults/454677b7-39b9-4de3-ac05-9aa56913bec7?api-version=2017-10-01-preview" + "https://management.azure.com/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-5569/providers/Microsoft.Sql/locations/southeastasia/databaseOperationResults/27ced3a2-0ed3-4182-8690-006bd56c90a1?api-version=2019-06-01-preview" ], "Retry-After": [ "15" @@ -3462,19 +3597,19 @@ "Microsoft-HTTPAPI/2.0" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/locations/southeastasia/databaseAzureAsyncOperation/454677b7-39b9-4de3-ac05-9aa56913bec7?api-version=2017-10-01-preview" + "https://management.azure.com/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-5569/providers/Microsoft.Sql/locations/southeastasia/databaseAzureAsyncOperation/27ced3a2-0ed3-4182-8690-006bd56c90a1?api-version=2019-06-01-preview" ], "x-ms-request-id": [ - "454677b7-39b9-4de3-ac05-9aa56913bec7" + "27ced3a2-0ed3-4182-8690-006bd56c90a1" ], "x-ms-ratelimit-remaining-subscription-deletes": [ "14997" ], "x-ms-correlation-request-id": [ - "09c0f31b-e762-4b28-aae9-9fab229bbf8e" + "86549f37-53b5-44b6-85b0-7ed03e166723" ], "x-ms-routing-request-id": [ - "WESTUS:20200901T203134Z:09c0f31b-e762-4b28-aae9-9fab229bbf8e" + "WESTUS:20200904T023633Z:86549f37-53b5-44b6-85b0-7ed03e166723" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -3483,7 +3618,7 @@ "nosniff" ], "Content-Length": [ - "73" + "74" ], "Content-Type": [ "application/json; charset=utf-8" @@ -3492,12 +3627,12 @@ "-1" ] }, - "ResponseBody": "{\r\n \"operation\": \"DropLogicalDatabase\",\r\n \"startTime\": \"2020-09-01T20:31:34.14Z\"\r\n}", + "ResponseBody": "{\r\n \"operation\": \"DropLogicalDatabase\",\r\n \"startTime\": \"2020-09-04T02:36:33.503Z\"\r\n}", "StatusCode": 202 }, { - "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/locations/southeastasia/databaseAzureAsyncOperation/454677b7-39b9-4de3-ac05-9aa56913bec7?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3ODEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3NvdXRoZWFzdGFzaWEvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzQ1NDY3N2I3LTM5YjktNGRlMy1hYzA1LTlhYTU2OTEzYmVjNz9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-5569/providers/Microsoft.Sql/locations/southeastasia/databaseAzureAsyncOperation/27ced3a2-0ed3-4182-8690-006bd56c90a1?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1NjkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3NvdXRoZWFzdGFzaWEvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzI3Y2VkM2EyLTBlZDMtNDE4Mi04NjkwLTAwNmJkNTZjOTBhMT9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -3505,7 +3640,7 @@ "FxVersion/4.6.26614.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.14393.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.45.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" ] }, "ResponseHeaders": { @@ -3513,7 +3648,7 @@ "no-cache" ], "Date": [ - "Tue, 01 Sep 2020 20:31:48 GMT" + "Fri, 04 Sep 2020 02:36:48 GMT" ], "Pragma": [ "no-cache" @@ -3525,16 +3660,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "4120e250-dae8-46cf-94fe-3038fc873fc0" + "09c2e96d-c65e-41bc-9e43-7120a1dadc6c" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11954" + "11953" ], "x-ms-correlation-request-id": [ - "a3fb8207-6b46-47ee-928c-67df61d6bcad" + "a60a65a4-cbe7-4463-86c5-ed664fbbe0a0" ], "x-ms-routing-request-id": [ - "WESTUS:20200901T203149Z:a3fb8207-6b46-47ee-928c-67df61d6bcad" + "WESTUS:20200904T023648Z:a60a65a4-cbe7-4463-86c5-ed664fbbe0a0" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -3543,7 +3678,7 @@ "nosniff" ], "Content-Length": [ - "106" + "107" ], "Content-Type": [ "application/json; charset=utf-8" @@ -3552,12 +3687,12 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"454677b7-39b9-4de3-ac05-9aa56913bec7\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2020-09-01T20:31:34.14Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"27ced3a2-0ed3-4182-8690-006bd56c90a1\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2020-09-04T02:36:33.503Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/locations/southeastasia/databaseOperationResults/454677b7-39b9-4de3-ac05-9aa56913bec7?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3ODEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3NvdXRoZWFzdGFzaWEvZGF0YWJhc2VPcGVyYXRpb25SZXN1bHRzLzQ1NDY3N2I3LTM5YjktNGRlMy1hYzA1LTlhYTU2OTEzYmVjNz9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-5569/providers/Microsoft.Sql/locations/southeastasia/databaseOperationResults/27ced3a2-0ed3-4182-8690-006bd56c90a1?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1NjkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3NvdXRoZWFzdGFzaWEvZGF0YWJhc2VPcGVyYXRpb25SZXN1bHRzLzI3Y2VkM2EyLTBlZDMtNDE4Mi04NjkwLTAwNmJkNTZjOTBhMT9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -3565,7 +3700,7 @@ "FxVersion/4.6.26614.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.14393.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.45.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" ] }, "ResponseHeaders": { @@ -3573,7 +3708,7 @@ "no-cache" ], "Date": [ - "Tue, 01 Sep 2020 20:31:48 GMT" + "Fri, 04 Sep 2020 02:36:48 GMT" ], "Pragma": [ "no-cache" @@ -3582,16 +3717,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "ac7c52eb-37a9-4b36-9277-209b3dd077f5" + "4928c7e9-44b9-4914-b5a6-6eb1d50844f5" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11953" + "11952" ], "x-ms-correlation-request-id": [ - "f64c4d73-cf74-4a4e-84a5-2aa2004cd1f2" + "42046bf3-433f-406c-9dbb-3eb8f0512e85" ], "x-ms-routing-request-id": [ - "WESTUS:20200901T203149Z:f64c4d73-cf74-4a4e-84a5-2aa2004cd1f2" + "WESTUS:20200904T023649Z:42046bf3-433f-406c-9dbb-3eb8f0512e85" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -3610,13 +3745,13 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/servers/sqlcrudtest-3000/databases/sqlcrudtest-8833?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3ODEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zMDAwL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC04ODMzP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-5569/providers/Microsoft.Sql/servers/sqlcrudtest-9821/databases/sqlcrudtest-2763?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1NjkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05ODIxL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC0yNzYzP2FwaS12ZXJzaW9uPTIwMTktMDYtMDEtcHJldmlldw==", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "ee1072ca-38f3-4857-b612-addccda0d1e2" + "ce469cea-ba55-4714-b1b3-5c8a5815cccc" ], "accept-language": [ "en-US" @@ -3625,7 +3760,7 @@ "FxVersion/4.6.26614.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.14393.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.45.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" ] }, "ResponseHeaders": { @@ -3633,13 +3768,13 @@ "no-cache" ], "Date": [ - "Tue, 01 Sep 2020 20:31:49 GMT" + "Fri, 04 Sep 2020 02:36:49 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/locations/southeastasia/databaseOperationResults/90085a8e-139a-45b2-a2a8-dd5c3fb21b10?api-version=2017-10-01-preview" + "https://management.azure.com/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-5569/providers/Microsoft.Sql/locations/southeastasia/databaseOperationResults/f2f5e417-b1d1-4005-a485-8b6a81048966?api-version=2019-06-01-preview" ], "Retry-After": [ "15" @@ -3648,19 +3783,19 @@ "Microsoft-HTTPAPI/2.0" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/locations/southeastasia/databaseAzureAsyncOperation/90085a8e-139a-45b2-a2a8-dd5c3fb21b10?api-version=2017-10-01-preview" + "https://management.azure.com/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-5569/providers/Microsoft.Sql/locations/southeastasia/databaseAzureAsyncOperation/f2f5e417-b1d1-4005-a485-8b6a81048966?api-version=2019-06-01-preview" ], "x-ms-request-id": [ - "90085a8e-139a-45b2-a2a8-dd5c3fb21b10" + "f2f5e417-b1d1-4005-a485-8b6a81048966" ], "x-ms-ratelimit-remaining-subscription-deletes": [ "14996" ], "x-ms-correlation-request-id": [ - "0456e2be-43a0-40f8-b897-eedb5935cf3f" + "8350125b-094e-4133-8221-6b3691030e21" ], "x-ms-routing-request-id": [ - "WESTUS:20200901T203150Z:0456e2be-43a0-40f8-b897-eedb5935cf3f" + "WESTUS:20200904T023649Z:8350125b-094e-4133-8221-6b3691030e21" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -3678,12 +3813,12 @@ "-1" ] }, - "ResponseBody": "{\r\n \"operation\": \"DropLogicalDatabase\",\r\n \"startTime\": \"2020-09-01T20:31:50.357Z\"\r\n}", + "ResponseBody": "{\r\n \"operation\": \"DropLogicalDatabase\",\r\n \"startTime\": \"2020-09-04T02:36:49.693Z\"\r\n}", "StatusCode": 202 }, { - "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/locations/southeastasia/databaseAzureAsyncOperation/90085a8e-139a-45b2-a2a8-dd5c3fb21b10?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3ODEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3NvdXRoZWFzdGFzaWEvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzkwMDg1YThlLTEzOWEtNDViMi1hMmE4LWRkNWMzZmIyMWIxMD9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-5569/providers/Microsoft.Sql/locations/southeastasia/databaseAzureAsyncOperation/f2f5e417-b1d1-4005-a485-8b6a81048966?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1NjkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3NvdXRoZWFzdGFzaWEvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2YyZjVlNDE3LWIxZDEtNDAwNS1hNDg1LThiNmE4MTA0ODk2Nj9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -3691,7 +3826,7 @@ "FxVersion/4.6.26614.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.14393.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.45.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" ] }, "ResponseHeaders": { @@ -3699,7 +3834,7 @@ "no-cache" ], "Date": [ - "Tue, 01 Sep 2020 20:32:05 GMT" + "Fri, 04 Sep 2020 02:37:04 GMT" ], "Pragma": [ "no-cache" @@ -3711,16 +3846,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "8eebf1af-812f-4438-902f-7acf362170b8" + "2898478c-1351-463a-bacb-92788d2d6936" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11952" + "11951" ], "x-ms-correlation-request-id": [ - "7ce1e825-76fe-4f7e-ad7e-c7489884c25d" + "e03bfb07-e656-455e-aa58-425e57c040a6" ], "x-ms-routing-request-id": [ - "WESTUS:20200901T203205Z:7ce1e825-76fe-4f7e-ad7e-c7489884c25d" + "WESTUS:20200904T023705Z:e03bfb07-e656-455e-aa58-425e57c040a6" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -3738,12 +3873,12 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"90085a8e-139a-45b2-a2a8-dd5c3fb21b10\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2020-09-01T20:31:50.357Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"f2f5e417-b1d1-4005-a485-8b6a81048966\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2020-09-04T02:36:49.693Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/locations/southeastasia/databaseOperationResults/90085a8e-139a-45b2-a2a8-dd5c3fb21b10?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3ODEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3NvdXRoZWFzdGFzaWEvZGF0YWJhc2VPcGVyYXRpb25SZXN1bHRzLzkwMDg1YThlLTEzOWEtNDViMi1hMmE4LWRkNWMzZmIyMWIxMD9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-5569/providers/Microsoft.Sql/locations/southeastasia/databaseOperationResults/f2f5e417-b1d1-4005-a485-8b6a81048966?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1NjkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3NvdXRoZWFzdGFzaWEvZGF0YWJhc2VPcGVyYXRpb25SZXN1bHRzL2YyZjVlNDE3LWIxZDEtNDAwNS1hNDg1LThiNmE4MTA0ODk2Nj9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -3751,7 +3886,7 @@ "FxVersion/4.6.26614.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.14393.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.45.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" ] }, "ResponseHeaders": { @@ -3759,7 +3894,7 @@ "no-cache" ], "Date": [ - "Tue, 01 Sep 2020 20:32:05 GMT" + "Fri, 04 Sep 2020 02:37:04 GMT" ], "Pragma": [ "no-cache" @@ -3768,16 +3903,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "bb3e5913-3b19-43e7-a4a3-7685aacb0d76" + "a8a9c7c7-ada1-4911-8207-1a2514631b24" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11951" + "11950" ], "x-ms-correlation-request-id": [ - "8b89d80d-1e4a-4ae5-920b-845739d89806" + "62159031-6ff5-4706-b8f2-7464d8c7fe49" ], "x-ms-routing-request-id": [ - "WESTUS:20200901T203205Z:8b89d80d-1e4a-4ae5-920b-845739d89806" + "WESTUS:20200904T023705Z:62159031-6ff5-4706-b8f2-7464d8c7fe49" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -3796,13 +3931,13 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/servers/sqlcrudtest-3000/databases/sqlcrudtest-6589?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3ODEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zMDAwL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC02NTg5P2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-5569/providers/Microsoft.Sql/servers/sqlcrudtest-9821/databases/sqlcrudtest-936?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1NjkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05ODIxL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC05MzY/YXBpLXZlcnNpb249MjAxOS0wNi0wMS1wcmV2aWV3", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "ec2b693d-1b44-4bb6-8c87-6a01e4a99d5c" + "ff3c42a5-5c80-4492-8fcd-7f857e35506d" ], "accept-language": [ "en-US" @@ -3811,7 +3946,7 @@ "FxVersion/4.6.26614.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.14393.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.45.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" ] }, "ResponseHeaders": { @@ -3819,13 +3954,13 @@ "no-cache" ], "Date": [ - "Tue, 01 Sep 2020 20:32:06 GMT" + "Fri, 04 Sep 2020 02:37:05 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/locations/southeastasia/databaseOperationResults/47209b6a-33a0-4fd1-8025-209b4793aca2?api-version=2017-10-01-preview" + "https://management.azure.com/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-5569/providers/Microsoft.Sql/locations/southeastasia/databaseOperationResults/63746bfc-dd58-4599-b4e0-1316cbc8a1c1?api-version=2019-06-01-preview" ], "Retry-After": [ "15" @@ -3834,19 +3969,19 @@ "Microsoft-HTTPAPI/2.0" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/locations/southeastasia/databaseAzureAsyncOperation/47209b6a-33a0-4fd1-8025-209b4793aca2?api-version=2017-10-01-preview" + "https://management.azure.com/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-5569/providers/Microsoft.Sql/locations/southeastasia/databaseAzureAsyncOperation/63746bfc-dd58-4599-b4e0-1316cbc8a1c1?api-version=2019-06-01-preview" ], "x-ms-request-id": [ - "47209b6a-33a0-4fd1-8025-209b4793aca2" + "63746bfc-dd58-4599-b4e0-1316cbc8a1c1" ], "x-ms-ratelimit-remaining-subscription-deletes": [ "14995" ], "x-ms-correlation-request-id": [ - "044e1cab-52e9-48d2-9231-41183ef1d1d0" + "10bddca1-1760-479f-a160-248bbd8dad3c" ], "x-ms-routing-request-id": [ - "WESTUS:20200901T203206Z:044e1cab-52e9-48d2-9231-41183ef1d1d0" + "WESTUS:20200904T023706Z:10bddca1-1760-479f-a160-248bbd8dad3c" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -3864,12 +3999,12 @@ "-1" ] }, - "ResponseBody": "{\r\n \"operation\": \"DropLogicalDatabase\",\r\n \"startTime\": \"2020-09-01T20:32:06.543Z\"\r\n}", + "ResponseBody": "{\r\n \"operation\": \"DropLogicalDatabase\",\r\n \"startTime\": \"2020-09-04T02:37:05.913Z\"\r\n}", "StatusCode": 202 }, { - "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/locations/southeastasia/databaseAzureAsyncOperation/47209b6a-33a0-4fd1-8025-209b4793aca2?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3ODEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3NvdXRoZWFzdGFzaWEvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzQ3MjA5YjZhLTMzYTAtNGZkMS04MDI1LTIwOWI0NzkzYWNhMj9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-5569/providers/Microsoft.Sql/locations/southeastasia/databaseAzureAsyncOperation/63746bfc-dd58-4599-b4e0-1316cbc8a1c1?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1NjkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3NvdXRoZWFzdGFzaWEvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzYzNzQ2YmZjLWRkNTgtNDU5OS1iNGUwLTEzMTZjYmM4YTFjMT9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -3877,7 +4012,7 @@ "FxVersion/4.6.26614.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.14393.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.45.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" ] }, "ResponseHeaders": { @@ -3885,7 +4020,7 @@ "no-cache" ], "Date": [ - "Tue, 01 Sep 2020 20:32:21 GMT" + "Fri, 04 Sep 2020 02:37:20 GMT" ], "Pragma": [ "no-cache" @@ -3897,16 +4032,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "1a4f6db9-8c20-4426-b6d9-9a1363e7dcbd" + "64f76086-ebdc-47a7-88cd-a9760bdb2b6f" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11950" + "11949" ], "x-ms-correlation-request-id": [ - "afe9d578-4bf5-4a17-aaf1-f0049e421acf" + "0ad97f37-9b57-4147-8df3-a0dd378e2023" ], "x-ms-routing-request-id": [ - "WESTUS:20200901T203221Z:afe9d578-4bf5-4a17-aaf1-f0049e421acf" + "WESTUS:20200904T023721Z:0ad97f37-9b57-4147-8df3-a0dd378e2023" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -3924,12 +4059,12 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"47209b6a-33a0-4fd1-8025-209b4793aca2\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2020-09-01T20:32:06.543Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"63746bfc-dd58-4599-b4e0-1316cbc8a1c1\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2020-09-04T02:37:05.913Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/locations/southeastasia/databaseOperationResults/47209b6a-33a0-4fd1-8025-209b4793aca2?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3ODEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3NvdXRoZWFzdGFzaWEvZGF0YWJhc2VPcGVyYXRpb25SZXN1bHRzLzQ3MjA5YjZhLTMzYTAtNGZkMS04MDI1LTIwOWI0NzkzYWNhMj9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-5569/providers/Microsoft.Sql/locations/southeastasia/databaseOperationResults/63746bfc-dd58-4599-b4e0-1316cbc8a1c1?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1NjkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3NvdXRoZWFzdGFzaWEvZGF0YWJhc2VPcGVyYXRpb25SZXN1bHRzLzYzNzQ2YmZjLWRkNTgtNDU5OS1iNGUwLTEzMTZjYmM4YTFjMT9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -3937,7 +4072,7 @@ "FxVersion/4.6.26614.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.14393.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.45.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" ] }, "ResponseHeaders": { @@ -3945,7 +4080,7 @@ "no-cache" ], "Date": [ - "Tue, 01 Sep 2020 20:32:22 GMT" + "Fri, 04 Sep 2020 02:37:20 GMT" ], "Pragma": [ "no-cache" @@ -3954,16 +4089,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "4d401121-3023-41df-a0c9-ef4b38e2f687" + "79643092-20c0-44c8-b2fd-83814560e0fd" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11949" + "11948" ], "x-ms-correlation-request-id": [ - "9098901c-3dda-48bc-af39-bfa4e2552b60" + "2f08f9b4-4d94-4f7e-acd4-6bef046cfadc" ], "x-ms-routing-request-id": [ - "WESTUS:20200901T203222Z:9098901c-3dda-48bc-af39-bfa4e2552b60" + "WESTUS:20200904T023721Z:2f08f9b4-4d94-4f7e-acd4-6bef046cfadc" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -3982,13 +4117,13 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/servers/sqlcrudtest-3000/databases/sqlcrudtest-1042?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3ODEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zMDAwL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC0xMDQyP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-5569/providers/Microsoft.Sql/servers/sqlcrudtest-9821/databases/sqlcrudtest-1826?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1NjkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05ODIxL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC0xODI2P2FwaS12ZXJzaW9uPTIwMTktMDYtMDEtcHJldmlldw==", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "91c82ad1-7989-4d68-bedb-db8b88c1b629" + "17c628d5-d9c9-4782-83ad-866036f8daed" ], "accept-language": [ "en-US" @@ -3997,7 +4132,7 @@ "FxVersion/4.6.26614.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.14393.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.45.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" ] }, "ResponseHeaders": { @@ -4005,13 +4140,13 @@ "no-cache" ], "Date": [ - "Tue, 01 Sep 2020 20:32:22 GMT" + "Fri, 04 Sep 2020 02:37:21 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/locations/southeastasia/databaseOperationResults/68975597-626a-4abb-8c26-706e6db2458d?api-version=2017-10-01-preview" + "https://management.azure.com/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-5569/providers/Microsoft.Sql/locations/southeastasia/databaseOperationResults/b5d4c2eb-1d6f-4511-8017-6f408c2eb060?api-version=2019-06-01-preview" ], "Retry-After": [ "15" @@ -4020,19 +4155,205 @@ "Microsoft-HTTPAPI/2.0" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/locations/southeastasia/databaseAzureAsyncOperation/68975597-626a-4abb-8c26-706e6db2458d?api-version=2017-10-01-preview" + "https://management.azure.com/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-5569/providers/Microsoft.Sql/locations/southeastasia/databaseAzureAsyncOperation/b5d4c2eb-1d6f-4511-8017-6f408c2eb060?api-version=2019-06-01-preview" ], "x-ms-request-id": [ - "68975597-626a-4abb-8c26-706e6db2458d" + "b5d4c2eb-1d6f-4511-8017-6f408c2eb060" ], "x-ms-ratelimit-remaining-subscription-deletes": [ "14994" ], "x-ms-correlation-request-id": [ - "640a38e0-bc7b-4167-9648-5be0ca7ea828" + "03191723-5df7-4b29-933a-4a2d0018170b" ], "x-ms-routing-request-id": [ - "WESTUS:20200901T203222Z:640a38e0-bc7b-4167-9648-5be0ca7ea828" + "WESTUS:20200904T023722Z:03191723-5df7-4b29-933a-4a2d0018170b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "73" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"DropLogicalDatabase\",\r\n \"startTime\": \"2020-09-04T02:37:22.07Z\"\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-5569/providers/Microsoft.Sql/locations/southeastasia/databaseAzureAsyncOperation/b5d4c2eb-1d6f-4511-8017-6f408c2eb060?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1NjkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3NvdXRoZWFzdGFzaWEvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2I1ZDRjMmViLTFkNmYtNDUxMS04MDE3LTZmNDA4YzJlYjA2MD9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 04 Sep 2020 02:37:36 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "36a102c4-f0fe-4f17-8844-0e49bb12b43a" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11947" + ], + "x-ms-correlation-request-id": [ + "a54600ae-b0e0-4933-b241-056b20f56f0e" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200904T023737Z:a54600ae-b0e0-4933-b241-056b20f56f0e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "106" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"b5d4c2eb-1d6f-4511-8017-6f408c2eb060\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2020-09-04T02:37:22.07Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-5569/providers/Microsoft.Sql/locations/southeastasia/databaseOperationResults/b5d4c2eb-1d6f-4511-8017-6f408c2eb060?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1NjkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3NvdXRoZWFzdGFzaWEvZGF0YWJhc2VPcGVyYXRpb25SZXN1bHRzL2I1ZDRjMmViLTFkNmYtNDUxMS04MDE3LTZmNDA4YzJlYjA2MD9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 04 Sep 2020 02:37:37 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "64c30e52-4bb4-420e-9fc4-d89a4cab1235" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11946" + ], + "x-ms-correlation-request-id": [ + "9abd4e77-9760-498f-99f0-555bc668d681" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200904T023737Z:9abd4e77-9760-498f-99f0-555bc668d681" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-5569/providers/Microsoft.Sql/servers/sqlcrudtest-9821/databases/sqlcrudtest-7928?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1NjkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05ODIxL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC03OTI4P2FwaS12ZXJzaW9uPTIwMTktMDYtMDEtcHJldmlldw==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "c33db461-8b2d-4767-81c5-740e47288082" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.14393.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 04 Sep 2020 02:37:37 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-5569/providers/Microsoft.Sql/locations/southeastasia/databaseOperationResults/d120035d-4295-44e7-b1c0-c119f309f2a1?api-version=2019-06-01-preview" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-5569/providers/Microsoft.Sql/locations/southeastasia/databaseAzureAsyncOperation/d120035d-4295-44e7-b1c0-c119f309f2a1?api-version=2019-06-01-preview" + ], + "x-ms-request-id": [ + "d120035d-4295-44e7-b1c0-c119f309f2a1" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14993" + ], + "x-ms-correlation-request-id": [ + "6167abfa-882f-4fe9-b86a-576f059725d6" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200904T023738Z:6167abfa-882f-4fe9-b86a-576f059725d6" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -4050,12 +4371,12 @@ "-1" ] }, - "ResponseBody": "{\r\n \"operation\": \"DropLogicalDatabase\",\r\n \"startTime\": \"2020-09-01T20:32:22.623Z\"\r\n}", + "ResponseBody": "{\r\n \"operation\": \"DropLogicalDatabase\",\r\n \"startTime\": \"2020-09-04T02:37:38.217Z\"\r\n}", "StatusCode": 202 }, { - "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/locations/southeastasia/databaseAzureAsyncOperation/68975597-626a-4abb-8c26-706e6db2458d?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3ODEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3NvdXRoZWFzdGFzaWEvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzY4OTc1NTk3LTYyNmEtNGFiYi04YzI2LTcwNmU2ZGIyNDU4ZD9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-5569/providers/Microsoft.Sql/locations/southeastasia/databaseAzureAsyncOperation/d120035d-4295-44e7-b1c0-c119f309f2a1?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1NjkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3NvdXRoZWFzdGFzaWEvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2QxMjAwMzVkLTQyOTUtNDRlNy1iMWMwLWMxMTlmMzA5ZjJhMT9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -4063,7 +4384,7 @@ "FxVersion/4.6.26614.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.14393.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.45.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" ] }, "ResponseHeaders": { @@ -4071,7 +4392,7 @@ "no-cache" ], "Date": [ - "Tue, 01 Sep 2020 20:32:37 GMT" + "Fri, 04 Sep 2020 02:37:52 GMT" ], "Pragma": [ "no-cache" @@ -4083,16 +4404,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "99f2428c-20f9-44e3-8a20-3cc701067304" + "a08555f7-a5c0-4296-bf9e-2de81d157eaf" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11948" + "11945" ], "x-ms-correlation-request-id": [ - "b16beaea-d57a-4dd4-8d24-de0bf5b5ec5f" + "10f10327-e9f3-4997-87a9-0d37b6dcc6a2" ], "x-ms-routing-request-id": [ - "WESTUS:20200901T203238Z:b16beaea-d57a-4dd4-8d24-de0bf5b5ec5f" + "WESTUS:20200904T023753Z:10f10327-e9f3-4997-87a9-0d37b6dcc6a2" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -4110,12 +4431,12 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"68975597-626a-4abb-8c26-706e6db2458d\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2020-09-01T20:32:22.623Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"d120035d-4295-44e7-b1c0-c119f309f2a1\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2020-09-04T02:37:38.217Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-8781/providers/Microsoft.Sql/locations/southeastasia/databaseOperationResults/68975597-626a-4abb-8c26-706e6db2458d?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3ODEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3NvdXRoZWFzdGFzaWEvZGF0YWJhc2VPcGVyYXRpb25SZXN1bHRzLzY4OTc1NTk3LTYyNmEtNGFiYi04YzI2LTcwNmU2ZGIyNDU4ZD9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourceGroups/sqlcrudtest-5569/providers/Microsoft.Sql/locations/southeastasia/databaseOperationResults/d120035d-4295-44e7-b1c0-c119f309f2a1?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU1NjkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3NvdXRoZWFzdGFzaWEvZGF0YWJhc2VPcGVyYXRpb25SZXN1bHRzL2QxMjAwMzVkLTQyOTUtNDRlNy1iMWMwLWMxMTlmMzA5ZjJhMT9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -4123,7 +4444,7 @@ "FxVersion/4.6.26614.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.14393.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.45.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" ] }, "ResponseHeaders": { @@ -4131,7 +4452,7 @@ "no-cache" ], "Date": [ - "Tue, 01 Sep 2020 20:32:38 GMT" + "Fri, 04 Sep 2020 02:37:53 GMT" ], "Pragma": [ "no-cache" @@ -4140,16 +4461,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "c68b4525-7669-425f-808c-2a6e876681a8" + "dcc81118-abf1-4952-ac51-472289f2355a" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11947" + "11944" ], "x-ms-correlation-request-id": [ - "dcdae1c7-e722-48b3-9e3a-a3164e801450" + "cca8658f-01f4-42b5-8d56-763b8db112e1" ], "x-ms-routing-request-id": [ - "WESTUS:20200901T203238Z:dcdae1c7-e722-48b3-9e3a-a3164e801450" + "WESTUS:20200904T023753Z:cca8658f-01f4-42b5-8d56-763b8db112e1" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -4168,13 +4489,13 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourcegroups/sqlcrudtest-8781?api-version=2017-05-10", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTg3ODE/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestUri": "/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/resourcegroups/sqlcrudtest-5569?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFjNDRhNjQtZmVmOC00ZjNiLWJkMjQtNWZlYTFjNzY5ZWQ1L3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTU1Njk/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "07548621-a07b-413c-a0ff-9ef85a4b085a" + "acc4de1e-0bc2-4911-a213-87e05b711da0" ], "accept-language": [ "en-US" @@ -4191,13 +4512,13 @@ "no-cache" ], "Date": [ - "Tue, 01 Sep 2020 20:32:41 GMT" + "Fri, 04 Sep 2020 02:37:57 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDg3ODEtU09VVEhFQVNUQVNJQSIsImpvYkxvY2F0aW9uIjoic291dGhlYXN0YXNpYSJ9?api-version=2017-05-10" + "https://management.azure.com/subscriptions/11c44a64-fef8-4f3b-bd24-5fea1c769ed5/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDU1NjktU09VVEhFQVNUQVNJQSIsImpvYkxvY2F0aW9uIjoic291dGhlYXN0YXNpYSJ9?api-version=2017-05-10" ], "Retry-After": [ "15" @@ -4206,13 +4527,13 @@ "14999" ], "x-ms-request-id": [ - "498adf67-8913-4e03-a3ab-e13d9a187352" + "6920ed12-b438-4497-9cee-f950913ea1c5" ], "x-ms-correlation-request-id": [ - "498adf67-8913-4e03-a3ab-e13d9a187352" + "6920ed12-b438-4497-9cee-f950913ea1c5" ], "x-ms-routing-request-id": [ - "WESTUS:20200901T203242Z:498adf67-8913-4e03-a3ab-e13d9a187352" + "WESTUS:20200904T023758Z:6920ed12-b438-4497-9cee-f950913ea1c5" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -4233,18 +4554,19 @@ ], "Names": { "CreateResourceGroup": [ - "sqlcrudtest-8781" + "sqlcrudtest-5569" ], "CreateServer": [ - "sqlcrudtest-3000" + "sqlcrudtest-9821" ], "TestCreateDropDatabase": [ - "sqlcrudtest-1701", - "sqlcrudtest-4254", - "sqlcrudtest-7309", - "sqlcrudtest-8833", - "sqlcrudtest-6589", - "sqlcrudtest-1042" + "sqlcrudtest-1791", + "sqlcrudtest-7153", + "sqlcrudtest-4457", + "sqlcrudtest-2763", + "sqlcrudtest-936", + "sqlcrudtest-1826", + "sqlcrudtest-7928" ] }, "Variables": { From 0b886772a10bcf9f319df7e8eda72ed301feb595 Mon Sep 17 00:00:00 2001 From: Brandon Greenwood Date: Fri, 4 Sep 2020 10:53:58 -0700 Subject: [PATCH 12/19] Undo ManagedInstanceOperation model change due to failing pipeline check - will follow up with MI team to do this update separately --- .../src/Generated/Models/ManagedInstanceOperation.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceOperation.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceOperation.cs index 9c408ac62043..bcec42027099 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceOperation.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceOperation.cs @@ -59,7 +59,7 @@ public ManagedInstanceOperation() /// cancelled. /// The operation parameters. /// The operation steps. - public ManagedInstanceOperation(string id = default(string), string name = default(string), string type = default(string), string managedInstanceName = default(string), string operation = default(string), string operationFriendlyName = default(string), int? percentComplete = default(int?), System.DateTime? startTime = default(System.DateTime?), ManagementOperationState? state = default(ManagementOperationState?), int? errorCode = default(int?), string errorDescription = default(string), int? errorSeverity = default(int?), bool? isUserError = default(bool?), System.DateTime? estimatedCompletionTime = default(System.DateTime?), string description = default(string), bool? isCancellable = default(bool?), ManagedInstanceOperationParametersPair operationParameters = default(ManagedInstanceOperationParametersPair), ManagedInstanceOperationSteps operationSteps = default(ManagedInstanceOperationSteps)) + public ManagedInstanceOperation(string id = default(string), string name = default(string), string type = default(string), string managedInstanceName = default(string), string operation = default(string), string operationFriendlyName = default(string), int? percentComplete = default(int?), System.DateTime? startTime = default(System.DateTime?), string state = default(string), int? errorCode = default(int?), string errorDescription = default(string), int? errorSeverity = default(int?), bool? isUserError = default(bool?), System.DateTime? estimatedCompletionTime = default(System.DateTime?), string description = default(string), bool? isCancellable = default(bool?), ManagedInstanceOperationParametersPair operationParameters = default(ManagedInstanceOperationParametersPair), ManagedInstanceOperationSteps operationSteps = default(ManagedInstanceOperationSteps)) : base(id, name, type) { ManagedInstanceName = managedInstanceName; @@ -122,7 +122,7 @@ public ManagedInstanceOperation() /// 'Cancelled' /// [JsonProperty(PropertyName = "properties.state")] - public ManagementOperationState? State { get; private set; } + public string State { get; private set; } /// /// Gets the operation error code. From de66befad76e0a0b52e171b01fa24f8ac100fa3a Mon Sep 17 00:00:00 2001 From: Brandon Greenwood Date: Fri, 4 Sep 2020 15:57:09 -0700 Subject: [PATCH 13/19] Update sql_resource-manager.txt --- eng/mgmt/mgmtmetadata/sql_resource-manager.txt | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/eng/mgmt/mgmtmetadata/sql_resource-manager.txt b/eng/mgmt/mgmtmetadata/sql_resource-manager.txt index 7e3ed4dd99de..2c4e3f39b2ce 100644 --- a/eng/mgmt/mgmtmetadata/sql_resource-manager.txt +++ b/eng/mgmt/mgmtmetadata/sql_resource-manager.txt @@ -1,14 +1,14 @@ -Installing AutoRest version: v2 +Installing AutoRest version: 2.0.4262 AutoRest installed successfully. Commencing code generation Generating CSharp code Executing AutoRest command -cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/sql/resource-manager/readme.md --csharp --version=v2 --reflect-api-versions --csharp-sdks-folder=. -2020-08-18 11:04:29 UTC +cmd.exe /c autorest.cmd https://github.com/brandong-ms/azure-rest-api-specs/blob/master/specification/sql/resource-manager/readme.md --csharp --version=2.0.4262 --reflect-api-versions --csharp-sdks-folder=. +2020-09-03 19:57:18 UTC Azure-rest-api-specs repository information -GitHub fork: Azure +GitHub fork: brandong-ms Branch: master -Commit: 271086fdddc2d13910e8fa1373d285b1512ed032 +Commit: ee23954e1987dd2688617c68213a9e80f94adcb1 AutoRest information -Requested version: v2 -Bootstrapper version: autorest@2.0.4413 +Requested version: 2.0.4262 +Bootstrapper version: autorest@2.0.4262 \ No newline at end of file From 32e7a307a4fbe197424b3735e98a3334d03147d8 Mon Sep 17 00:00:00 2001 From: Brandon Greenwood Date: Fri, 4 Sep 2020 17:37:45 -0700 Subject: [PATCH 14/19] Checkout Generated before re-generate --- ...kupShortTermRetentionPoliciesOperations.cs | 8 +- .../src/Generated/CapabilitiesOperations.cs | 9 +- .../CapabilitiesOperationsExtensions.cs | 10 +- .../src/Generated/DatabasesOperations.cs | 677 ++++++---- .../DatabasesOperationsExtensions.cs | 372 ++++-- ...dDatabaseBlobAuditingPoliciesOperations.cs | 377 ------ ...lobAuditingPoliciesOperationsExtensions.cs | 82 -- ...dedServerBlobAuditingPoliciesOperations.cs | 368 ----- ...lobAuditingPoliciesOperationsExtensions.cs | 76 -- .../src/Generated/ICapabilitiesOperations.cs | 5 +- .../src/Generated/IDatabasesOperations.cs | 215 ++- ...dDatabaseBlobAuditingPoliciesOperations.cs | 52 - ...dedServerBlobAuditingPoliciesOperations.cs | 49 - .../src/Generated/IImportExportOperations.cs | 93 -- .../ILongTermRetentionBackupsOperations.cs | 12 +- ...tentionManagedInstanceBackupsOperations.cs | 12 +- ...ManagedDatabaseRestoreDetailsOperations.cs | 4 +- .../Generated/IManagedDatabasesOperations.cs | 87 +- .../Generated/IManagedInstancesOperations.cs | 82 +- .../Generated/IReplicationLinksOperations.cs | 68 - .../src/Generated/IServersOperations.cs | 60 - .../src/Generated/ISqlManagementClient.cs | 79 +- .../IWorkloadClassifiersOperations.cs | 268 ---- .../Generated/IWorkloadGroupsOperations.cs | 244 ---- .../src/Generated/ImportExportOperations.cs | 305 ----- .../ImportExportOperationsExtensions.cs | 133 -- .../LongTermRetentionBackupsOperations.cs | 24 +- ...ermRetentionBackupsOperationsExtensions.cs | 24 +- ...tentionManagedInstanceBackupsOperations.cs | 24 +- ...agedInstanceBackupsOperationsExtensions.cs | 24 +- ...ManagedDatabaseRestoreDetailsOperations.cs | 20 +- ...abaseRestoreDetailsOperationsExtensions.cs | 6 +- .../Generated/ManagedDatabasesOperations.cs | 556 +------- .../ManagedDatabasesOperationsExtensions.cs | 134 +- .../Generated/ManagedInstancesOperations.cs | 678 +++++----- .../ManagedInstancesOperationsExtensions.cs | 156 +-- .../Models/AutoPauseDelayTimeRange.cs | 97 -- .../Models/BackupShortTermRetentionPolicy.cs | 16 +- .../src/Generated/Models/CapabilityGroup.cs | 96 +- .../Models/CapabilityGroupConverter.cs | 53 - .../Generated/Models/CatalogCollationType.cs | 89 +- .../Models/CatalogCollationTypeConverter.cs | 53 - .../Models/CheckNameAvailabilityRequest.cs | 5 + .../Models/CheckNameAvailabilityResponse.cs | 47 +- .../src/Generated/Models/CreateMode.cs | 113 +- .../Generated/Models/CreateModeConverter.cs | 53 - .../src/Generated/Models/Database.cs | 54 +- .../Models/DatabaseBlobAuditingPolicy.cs | 31 +- .../Generated/Models/DatabaseLicenseType.cs | 89 +- .../Models/DatabaseLicenseTypeConverter.cs | 53 - .../src/Generated/Models/DatabaseOperation.cs | 4 +- .../src/Generated/Models/DatabaseState1.cs | 92 +- .../Models/DatabaseState1Converter.cs | 53 - .../src/Generated/Models/DatabaseState2.cs | 92 +- .../Models/DatabaseState2Converter.cs | 53 - .../src/Generated/Models/DatabaseState3.cs | 92 +- .../Models/DatabaseState3Converter.cs | 53 - .../src/Generated/Models/DatabaseState4.cs | 92 +- .../Models/DatabaseState4Converter.cs | 53 - .../src/Generated/Models/DatabaseState5.cs | 92 +- .../Models/DatabaseState5Converter.cs | 53 - .../src/Generated/Models/DatabaseState6.cs | 92 +- .../Models/DatabaseState6Converter.cs | 53 - .../src/Generated/Models/DatabaseStatus.cs | 146 +- .../Models/DatabaseStatusConverter.cs | 53 - .../src/Generated/Models/DatabaseUpdate.cs | 54 +- .../Models/DatabaseVulnerabilityAssessment.cs | 12 +- .../src/Generated/Models/EditionCapability.cs | 20 +- .../src/Generated/Models/ElasticPool.cs | 6 +- .../Generated/Models/ElasticPoolEdition.cs | 98 +- .../Models/ElasticPoolEditionConverter.cs | 53 - .../Models/ElasticPoolLicenseType.cs | 89 +- .../Models/ElasticPoolLicenseTypeConverter.cs | 53 - ...erDatabaseMaxPerformanceLevelCapability.cs | 4 +- ...erDatabaseMinPerformanceLevelCapability.cs | 4 +- .../ElasticPoolPerformanceLevelCapability.cs | 12 +- .../src/Generated/Models/ElasticPoolState.cs | 92 +- .../Models/ElasticPoolStateConverter.cs | 53 - .../src/Generated/Models/ElasticPoolUpdate.cs | 4 +- .../Generated/Models/EncryptionProtector.cs | 8 +- .../Models/ExportDatabaseDefinition.cs | 131 -- .../ExtendedDatabaseBlobAuditingPolicy.cs | 31 +- .../ExtendedServerBlobAuditingPolicy.cs | 31 +- .../src/Generated/Models/FailoverGroup.cs | 4 +- .../Models/FailoverGroupReadOnlyEndpoint.cs | 4 +- .../Models/FailoverGroupReadWriteEndpoint.cs | 11 +- .../Models/FailoverGroupReplicationRole.cs | 89 +- .../FailoverGroupReplicationRoleConverter.cs | 55 - .../src/Generated/Models/IdentityType.cs | 86 +- .../Generated/Models/IdentityTypeConverter.cs | 53 - .../ImportExistingDatabaseDefinition.cs | 133 -- .../Models/ImportExportOperationResult.cs | 135 -- .../Models/ImportNewDatabaseDefinition.cs | 167 --- .../Generated/Models/InstanceFailoverGroup.cs | 4 +- .../InstanceFailoverGroupReadOnlyEndpoint.cs | 4 +- .../InstanceFailoverGroupReadWriteEndpoint.cs | 11 +- .../InstanceFailoverGroupReplicationRole.cs | 94 +- ...ceFailoverGroupReplicationRoleConverter.cs | 55 - .../src/Generated/Models/InstancePool.cs | 8 +- .../Models/InstancePoolEditionCapability.cs | 82 -- .../Models/InstancePoolFamilyCapability.cs | 92 -- .../Models/InstancePoolLicenseType.cs | 89 +- .../InstancePoolLicenseTypeConverter.cs | 53 - .../Models/InstancePoolVcoresCapability.cs | 88 -- .../src/Generated/Models/JobAgent.cs | 4 +- .../src/Generated/Models/JobAgentState.cs | 98 +- .../Models/JobAgentStateConverter.cs | 53 - .../src/Generated/Models/JobExecution.cs | 6 +- .../Generated/Models/JobExecutionLifecycle.cs | 113 +- .../Models/JobExecutionLifecycleConverter.cs | 53 - .../Generated/Models/JobExecutionTarget.cs | 4 +- .../src/Generated/Models/JobStepAction.cs | 6 +- .../Generated/Models/JobStepActionSource.cs | 86 +- .../Models/JobStepActionSourceConverter.cs | 53 - .../src/Generated/Models/JobStepActionType.cs | 86 +- .../Models/JobStepActionTypeConverter.cs | 53 - .../src/Generated/Models/JobStepOutput.cs | 4 +- .../src/Generated/Models/JobStepOutputType.cs | 86 +- .../Models/JobStepOutputTypeConverter.cs | 53 - .../src/Generated/Models/JobTarget.cs | 11 +- .../src/Generated/Models/JobTargetType.cs | 98 +- .../Models/JobTargetTypeConverter.cs | 53 - .../src/Generated/Models/LogSizeCapability.cs | 4 +- .../src/Generated/Models/LogSizeUnit.cs | 98 +- .../Generated/Models/LogSizeUnitConverter.cs | 53 - .../Models/LongTermRetentionDatabaseState.cs | 94 +- ...LongTermRetentionDatabaseStateConverter.cs | 55 - .../src/Generated/Models/ManagedDatabase.cs | 8 +- .../Models/ManagedDatabaseCreateMode.cs | 98 +- .../ManagedDatabaseCreateModeConverter.cs | 54 - .../Generated/Models/ManagedDatabaseStatus.cs | 104 +- .../Models/ManagedDatabaseStatusConverter.cs | 53 - .../Generated/Models/ManagedDatabaseUpdate.cs | 8 +- .../src/Generated/Models/ManagedInstance.cs | 20 +- .../ManagedInstanceEncryptionProtector.cs | 8 +- .../Models/ManagedInstanceFamilyCapability.cs | 18 +- .../Generated/Models/ManagedInstanceKey.cs | 8 +- .../Models/ManagedInstanceLicenseType.cs | 89 +- .../ManagedInstanceLicenseTypeConverter.cs | 55 - ...ivateLinkServiceConnectionStateProperty.cs | 87 -- .../Models/ManagedInstanceProxyOverride.cs | 92 +- .../ManagedInstanceProxyOverrideConverter.cs | 55 - .../Generated/Models/ManagedInstanceUpdate.cs | 20 +- .../Models/ManagedInstanceVcoresCapability.cs | 40 +- .../ManagedInstanceVersionCapability.cs | 11 +- .../ManagedInstanceVulnerabilityAssessment.cs | 12 +- .../Models/ManagedServerCreateMode.cs | 89 +- .../ManagedServerCreateModeConverter.cs | 53 - .../Models/ManagementOperationState.cs | 101 +- .../ManagementOperationStateConverter.cs | 54 - .../src/Generated/Models/MaxSizeCapability.cs | 4 +- .../src/Generated/Models/MaxSizeUnit.cs | 95 +- .../Generated/Models/MaxSizeUnitConverter.cs | 53 - .../src/Generated/Models/Metric.cs | 4 +- .../src/Generated/Models/MetricDefinition.cs | 6 +- .../Generated/Models/MinCapacityCapability.cs | 70 - .../Models/NetworkIsolationSettings.cs | 72 - .../src/Generated/Models/Operation.cs | 4 +- .../src/Generated/Models/OperationOrigin.cs | 89 +- .../Models/OperationOriginConverter.cs | 53 - .../src/Generated/Models/PartnerInfo.cs | 4 +- .../src/Generated/Models/PartnerRegionInfo.cs | 4 +- .../Generated/Models/PauseDelayTimeUnit.cs | 103 -- .../Models/PauseDelayTimeUnitConverter.cs | 53 - .../Models/PerformanceLevelCapability.cs | 4 +- .../Generated/Models/PerformanceLevelUnit.cs | 89 +- .../Models/PerformanceLevelUnitConverter.cs | 53 - .../Models/PrimaryAggregationType.cs | 101 +- .../Models/PrimaryAggregationTypeConverter.cs | 53 - .../Models/PrivateEndpointConnection.cs | 4 +- .../PrivateEndpointConnectionProperties.cs | 4 +- .../PrivateEndpointConnectionRequestStatus.cs | 72 - .../PrivateEndpointProvisioningState.cs | 100 +- ...ivateEndpointProvisioningStateConverter.cs | 55 - ...inkServiceConnectionStateActionsRequire.cs | 95 +- ...eConnectionStateActionsRequireConverter.cs | 55 - ...ivateLinkServiceConnectionStateProperty.cs | 10 +- ...PrivateLinkServiceConnectionStateStatus.cs | 101 +- ...nkServiceConnectionStateStatusConverter.cs | 55 - .../src/Generated/Models/ProvisioningState.cs | 98 +- .../Models/ProvisioningStateConverter.cs | 53 - .../Models/ReadOnlyEndpointFailoverPolicy.cs | 91 +- ...ReadOnlyEndpointFailoverPolicyConverter.cs | 55 - .../Generated/Models/ReadScaleCapability.cs | 71 - .../Models/ReadWriteEndpointFailoverPolicy.cs | 91 +- ...eadWriteEndpointFailoverPolicyConverter.cs | 55 - .../Models/RecommendedElasticPool.cs | 4 +- .../src/Generated/Models/ReplicaType.cs | 89 +- .../Generated/Models/ReplicaTypeConverter.cs | 53 - .../src/Generated/Models/ReplicationLink.cs | 4 +- .../src/Generated/Models/ReplicationState.cs | 95 +- .../Models/ReplicationStateConverter.cs | 53 - .../src/Generated/Models/ResourceIdentity.cs | 4 +- .../src/Generated/Models/SampleName.cs | 92 +- .../Generated/Models/SampleNameConverter.cs | 53 - .../src/Generated/Models/Server.cs | 4 +- .../Models/ServerBlobAuditingPolicy.cs | 31 +- .../src/Generated/Models/ServerKey.cs | 8 +- .../src/Generated/Models/ServerKeyType.cs | 89 +- .../Models/ServerKeyTypeConverter.cs | 53 - .../Models/ServerPublicNetworkAccess.cs | 89 +- .../ServerPublicNetworkAccessConverter.cs | 54 - .../src/Generated/Models/ServerUpdate.cs | 4 +- .../Models/ServerVulnerabilityAssessment.cs | 12 +- .../Models/ServiceObjectiveCapability.cs | 38 +- .../Generated/Models/ServiceObjectiveName.cs | 278 +--- .../Models/ServiceObjectiveNameConverter.cs | 53 - .../src/Generated/Models/SloUsageMetric.cs | 4 +- .../Generated/Models/StorageAccountType.cs | 92 +- .../Models/StorageAccountTypeConverter.cs | 53 - .../src/Generated/Models/StorageKeyType.cs | 109 +- .../Models/StorageKeyTypeConverter.cs | 53 - .../src/Generated/Models/SyncAgent.cs | 4 +- .../Models/SyncAgentLinkedDatabase.cs | 4 +- .../src/Generated/Models/SyncAgentState.cs | 92 +- .../Models/SyncAgentStateConverter.cs | 53 - .../Models/SyncConflictResolutionPolicy.cs | 89 +- .../SyncConflictResolutionPolicyConverter.cs | 55 - .../src/Generated/Models/SyncDirection.cs | 92 +- .../Models/SyncDirectionConverter.cs | 53 - .../src/Generated/Models/SyncGroup.cs | 6 +- .../Models/SyncGroupLogProperties.cs | 4 +- .../src/Generated/Models/SyncGroupLogType.cs | 95 +- .../Models/SyncGroupLogTypeConverter.cs | 53 - .../src/Generated/Models/SyncGroupState.cs | 98 +- .../Models/SyncGroupStateConverter.cs | 53 - .../src/Generated/Models/SyncMember.cs | 8 +- .../src/Generated/Models/SyncMemberDbType.cs | 89 +- .../Models/SyncMemberDbTypeConverter.cs | 53 - .../src/Generated/Models/SyncMemberState.cs | 137 +- .../Models/SyncMemberStateConverter.cs | 53 - .../TransparentDataEncryptionActivity.cs | 4 +- ...TransparentDataEncryptionActivityStatus.cs | 95 +- ...ntDataEncryptionActivityStatusConverter.cs | 55 - .../Generated/Models/UnitDefinitionType.cs | 101 +- .../Models/UnitDefinitionTypeConverter.cs | 53 - .../src/Generated/Models/UnitType.cs | 101 +- .../src/Generated/Models/UnitTypeConverter.cs | 53 - .../src/Generated/Models/UnlinkParameters.cs | 53 - .../Generated/Models/VirtualNetworkRule.cs | 4 +- .../Models/VirtualNetworkRuleState.cs | 98 +- .../VirtualNetworkRuleStateConverter.cs | 53 - .../VulnerabilityAssessmentScanRecord.cs | 6 +- .../VulnerabilityAssessmentScanState.cs | 97 +- ...lnerabilityAssessmentScanStateConverter.cs | 55 - .../VulnerabilityAssessmentScanTriggerType.cs | 95 +- ...ilityAssessmentScanTriggerTypeConverter.cs | 55 - .../Generated/Models/WorkloadClassifier.cs | 115 -- .../src/Generated/Models/WorkloadGroup.cs | 114 -- .../Generated/ReplicationLinksOperations.cs | 238 ---- .../ReplicationLinksOperationsExtensions.cs | 114 -- .../Generated/SdkInfo_SqlManagementClient.cs | 69 +- .../src/Generated/ServersOperations.cs | 239 ---- .../Generated/ServersOperationsExtensions.cs | 96 -- .../src/Generated/SqlManagementClient.cs | 44 +- .../src/Generated/SyncGroupsOperations.cs | 22 +- .../src/Generated/SyncMembersOperations.cs | 14 +- .../WorkloadClassifiersOperations.cs | 1188 ----------------- ...WorkloadClassifiersOperationsExtensions.cs | 419 ------ .../src/Generated/WorkloadGroupsOperations.cs | 1146 ---------------- .../WorkloadGroupsOperationsExtensions.cs | 383 ------ 261 files changed, 2250 insertions(+), 19218 deletions(-) delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IImportExportOperations.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IWorkloadClassifiersOperations.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IWorkloadGroupsOperations.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ImportExportOperations.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ImportExportOperationsExtensions.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/AutoPauseDelayTimeRange.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/CapabilityGroupConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/CatalogCollationTypeConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/CreateModeConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseLicenseTypeConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState1Converter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState2Converter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState3Converter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState4Converter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState5Converter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState6Converter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseStatusConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolEditionConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolLicenseTypeConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolStateConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ExportDatabaseDefinition.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/FailoverGroupReplicationRoleConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/IdentityTypeConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ImportExistingDatabaseDefinition.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ImportExportOperationResult.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ImportNewDatabaseDefinition.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstanceFailoverGroupReplicationRoleConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstancePoolEditionCapability.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstancePoolFamilyCapability.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstancePoolLicenseTypeConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstancePoolVcoresCapability.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobAgentStateConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobExecutionLifecycleConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobStepActionSourceConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobStepActionTypeConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobStepOutputTypeConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobTargetTypeConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/LogSizeUnitConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/LongTermRetentionDatabaseStateConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedDatabaseCreateModeConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedDatabaseStatusConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceLicenseTypeConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstancePrivateLinkServiceConnectionStateProperty.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceProxyOverrideConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedServerCreateModeConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagementOperationStateConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/MaxSizeUnitConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/MinCapacityCapability.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/NetworkIsolationSettings.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/OperationOriginConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PauseDelayTimeUnit.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PauseDelayTimeUnitConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PerformanceLevelUnitConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrimaryAggregationTypeConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateEndpointConnectionRequestStatus.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateEndpointProvisioningStateConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateLinkServiceConnectionStateActionsRequireConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateLinkServiceConnectionStateStatusConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ProvisioningStateConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReadOnlyEndpointFailoverPolicyConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReadScaleCapability.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReadWriteEndpointFailoverPolicyConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReplicaTypeConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReplicationStateConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SampleNameConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServerKeyTypeConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServerPublicNetworkAccessConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServiceObjectiveNameConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/StorageAccountTypeConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/StorageKeyTypeConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncAgentStateConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncConflictResolutionPolicyConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncDirectionConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncGroupLogTypeConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncGroupStateConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncMemberDbTypeConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncMemberStateConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/TransparentDataEncryptionActivityStatusConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/UnitDefinitionTypeConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/UnitTypeConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/UnlinkParameters.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/VirtualNetworkRuleStateConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/VulnerabilityAssessmentScanStateConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/VulnerabilityAssessmentScanTriggerTypeConverter.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/WorkloadClassifier.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/WorkloadGroup.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/WorkloadClassifiersOperations.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/WorkloadClassifiersOperationsExtensions.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/WorkloadGroupsOperations.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/WorkloadGroupsOperationsExtensions.cs diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/BackupShortTermRetentionPoliciesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/BackupShortTermRetentionPoliciesOperations.cs index e8c45d68f435..b4519b7cbb98 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/BackupShortTermRetentionPoliciesOperations.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/BackupShortTermRetentionPoliciesOperations.cs @@ -103,7 +103,7 @@ internal BackupShortTermRetentionPoliciesOperations(SqlManagementClient client) throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } string policyName = "default"; - string apiVersion = "2020-02-02-preview"; + string apiVersion = "2017-10-01-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -367,7 +367,7 @@ internal BackupShortTermRetentionPoliciesOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2020-02-02-preview"; + string apiVersion = "2017-10-01-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -579,7 +579,7 @@ internal BackupShortTermRetentionPoliciesOperations(SqlManagementClient client) throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } string policyName = "default"; - string apiVersion = "2020-02-02-preview"; + string apiVersion = "2017-10-01-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -800,7 +800,7 @@ internal BackupShortTermRetentionPoliciesOperations(SqlManagementClient client) throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } string policyName = "default"; - string apiVersion = "2020-02-02-preview"; + string apiVersion = "2017-10-01-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/CapabilitiesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/CapabilitiesOperations.cs index 12c1138eaeb8..9613b5960ba5 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/CapabilitiesOperations.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/CapabilitiesOperations.cs @@ -59,8 +59,7 @@ internal CapabilitiesOperations(SqlManagementClient client) /// /// If specified, restricts the response to only include the selected item. /// Possible values include: 'supportedEditions', - /// 'supportedElasticPoolEditions', 'supportedManagedInstanceVersions', - /// 'supportedInstancePoolEditions', 'supportedManagedInstanceEditions' + /// 'supportedElasticPoolEditions', 'supportedManagedInstanceVersions' /// /// /// Headers that will be added to request. @@ -83,7 +82,7 @@ internal CapabilitiesOperations(SqlManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> ListByLocationWithHttpMessagesAsync(string locationName, CapabilityGroup? include = default(CapabilityGroup?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> ListByLocationWithHttpMessagesAsync(string locationName, string include = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (locationName == null) { @@ -93,7 +92,7 @@ internal CapabilitiesOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2018-06-01-preview"; + string apiVersion = "2017-10-01-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -115,7 +114,7 @@ internal CapabilitiesOperations(SqlManagementClient client) List _queryParameters = new List(); if (include != null) { - _queryParameters.Add(string.Format("include={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(include, Client.SerializationSettings).Trim('"')))); + _queryParameters.Add(string.Format("include={0}", System.Uri.EscapeDataString(include))); } if (apiVersion != null) { diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/CapabilitiesOperationsExtensions.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/CapabilitiesOperationsExtensions.cs index 70b9d5389404..f3aa65d865c3 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/CapabilitiesOperationsExtensions.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/CapabilitiesOperationsExtensions.cs @@ -33,10 +33,9 @@ public static partial class CapabilitiesOperationsExtensions /// /// If specified, restricts the response to only include the selected item. /// Possible values include: 'supportedEditions', - /// 'supportedElasticPoolEditions', 'supportedManagedInstanceVersions', - /// 'supportedInstancePoolEditions', 'supportedManagedInstanceEditions' + /// 'supportedElasticPoolEditions', 'supportedManagedInstanceVersions' /// - public static LocationCapabilities ListByLocation(this ICapabilitiesOperations operations, string locationName, CapabilityGroup? include = default(CapabilityGroup?)) + public static LocationCapabilities ListByLocation(this ICapabilitiesOperations operations, string locationName, string include = default(string)) { return operations.ListByLocationAsync(locationName, include).GetAwaiter().GetResult(); } @@ -53,13 +52,12 @@ public static partial class CapabilitiesOperationsExtensions /// /// If specified, restricts the response to only include the selected item. /// Possible values include: 'supportedEditions', - /// 'supportedElasticPoolEditions', 'supportedManagedInstanceVersions', - /// 'supportedInstancePoolEditions', 'supportedManagedInstanceEditions' + /// 'supportedElasticPoolEditions', 'supportedManagedInstanceVersions' /// /// /// The cancellation token. /// - public static async Task ListByLocationAsync(this ICapabilitiesOperations operations, string locationName, CapabilityGroup? include = default(CapabilityGroup?), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task ListByLocationAsync(this ICapabilitiesOperations operations, string locationName, string include = default(string), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByLocationWithHttpMessagesAsync(locationName, include, null, cancellationToken).ConfigureAwait(false)) { diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/DatabasesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/DatabasesOperations.cs index fb3b1d920ebd..eb242f117df0 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/DatabasesOperations.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/DatabasesOperations.cs @@ -50,6 +50,91 @@ internal DatabasesOperations(SqlManagementClient client) /// public SqlManagementClient Client { get; private set; } + /// + /// Imports a bacpac into a new database. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The required parameters for importing a Bacpac into a database. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> ImportWithHttpMessagesAsync(string resourceGroupName, string serverName, ImportRequest parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginImportWithHttpMessagesAsync(resourceGroupName, serverName, parameters, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Creates an import operation that imports a bacpac into an existing + /// database. The existing database must be empty. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database to import into + /// + /// + /// The required parameters for importing a Bacpac into a database. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> CreateImportOperationWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, ImportExtensionRequest parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send Request + AzureOperationResponse _response = await BeginCreateImportOperationWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, parameters, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Exports a database to a bacpac. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database to be exported. + /// + /// + /// The required parameters for exporting a database. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> ExportWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, ExportRequest parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginExportWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, parameters, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + /// /// Returns database metrics. /// @@ -515,7 +600,7 @@ internal DatabasesOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01-preview"; + string apiVersion = "2017-10-01-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -717,7 +802,7 @@ internal DatabasesOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01-preview"; + string apiVersion = "2017-10-01-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1005,7 +1090,7 @@ internal DatabasesOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01-preview"; + string apiVersion = "2017-10-01-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1295,7 +1380,7 @@ internal DatabasesOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01-preview"; + string apiVersion = "2017-10-01-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1437,7 +1522,37 @@ internal DatabasesOperations(SqlManagementClient client) } /// - /// Gets a list of inaccessible databases in a logical server + /// Failovers a database. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database to failover. + /// + /// + /// The type of replica to be failed over. Possible values include: 'Primary', + /// 'ReadableSecondary' + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task FailoverWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string replicaType = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginFailoverWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, replicaType, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Imports a bacpac into a new database. /// /// /// The name of the resource group that contains the resource. You can obtain @@ -1446,6 +1561,9 @@ internal DatabasesOperations(SqlManagementClient client) /// /// The name of the server. /// + /// + /// The required parameters for importing a Bacpac into a database. + /// /// /// Headers that will be added to request. /// @@ -1467,8 +1585,12 @@ internal DatabasesOperations(SqlManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListInaccessibleByServerWithHttpMessagesAsync(string resourceGroupName, string serverName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> BeginImportWithHttpMessagesAsync(string resourceGroupName, string serverName, ImportRequest parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } if (resourceGroupName == null) { throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); @@ -1477,11 +1599,15 @@ internal DatabasesOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "serverName"); } - if (Client.SubscriptionId == null) + if (parameters == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); + } + if (parameters != null) + { + parameters.Validate(); } - string apiVersion = "2019-06-01-preview"; + string apiVersion = "2014-04-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1489,18 +1615,19 @@ internal DatabasesOperations(SqlManagementClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("apiVersion", apiVersion); tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("serverName", serverName); - tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("parameters", parameters); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListInaccessibleByServer", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "BeginImport", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/inaccessibleDatabases").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/import").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); - _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); List _queryParameters = new List(); if (apiVersion != null) { @@ -1513,7 +1640,7 @@ internal DatabasesOperations(SqlManagementClient client) // Create HTTP transport objects var _httpRequest = new HttpRequestMessage(); HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.Method = new HttpMethod("POST"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) @@ -1544,6 +1671,12 @@ internal DatabasesOperations(SqlManagementClient client) // Serialize Request string _requestContent = null; + if(parameters != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } // Set Credentials if (Client.Credentials != null) { @@ -1564,7 +1697,7 @@ internal DatabasesOperations(SqlManagementClient client) HttpStatusCode _statusCode = _httpResponse.StatusCode; cancellationToken.ThrowIfCancellationRequested(); string _responseContent = null; - if ((int)_statusCode != 200) + if ((int)_statusCode != 200 && (int)_statusCode != 202) { var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try @@ -1599,7 +1732,7 @@ internal DatabasesOperations(SqlManagementClient client) throw ex; } // Create Result - var _result = new AzureOperationResponse>(); + var _result = new AzureOperationResponse(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) @@ -1612,7 +1745,7 @@ internal DatabasesOperations(SqlManagementClient client) _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); } catch (JsonException ex) { @@ -1632,37 +1765,8 @@ internal DatabasesOperations(SqlManagementClient client) } /// - /// Failovers a database. - /// - /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. - /// - /// - /// The name of the server. - /// - /// - /// The name of the database to failover. - /// - /// - /// The type of replica to be failed over. Possible values include: 'Primary', - /// 'ReadableSecondary' - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - public async Task FailoverWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, ReplicaType? replicaType = default(ReplicaType?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Send request - AzureOperationResponse _response = await BeginFailoverWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, replicaType, customHeaders, cancellationToken).ConfigureAwait(false); - return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); - } - - /// - /// Exports a database. + /// Creates an import operation that imports a bacpac into an existing + /// database. The existing database must be empty. /// /// /// The name of the resource group that contains the resource. You can obtain @@ -1672,39 +1776,10 @@ internal DatabasesOperations(SqlManagementClient client) /// The name of the server. /// /// - /// The name of the database. - /// - /// - /// The database export request parameters. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - public async Task> ExportWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, ExportDatabaseDefinition parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Send request - AzureOperationResponse _response = await BeginExportWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, parameters, customHeaders, cancellationToken).ConfigureAwait(false); - return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); - } - - /// - /// Creates a new database or updates an existing database. - /// - /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. - /// - /// - /// The name of the server. - /// - /// - /// The name of the database. + /// The name of the database to import into /// /// - /// The requested database resource state. + /// The required parameters for importing a Bacpac into a database. /// /// /// Headers that will be added to request. @@ -1727,8 +1802,12 @@ internal DatabasesOperations(SqlManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, Database parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> BeginCreateImportOperationWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, ImportExtensionRequest parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } if (resourceGroupName == null) { throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); @@ -1749,11 +1828,8 @@ internal DatabasesOperations(SqlManagementClient client) { parameters.Validate(); } - if (Client.SubscriptionId == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); - } - string apiVersion = "2019-06-01-preview"; + string apiVersion = "2014-04-01"; + string extensionName = "import"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1761,21 +1837,23 @@ internal DatabasesOperations(SqlManagementClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("apiVersion", apiVersion); tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("serverName", serverName); tracingParameters.Add("databaseName", databaseName); + tracingParameters.Add("extensionName", extensionName); tracingParameters.Add("parameters", parameters); - tracingParameters.Add("apiVersion", apiVersion); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "BeginCreateOrUpdate", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "BeginCreateImportOperation", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/extensions/{extensionName}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); _url = _url.Replace("{databaseName}", System.Uri.EscapeDataString(databaseName)); - _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{extensionName}", System.Uri.EscapeDataString(extensionName)); List _queryParameters = new List(); if (apiVersion != null) { @@ -1845,7 +1923,7 @@ internal DatabasesOperations(SqlManagementClient client) HttpStatusCode _statusCode = _httpResponse.StatusCode; cancellationToken.ThrowIfCancellationRequested(); string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) + if ((int)_statusCode != 201 && (int)_statusCode != 202) { var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try @@ -1880,7 +1958,7 @@ internal DatabasesOperations(SqlManagementClient client) throw ex; } // Create Result - var _result = new AzureOperationResponse(); + var _result = new AzureOperationResponse(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) @@ -1888,30 +1966,12 @@ internal DatabasesOperations(SqlManagementClient client) _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); } // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - // Deserialize Response if ((int)_statusCode == 201) { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); } catch (JsonException ex) { @@ -1931,7 +1991,7 @@ internal DatabasesOperations(SqlManagementClient client) } /// - /// Deletes the database. + /// Exports a database to a bacpac. /// /// /// The name of the resource group that contains the resource. You can obtain @@ -1941,7 +2001,10 @@ internal DatabasesOperations(SqlManagementClient client) /// The name of the server. /// /// - /// The name of the database. + /// The name of the database to be exported. + /// + /// + /// The required parameters for exporting a database. /// /// /// Headers that will be added to request. @@ -1952,6 +2015,9 @@ internal DatabasesOperations(SqlManagementClient client) /// /// Thrown when the operation returned an invalid status code /// + /// + /// Thrown when unable to deserialize the response + /// /// /// Thrown when a required parameter is null /// @@ -1961,8 +2027,12 @@ internal DatabasesOperations(SqlManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> BeginExportWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, ExportRequest parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } if (resourceGroupName == null) { throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); @@ -1975,11 +2045,15 @@ internal DatabasesOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "databaseName"); } - if (Client.SubscriptionId == null) + if (parameters == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); + } + if (parameters != null) + { + parameters.Validate(); } - string apiVersion = "2019-06-01-preview"; + string apiVersion = "2014-04-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1987,20 +2061,21 @@ internal DatabasesOperations(SqlManagementClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("apiVersion", apiVersion); tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("serverName", serverName); tracingParameters.Add("databaseName", databaseName); - tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("parameters", parameters); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "BeginDelete", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "BeginExport", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/export").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); _url = _url.Replace("{databaseName}", System.Uri.EscapeDataString(databaseName)); - _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); List _queryParameters = new List(); if (apiVersion != null) { @@ -2013,7 +2088,7 @@ internal DatabasesOperations(SqlManagementClient client) // Create HTTP transport objects var _httpRequest = new HttpRequestMessage(); HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); + _httpRequest.Method = new HttpMethod("POST"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) @@ -2044,6 +2119,12 @@ internal DatabasesOperations(SqlManagementClient client) // Serialize Request string _requestContent = null; + if(parameters != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } // Set Credentials if (Client.Credentials != null) { @@ -2064,7 +2145,7 @@ internal DatabasesOperations(SqlManagementClient client) HttpStatusCode _statusCode = _httpResponse.StatusCode; cancellationToken.ThrowIfCancellationRequested(); string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 202 && (int)_statusCode != 204) + if ((int)_statusCode != 200 && (int)_statusCode != 202) { var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try @@ -2099,13 +2180,31 @@ internal DatabasesOperations(SqlManagementClient client) throw ex; } // Create Result - var _result = new AzureOperationResponse(); + var _result = new AzureOperationResponse(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) { _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } if (_shouldTrace) { ServiceClientTracing.Exit(_invocationId, _result); @@ -2114,7 +2213,7 @@ internal DatabasesOperations(SqlManagementClient client) } /// - /// Updates an existing database. + /// Creates a new database or updates an existing database. /// /// /// The name of the resource group that contains the resource. You can obtain @@ -2150,7 +2249,7 @@ internal DatabasesOperations(SqlManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, DatabaseUpdate parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, Database parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (resourceGroupName == null) { @@ -2168,11 +2267,15 @@ internal DatabasesOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); } + if (parameters != null) + { + parameters.Validate(); + } if (Client.SubscriptionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01-preview"; + string apiVersion = "2017-10-01-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2186,7 +2289,7 @@ internal DatabasesOperations(SqlManagementClient client) tracingParameters.Add("parameters", parameters); tracingParameters.Add("apiVersion", apiVersion); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "BeginUpdate", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "BeginCreateOrUpdate", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; @@ -2207,7 +2310,7 @@ internal DatabasesOperations(SqlManagementClient client) // Create HTTP transport objects var _httpRequest = new HttpRequestMessage(); HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PATCH"); + _httpRequest.Method = new HttpMethod("PUT"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) @@ -2264,7 +2367,7 @@ internal DatabasesOperations(SqlManagementClient client) HttpStatusCode _statusCode = _httpResponse.StatusCode; cancellationToken.ThrowIfCancellationRequested(); string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 202) + if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) { var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try @@ -2324,6 +2427,24 @@ internal DatabasesOperations(SqlManagementClient client) throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); } } + // Deserialize Response + if ((int)_statusCode == 201) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } if (_shouldTrace) { ServiceClientTracing.Exit(_invocationId, _result); @@ -2332,7 +2453,7 @@ internal DatabasesOperations(SqlManagementClient client) } /// - /// Pauses a database. + /// Deletes the database. /// /// /// The name of the resource group that contains the resource. You can obtain @@ -2342,7 +2463,7 @@ internal DatabasesOperations(SqlManagementClient client) /// The name of the server. /// /// - /// The name of the database to be paused. + /// The name of the database. /// /// /// Headers that will be added to request. @@ -2353,9 +2474,6 @@ internal DatabasesOperations(SqlManagementClient client) /// /// Thrown when the operation returned an invalid status code /// - /// - /// Thrown when unable to deserialize the response - /// /// /// Thrown when a required parameter is null /// @@ -2365,7 +2483,7 @@ internal DatabasesOperations(SqlManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> BeginPauseWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (resourceGroupName == null) { @@ -2383,7 +2501,7 @@ internal DatabasesOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01-preview"; + string apiVersion = "2017-10-01-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2396,11 +2514,11 @@ internal DatabasesOperations(SqlManagementClient client) tracingParameters.Add("databaseName", databaseName); tracingParameters.Add("apiVersion", apiVersion); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "BeginPause", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "BeginDelete", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/pause").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}").ToString(); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); _url = _url.Replace("{databaseName}", System.Uri.EscapeDataString(databaseName)); @@ -2417,7 +2535,7 @@ internal DatabasesOperations(SqlManagementClient client) // Create HTTP transport objects var _httpRequest = new HttpRequestMessage(); HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.Method = new HttpMethod("DELETE"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) @@ -2468,7 +2586,7 @@ internal DatabasesOperations(SqlManagementClient client) HttpStatusCode _statusCode = _httpResponse.StatusCode; cancellationToken.ThrowIfCancellationRequested(); string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 202) + if ((int)_statusCode != 200 && (int)_statusCode != 202 && (int)_statusCode != 204) { var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try @@ -2503,31 +2621,13 @@ internal DatabasesOperations(SqlManagementClient client) throw ex; } // Create Result - var _result = new AzureOperationResponse(); + var _result = new AzureOperationResponse(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) { _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); } - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } if (_shouldTrace) { ServiceClientTracing.Exit(_invocationId, _result); @@ -2536,7 +2636,7 @@ internal DatabasesOperations(SqlManagementClient client) } /// - /// Resumes a database. + /// Updates an existing database. /// /// /// The name of the resource group that contains the resource. You can obtain @@ -2546,7 +2646,10 @@ internal DatabasesOperations(SqlManagementClient client) /// The name of the server. /// /// - /// The name of the database to be resumed. + /// The name of the database. + /// + /// + /// The requested database resource state. /// /// /// Headers that will be added to request. @@ -2569,7 +2672,7 @@ internal DatabasesOperations(SqlManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> BeginResumeWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, DatabaseUpdate parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (resourceGroupName == null) { @@ -2583,11 +2686,15 @@ internal DatabasesOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "databaseName"); } + if (parameters == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); + } if (Client.SubscriptionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01-preview"; + string apiVersion = "2017-10-01-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2598,13 +2705,14 @@ internal DatabasesOperations(SqlManagementClient client) tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("serverName", serverName); tracingParameters.Add("databaseName", databaseName); + tracingParameters.Add("parameters", parameters); tracingParameters.Add("apiVersion", apiVersion); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "BeginResume", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "BeginUpdate", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/resume").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}").ToString(); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); _url = _url.Replace("{databaseName}", System.Uri.EscapeDataString(databaseName)); @@ -2621,7 +2729,7 @@ internal DatabasesOperations(SqlManagementClient client) // Create HTTP transport objects var _httpRequest = new HttpRequestMessage(); HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.Method = new HttpMethod("PATCH"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) @@ -2652,6 +2760,12 @@ internal DatabasesOperations(SqlManagementClient client) // Serialize Request string _requestContent = null; + if(parameters != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } // Set Credentials if (Client.Credentials != null) { @@ -2740,7 +2854,7 @@ internal DatabasesOperations(SqlManagementClient client) } /// - /// Upgrades a data warehouse. + /// Pauses a database. /// /// /// The name of the resource group that contains the resource. You can obtain @@ -2750,7 +2864,7 @@ internal DatabasesOperations(SqlManagementClient client) /// The name of the server. /// /// - /// The name of the database to be upgraded. + /// The name of the database to be paused. /// /// /// Headers that will be added to request. @@ -2761,6 +2875,9 @@ internal DatabasesOperations(SqlManagementClient client) /// /// Thrown when the operation returned an invalid status code /// + /// + /// Thrown when unable to deserialize the response + /// /// /// Thrown when a required parameter is null /// @@ -2770,7 +2887,7 @@ internal DatabasesOperations(SqlManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task BeginUpgradeDataWarehouseWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> BeginPauseWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (resourceGroupName == null) { @@ -2788,7 +2905,7 @@ internal DatabasesOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01-preview"; + string apiVersion = "2017-10-01-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2801,11 +2918,11 @@ internal DatabasesOperations(SqlManagementClient client) tracingParameters.Add("databaseName", databaseName); tracingParameters.Add("apiVersion", apiVersion); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "BeginUpgradeDataWarehouse", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "BeginPause", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/upgradeDataWarehouse").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/pause").ToString(); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); _url = _url.Replace("{databaseName}", System.Uri.EscapeDataString(databaseName)); @@ -2908,13 +3025,31 @@ internal DatabasesOperations(SqlManagementClient client) throw ex; } // Create Result - var _result = new AzureOperationResponse(); + var _result = new AzureOperationResponse(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) { _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } if (_shouldTrace) { ServiceClientTracing.Exit(_invocationId, _result); @@ -2923,7 +3058,7 @@ internal DatabasesOperations(SqlManagementClient client) } /// - /// Failovers a database. + /// Resumes a database. /// /// /// The name of the resource group that contains the resource. You can obtain @@ -2933,11 +3068,7 @@ internal DatabasesOperations(SqlManagementClient client) /// The name of the server. /// /// - /// The name of the database to failover. - /// - /// - /// The type of replica to be failed over. Possible values include: 'Primary', - /// 'ReadableSecondary' + /// The name of the database to be resumed. /// /// /// Headers that will be added to request. @@ -2948,6 +3079,9 @@ internal DatabasesOperations(SqlManagementClient client) /// /// Thrown when the operation returned an invalid status code /// + /// + /// Thrown when unable to deserialize the response + /// /// /// Thrown when a required parameter is null /// @@ -2957,7 +3091,7 @@ internal DatabasesOperations(SqlManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task BeginFailoverWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, ReplicaType? replicaType = default(ReplicaType?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> BeginResumeWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (resourceGroupName == null) { @@ -2975,7 +3109,7 @@ internal DatabasesOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01-preview"; + string apiVersion = "2017-10-01-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2986,23 +3120,18 @@ internal DatabasesOperations(SqlManagementClient client) tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("serverName", serverName); tracingParameters.Add("databaseName", databaseName); - tracingParameters.Add("replicaType", replicaType); tracingParameters.Add("apiVersion", apiVersion); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "BeginFailover", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "BeginResume", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/failover").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/resume").ToString(); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); _url = _url.Replace("{databaseName}", System.Uri.EscapeDataString(databaseName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); List _queryParameters = new List(); - if (replicaType != null) - { - _queryParameters.Add(string.Format("replicaType={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(replicaType, Client.SerializationSettings).Trim('"')))); - } if (apiVersion != null) { _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); @@ -3100,13 +3229,31 @@ internal DatabasesOperations(SqlManagementClient client) throw ex; } // Create Result - var _result = new AzureOperationResponse(); + var _result = new AzureOperationResponse(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) { _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } if (_shouldTrace) { ServiceClientTracing.Exit(_invocationId, _result); @@ -3115,7 +3262,7 @@ internal DatabasesOperations(SqlManagementClient client) } /// - /// Exports a database. + /// Upgrades a data warehouse. /// /// /// The name of the resource group that contains the resource. You can obtain @@ -3125,10 +3272,7 @@ internal DatabasesOperations(SqlManagementClient client) /// The name of the server. /// /// - /// The name of the database. - /// - /// - /// The database export request parameters. + /// The name of the database to be upgraded. /// /// /// Headers that will be added to request. @@ -3139,9 +3283,6 @@ internal DatabasesOperations(SqlManagementClient client) /// /// Thrown when the operation returned an invalid status code /// - /// - /// Thrown when unable to deserialize the response - /// /// /// Thrown when a required parameter is null /// @@ -3151,7 +3292,7 @@ internal DatabasesOperations(SqlManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> BeginExportWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, ExportDatabaseDefinition parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task BeginUpgradeDataWarehouseWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (resourceGroupName == null) { @@ -3165,19 +3306,11 @@ internal DatabasesOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "databaseName"); } - if (parameters == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); - } - if (parameters != null) - { - parameters.Validate(); - } if (Client.SubscriptionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2020-02-02-preview"; + string apiVersion = "2017-10-01-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -3188,14 +3321,13 @@ internal DatabasesOperations(SqlManagementClient client) tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("serverName", serverName); tracingParameters.Add("databaseName", databaseName); - tracingParameters.Add("parameters", parameters); tracingParameters.Add("apiVersion", apiVersion); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "BeginExport", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "BeginUpgradeDataWarehouse", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/export").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/upgradeDataWarehouse").ToString(); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); _url = _url.Replace("{databaseName}", System.Uri.EscapeDataString(databaseName)); @@ -3243,12 +3375,6 @@ internal DatabasesOperations(SqlManagementClient client) // Serialize Request string _requestContent = null; - if(parameters != null) - { - _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, Client.SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } // Set Credentials if (Client.Credentials != null) { @@ -3304,31 +3430,13 @@ internal DatabasesOperations(SqlManagementClient client) throw ex; } // Create Result - var _result = new AzureOperationResponse(); + var _result = new AzureOperationResponse(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) { _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); } - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } if (_shouldTrace) { ServiceClientTracing.Exit(_invocationId, _result); @@ -3337,10 +3445,21 @@ internal DatabasesOperations(SqlManagementClient client) } /// - /// Gets a list of databases. + /// Failovers a database. /// - /// - /// The NextLink from the previous successful call to List operation. + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database to failover. + /// + /// + /// The type of replica to be failed over. Possible values include: 'Primary', + /// 'ReadableSecondary' /// /// /// Headers that will be added to request. @@ -3351,9 +3470,6 @@ internal DatabasesOperations(SqlManagementClient client) /// /// Thrown when the operation returned an invalid status code /// - /// - /// Thrown when unable to deserialize the response - /// /// /// Thrown when a required parameter is null /// @@ -3363,12 +3479,25 @@ internal DatabasesOperations(SqlManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListByServerNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task BeginFailoverWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string replicaType = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (nextPageLink == null) + if (resourceGroupName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink"); + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (serverName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "serverName"); + } + if (databaseName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "databaseName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } + string apiVersion = "2018-06-01-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -3376,14 +3505,30 @@ internal DatabasesOperations(SqlManagementClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("nextPageLink", nextPageLink); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("serverName", serverName); + tracingParameters.Add("databaseName", databaseName); + tracingParameters.Add("replicaType", replicaType); + tracingParameters.Add("apiVersion", apiVersion); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListByServerNext", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "BeginFailover", tracingParameters); } // Construct URL - string _url = "{nextLink}"; - _url = _url.Replace("{nextLink}", nextPageLink); + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/failover").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); + _url = _url.Replace("{databaseName}", System.Uri.EscapeDataString(databaseName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); List _queryParameters = new List(); + if (replicaType != null) + { + _queryParameters.Add(string.Format("replicaType={0}", System.Uri.EscapeDataString(replicaType))); + } + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } if (_queryParameters.Count > 0) { _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); @@ -3391,7 +3536,7 @@ internal DatabasesOperations(SqlManagementClient client) // Create HTTP transport objects var _httpRequest = new HttpRequestMessage(); HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.Method = new HttpMethod("POST"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) @@ -3442,7 +3587,7 @@ internal DatabasesOperations(SqlManagementClient client) HttpStatusCode _statusCode = _httpResponse.StatusCode; cancellationToken.ThrowIfCancellationRequested(); string _responseContent = null; - if ((int)_statusCode != 200) + if ((int)_statusCode != 200 && (int)_statusCode != 202) { var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try @@ -3477,31 +3622,13 @@ internal DatabasesOperations(SqlManagementClient client) throw ex; } // Create Result - var _result = new AzureOperationResponse>(); + var _result = new AzureOperationResponse(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) { _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); } - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } if (_shouldTrace) { ServiceClientTracing.Exit(_invocationId, _result); @@ -3510,7 +3637,7 @@ internal DatabasesOperations(SqlManagementClient client) } /// - /// Gets a list of databases in an elastic pool. + /// Gets a list of databases. /// /// /// The NextLink from the previous successful call to List operation. @@ -3536,7 +3663,7 @@ internal DatabasesOperations(SqlManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListByElasticPoolNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByServerNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (nextPageLink == null) { @@ -3551,7 +3678,7 @@ internal DatabasesOperations(SqlManagementClient client) Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("nextPageLink", nextPageLink); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListByElasticPoolNext", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "ListByServerNext", tracingParameters); } // Construct URL string _url = "{nextLink}"; @@ -3683,7 +3810,7 @@ internal DatabasesOperations(SqlManagementClient client) } /// - /// Gets a list of inaccessible databases in a logical server + /// Gets a list of databases in an elastic pool. /// /// /// The NextLink from the previous successful call to List operation. @@ -3709,7 +3836,7 @@ internal DatabasesOperations(SqlManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListInaccessibleByServerNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByElasticPoolNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (nextPageLink == null) { @@ -3724,7 +3851,7 @@ internal DatabasesOperations(SqlManagementClient client) Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("nextPageLink", nextPageLink); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListInaccessibleByServerNext", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "ListByElasticPoolNext", tracingParameters); } // Construct URL string _url = "{nextLink}"; diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/DatabasesOperationsExtensions.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/DatabasesOperationsExtensions.cs index 902c1d5692e7..b4ff8dbd583f 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/DatabasesOperationsExtensions.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/DatabasesOperationsExtensions.cs @@ -23,6 +23,164 @@ namespace Microsoft.Azure.Management.Sql /// public static partial class DatabasesOperationsExtensions { + /// + /// Imports a bacpac into a new database. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The required parameters for importing a Bacpac into a database. + /// + public static ImportExportResponse Import(this IDatabasesOperations operations, string resourceGroupName, string serverName, ImportRequest parameters) + { + return operations.ImportAsync(resourceGroupName, serverName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Imports a bacpac into a new database. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The required parameters for importing a Bacpac into a database. + /// + /// + /// The cancellation token. + /// + public static async Task ImportAsync(this IDatabasesOperations operations, string resourceGroupName, string serverName, ImportRequest parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ImportWithHttpMessagesAsync(resourceGroupName, serverName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Creates an import operation that imports a bacpac into an existing + /// database. The existing database must be empty. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database to import into + /// + /// + /// The required parameters for importing a Bacpac into a database. + /// + public static ImportExportResponse CreateImportOperation(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName, ImportExtensionRequest parameters) + { + return operations.CreateImportOperationAsync(resourceGroupName, serverName, databaseName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Creates an import operation that imports a bacpac into an existing + /// database. The existing database must be empty. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database to import into + /// + /// + /// The required parameters for importing a Bacpac into a database. + /// + /// + /// The cancellation token. + /// + public static async Task CreateImportOperationAsync(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName, ImportExtensionRequest parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CreateImportOperationWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Exports a database to a bacpac. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database to be exported. + /// + /// + /// The required parameters for exporting a database. + /// + public static ImportExportResponse Export(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName, ExportRequest parameters) + { + return operations.ExportAsync(resourceGroupName, serverName, databaseName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Exports a database to a bacpac. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database to be exported. + /// + /// + /// The required parameters for exporting a database. + /// + /// + /// The cancellation token. + /// + public static async Task ExportAsync(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName, ExportRequest parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ExportWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + /// /// Returns database metrics. /// @@ -609,7 +767,32 @@ public static void Rename(this IDatabasesOperations operations, string resourceG } /// - /// Gets a list of inaccessible databases in a logical server + /// Failovers a database. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database to failover. + /// + /// + /// The type of replica to be failed over. Possible values include: 'Primary', + /// 'ReadableSecondary' + /// + public static void Failover(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName, string replicaType = default(string)) + { + operations.FailoverAsync(resourceGroupName, serverName, databaseName, replicaType).GetAwaiter().GetResult(); + } + + /// + /// Failovers a database. /// /// /// The operations group for this extension method. @@ -621,13 +804,23 @@ public static void Rename(this IDatabasesOperations operations, string resourceG /// /// The name of the server. /// - public static IPage ListInaccessibleByServer(this IDatabasesOperations operations, string resourceGroupName, string serverName) + /// + /// The name of the database to failover. + /// + /// + /// The type of replica to be failed over. Possible values include: 'Primary', + /// 'ReadableSecondary' + /// + /// + /// The cancellation token. + /// + public static async Task FailoverAsync(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName, string replicaType = default(string), CancellationToken cancellationToken = default(CancellationToken)) { - return operations.ListInaccessibleByServerAsync(resourceGroupName, serverName).GetAwaiter().GetResult(); + (await operations.FailoverWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, replicaType, null, cancellationToken).ConfigureAwait(false)).Dispose(); } /// - /// Gets a list of inaccessible databases in a logical server + /// Imports a bacpac into a new database. /// /// /// The operations group for this extension method. @@ -639,19 +832,44 @@ public static IPage ListInaccessibleByServer(this IDatabasesOperations /// /// The name of the server. /// + /// + /// The required parameters for importing a Bacpac into a database. + /// + public static ImportExportResponse BeginImport(this IDatabasesOperations operations, string resourceGroupName, string serverName, ImportRequest parameters) + { + return operations.BeginImportAsync(resourceGroupName, serverName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Imports a bacpac into a new database. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The required parameters for importing a Bacpac into a database. + /// /// /// The cancellation token. /// - public static async Task> ListInaccessibleByServerAsync(this IDatabasesOperations operations, string resourceGroupName, string serverName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task BeginImportAsync(this IDatabasesOperations operations, string resourceGroupName, string serverName, ImportRequest parameters, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListInaccessibleByServerWithHttpMessagesAsync(resourceGroupName, serverName, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.BeginImportWithHttpMessagesAsync(resourceGroupName, serverName, parameters, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Failovers a database. + /// Creates an import operation that imports a bacpac into an existing + /// database. The existing database must be empty. /// /// /// The operations group for this extension method. @@ -664,19 +882,19 @@ public static IPage ListInaccessibleByServer(this IDatabasesOperations /// The name of the server. /// /// - /// The name of the database to failover. + /// The name of the database to import into /// - /// - /// The type of replica to be failed over. Possible values include: 'Primary', - /// 'ReadableSecondary' + /// + /// The required parameters for importing a Bacpac into a database. /// - public static void Failover(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName, ReplicaType? replicaType = default(ReplicaType?)) + public static ImportExportResponse BeginCreateImportOperation(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName, ImportExtensionRequest parameters) { - operations.FailoverAsync(resourceGroupName, serverName, databaseName, replicaType).GetAwaiter().GetResult(); + return operations.BeginCreateImportOperationAsync(resourceGroupName, serverName, databaseName, parameters).GetAwaiter().GetResult(); } /// - /// Failovers a database. + /// Creates an import operation that imports a bacpac into an existing + /// database. The existing database must be empty. /// /// /// The operations group for this extension method. @@ -689,22 +907,24 @@ public static IPage ListInaccessibleByServer(this IDatabasesOperations /// The name of the server. /// /// - /// The name of the database to failover. + /// The name of the database to import into /// - /// - /// The type of replica to be failed over. Possible values include: 'Primary', - /// 'ReadableSecondary' + /// + /// The required parameters for importing a Bacpac into a database. /// /// /// The cancellation token. /// - public static async Task FailoverAsync(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName, ReplicaType? replicaType = default(ReplicaType?), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task BeginCreateImportOperationAsync(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName, ImportExtensionRequest parameters, CancellationToken cancellationToken = default(CancellationToken)) { - (await operations.FailoverWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, replicaType, null, cancellationToken).ConfigureAwait(false)).Dispose(); + using (var _result = await operations.BeginCreateImportOperationWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } } /// - /// Exports a database. + /// Exports a database to a bacpac. /// /// /// The operations group for this extension method. @@ -717,18 +937,18 @@ public static IPage ListInaccessibleByServer(this IDatabasesOperations /// The name of the server. /// /// - /// The name of the database. + /// The name of the database to be exported. /// /// - /// The database export request parameters. + /// The required parameters for exporting a database. /// - public static ImportExportOperationResult Export(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName, ExportDatabaseDefinition parameters) + public static ImportExportResponse BeginExport(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName, ExportRequest parameters) { - return operations.ExportAsync(resourceGroupName, serverName, databaseName, parameters).GetAwaiter().GetResult(); + return operations.BeginExportAsync(resourceGroupName, serverName, databaseName, parameters).GetAwaiter().GetResult(); } /// - /// Exports a database. + /// Exports a database to a bacpac. /// /// /// The operations group for this extension method. @@ -741,17 +961,17 @@ public static ImportExportOperationResult Export(this IDatabasesOperations opera /// The name of the server. /// /// - /// The name of the database. + /// The name of the database to be exported. /// /// - /// The database export request parameters. + /// The required parameters for exporting a database. /// /// /// The cancellation token. /// - public static async Task ExportAsync(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName, ExportDatabaseDefinition parameters, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task BeginExportAsync(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName, ExportRequest parameters, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ExportWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, parameters, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.BeginExportWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, parameters, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -1071,7 +1291,7 @@ public static void BeginUpgradeDataWarehouse(this IDatabasesOperations operation /// The type of replica to be failed over. Possible values include: 'Primary', /// 'ReadableSecondary' /// - public static void BeginFailover(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName, ReplicaType? replicaType = default(ReplicaType?)) + public static void BeginFailover(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName, string replicaType = default(string)) { operations.BeginFailoverAsync(resourceGroupName, serverName, databaseName, replicaType).GetAwaiter().GetResult(); } @@ -1099,65 +1319,11 @@ public static void BeginUpgradeDataWarehouse(this IDatabasesOperations operation /// /// The cancellation token. /// - public static async Task BeginFailoverAsync(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName, ReplicaType? replicaType = default(ReplicaType?), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task BeginFailoverAsync(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName, string replicaType = default(string), CancellationToken cancellationToken = default(CancellationToken)) { (await operations.BeginFailoverWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, replicaType, null, cancellationToken).ConfigureAwait(false)).Dispose(); } - /// - /// Exports a database. - /// - /// - /// The operations group for this extension method. - /// - /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. - /// - /// - /// The name of the server. - /// - /// - /// The name of the database. - /// - /// - /// The database export request parameters. - /// - public static ImportExportOperationResult BeginExport(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName, ExportDatabaseDefinition parameters) - { - return operations.BeginExportAsync(resourceGroupName, serverName, databaseName, parameters).GetAwaiter().GetResult(); - } - - /// - /// Exports a database. - /// - /// - /// The operations group for this extension method. - /// - /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. - /// - /// - /// The name of the server. - /// - /// - /// The name of the database. - /// - /// - /// The database export request parameters. - /// - /// - /// The cancellation token. - /// - public static async Task BeginExportAsync(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName, ExportDatabaseDefinition parameters, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.BeginExportWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, parameters, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - /// /// Gets a list of databases. /// @@ -1226,39 +1392,5 @@ public static IPage ListByElasticPoolNext(this IDatabasesOperations op } } - /// - /// Gets a list of inaccessible databases in a logical server - /// - /// - /// The operations group for this extension method. - /// - /// - /// The NextLink from the previous successful call to List operation. - /// - public static IPage ListInaccessibleByServerNext(this IDatabasesOperations operations, string nextPageLink) - { - return operations.ListInaccessibleByServerNextAsync(nextPageLink).GetAwaiter().GetResult(); - } - - /// - /// Gets a list of inaccessible databases in a logical server - /// - /// - /// The operations group for this extension method. - /// - /// - /// The NextLink from the previous successful call to List operation. - /// - /// - /// The cancellation token. - /// - public static async Task> ListInaccessibleByServerNextAsync(this IDatabasesOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListInaccessibleByServerNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ExtendedDatabaseBlobAuditingPoliciesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ExtendedDatabaseBlobAuditingPoliciesOperations.cs index 31b9feff5f68..1c5ac942cb1f 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ExtendedDatabaseBlobAuditingPoliciesOperations.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ExtendedDatabaseBlobAuditingPoliciesOperations.cs @@ -500,382 +500,5 @@ internal ExtendedDatabaseBlobAuditingPoliciesOperations(SqlManagementClient clie return _result; } - /// - /// Lists extended auditing settings of a database. - /// - /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. - /// - /// - /// The name of the server. - /// - /// - /// The name of the database. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task>> ListByDatabaseWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (resourceGroupName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); - } - if (serverName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "serverName"); - } - if (databaseName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "databaseName"); - } - if (Client.SubscriptionId == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); - } - string apiVersion = "2017-03-01-preview"; - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); - tracingParameters.Add("serverName", serverName); - tracingParameters.Add("databaseName", databaseName); - tracingParameters.Add("apiVersion", apiVersion); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListByDatabase", tracingParameters); - } - // Construct URL - var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/extendedAuditingSettings").ToString(); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); - _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); - _url = _url.Replace("{databaseName}", System.Uri.EscapeDataString(databaseName)); - _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); - List _queryParameters = new List(); - if (apiVersion != null) - { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); - } - if (_queryParameters.Count > 0) - { - _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // Set Headers - if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) - { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); - } - if (Client.AcceptLanguage != null) - { - if (_httpRequest.Headers.Contains("accept-language")) - { - _httpRequest.Headers.Remove("accept-language"); - } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); - } - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - if (_httpRequest.Headers.Contains(_header.Key)) - { - _httpRequest.Headers.Remove(_header.Key); - } - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Client.Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200) - { - var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - try - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); - if (_errorBody != null) - { - ex = new CloudException(_errorBody.Message); - ex.Body = _errorBody; - } - } - catch (JsonException) - { - // Ignore the exception - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = new AzureOperationResponse>(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// Lists extended auditing settings of a database. - /// - /// - /// The NextLink from the previous successful call to List operation. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task>> ListByDatabaseNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (nextPageLink == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("nextPageLink", nextPageLink); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListByDatabaseNext", tracingParameters); - } - // Construct URL - string _url = "{nextLink}"; - _url = _url.Replace("{nextLink}", nextPageLink); - List _queryParameters = new List(); - if (_queryParameters.Count > 0) - { - _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // Set Headers - if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) - { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); - } - if (Client.AcceptLanguage != null) - { - if (_httpRequest.Headers.Contains("accept-language")) - { - _httpRequest.Headers.Remove("accept-language"); - } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); - } - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - if (_httpRequest.Headers.Contains(_header.Key)) - { - _httpRequest.Headers.Remove(_header.Key); - } - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Client.Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200) - { - var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - try - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); - if (_errorBody != null) - { - ex = new CloudException(_errorBody.Message); - ex.Body = _errorBody; - } - } - catch (JsonException) - { - // Ignore the exception - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = new AzureOperationResponse>(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ExtendedDatabaseBlobAuditingPoliciesOperationsExtensions.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ExtendedDatabaseBlobAuditingPoliciesOperationsExtensions.cs index 58645764ac82..f07be7a5cf22 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ExtendedDatabaseBlobAuditingPoliciesOperationsExtensions.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ExtendedDatabaseBlobAuditingPoliciesOperationsExtensions.cs @@ -123,87 +123,5 @@ public static ExtendedDatabaseBlobAuditingPolicy CreateOrUpdate(this IExtendedDa } } - /// - /// Lists extended auditing settings of a database. - /// - /// - /// The operations group for this extension method. - /// - /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. - /// - /// - /// The name of the server. - /// - /// - /// The name of the database. - /// - public static IPage ListByDatabase(this IExtendedDatabaseBlobAuditingPoliciesOperations operations, string resourceGroupName, string serverName, string databaseName) - { - return operations.ListByDatabaseAsync(resourceGroupName, serverName, databaseName).GetAwaiter().GetResult(); - } - - /// - /// Lists extended auditing settings of a database. - /// - /// - /// The operations group for this extension method. - /// - /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. - /// - /// - /// The name of the server. - /// - /// - /// The name of the database. - /// - /// - /// The cancellation token. - /// - public static async Task> ListByDatabaseAsync(this IExtendedDatabaseBlobAuditingPoliciesOperations operations, string resourceGroupName, string serverName, string databaseName, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListByDatabaseWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// Lists extended auditing settings of a database. - /// - /// - /// The operations group for this extension method. - /// - /// - /// The NextLink from the previous successful call to List operation. - /// - public static IPage ListByDatabaseNext(this IExtendedDatabaseBlobAuditingPoliciesOperations operations, string nextPageLink) - { - return operations.ListByDatabaseNextAsync(nextPageLink).GetAwaiter().GetResult(); - } - - /// - /// Lists extended auditing settings of a database. - /// - /// - /// The operations group for this extension method. - /// - /// - /// The NextLink from the previous successful call to List operation. - /// - /// - /// The cancellation token. - /// - public static async Task> ListByDatabaseNextAsync(this IExtendedDatabaseBlobAuditingPoliciesOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListByDatabaseNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ExtendedServerBlobAuditingPoliciesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ExtendedServerBlobAuditingPoliciesOperations.cs index f82314c69e2e..8828d0005573 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ExtendedServerBlobAuditingPoliciesOperations.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ExtendedServerBlobAuditingPoliciesOperations.cs @@ -274,201 +274,6 @@ internal ExtendedServerBlobAuditingPoliciesOperations(SqlManagementClient client return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); } - /// - /// Lists extended auditing settings of a server. - /// - /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. - /// - /// - /// The name of the server. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task>> ListByServerWithHttpMessagesAsync(string resourceGroupName, string serverName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (resourceGroupName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); - } - if (serverName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "serverName"); - } - if (Client.SubscriptionId == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); - } - string apiVersion = "2017-03-01-preview"; - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); - tracingParameters.Add("serverName", serverName); - tracingParameters.Add("apiVersion", apiVersion); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListByServer", tracingParameters); - } - // Construct URL - var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/extendedAuditingSettings").ToString(); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); - _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); - _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); - List _queryParameters = new List(); - if (apiVersion != null) - { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); - } - if (_queryParameters.Count > 0) - { - _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // Set Headers - if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) - { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); - } - if (Client.AcceptLanguage != null) - { - if (_httpRequest.Headers.Contains("accept-language")) - { - _httpRequest.Headers.Remove("accept-language"); - } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); - } - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - if (_httpRequest.Headers.Contains(_header.Key)) - { - _httpRequest.Headers.Remove(_header.Key); - } - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Client.Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200) - { - var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - try - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); - if (_errorBody != null) - { - ex = new CloudException(_errorBody.Message); - ex.Body = _errorBody; - } - } - catch (JsonException) - { - // Ignore the exception - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = new AzureOperationResponse>(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - /// /// Creates or updates an extended server's blob auditing policy. /// @@ -685,178 +490,5 @@ internal ExtendedServerBlobAuditingPoliciesOperations(SqlManagementClient client return _result; } - /// - /// Lists extended auditing settings of a server. - /// - /// - /// The NextLink from the previous successful call to List operation. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task>> ListByServerNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (nextPageLink == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("nextPageLink", nextPageLink); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListByServerNext", tracingParameters); - } - // Construct URL - string _url = "{nextLink}"; - _url = _url.Replace("{nextLink}", nextPageLink); - List _queryParameters = new List(); - if (_queryParameters.Count > 0) - { - _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // Set Headers - if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) - { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); - } - if (Client.AcceptLanguage != null) - { - if (_httpRequest.Headers.Contains("accept-language")) - { - _httpRequest.Headers.Remove("accept-language"); - } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); - } - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - if (_httpRequest.Headers.Contains(_header.Key)) - { - _httpRequest.Headers.Remove(_header.Key); - } - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Client.Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200) - { - var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - try - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); - if (_errorBody != null) - { - ex = new CloudException(_errorBody.Message); - ex.Body = _errorBody; - } - } - catch (JsonException) - { - // Ignore the exception - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = new AzureOperationResponse>(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ExtendedServerBlobAuditingPoliciesOperationsExtensions.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ExtendedServerBlobAuditingPoliciesOperationsExtensions.cs index 3d6509c3d1a1..257fcb968361 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ExtendedServerBlobAuditingPoliciesOperationsExtensions.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ExtendedServerBlobAuditingPoliciesOperationsExtensions.cs @@ -111,48 +111,6 @@ public static ExtendedServerBlobAuditingPolicy CreateOrUpdate(this IExtendedServ } } - /// - /// Lists extended auditing settings of a server. - /// - /// - /// The operations group for this extension method. - /// - /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. - /// - /// - /// The name of the server. - /// - public static IPage ListByServer(this IExtendedServerBlobAuditingPoliciesOperations operations, string resourceGroupName, string serverName) - { - return operations.ListByServerAsync(resourceGroupName, serverName).GetAwaiter().GetResult(); - } - - /// - /// Lists extended auditing settings of a server. - /// - /// - /// The operations group for this extension method. - /// - /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. - /// - /// - /// The name of the server. - /// - /// - /// The cancellation token. - /// - public static async Task> ListByServerAsync(this IExtendedServerBlobAuditingPoliciesOperations operations, string resourceGroupName, string serverName, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListByServerWithHttpMessagesAsync(resourceGroupName, serverName, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - /// /// Creates or updates an extended server's blob auditing policy. /// @@ -201,39 +159,5 @@ public static ExtendedServerBlobAuditingPolicy BeginCreateOrUpdate(this IExtende } } - /// - /// Lists extended auditing settings of a server. - /// - /// - /// The operations group for this extension method. - /// - /// - /// The NextLink from the previous successful call to List operation. - /// - public static IPage ListByServerNext(this IExtendedServerBlobAuditingPoliciesOperations operations, string nextPageLink) - { - return operations.ListByServerNextAsync(nextPageLink).GetAwaiter().GetResult(); - } - - /// - /// Lists extended auditing settings of a server. - /// - /// - /// The operations group for this extension method. - /// - /// - /// The NextLink from the previous successful call to List operation. - /// - /// - /// The cancellation token. - /// - public static async Task> ListByServerNextAsync(this IExtendedServerBlobAuditingPoliciesOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListByServerNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ICapabilitiesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ICapabilitiesOperations.cs index ff5ce0000f3f..645eee3314c0 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ICapabilitiesOperations.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ICapabilitiesOperations.cs @@ -33,8 +33,7 @@ public partial interface ICapabilitiesOperations /// /// If specified, restricts the response to only include the selected /// item. Possible values include: 'supportedEditions', - /// 'supportedElasticPoolEditions', 'supportedManagedInstanceVersions', - /// 'supportedInstancePoolEditions', 'supportedManagedInstanceEditions' + /// 'supportedElasticPoolEditions', 'supportedManagedInstanceVersions' /// /// /// The headers that will be added to request. @@ -51,6 +50,6 @@ public partial interface ICapabilitiesOperations /// /// Thrown when a required parameter is null /// - Task> ListByLocationWithHttpMessagesAsync(string locationName, CapabilityGroup? include = default(CapabilityGroup?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> ListByLocationWithHttpMessagesAsync(string locationName, string include = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IDatabasesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IDatabasesOperations.cs index 815b7a925482..289c62ebab5c 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IDatabasesOperations.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IDatabasesOperations.cs @@ -23,6 +23,103 @@ namespace Microsoft.Azure.Management.Sql /// public partial interface IDatabasesOperations { + /// + /// Imports a bacpac into a new database. + /// + /// + /// The name of the resource group that contains the resource. You can + /// obtain this value from the Azure Resource Manager API or the + /// portal. + /// + /// + /// The name of the server. + /// + /// + /// The required parameters for importing a Bacpac into a database. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> ImportWithHttpMessagesAsync(string resourceGroupName, string serverName, ImportRequest parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Creates an import operation that imports a bacpac into an existing + /// database. The existing database must be empty. + /// + /// + /// The name of the resource group that contains the resource. You can + /// obtain this value from the Azure Resource Manager API or the + /// portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database to import into + /// + /// + /// The required parameters for importing a Bacpac into a database. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> CreateImportOperationWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, ImportExtensionRequest parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Exports a database to a bacpac. + /// + /// + /// The name of the resource group that contains the resource. You can + /// obtain this value from the Azure Resource Manager API or the + /// portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database to be exported. + /// + /// + /// The required parameters for exporting a database. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> ExportWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, ExportRequest parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Returns database metrics. /// @@ -385,7 +482,7 @@ public partial interface IDatabasesOperations /// Task RenameWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, ResourceMoveDefinition parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Gets a list of inaccessible databases in a logical server + /// Failovers a database. /// /// /// The name of the resource group that contains the resource. You can @@ -395,6 +492,40 @@ public partial interface IDatabasesOperations /// /// The name of the server. /// + /// + /// The name of the database to failover. + /// + /// + /// The type of replica to be failed over. Possible values include: + /// 'Primary', 'ReadableSecondary' + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + Task FailoverWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string replicaType = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Imports a bacpac into a new database. + /// + /// + /// The name of the resource group that contains the resource. You can + /// obtain this value from the Azure Resource Manager API or the + /// portal. + /// + /// + /// The name of the server. + /// + /// + /// The required parameters for importing a Bacpac into a database. + /// /// /// The headers that will be added to request. /// @@ -410,9 +541,10 @@ public partial interface IDatabasesOperations /// /// Thrown when a required parameter is null /// - Task>> ListInaccessibleByServerWithHttpMessagesAsync(string resourceGroupName, string serverName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> BeginImportWithHttpMessagesAsync(string resourceGroupName, string serverName, ImportRequest parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Failovers a database. + /// Creates an import operation that imports a bacpac into an existing + /// database. The existing database must be empty. /// /// /// The name of the resource group that contains the resource. You can @@ -423,11 +555,10 @@ public partial interface IDatabasesOperations /// The name of the server. /// /// - /// The name of the database to failover. + /// The name of the database to import into /// - /// - /// The type of replica to be failed over. Possible values include: - /// 'Primary', 'ReadableSecondary' + /// + /// The required parameters for importing a Bacpac into a database. /// /// /// The headers that will be added to request. @@ -438,12 +569,15 @@ public partial interface IDatabasesOperations /// /// Thrown when the operation returned an invalid status code /// + /// + /// Thrown when unable to deserialize the response + /// /// /// Thrown when a required parameter is null /// - Task FailoverWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, ReplicaType? replicaType = default(ReplicaType?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> BeginCreateImportOperationWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, ImportExtensionRequest parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Exports a database. + /// Exports a database to a bacpac. /// /// /// The name of the resource group that contains the resource. You can @@ -454,10 +588,10 @@ public partial interface IDatabasesOperations /// The name of the server. /// /// - /// The name of the database. + /// The name of the database to be exported. /// /// - /// The database export request parameters. + /// The required parameters for exporting a database. /// /// /// The headers that will be added to request. @@ -474,7 +608,7 @@ public partial interface IDatabasesOperations /// /// Thrown when a required parameter is null /// - Task> ExportWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, ExportDatabaseDefinition parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> BeginExportWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, ExportRequest parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Creates a new database or updates an existing database. /// @@ -685,40 +819,7 @@ public partial interface IDatabasesOperations /// /// Thrown when a required parameter is null /// - Task BeginFailoverWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, ReplicaType? replicaType = default(ReplicaType?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - /// - /// Exports a database. - /// - /// - /// The name of the resource group that contains the resource. You can - /// obtain this value from the Azure Resource Manager API or the - /// portal. - /// - /// - /// The name of the server. - /// - /// - /// The name of the database. - /// - /// - /// The database export request parameters. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - Task> BeginExportWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, ExportDatabaseDefinition parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task BeginFailoverWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string replicaType = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Gets a list of databases. /// @@ -763,27 +864,5 @@ public partial interface IDatabasesOperations /// Thrown when a required parameter is null /// Task>> ListByElasticPoolNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - /// - /// Gets a list of inaccessible databases in a logical server - /// - /// - /// The NextLink from the previous successful call to List operation. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - Task>> ListInaccessibleByServerNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IExtendedDatabaseBlobAuditingPoliciesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IExtendedDatabaseBlobAuditingPoliciesOperations.cs index a98f84875167..5517ca93c9a7 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IExtendedDatabaseBlobAuditingPoliciesOperations.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IExtendedDatabaseBlobAuditingPoliciesOperations.cs @@ -86,57 +86,5 @@ public partial interface IExtendedDatabaseBlobAuditingPoliciesOperations /// Thrown when a required parameter is null /// Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, ExtendedDatabaseBlobAuditingPolicy parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - /// - /// Lists extended auditing settings of a database. - /// - /// - /// The name of the resource group that contains the resource. You can - /// obtain this value from the Azure Resource Manager API or the - /// portal. - /// - /// - /// The name of the server. - /// - /// - /// The name of the database. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - Task>> ListByDatabaseWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - /// - /// Lists extended auditing settings of a database. - /// - /// - /// The NextLink from the previous successful call to List operation. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - Task>> ListByDatabaseNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IExtendedServerBlobAuditingPoliciesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IExtendedServerBlobAuditingPoliciesOperations.cs index 5be793c26674..c2117ff6d9f3 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IExtendedServerBlobAuditingPoliciesOperations.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IExtendedServerBlobAuditingPoliciesOperations.cs @@ -81,33 +81,6 @@ public partial interface IExtendedServerBlobAuditingPoliciesOperations /// Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string serverName, ExtendedServerBlobAuditingPolicy parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Lists extended auditing settings of a server. - /// - /// - /// The name of the resource group that contains the resource. You can - /// obtain this value from the Azure Resource Manager API or the - /// portal. - /// - /// - /// The name of the server. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - Task>> ListByServerWithHttpMessagesAsync(string resourceGroupName, string serverName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - /// /// Creates or updates an extended server's blob auditing policy. /// /// @@ -137,27 +110,5 @@ public partial interface IExtendedServerBlobAuditingPoliciesOperations /// Thrown when a required parameter is null /// Task> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string serverName, ExtendedServerBlobAuditingPolicy parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - /// - /// Lists extended auditing settings of a server. - /// - /// - /// The NextLink from the previous successful call to List operation. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - Task>> ListByServerNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IImportExportOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IImportExportOperations.cs deleted file mode 100644 index 7fe33a73c74d..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IImportExportOperations.cs +++ /dev/null @@ -1,93 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql -{ - using Microsoft.Rest; - using Microsoft.Rest.Azure; - using Models; - using System.Collections; - using System.Collections.Generic; - using System.Threading; - using System.Threading.Tasks; - - /// - /// ImportExportOperations operations. - /// - public partial interface IImportExportOperations - { - /// - /// Imports a bacpac into a new database. - /// - /// - /// The name of the resource group that contains the resource. You can - /// obtain this value from the Azure Resource Manager API or the - /// portal. - /// - /// - /// The name of the server. - /// - /// - /// The name of the database. - /// - /// - /// The database import request parameters. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - Task> ImportWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, ImportExistingDatabaseDefinition parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - /// - /// Imports a bacpac into a new database. - /// - /// - /// The name of the resource group that contains the resource. You can - /// obtain this value from the Azure Resource Manager API or the - /// portal. - /// - /// - /// The name of the server. - /// - /// - /// The name of the database. - /// - /// - /// The database import request parameters. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - Task> BeginImportWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, ImportExistingDatabaseDefinition parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ILongTermRetentionBackupsOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ILongTermRetentionBackupsOperations.cs index 9b3dfddd5625..8a567523d58e 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ILongTermRetentionBackupsOperations.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ILongTermRetentionBackupsOperations.cs @@ -132,7 +132,7 @@ public partial interface ILongTermRetentionBackupsOperations /// /// Thrown when a required parameter is null /// - Task>> ListByResourceGroupDatabaseWithHttpMessagesAsync(string resourceGroupName, string locationName, string longTermRetentionServerName, string longTermRetentionDatabaseName, bool? onlyLatestPerDatabase = default(bool?), LongTermRetentionDatabaseState? databaseState = default(LongTermRetentionDatabaseState?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListByResourceGroupDatabaseWithHttpMessagesAsync(string resourceGroupName, string locationName, string longTermRetentionServerName, string longTermRetentionDatabaseName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Lists the long term retention backups for a given location. /// @@ -167,7 +167,7 @@ public partial interface ILongTermRetentionBackupsOperations /// /// Thrown when a required parameter is null /// - Task>> ListByResourceGroupLocationWithHttpMessagesAsync(string resourceGroupName, string locationName, bool? onlyLatestPerDatabase = default(bool?), LongTermRetentionDatabaseState? databaseState = default(LongTermRetentionDatabaseState?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListByResourceGroupLocationWithHttpMessagesAsync(string resourceGroupName, string locationName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Lists the long term retention backups for a given server. /// @@ -205,7 +205,7 @@ public partial interface ILongTermRetentionBackupsOperations /// /// Thrown when a required parameter is null /// - Task>> ListByResourceGroupServerWithHttpMessagesAsync(string resourceGroupName, string locationName, string longTermRetentionServerName, bool? onlyLatestPerDatabase = default(bool?), LongTermRetentionDatabaseState? databaseState = default(LongTermRetentionDatabaseState?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListByResourceGroupServerWithHttpMessagesAsync(string resourceGroupName, string locationName, string longTermRetentionServerName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Gets a long term retention backup. /// @@ -300,7 +300,7 @@ public partial interface ILongTermRetentionBackupsOperations /// /// Thrown when a required parameter is null /// - Task>> ListByDatabaseWithHttpMessagesAsync(string locationName, string longTermRetentionServerName, string longTermRetentionDatabaseName, bool? onlyLatestPerDatabase = default(bool?), LongTermRetentionDatabaseState? databaseState = default(LongTermRetentionDatabaseState?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListByDatabaseWithHttpMessagesAsync(string locationName, string longTermRetentionServerName, string longTermRetentionDatabaseName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Lists the long term retention backups for a given location. /// @@ -330,7 +330,7 @@ public partial interface ILongTermRetentionBackupsOperations /// /// Thrown when a required parameter is null /// - Task>> ListByLocationWithHttpMessagesAsync(string locationName, bool? onlyLatestPerDatabase = default(bool?), LongTermRetentionDatabaseState? databaseState = default(LongTermRetentionDatabaseState?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListByLocationWithHttpMessagesAsync(string locationName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Lists the long term retention backups for a given server. /// @@ -363,7 +363,7 @@ public partial interface ILongTermRetentionBackupsOperations /// /// Thrown when a required parameter is null /// - Task>> ListByServerWithHttpMessagesAsync(string locationName, string longTermRetentionServerName, bool? onlyLatestPerDatabase = default(bool?), LongTermRetentionDatabaseState? databaseState = default(LongTermRetentionDatabaseState?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListByServerWithHttpMessagesAsync(string locationName, string longTermRetentionServerName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Deletes a long term retention backup. /// diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ILongTermRetentionManagedInstanceBackupsOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ILongTermRetentionManagedInstanceBackupsOperations.cs index fbd553d5d1f0..624ead6cd7af 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ILongTermRetentionManagedInstanceBackupsOperations.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ILongTermRetentionManagedInstanceBackupsOperations.cs @@ -117,7 +117,7 @@ public partial interface ILongTermRetentionManagedInstanceBackupsOperations /// /// Thrown when a required parameter is null /// - Task>> ListByDatabaseWithHttpMessagesAsync(string locationName, string managedInstanceName, string databaseName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState1? databaseState = default(DatabaseState1?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListByDatabaseWithHttpMessagesAsync(string locationName, string managedInstanceName, string databaseName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Lists the long term retention backups for a given managed instance. /// @@ -150,7 +150,7 @@ public partial interface ILongTermRetentionManagedInstanceBackupsOperations /// /// Thrown when a required parameter is null /// - Task>> ListByInstanceWithHttpMessagesAsync(string locationName, string managedInstanceName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState2? databaseState = default(DatabaseState2?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListByInstanceWithHttpMessagesAsync(string locationName, string managedInstanceName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Lists the long term retention backups for managed databases in a /// given location. @@ -181,7 +181,7 @@ public partial interface ILongTermRetentionManagedInstanceBackupsOperations /// /// Thrown when a required parameter is null /// - Task>> ListByLocationWithHttpMessagesAsync(string locationName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState3? databaseState = default(DatabaseState3?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListByLocationWithHttpMessagesAsync(string locationName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Gets a long term retention backup for a managed database. /// @@ -291,7 +291,7 @@ public partial interface ILongTermRetentionManagedInstanceBackupsOperations /// /// Thrown when a required parameter is null /// - Task>> ListByResourceGroupDatabaseWithHttpMessagesAsync(string resourceGroupName, string locationName, string managedInstanceName, string databaseName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState4? databaseState = default(DatabaseState4?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListByResourceGroupDatabaseWithHttpMessagesAsync(string resourceGroupName, string locationName, string managedInstanceName, string databaseName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Lists the long term retention backups for a given managed instance. /// @@ -329,7 +329,7 @@ public partial interface ILongTermRetentionManagedInstanceBackupsOperations /// /// Thrown when a required parameter is null /// - Task>> ListByResourceGroupInstanceWithHttpMessagesAsync(string resourceGroupName, string locationName, string managedInstanceName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState5? databaseState = default(DatabaseState5?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListByResourceGroupInstanceWithHttpMessagesAsync(string resourceGroupName, string locationName, string managedInstanceName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Lists the long term retention backups for managed databases in a /// given location. @@ -365,7 +365,7 @@ public partial interface ILongTermRetentionManagedInstanceBackupsOperations /// /// Thrown when a required parameter is null /// - Task>> ListByResourceGroupLocationWithHttpMessagesAsync(string resourceGroupName, string locationName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState6? databaseState = default(DatabaseState6?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListByResourceGroupLocationWithHttpMessagesAsync(string resourceGroupName, string locationName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Deletes a long term retention backup. /// diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IManagedDatabaseRestoreDetailsOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IManagedDatabaseRestoreDetailsOperations.cs index ae49842a72f4..3c30a767bee9 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IManagedDatabaseRestoreDetailsOperations.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IManagedDatabaseRestoreDetailsOperations.cs @@ -27,7 +27,9 @@ public partial interface IManagedDatabaseRestoreDetailsOperations /// Gets managed database restore details. /// /// - /// The name of the resource group. The name is case insensitive. + /// The name of the resource group that contains the resource. You can + /// obtain this value from the Azure Resource Manager API or the + /// portal. /// /// /// The name of the managed instance. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IManagedDatabasesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IManagedDatabasesOperations.cs index 29537446582d..1acfed0f05df 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IManagedDatabasesOperations.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IManagedDatabasesOperations.cs @@ -27,7 +27,9 @@ public partial interface IManagedDatabasesOperations /// Gets a list of managed databases. /// /// - /// The name of the resource group. The name is case insensitive. + /// The name of the resource group that contains the resource. You can + /// obtain this value from the Azure Resource Manager API or the + /// portal. /// /// /// The name of the managed instance. @@ -52,7 +54,9 @@ public partial interface IManagedDatabasesOperations /// Gets a managed database. /// /// - /// The name of the resource group. The name is case insensitive. + /// The name of the resource group that contains the resource. You can + /// obtain this value from the Azure Resource Manager API or the + /// portal. /// /// /// The name of the managed instance. @@ -80,7 +84,9 @@ public partial interface IManagedDatabasesOperations /// Creates a new database or updates an existing database. /// /// - /// The name of the resource group. The name is case insensitive. + /// The name of the resource group that contains the resource. You can + /// obtain this value from the Azure Resource Manager API or the + /// portal. /// /// /// The name of the managed instance. @@ -111,7 +117,9 @@ public partial interface IManagedDatabasesOperations /// Deletes a managed database. /// /// - /// The name of the resource group. The name is case insensitive. + /// The name of the resource group that contains the resource. You can + /// obtain this value from the Azure Resource Manager API or the + /// portal. /// /// /// The name of the managed instance. @@ -136,7 +144,9 @@ public partial interface IManagedDatabasesOperations /// Updates an existing database. /// /// - /// The name of the resource group. The name is case insensitive. + /// The name of the resource group that contains the resource. You can + /// obtain this value from the Azure Resource Manager API or the + /// portal. /// /// /// The name of the managed instance. @@ -164,35 +174,12 @@ public partial interface IManagedDatabasesOperations /// Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, string databaseName, ManagedDatabaseUpdate parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Gets a list of inaccessible managed databases in a managed instance - /// - /// - /// The name of the resource group. The name is case insensitive. - /// - /// - /// The name of the managed instance. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - Task>> ListInaccessibleByInstanceWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - /// /// Completes the restore operation on a managed database. /// /// - /// The name of the resource group. The name is case insensitive. + /// The name of the resource group that contains the resource. You can + /// obtain this value from the Azure Resource Manager API or the + /// portal. /// /// /// The name of the managed instance. @@ -220,7 +207,9 @@ public partial interface IManagedDatabasesOperations /// Creates a new database or updates an existing database. /// /// - /// The name of the resource group. The name is case insensitive. + /// The name of the resource group that contains the resource. You can + /// obtain this value from the Azure Resource Manager API or the + /// portal. /// /// /// The name of the managed instance. @@ -251,7 +240,9 @@ public partial interface IManagedDatabasesOperations /// Deletes a managed database. /// /// - /// The name of the resource group. The name is case insensitive. + /// The name of the resource group that contains the resource. You can + /// obtain this value from the Azure Resource Manager API or the + /// portal. /// /// /// The name of the managed instance. @@ -276,7 +267,9 @@ public partial interface IManagedDatabasesOperations /// Updates an existing database. /// /// - /// The name of the resource group. The name is case insensitive. + /// The name of the resource group that contains the resource. You can + /// obtain this value from the Azure Resource Manager API or the + /// portal. /// /// /// The name of the managed instance. @@ -307,7 +300,9 @@ public partial interface IManagedDatabasesOperations /// Completes the restore operation on a managed database. /// /// - /// The name of the resource group. The name is case insensitive. + /// The name of the resource group that contains the resource. You can + /// obtain this value from the Azure Resource Manager API or the + /// portal. /// /// /// The name of the managed instance. @@ -353,27 +348,5 @@ public partial interface IManagedDatabasesOperations /// Thrown when a required parameter is null /// Task>> ListByInstanceNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - /// - /// Gets a list of inaccessible managed databases in a managed instance - /// - /// - /// The NextLink from the previous successful call to List operation. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - Task>> ListInaccessibleByInstanceNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IManagedInstancesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IManagedInstancesOperations.cs index f427b0e42b81..7b27b7f78d56 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IManagedInstancesOperations.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IManagedInstancesOperations.cs @@ -24,17 +24,15 @@ namespace Microsoft.Azure.Management.Sql public partial interface IManagedInstancesOperations { /// - /// Failovers a managed instance. + /// Gets a list of all managed instances in an instance pool. /// /// - /// The name of the resource group. The name is case insensitive. - /// - /// - /// The name of the managed instance. + /// The name of the resource group that contains the resource. You can + /// obtain this value from the Azure Resource Manager API or the + /// portal. /// - /// - /// The type of replica to be failed over. Possible values include: - /// 'Primary', 'ReadableSecondary' + /// + /// The instance pool name. /// /// /// The headers that will be added to request. @@ -45,10 +43,13 @@ public partial interface IManagedInstancesOperations /// /// Thrown when the operation returned an invalid status code /// + /// + /// Thrown when unable to deserialize the response + /// /// /// Thrown when a required parameter is null /// - Task FailoverWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, ReplicaType? replicaType = default(ReplicaType?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListByInstancePoolWithHttpMessagesAsync(string resourceGroupName, string instancePoolName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Gets a list of managed instances in a resource group. /// @@ -185,33 +186,6 @@ public partial interface IManagedInstancesOperations /// Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, ManagedInstanceUpdate parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Gets a list of all managed instances in an instance pool. - /// - /// - /// The name of the resource group that contains the resource. You can - /// obtain this value from the Azure Resource Manager API or the - /// portal. - /// - /// - /// The instance pool name. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - Task>> ListByInstancePoolWithHttpMessagesAsync(string resourceGroupName, string instancePoolName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - /// /// Gets a list of all managed instances in the subscription. /// /// @@ -255,7 +229,7 @@ public partial interface IManagedInstancesOperations /// /// Thrown when a required parameter is null /// - Task BeginFailoverWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, ReplicaType? replicaType = default(ReplicaType?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task FailoverWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, string replicaType = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Creates or updates a managed instance. /// @@ -340,8 +314,34 @@ public partial interface IManagedInstancesOperations /// Thrown when a required parameter is null /// Task> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, ManagedInstanceUpdate parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Failovers a managed instance. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the managed instance. + /// + /// + /// The type of replica to be failed over. Possible values include: + /// 'Primary', 'ReadableSecondary' + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + Task BeginFailoverWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, string replicaType = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Gets a list of managed instances in a resource group. + /// Gets a list of all managed instances in an instance pool. /// /// /// The NextLink from the previous successful call to List operation. @@ -361,9 +361,9 @@ public partial interface IManagedInstancesOperations /// /// Thrown when a required parameter is null /// - Task>> ListByResourceGroupNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListByInstancePoolNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Gets a list of all managed instances in an instance pool. + /// Gets a list of managed instances in a resource group. /// /// /// The NextLink from the previous successful call to List operation. @@ -383,7 +383,7 @@ public partial interface IManagedInstancesOperations /// /// Thrown when a required parameter is null /// - Task>> ListByInstancePoolNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListByResourceGroupNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Gets a list of all managed instances in the subscription. /// diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IReplicationLinksOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IReplicationLinksOperations.cs index 7948b2f9f559..7d12e91bed9b 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IReplicationLinksOperations.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IReplicationLinksOperations.cs @@ -154,40 +154,6 @@ public partial interface IReplicationLinksOperations /// Task FailoverAllowDataLossWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string linkId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Deletes a database replication link in forced or friendly way. - /// - /// - /// The name of the resource group that contains the resource. You can - /// obtain this value from the Azure Resource Manager API or the - /// portal. - /// - /// - /// The name of the server. - /// - /// - /// The name of the database that has the replication link to be failed - /// over. - /// - /// - /// The ID of the replication link to be failed over. - /// - /// - /// The required parameters for unlinking replication link. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when a required parameter is null - /// - Task UnlinkWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string linkId, UnlinkParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - /// /// Lists a database's replication links. /// /// @@ -282,39 +248,5 @@ public partial interface IReplicationLinksOperations /// Thrown when a required parameter is null /// Task BeginFailoverAllowDataLossWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string linkId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - /// - /// Deletes a database replication link in forced or friendly way. - /// - /// - /// The name of the resource group that contains the resource. You can - /// obtain this value from the Azure Resource Manager API or the - /// portal. - /// - /// - /// The name of the server. - /// - /// - /// The name of the database that has the replication link to be failed - /// over. - /// - /// - /// The ID of the replication link to be failed over. - /// - /// - /// The required parameters for unlinking replication link. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when a required parameter is null - /// - Task BeginUnlinkWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string linkId, UnlinkParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IServersOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IServersOperations.cs index 591f10e968ab..8d91a80b7962 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IServersOperations.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IServersOperations.cs @@ -201,36 +201,6 @@ public partial interface IServersOperations /// Task> CheckNameAvailabilityWithHttpMessagesAsync(CheckNameAvailabilityRequest parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Imports a bacpac into a new database. - /// - /// - /// The name of the resource group that contains the resource. You can - /// obtain this value from the Azure Resource Manager API or the - /// portal. - /// - /// - /// The name of the server. - /// - /// - /// The database import request parameters. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - Task> ImportDatabaseWithHttpMessagesAsync(string resourceGroupName, string serverName, ImportNewDatabaseDefinition parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - /// /// Creates or updates a server. /// /// @@ -315,36 +285,6 @@ public partial interface IServersOperations /// Task> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string serverName, ServerUpdate parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Imports a bacpac into a new database. - /// - /// - /// The name of the resource group that contains the resource. You can - /// obtain this value from the Azure Resource Manager API or the - /// portal. - /// - /// - /// The name of the server. - /// - /// - /// The database import request parameters. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - Task> BeginImportDatabaseWithHttpMessagesAsync(string resourceGroupName, string serverName, ImportNewDatabaseDefinition parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - /// /// Gets a list of servers in a resource groups. /// /// diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ISqlManagementClient.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ISqlManagementClient.cs index 07d6c9907662..5eb4da34edc5 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ISqlManagementClient.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ISqlManagementClient.cs @@ -49,19 +49,20 @@ public partial interface ISqlManagementClient : System.IDisposable string SubscriptionId { get; set; } /// - /// Gets or sets the preferred language for the response. + /// The preferred language for the response. /// string AcceptLanguage { get; set; } /// - /// Gets or sets the retry timeout in seconds for Long Running - /// Operations. Default value is 30. + /// The retry timeout in seconds for Long Running Operations. Default + /// value is 30. /// int? LongRunningOperationRetryTimeout { get; set; } /// - /// When set to true a unique x-ms-client-request-id value is generated - /// and included in each request. Default is true. + /// Whether a unique x-ms-client-request-id should be generated. When + /// set to true a unique x-ms-client-request-id value is generated and + /// included in each request. Default is true. /// bool? GenerateClientRequestId { get; set; } @@ -201,6 +202,16 @@ public partial interface ISqlManagementClient : System.IDisposable /// ISyncAgentsOperations SyncAgents { get; } + /// + /// Gets the ISyncGroupsOperations. + /// + ISyncGroupsOperations SyncGroups { get; } + + /// + /// Gets the ISyncMembersOperations. + /// + ISyncMembersOperations SyncMembers { get; } + /// /// Gets the ISubscriptionUsagesOperations. /// @@ -391,6 +402,11 @@ public partial interface ISqlManagementClient : System.IDisposable /// IInstanceFailoverGroupsOperations InstanceFailoverGroups { get; } + /// + /// Gets the IBackupShortTermRetentionPoliciesOperations. + /// + IBackupShortTermRetentionPoliciesOperations BackupShortTermRetentionPolicies { get; } + /// /// Gets the ITdeCertificatesOperations. /// @@ -441,6 +457,11 @@ public partial interface ISqlManagementClient : System.IDisposable /// IUsagesOperations Usages { get; } + /// + /// Gets the IManagedInstancesOperations. + /// + IManagedInstancesOperations ManagedInstances { get; } + /// /// Gets the IPrivateEndpointConnectionsOperations. /// @@ -471,46 +492,6 @@ public partial interface ISqlManagementClient : System.IDisposable /// IManagedInstanceLongTermRetentionPoliciesOperations ManagedInstanceLongTermRetentionPolicies { get; } - /// - /// Gets the IWorkloadGroupsOperations. - /// - IWorkloadGroupsOperations WorkloadGroups { get; } - - /// - /// Gets the IWorkloadClassifiersOperations. - /// - IWorkloadClassifiersOperations WorkloadClassifiers { get; } - - /// - /// Gets the IManagedInstanceOperations. - /// - IManagedInstanceOperations ManagedInstanceOperations { get; } - - /// - /// Gets the IServerAzureADAdministratorsOperations. - /// - IServerAzureADAdministratorsOperations ServerAzureADAdministrators { get; } - - /// - /// Gets the ISyncGroupsOperations. - /// - ISyncGroupsOperations SyncGroups { get; } - - /// - /// Gets the ISyncMembersOperations. - /// - ISyncMembersOperations SyncMembers { get; } - - /// - /// Gets the IManagedInstancesOperations. - /// - IManagedInstancesOperations ManagedInstances { get; } - - /// - /// Gets the IBackupShortTermRetentionPoliciesOperations. - /// - IBackupShortTermRetentionPoliciesOperations BackupShortTermRetentionPolicies { get; } - /// /// Gets the IManagedDatabaseRestoreDetailsOperations. /// @@ -522,14 +503,14 @@ public partial interface ISqlManagementClient : System.IDisposable IManagedDatabasesOperations ManagedDatabases { get; } /// - /// Gets the IServerAzureADOnlyAuthenticationsOperations. + /// Gets the IServerAzureADAdministratorsOperations. /// - IServerAzureADOnlyAuthenticationsOperations ServerAzureADOnlyAuthentications { get; } + IServerAzureADAdministratorsOperations ServerAzureADAdministrators { get; } /// - /// Gets the IImportExportOperations. + /// Gets the IManagedInstanceOperations. /// - IImportExportOperations ImportExport { get; } + IManagedInstanceOperations ManagedInstanceOperations { get; } /// /// Gets the IManagedInstanceAzureADOnlyAuthenticationsOperations. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IWorkloadClassifiersOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IWorkloadClassifiersOperations.cs deleted file mode 100644 index c0e39d85d163..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IWorkloadClassifiersOperations.cs +++ /dev/null @@ -1,268 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql -{ - using Microsoft.Rest; - using Microsoft.Rest.Azure; - using Models; - using System.Collections; - using System.Collections.Generic; - using System.Threading; - using System.Threading.Tasks; - - /// - /// WorkloadClassifiersOperations operations. - /// - public partial interface IWorkloadClassifiersOperations - { - /// - /// Gets a workload classifier - /// - /// - /// The name of the resource group that contains the resource. You can - /// obtain this value from the Azure Resource Manager API or the - /// portal. - /// - /// - /// The name of the server. - /// - /// - /// The name of the database. - /// - /// - /// The name of the workload group from which to receive the classifier - /// from. - /// - /// - /// The name of the workload classifier. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - Task> GetWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string workloadGroupName, string workloadClassifierName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - /// - /// Creates or updates a workload classifier. - /// - /// - /// The name of the resource group that contains the resource. You can - /// obtain this value from the Azure Resource Manager API or the - /// portal. - /// - /// - /// The name of the server. - /// - /// - /// The name of the database. - /// - /// - /// The name of the workload group from which to receive the classifier - /// from. - /// - /// - /// The name of the workload classifier to create/update. - /// - /// - /// The properties of the workload classifier. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string workloadGroupName, string workloadClassifierName, WorkloadClassifier parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - /// - /// Deletes a workload classifier. - /// - /// - /// The name of the resource group that contains the resource. You can - /// obtain this value from the Azure Resource Manager API or the - /// portal. - /// - /// - /// The name of the server. - /// - /// - /// The name of the database. - /// - /// - /// The name of the workload group from which to receive the classifier - /// from. - /// - /// - /// The name of the workload classifier to delete. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when a required parameter is null - /// - Task DeleteWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string workloadGroupName, string workloadClassifierName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - /// - /// Gets the list of workload classifiers for a workload group - /// - /// - /// The name of the resource group that contains the resource. You can - /// obtain this value from the Azure Resource Manager API or the - /// portal. - /// - /// - /// The name of the server. - /// - /// - /// The name of the database. - /// - /// - /// The name of the workload group from which to receive the - /// classifiers from. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - Task>> ListByWorkloadGroupWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string workloadGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - /// - /// Creates or updates a workload classifier. - /// - /// - /// The name of the resource group that contains the resource. You can - /// obtain this value from the Azure Resource Manager API or the - /// portal. - /// - /// - /// The name of the server. - /// - /// - /// The name of the database. - /// - /// - /// The name of the workload group from which to receive the classifier - /// from. - /// - /// - /// The name of the workload classifier to create/update. - /// - /// - /// The properties of the workload classifier. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - Task> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string workloadGroupName, string workloadClassifierName, WorkloadClassifier parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - /// - /// Deletes a workload classifier. - /// - /// - /// The name of the resource group that contains the resource. You can - /// obtain this value from the Azure Resource Manager API or the - /// portal. - /// - /// - /// The name of the server. - /// - /// - /// The name of the database. - /// - /// - /// The name of the workload group from which to receive the classifier - /// from. - /// - /// - /// The name of the workload classifier to delete. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when a required parameter is null - /// - Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string workloadGroupName, string workloadClassifierName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - /// - /// Gets the list of workload classifiers for a workload group - /// - /// - /// The NextLink from the previous successful call to List operation. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - Task>> ListByWorkloadGroupNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IWorkloadGroupsOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IWorkloadGroupsOperations.cs deleted file mode 100644 index 9c2dbda017d9..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IWorkloadGroupsOperations.cs +++ /dev/null @@ -1,244 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql -{ - using Microsoft.Rest; - using Microsoft.Rest.Azure; - using Models; - using System.Collections; - using System.Collections.Generic; - using System.Threading; - using System.Threading.Tasks; - - /// - /// WorkloadGroupsOperations operations. - /// - public partial interface IWorkloadGroupsOperations - { - /// - /// Gets a workload group - /// - /// - /// The name of the resource group that contains the resource. You can - /// obtain this value from the Azure Resource Manager API or the - /// portal. - /// - /// - /// The name of the server. - /// - /// - /// The name of the database. - /// - /// - /// The name of the workload group. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - Task> GetWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string workloadGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - /// - /// Creates or updates a workload group. - /// - /// - /// The name of the resource group that contains the resource. You can - /// obtain this value from the Azure Resource Manager API or the - /// portal. - /// - /// - /// The name of the server. - /// - /// - /// The name of the database. - /// - /// - /// The name of the workload group. - /// - /// - /// The requested workload group state. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string workloadGroupName, WorkloadGroup parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - /// - /// Deletes a workload group. - /// - /// - /// The name of the resource group that contains the resource. You can - /// obtain this value from the Azure Resource Manager API or the - /// portal. - /// - /// - /// The name of the server. - /// - /// - /// The name of the database. - /// - /// - /// The name of the workload group to delete. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when a required parameter is null - /// - Task DeleteWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string workloadGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - /// - /// Gets the list of workload groups - /// - /// - /// The name of the resource group that contains the resource. You can - /// obtain this value from the Azure Resource Manager API or the - /// portal. - /// - /// - /// The name of the server. - /// - /// - /// The name of the database. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - Task>> ListByDatabaseWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - /// - /// Creates or updates a workload group. - /// - /// - /// The name of the resource group that contains the resource. You can - /// obtain this value from the Azure Resource Manager API or the - /// portal. - /// - /// - /// The name of the server. - /// - /// - /// The name of the database. - /// - /// - /// The name of the workload group. - /// - /// - /// The requested workload group state. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - Task> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string workloadGroupName, WorkloadGroup parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - /// - /// Deletes a workload group. - /// - /// - /// The name of the resource group that contains the resource. You can - /// obtain this value from the Azure Resource Manager API or the - /// portal. - /// - /// - /// The name of the server. - /// - /// - /// The name of the database. - /// - /// - /// The name of the workload group to delete. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when a required parameter is null - /// - Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string workloadGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - /// - /// Gets the list of workload groups - /// - /// - /// The NextLink from the previous successful call to List operation. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - Task>> ListByDatabaseNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ImportExportOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ImportExportOperations.cs deleted file mode 100644 index 669d67e32d6b..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ImportExportOperations.cs +++ /dev/null @@ -1,305 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql -{ - using Microsoft.Rest; - using Microsoft.Rest.Azure; - using Models; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - using System.Net; - using System.Net.Http; - using System.Threading; - using System.Threading.Tasks; - - /// - /// ImportExportOperations operations. - /// - internal partial class ImportExportOperations : IServiceOperations, IImportExportOperations - { - /// - /// Initializes a new instance of the ImportExportOperations class. - /// - /// - /// Reference to the service client. - /// - /// - /// Thrown when a required parameter is null - /// - internal ImportExportOperations(SqlManagementClient client) - { - if (client == null) - { - throw new System.ArgumentNullException("client"); - } - Client = client; - } - - /// - /// Gets a reference to the SqlManagementClient - /// - public SqlManagementClient Client { get; private set; } - - /// - /// Imports a bacpac into a new database. - /// - /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. - /// - /// - /// The name of the server. - /// - /// - /// The name of the database. - /// - /// - /// The database import request parameters. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - public async Task> ImportWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, ImportExistingDatabaseDefinition parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Send request - AzureOperationResponse _response = await BeginImportWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, parameters, customHeaders, cancellationToken).ConfigureAwait(false); - return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); - } - - /// - /// Imports a bacpac into a new database. - /// - /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. - /// - /// - /// The name of the server. - /// - /// - /// The name of the database. - /// - /// - /// The database import request parameters. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> BeginImportWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, ImportExistingDatabaseDefinition parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (resourceGroupName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); - } - if (serverName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "serverName"); - } - if (databaseName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "databaseName"); - } - if (parameters == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); - } - if (parameters != null) - { - parameters.Validate(); - } - if (Client.SubscriptionId == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); - } - string apiVersion = "2020-02-02-preview"; - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); - tracingParameters.Add("serverName", serverName); - tracingParameters.Add("databaseName", databaseName); - tracingParameters.Add("parameters", parameters); - tracingParameters.Add("apiVersion", apiVersion); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "BeginImport", tracingParameters); - } - // Construct URL - var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/import").ToString(); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); - _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); - _url = _url.Replace("{databaseName}", System.Uri.EscapeDataString(databaseName)); - _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); - List _queryParameters = new List(); - if (apiVersion != null) - { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); - } - if (_queryParameters.Count > 0) - { - _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("POST"); - _httpRequest.RequestUri = new System.Uri(_url); - // Set Headers - if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) - { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); - } - if (Client.AcceptLanguage != null) - { - if (_httpRequest.Headers.Contains("accept-language")) - { - _httpRequest.Headers.Remove("accept-language"); - } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); - } - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - if (_httpRequest.Headers.Contains(_header.Key)) - { - _httpRequest.Headers.Remove(_header.Key); - } - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(parameters != null) - { - _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, Client.SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Client.Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 202) - { - var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - try - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); - if (_errorBody != null) - { - ex = new CloudException(_errorBody.Message); - ex.Body = _errorBody; - } - } - catch (JsonException) - { - // Ignore the exception - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = new AzureOperationResponse(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ImportExportOperationsExtensions.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ImportExportOperationsExtensions.cs deleted file mode 100644 index 256cedb55dd0..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ImportExportOperationsExtensions.cs +++ /dev/null @@ -1,133 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql -{ - using Microsoft.Rest; - using Microsoft.Rest.Azure; - using Models; - using System.Threading; - using System.Threading.Tasks; - - /// - /// Extension methods for ImportExportOperations. - /// - public static partial class ImportExportOperationsExtensions - { - /// - /// Imports a bacpac into a new database. - /// - /// - /// The operations group for this extension method. - /// - /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. - /// - /// - /// The name of the server. - /// - /// - /// The name of the database. - /// - /// - /// The database import request parameters. - /// - public static ImportExportOperationResult Import(this IImportExportOperations operations, string resourceGroupName, string serverName, string databaseName, ImportExistingDatabaseDefinition parameters) - { - return operations.ImportAsync(resourceGroupName, serverName, databaseName, parameters).GetAwaiter().GetResult(); - } - - /// - /// Imports a bacpac into a new database. - /// - /// - /// The operations group for this extension method. - /// - /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. - /// - /// - /// The name of the server. - /// - /// - /// The name of the database. - /// - /// - /// The database import request parameters. - /// - /// - /// The cancellation token. - /// - public static async Task ImportAsync(this IImportExportOperations operations, string resourceGroupName, string serverName, string databaseName, ImportExistingDatabaseDefinition parameters, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ImportWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, parameters, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// Imports a bacpac into a new database. - /// - /// - /// The operations group for this extension method. - /// - /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. - /// - /// - /// The name of the server. - /// - /// - /// The name of the database. - /// - /// - /// The database import request parameters. - /// - public static ImportExportOperationResult BeginImport(this IImportExportOperations operations, string resourceGroupName, string serverName, string databaseName, ImportExistingDatabaseDefinition parameters) - { - return operations.BeginImportAsync(resourceGroupName, serverName, databaseName, parameters).GetAwaiter().GetResult(); - } - - /// - /// Imports a bacpac into a new database. - /// - /// - /// The operations group for this extension method. - /// - /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. - /// - /// - /// The name of the server. - /// - /// - /// The name of the database. - /// - /// - /// The database import request parameters. - /// - /// - /// The cancellation token. - /// - public static async Task BeginImportAsync(this IImportExportOperations operations, string resourceGroupName, string serverName, string databaseName, ImportExistingDatabaseDefinition parameters, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.BeginImportWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, parameters, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/LongTermRetentionBackupsOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/LongTermRetentionBackupsOperations.cs index 6a14d4def090..d96ccd6e161b 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/LongTermRetentionBackupsOperations.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/LongTermRetentionBackupsOperations.cs @@ -348,7 +348,7 @@ internal LongTermRetentionBackupsOperations(SqlManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListByResourceGroupDatabaseWithHttpMessagesAsync(string resourceGroupName, string locationName, string longTermRetentionServerName, string longTermRetentionDatabaseName, bool? onlyLatestPerDatabase = default(bool?), LongTermRetentionDatabaseState? databaseState = default(LongTermRetentionDatabaseState?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByResourceGroupDatabaseWithHttpMessagesAsync(string resourceGroupName, string locationName, string longTermRetentionServerName, string longTermRetentionDatabaseName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (resourceGroupName == null) { @@ -403,7 +403,7 @@ internal LongTermRetentionBackupsOperations(SqlManagementClient client) } if (databaseState != null) { - _queryParameters.Add(string.Format("databaseState={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(databaseState, Client.SerializationSettings).Trim('"')))); + _queryParameters.Add(string.Format("databaseState={0}", System.Uri.EscapeDataString(databaseState))); } if (apiVersion != null) { @@ -572,7 +572,7 @@ internal LongTermRetentionBackupsOperations(SqlManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListByResourceGroupLocationWithHttpMessagesAsync(string resourceGroupName, string locationName, bool? onlyLatestPerDatabase = default(bool?), LongTermRetentionDatabaseState? databaseState = default(LongTermRetentionDatabaseState?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByResourceGroupLocationWithHttpMessagesAsync(string resourceGroupName, string locationName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (resourceGroupName == null) { @@ -615,7 +615,7 @@ internal LongTermRetentionBackupsOperations(SqlManagementClient client) } if (databaseState != null) { - _queryParameters.Add(string.Format("databaseState={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(databaseState, Client.SerializationSettings).Trim('"')))); + _queryParameters.Add(string.Format("databaseState={0}", System.Uri.EscapeDataString(databaseState))); } if (apiVersion != null) { @@ -787,7 +787,7 @@ internal LongTermRetentionBackupsOperations(SqlManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListByResourceGroupServerWithHttpMessagesAsync(string resourceGroupName, string locationName, string longTermRetentionServerName, bool? onlyLatestPerDatabase = default(bool?), LongTermRetentionDatabaseState? databaseState = default(LongTermRetentionDatabaseState?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByResourceGroupServerWithHttpMessagesAsync(string resourceGroupName, string locationName, string longTermRetentionServerName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (resourceGroupName == null) { @@ -836,7 +836,7 @@ internal LongTermRetentionBackupsOperations(SqlManagementClient client) } if (databaseState != null) { - _queryParameters.Add(string.Format("databaseState={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(databaseState, Client.SerializationSettings).Trim('"')))); + _queryParameters.Add(string.Format("databaseState={0}", System.Uri.EscapeDataString(databaseState))); } if (apiVersion != null) { @@ -1247,7 +1247,7 @@ internal LongTermRetentionBackupsOperations(SqlManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListByDatabaseWithHttpMessagesAsync(string locationName, string longTermRetentionServerName, string longTermRetentionDatabaseName, bool? onlyLatestPerDatabase = default(bool?), LongTermRetentionDatabaseState? databaseState = default(LongTermRetentionDatabaseState?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByDatabaseWithHttpMessagesAsync(string locationName, string longTermRetentionServerName, string longTermRetentionDatabaseName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (locationName == null) { @@ -1296,7 +1296,7 @@ internal LongTermRetentionBackupsOperations(SqlManagementClient client) } if (databaseState != null) { - _queryParameters.Add(string.Format("databaseState={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(databaseState, Client.SerializationSettings).Trim('"')))); + _queryParameters.Add(string.Format("databaseState={0}", System.Uri.EscapeDataString(databaseState))); } if (apiVersion != null) { @@ -1461,7 +1461,7 @@ internal LongTermRetentionBackupsOperations(SqlManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListByLocationWithHttpMessagesAsync(string locationName, bool? onlyLatestPerDatabase = default(bool?), LongTermRetentionDatabaseState? databaseState = default(LongTermRetentionDatabaseState?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByLocationWithHttpMessagesAsync(string locationName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (locationName == null) { @@ -1498,7 +1498,7 @@ internal LongTermRetentionBackupsOperations(SqlManagementClient client) } if (databaseState != null) { - _queryParameters.Add(string.Format("databaseState={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(databaseState, Client.SerializationSettings).Trim('"')))); + _queryParameters.Add(string.Format("databaseState={0}", System.Uri.EscapeDataString(databaseState))); } if (apiVersion != null) { @@ -1666,7 +1666,7 @@ internal LongTermRetentionBackupsOperations(SqlManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListByServerWithHttpMessagesAsync(string locationName, string longTermRetentionServerName, bool? onlyLatestPerDatabase = default(bool?), LongTermRetentionDatabaseState? databaseState = default(LongTermRetentionDatabaseState?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByServerWithHttpMessagesAsync(string locationName, string longTermRetentionServerName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (locationName == null) { @@ -1709,7 +1709,7 @@ internal LongTermRetentionBackupsOperations(SqlManagementClient client) } if (databaseState != null) { - _queryParameters.Add(string.Format("databaseState={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(databaseState, Client.SerializationSettings).Trim('"')))); + _queryParameters.Add(string.Format("databaseState={0}", System.Uri.EscapeDataString(databaseState))); } if (apiVersion != null) { diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/LongTermRetentionBackupsOperationsExtensions.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/LongTermRetentionBackupsOperationsExtensions.cs index 31c5a25eade6..5e6f4a0dda2b 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/LongTermRetentionBackupsOperationsExtensions.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/LongTermRetentionBackupsOperationsExtensions.cs @@ -164,7 +164,7 @@ public static void DeleteByResourceGroup(this ILongTermRetentionBackupsOperation /// Whether to query against just live databases, just deleted databases, or /// all databases. Possible values include: 'All', 'Live', 'Deleted' /// - public static IPage ListByResourceGroupDatabase(this ILongTermRetentionBackupsOperations operations, string resourceGroupName, string locationName, string longTermRetentionServerName, string longTermRetentionDatabaseName, bool? onlyLatestPerDatabase = default(bool?), LongTermRetentionDatabaseState? databaseState = default(LongTermRetentionDatabaseState?)) + public static IPage ListByResourceGroupDatabase(this ILongTermRetentionBackupsOperations operations, string resourceGroupName, string locationName, string longTermRetentionServerName, string longTermRetentionDatabaseName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string)) { return operations.ListByResourceGroupDatabaseAsync(resourceGroupName, locationName, longTermRetentionServerName, longTermRetentionDatabaseName, onlyLatestPerDatabase, databaseState).GetAwaiter().GetResult(); } @@ -198,7 +198,7 @@ public static void DeleteByResourceGroup(this ILongTermRetentionBackupsOperation /// /// The cancellation token. /// - public static async Task> ListByResourceGroupDatabaseAsync(this ILongTermRetentionBackupsOperations operations, string resourceGroupName, string locationName, string longTermRetentionServerName, string longTermRetentionDatabaseName, bool? onlyLatestPerDatabase = default(bool?), LongTermRetentionDatabaseState? databaseState = default(LongTermRetentionDatabaseState?), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListByResourceGroupDatabaseAsync(this ILongTermRetentionBackupsOperations operations, string resourceGroupName, string locationName, string longTermRetentionServerName, string longTermRetentionDatabaseName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByResourceGroupDatabaseWithHttpMessagesAsync(resourceGroupName, locationName, longTermRetentionServerName, longTermRetentionDatabaseName, onlyLatestPerDatabase, databaseState, null, cancellationToken).ConfigureAwait(false)) { @@ -226,7 +226,7 @@ public static void DeleteByResourceGroup(this ILongTermRetentionBackupsOperation /// Whether to query against just live databases, just deleted databases, or /// all databases. Possible values include: 'All', 'Live', 'Deleted' /// - public static IPage ListByResourceGroupLocation(this ILongTermRetentionBackupsOperations operations, string resourceGroupName, string locationName, bool? onlyLatestPerDatabase = default(bool?), LongTermRetentionDatabaseState? databaseState = default(LongTermRetentionDatabaseState?)) + public static IPage ListByResourceGroupLocation(this ILongTermRetentionBackupsOperations operations, string resourceGroupName, string locationName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string)) { return operations.ListByResourceGroupLocationAsync(resourceGroupName, locationName, onlyLatestPerDatabase, databaseState).GetAwaiter().GetResult(); } @@ -254,7 +254,7 @@ public static void DeleteByResourceGroup(this ILongTermRetentionBackupsOperation /// /// The cancellation token. /// - public static async Task> ListByResourceGroupLocationAsync(this ILongTermRetentionBackupsOperations operations, string resourceGroupName, string locationName, bool? onlyLatestPerDatabase = default(bool?), LongTermRetentionDatabaseState? databaseState = default(LongTermRetentionDatabaseState?), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListByResourceGroupLocationAsync(this ILongTermRetentionBackupsOperations operations, string resourceGroupName, string locationName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByResourceGroupLocationWithHttpMessagesAsync(resourceGroupName, locationName, onlyLatestPerDatabase, databaseState, null, cancellationToken).ConfigureAwait(false)) { @@ -285,7 +285,7 @@ public static void DeleteByResourceGroup(this ILongTermRetentionBackupsOperation /// Whether to query against just live databases, just deleted databases, or /// all databases. Possible values include: 'All', 'Live', 'Deleted' /// - public static IPage ListByResourceGroupServer(this ILongTermRetentionBackupsOperations operations, string resourceGroupName, string locationName, string longTermRetentionServerName, bool? onlyLatestPerDatabase = default(bool?), LongTermRetentionDatabaseState? databaseState = default(LongTermRetentionDatabaseState?)) + public static IPage ListByResourceGroupServer(this ILongTermRetentionBackupsOperations operations, string resourceGroupName, string locationName, string longTermRetentionServerName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string)) { return operations.ListByResourceGroupServerAsync(resourceGroupName, locationName, longTermRetentionServerName, onlyLatestPerDatabase, databaseState).GetAwaiter().GetResult(); } @@ -316,7 +316,7 @@ public static void DeleteByResourceGroup(this ILongTermRetentionBackupsOperation /// /// The cancellation token. /// - public static async Task> ListByResourceGroupServerAsync(this ILongTermRetentionBackupsOperations operations, string resourceGroupName, string locationName, string longTermRetentionServerName, bool? onlyLatestPerDatabase = default(bool?), LongTermRetentionDatabaseState? databaseState = default(LongTermRetentionDatabaseState?), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListByResourceGroupServerAsync(this ILongTermRetentionBackupsOperations operations, string resourceGroupName, string locationName, string longTermRetentionServerName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByResourceGroupServerWithHttpMessagesAsync(resourceGroupName, locationName, longTermRetentionServerName, onlyLatestPerDatabase, databaseState, null, cancellationToken).ConfigureAwait(false)) { @@ -447,7 +447,7 @@ public static void Delete(this ILongTermRetentionBackupsOperations operations, s /// Whether to query against just live databases, just deleted databases, or /// all databases. Possible values include: 'All', 'Live', 'Deleted' /// - public static IPage ListByDatabase(this ILongTermRetentionBackupsOperations operations, string locationName, string longTermRetentionServerName, string longTermRetentionDatabaseName, bool? onlyLatestPerDatabase = default(bool?), LongTermRetentionDatabaseState? databaseState = default(LongTermRetentionDatabaseState?)) + public static IPage ListByDatabase(this ILongTermRetentionBackupsOperations operations, string locationName, string longTermRetentionServerName, string longTermRetentionDatabaseName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string)) { return operations.ListByDatabaseAsync(locationName, longTermRetentionServerName, longTermRetentionDatabaseName, onlyLatestPerDatabase, databaseState).GetAwaiter().GetResult(); } @@ -477,7 +477,7 @@ public static void Delete(this ILongTermRetentionBackupsOperations operations, s /// /// The cancellation token. /// - public static async Task> ListByDatabaseAsync(this ILongTermRetentionBackupsOperations operations, string locationName, string longTermRetentionServerName, string longTermRetentionDatabaseName, bool? onlyLatestPerDatabase = default(bool?), LongTermRetentionDatabaseState? databaseState = default(LongTermRetentionDatabaseState?), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListByDatabaseAsync(this ILongTermRetentionBackupsOperations operations, string locationName, string longTermRetentionServerName, string longTermRetentionDatabaseName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByDatabaseWithHttpMessagesAsync(locationName, longTermRetentionServerName, longTermRetentionDatabaseName, onlyLatestPerDatabase, databaseState, null, cancellationToken).ConfigureAwait(false)) { @@ -501,7 +501,7 @@ public static void Delete(this ILongTermRetentionBackupsOperations operations, s /// Whether to query against just live databases, just deleted databases, or /// all databases. Possible values include: 'All', 'Live', 'Deleted' /// - public static IPage ListByLocation(this ILongTermRetentionBackupsOperations operations, string locationName, bool? onlyLatestPerDatabase = default(bool?), LongTermRetentionDatabaseState? databaseState = default(LongTermRetentionDatabaseState?)) + public static IPage ListByLocation(this ILongTermRetentionBackupsOperations operations, string locationName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string)) { return operations.ListByLocationAsync(locationName, onlyLatestPerDatabase, databaseState).GetAwaiter().GetResult(); } @@ -525,7 +525,7 @@ public static void Delete(this ILongTermRetentionBackupsOperations operations, s /// /// The cancellation token. /// - public static async Task> ListByLocationAsync(this ILongTermRetentionBackupsOperations operations, string locationName, bool? onlyLatestPerDatabase = default(bool?), LongTermRetentionDatabaseState? databaseState = default(LongTermRetentionDatabaseState?), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListByLocationAsync(this ILongTermRetentionBackupsOperations operations, string locationName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByLocationWithHttpMessagesAsync(locationName, onlyLatestPerDatabase, databaseState, null, cancellationToken).ConfigureAwait(false)) { @@ -552,7 +552,7 @@ public static void Delete(this ILongTermRetentionBackupsOperations operations, s /// Whether to query against just live databases, just deleted databases, or /// all databases. Possible values include: 'All', 'Live', 'Deleted' /// - public static IPage ListByServer(this ILongTermRetentionBackupsOperations operations, string locationName, string longTermRetentionServerName, bool? onlyLatestPerDatabase = default(bool?), LongTermRetentionDatabaseState? databaseState = default(LongTermRetentionDatabaseState?)) + public static IPage ListByServer(this ILongTermRetentionBackupsOperations operations, string locationName, string longTermRetentionServerName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string)) { return operations.ListByServerAsync(locationName, longTermRetentionServerName, onlyLatestPerDatabase, databaseState).GetAwaiter().GetResult(); } @@ -579,7 +579,7 @@ public static void Delete(this ILongTermRetentionBackupsOperations operations, s /// /// The cancellation token. /// - public static async Task> ListByServerAsync(this ILongTermRetentionBackupsOperations operations, string locationName, string longTermRetentionServerName, bool? onlyLatestPerDatabase = default(bool?), LongTermRetentionDatabaseState? databaseState = default(LongTermRetentionDatabaseState?), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListByServerAsync(this ILongTermRetentionBackupsOperations operations, string locationName, string longTermRetentionServerName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByServerWithHttpMessagesAsync(locationName, longTermRetentionServerName, onlyLatestPerDatabase, databaseState, null, cancellationToken).ConfigureAwait(false)) { diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/LongTermRetentionManagedInstanceBackupsOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/LongTermRetentionManagedInstanceBackupsOperations.cs index a43b49f3968c..67eb9ce02161 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/LongTermRetentionManagedInstanceBackupsOperations.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/LongTermRetentionManagedInstanceBackupsOperations.cs @@ -330,7 +330,7 @@ internal LongTermRetentionManagedInstanceBackupsOperations(SqlManagementClient c /// /// A response object containing the response body and response headers. /// - public async Task>> ListByDatabaseWithHttpMessagesAsync(string locationName, string managedInstanceName, string databaseName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState1? databaseState = default(DatabaseState1?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByDatabaseWithHttpMessagesAsync(string locationName, string managedInstanceName, string databaseName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (locationName == null) { @@ -379,7 +379,7 @@ internal LongTermRetentionManagedInstanceBackupsOperations(SqlManagementClient c } if (databaseState != null) { - _queryParameters.Add(string.Format("databaseState={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(databaseState, Client.SerializationSettings).Trim('"')))); + _queryParameters.Add(string.Format("databaseState={0}", System.Uri.EscapeDataString(databaseState))); } if (apiVersion != null) { @@ -547,7 +547,7 @@ internal LongTermRetentionManagedInstanceBackupsOperations(SqlManagementClient c /// /// A response object containing the response body and response headers. /// - public async Task>> ListByInstanceWithHttpMessagesAsync(string locationName, string managedInstanceName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState2? databaseState = default(DatabaseState2?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByInstanceWithHttpMessagesAsync(string locationName, string managedInstanceName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (locationName == null) { @@ -590,7 +590,7 @@ internal LongTermRetentionManagedInstanceBackupsOperations(SqlManagementClient c } if (databaseState != null) { - _queryParameters.Add(string.Format("databaseState={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(databaseState, Client.SerializationSettings).Trim('"')))); + _queryParameters.Add(string.Format("databaseState={0}", System.Uri.EscapeDataString(databaseState))); } if (apiVersion != null) { @@ -756,7 +756,7 @@ internal LongTermRetentionManagedInstanceBackupsOperations(SqlManagementClient c /// /// A response object containing the response body and response headers. /// - public async Task>> ListByLocationWithHttpMessagesAsync(string locationName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState3? databaseState = default(DatabaseState3?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByLocationWithHttpMessagesAsync(string locationName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (locationName == null) { @@ -793,7 +793,7 @@ internal LongTermRetentionManagedInstanceBackupsOperations(SqlManagementClient c } if (databaseState != null) { - _queryParameters.Add(string.Format("databaseState={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(databaseState, Client.SerializationSettings).Trim('"')))); + _queryParameters.Add(string.Format("databaseState={0}", System.Uri.EscapeDataString(databaseState))); } if (apiVersion != null) { @@ -1222,7 +1222,7 @@ internal LongTermRetentionManagedInstanceBackupsOperations(SqlManagementClient c /// /// A response object containing the response body and response headers. /// - public async Task>> ListByResourceGroupDatabaseWithHttpMessagesAsync(string resourceGroupName, string locationName, string managedInstanceName, string databaseName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState4? databaseState = default(DatabaseState4?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByResourceGroupDatabaseWithHttpMessagesAsync(string resourceGroupName, string locationName, string managedInstanceName, string databaseName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (resourceGroupName == null) { @@ -1277,7 +1277,7 @@ internal LongTermRetentionManagedInstanceBackupsOperations(SqlManagementClient c } if (databaseState != null) { - _queryParameters.Add(string.Format("databaseState={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(databaseState, Client.SerializationSettings).Trim('"')))); + _queryParameters.Add(string.Format("databaseState={0}", System.Uri.EscapeDataString(databaseState))); } if (apiVersion != null) { @@ -1449,7 +1449,7 @@ internal LongTermRetentionManagedInstanceBackupsOperations(SqlManagementClient c /// /// A response object containing the response body and response headers. /// - public async Task>> ListByResourceGroupInstanceWithHttpMessagesAsync(string resourceGroupName, string locationName, string managedInstanceName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState5? databaseState = default(DatabaseState5?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByResourceGroupInstanceWithHttpMessagesAsync(string resourceGroupName, string locationName, string managedInstanceName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (resourceGroupName == null) { @@ -1498,7 +1498,7 @@ internal LongTermRetentionManagedInstanceBackupsOperations(SqlManagementClient c } if (databaseState != null) { - _queryParameters.Add(string.Format("databaseState={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(databaseState, Client.SerializationSettings).Trim('"')))); + _queryParameters.Add(string.Format("databaseState={0}", System.Uri.EscapeDataString(databaseState))); } if (apiVersion != null) { @@ -1668,7 +1668,7 @@ internal LongTermRetentionManagedInstanceBackupsOperations(SqlManagementClient c /// /// A response object containing the response body and response headers. /// - public async Task>> ListByResourceGroupLocationWithHttpMessagesAsync(string resourceGroupName, string locationName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState6? databaseState = default(DatabaseState6?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByResourceGroupLocationWithHttpMessagesAsync(string resourceGroupName, string locationName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (resourceGroupName == null) { @@ -1711,7 +1711,7 @@ internal LongTermRetentionManagedInstanceBackupsOperations(SqlManagementClient c } if (databaseState != null) { - _queryParameters.Add(string.Format("databaseState={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(databaseState, Client.SerializationSettings).Trim('"')))); + _queryParameters.Add(string.Format("databaseState={0}", System.Uri.EscapeDataString(databaseState))); } if (apiVersion != null) { diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/LongTermRetentionManagedInstanceBackupsOperationsExtensions.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/LongTermRetentionManagedInstanceBackupsOperationsExtensions.cs index 53fb4295a4d8..ff1fd78f3bfb 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/LongTermRetentionManagedInstanceBackupsOperationsExtensions.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/LongTermRetentionManagedInstanceBackupsOperationsExtensions.cs @@ -144,7 +144,7 @@ public static void Delete(this ILongTermRetentionManagedInstanceBackupsOperation /// Whether to query against just live databases, just deleted databases, or /// all databases. Possible values include: 'All', 'Live', 'Deleted' /// - public static IPage ListByDatabase(this ILongTermRetentionManagedInstanceBackupsOperations operations, string locationName, string managedInstanceName, string databaseName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState1? databaseState = default(DatabaseState1?)) + public static IPage ListByDatabase(this ILongTermRetentionManagedInstanceBackupsOperations operations, string locationName, string managedInstanceName, string databaseName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string)) { return operations.ListByDatabaseAsync(locationName, managedInstanceName, databaseName, onlyLatestPerDatabase, databaseState).GetAwaiter().GetResult(); } @@ -174,7 +174,7 @@ public static void Delete(this ILongTermRetentionManagedInstanceBackupsOperation /// /// The cancellation token. /// - public static async Task> ListByDatabaseAsync(this ILongTermRetentionManagedInstanceBackupsOperations operations, string locationName, string managedInstanceName, string databaseName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState1? databaseState = default(DatabaseState1?), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListByDatabaseAsync(this ILongTermRetentionManagedInstanceBackupsOperations operations, string locationName, string managedInstanceName, string databaseName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByDatabaseWithHttpMessagesAsync(locationName, managedInstanceName, databaseName, onlyLatestPerDatabase, databaseState, null, cancellationToken).ConfigureAwait(false)) { @@ -201,7 +201,7 @@ public static void Delete(this ILongTermRetentionManagedInstanceBackupsOperation /// Whether to query against just live databases, just deleted databases, or /// all databases. Possible values include: 'All', 'Live', 'Deleted' /// - public static IPage ListByInstance(this ILongTermRetentionManagedInstanceBackupsOperations operations, string locationName, string managedInstanceName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState2? databaseState = default(DatabaseState2?)) + public static IPage ListByInstance(this ILongTermRetentionManagedInstanceBackupsOperations operations, string locationName, string managedInstanceName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string)) { return operations.ListByInstanceAsync(locationName, managedInstanceName, onlyLatestPerDatabase, databaseState).GetAwaiter().GetResult(); } @@ -228,7 +228,7 @@ public static void Delete(this ILongTermRetentionManagedInstanceBackupsOperation /// /// The cancellation token. /// - public static async Task> ListByInstanceAsync(this ILongTermRetentionManagedInstanceBackupsOperations operations, string locationName, string managedInstanceName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState2? databaseState = default(DatabaseState2?), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListByInstanceAsync(this ILongTermRetentionManagedInstanceBackupsOperations operations, string locationName, string managedInstanceName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByInstanceWithHttpMessagesAsync(locationName, managedInstanceName, onlyLatestPerDatabase, databaseState, null, cancellationToken).ConfigureAwait(false)) { @@ -253,7 +253,7 @@ public static void Delete(this ILongTermRetentionManagedInstanceBackupsOperation /// Whether to query against just live databases, just deleted databases, or /// all databases. Possible values include: 'All', 'Live', 'Deleted' /// - public static IPage ListByLocation(this ILongTermRetentionManagedInstanceBackupsOperations operations, string locationName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState3? databaseState = default(DatabaseState3?)) + public static IPage ListByLocation(this ILongTermRetentionManagedInstanceBackupsOperations operations, string locationName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string)) { return operations.ListByLocationAsync(locationName, onlyLatestPerDatabase, databaseState).GetAwaiter().GetResult(); } @@ -278,7 +278,7 @@ public static void Delete(this ILongTermRetentionManagedInstanceBackupsOperation /// /// The cancellation token. /// - public static async Task> ListByLocationAsync(this ILongTermRetentionManagedInstanceBackupsOperations operations, string locationName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState3? databaseState = default(DatabaseState3?), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListByLocationAsync(this ILongTermRetentionManagedInstanceBackupsOperations operations, string locationName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByLocationWithHttpMessagesAsync(locationName, onlyLatestPerDatabase, databaseState, null, cancellationToken).ConfigureAwait(false)) { @@ -429,7 +429,7 @@ public static void DeleteByResourceGroup(this ILongTermRetentionManagedInstanceB /// Whether to query against just live databases, just deleted databases, or /// all databases. Possible values include: 'All', 'Live', 'Deleted' /// - public static IPage ListByResourceGroupDatabase(this ILongTermRetentionManagedInstanceBackupsOperations operations, string resourceGroupName, string locationName, string managedInstanceName, string databaseName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState4? databaseState = default(DatabaseState4?)) + public static IPage ListByResourceGroupDatabase(this ILongTermRetentionManagedInstanceBackupsOperations operations, string resourceGroupName, string locationName, string managedInstanceName, string databaseName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string)) { return operations.ListByResourceGroupDatabaseAsync(resourceGroupName, locationName, managedInstanceName, databaseName, onlyLatestPerDatabase, databaseState).GetAwaiter().GetResult(); } @@ -463,7 +463,7 @@ public static void DeleteByResourceGroup(this ILongTermRetentionManagedInstanceB /// /// The cancellation token. /// - public static async Task> ListByResourceGroupDatabaseAsync(this ILongTermRetentionManagedInstanceBackupsOperations operations, string resourceGroupName, string locationName, string managedInstanceName, string databaseName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState4? databaseState = default(DatabaseState4?), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListByResourceGroupDatabaseAsync(this ILongTermRetentionManagedInstanceBackupsOperations operations, string resourceGroupName, string locationName, string managedInstanceName, string databaseName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByResourceGroupDatabaseWithHttpMessagesAsync(resourceGroupName, locationName, managedInstanceName, databaseName, onlyLatestPerDatabase, databaseState, null, cancellationToken).ConfigureAwait(false)) { @@ -494,7 +494,7 @@ public static void DeleteByResourceGroup(this ILongTermRetentionManagedInstanceB /// Whether to query against just live databases, just deleted databases, or /// all databases. Possible values include: 'All', 'Live', 'Deleted' /// - public static IPage ListByResourceGroupInstance(this ILongTermRetentionManagedInstanceBackupsOperations operations, string resourceGroupName, string locationName, string managedInstanceName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState5? databaseState = default(DatabaseState5?)) + public static IPage ListByResourceGroupInstance(this ILongTermRetentionManagedInstanceBackupsOperations operations, string resourceGroupName, string locationName, string managedInstanceName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string)) { return operations.ListByResourceGroupInstanceAsync(resourceGroupName, locationName, managedInstanceName, onlyLatestPerDatabase, databaseState).GetAwaiter().GetResult(); } @@ -525,7 +525,7 @@ public static void DeleteByResourceGroup(this ILongTermRetentionManagedInstanceB /// /// The cancellation token. /// - public static async Task> ListByResourceGroupInstanceAsync(this ILongTermRetentionManagedInstanceBackupsOperations operations, string resourceGroupName, string locationName, string managedInstanceName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState5? databaseState = default(DatabaseState5?), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListByResourceGroupInstanceAsync(this ILongTermRetentionManagedInstanceBackupsOperations operations, string resourceGroupName, string locationName, string managedInstanceName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByResourceGroupInstanceWithHttpMessagesAsync(resourceGroupName, locationName, managedInstanceName, onlyLatestPerDatabase, databaseState, null, cancellationToken).ConfigureAwait(false)) { @@ -554,7 +554,7 @@ public static void DeleteByResourceGroup(this ILongTermRetentionManagedInstanceB /// Whether to query against just live databases, just deleted databases, or /// all databases. Possible values include: 'All', 'Live', 'Deleted' /// - public static IPage ListByResourceGroupLocation(this ILongTermRetentionManagedInstanceBackupsOperations operations, string resourceGroupName, string locationName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState6? databaseState = default(DatabaseState6?)) + public static IPage ListByResourceGroupLocation(this ILongTermRetentionManagedInstanceBackupsOperations operations, string resourceGroupName, string locationName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string)) { return operations.ListByResourceGroupLocationAsync(resourceGroupName, locationName, onlyLatestPerDatabase, databaseState).GetAwaiter().GetResult(); } @@ -583,7 +583,7 @@ public static void DeleteByResourceGroup(this ILongTermRetentionManagedInstanceB /// /// The cancellation token. /// - public static async Task> ListByResourceGroupLocationAsync(this ILongTermRetentionManagedInstanceBackupsOperations operations, string resourceGroupName, string locationName, bool? onlyLatestPerDatabase = default(bool?), DatabaseState6? databaseState = default(DatabaseState6?), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListByResourceGroupLocationAsync(this ILongTermRetentionManagedInstanceBackupsOperations operations, string resourceGroupName, string locationName, bool? onlyLatestPerDatabase = default(bool?), string databaseState = default(string), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByResourceGroupLocationWithHttpMessagesAsync(resourceGroupName, locationName, onlyLatestPerDatabase, databaseState, null, cancellationToken).ConfigureAwait(false)) { diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedDatabaseRestoreDetailsOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedDatabaseRestoreDetailsOperations.cs index d71aeb23cbce..fef323df26d5 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedDatabaseRestoreDetailsOperations.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedDatabaseRestoreDetailsOperations.cs @@ -54,7 +54,8 @@ internal ManagedDatabaseRestoreDetailsOperations(SqlManagementClient client) /// Gets managed database restore details. /// /// - /// The name of the resource group. The name is case insensitive. + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. /// /// /// The name of the managed instance. @@ -89,21 +90,6 @@ internal ManagedDatabaseRestoreDetailsOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); } - if (resourceGroupName != null) - { - if (resourceGroupName.Length > 90) - { - throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); - } - if (resourceGroupName.Length < 1) - { - throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); - } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } - } if (managedInstanceName == null) { throw new ValidationException(ValidationRules.CannotBeNull, "managedInstanceName"); @@ -117,7 +103,7 @@ internal ManagedDatabaseRestoreDetailsOperations(SqlManagementClient client) throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } string restoreDetailsName = "Default"; - string apiVersion = "2020-02-02-preview"; + string apiVersion = "2019-06-01-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedDatabaseRestoreDetailsOperationsExtensions.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedDatabaseRestoreDetailsOperationsExtensions.cs index f2278f12424e..238d1ba21e7a 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedDatabaseRestoreDetailsOperationsExtensions.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedDatabaseRestoreDetailsOperationsExtensions.cs @@ -28,7 +28,8 @@ public static partial class ManagedDatabaseRestoreDetailsOperationsExtensions /// The operations group for this extension method. /// /// - /// The name of the resource group. The name is case insensitive. + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. /// /// /// The name of the managed instance. @@ -48,7 +49,8 @@ public static ManagedDatabaseRestoreDetailsResult Get(this IManagedDatabaseResto /// The operations group for this extension method. /// /// - /// The name of the resource group. The name is case insensitive. + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. /// /// /// The name of the managed instance. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedDatabasesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedDatabasesOperations.cs index 6497306dd8b8..ecc653d66f3f 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedDatabasesOperations.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedDatabasesOperations.cs @@ -54,7 +54,8 @@ internal ManagedDatabasesOperations(SqlManagementClient client) /// Gets a list of managed databases. /// /// - /// The name of the resource group. The name is case insensitive. + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. /// /// /// The name of the managed instance. @@ -86,21 +87,6 @@ internal ManagedDatabasesOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); } - if (resourceGroupName != null) - { - if (resourceGroupName.Length > 90) - { - throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); - } - if (resourceGroupName.Length < 1) - { - throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); - } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } - } if (managedInstanceName == null) { throw new ValidationException(ValidationRules.CannotBeNull, "managedInstanceName"); @@ -109,7 +95,7 @@ internal ManagedDatabasesOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2020-02-02-preview"; + string apiVersion = "2019-06-01-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -160,7 +146,7 @@ internal ManagedDatabasesOperations(SqlManagementClient client) if (customHeaders != null) { - foreach(var _header in customHeaders) + foreach (var _header in customHeaders) { if (_httpRequest.Headers.Contains(_header.Key)) { @@ -198,7 +184,7 @@ internal ManagedDatabasesOperations(SqlManagementClient client) try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { ex = new CloudException(_errorBody.Message); @@ -263,7 +249,8 @@ internal ManagedDatabasesOperations(SqlManagementClient client) /// Gets a managed database. /// /// - /// The name of the resource group. The name is case insensitive. + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. /// /// /// The name of the managed instance. @@ -298,21 +285,6 @@ internal ManagedDatabasesOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); } - if (resourceGroupName != null) - { - if (resourceGroupName.Length > 90) - { - throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); - } - if (resourceGroupName.Length < 1) - { - throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); - } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } - } if (managedInstanceName == null) { throw new ValidationException(ValidationRules.CannotBeNull, "managedInstanceName"); @@ -325,7 +297,7 @@ internal ManagedDatabasesOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2020-02-02-preview"; + string apiVersion = "2019-06-01-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -378,7 +350,7 @@ internal ManagedDatabasesOperations(SqlManagementClient client) if (customHeaders != null) { - foreach(var _header in customHeaders) + foreach (var _header in customHeaders) { if (_httpRequest.Headers.Contains(_header.Key)) { @@ -416,7 +388,7 @@ internal ManagedDatabasesOperations(SqlManagementClient client) try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { ex = new CloudException(_errorBody.Message); @@ -481,7 +453,8 @@ internal ManagedDatabasesOperations(SqlManagementClient client) /// Creates a new database or updates an existing database. /// /// - /// The name of the resource group. The name is case insensitive. + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. /// /// /// The name of the managed instance. @@ -509,7 +482,8 @@ internal ManagedDatabasesOperations(SqlManagementClient client) /// Deletes a managed database. /// /// - /// The name of the resource group. The name is case insensitive. + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. /// /// /// The name of the managed instance. @@ -534,7 +508,8 @@ internal ManagedDatabasesOperations(SqlManagementClient client) /// Updates an existing database. /// /// - /// The name of the resource group. The name is case insensitive. + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. /// /// /// The name of the managed instance. @@ -558,220 +533,12 @@ internal ManagedDatabasesOperations(SqlManagementClient client) return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); } - /// - /// Gets a list of inaccessible managed databases in a managed instance - /// - /// - /// The name of the resource group. The name is case insensitive. - /// - /// - /// The name of the managed instance. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task>> ListInaccessibleByInstanceWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (resourceGroupName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); - } - if (resourceGroupName != null) - { - if (resourceGroupName.Length > 90) - { - throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); - } - if (resourceGroupName.Length < 1) - { - throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); - } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } - } - if (managedInstanceName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "managedInstanceName"); - } - if (Client.SubscriptionId == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); - } - string apiVersion = "2020-02-02-preview"; - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); - tracingParameters.Add("managedInstanceName", managedInstanceName); - tracingParameters.Add("apiVersion", apiVersion); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListInaccessibleByInstance", tracingParameters); - } - // Construct URL - var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/inaccessibleManagedDatabases").ToString(); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); - _url = _url.Replace("{managedInstanceName}", System.Uri.EscapeDataString(managedInstanceName)); - _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); - List _queryParameters = new List(); - if (apiVersion != null) - { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); - } - if (_queryParameters.Count > 0) - { - _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // Set Headers - if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) - { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); - } - if (Client.AcceptLanguage != null) - { - if (_httpRequest.Headers.Contains("accept-language")) - { - _httpRequest.Headers.Remove("accept-language"); - } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); - } - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - if (_httpRequest.Headers.Contains(_header.Key)) - { - _httpRequest.Headers.Remove(_header.Key); - } - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Client.Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200) - { - var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - try - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); - if (_errorBody != null) - { - ex = new CloudException(_errorBody.Message); - ex.Body = _errorBody; - } - } - catch (JsonException) - { - // Ignore the exception - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = new AzureOperationResponse>(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - /// /// Completes the restore operation on a managed database. /// /// - /// The name of the resource group. The name is case insensitive. + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. /// /// /// The name of the managed instance. @@ -799,7 +566,8 @@ internal ManagedDatabasesOperations(SqlManagementClient client) /// Creates a new database or updates an existing database. /// /// - /// The name of the resource group. The name is case insensitive. + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. /// /// /// The name of the managed instance. @@ -837,21 +605,6 @@ internal ManagedDatabasesOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); } - if (resourceGroupName != null) - { - if (resourceGroupName.Length > 90) - { - throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); - } - if (resourceGroupName.Length < 1) - { - throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); - } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } - } if (managedInstanceName == null) { throw new ValidationException(ValidationRules.CannotBeNull, "managedInstanceName"); @@ -872,7 +625,7 @@ internal ManagedDatabasesOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2020-02-02-preview"; + string apiVersion = "2019-06-01-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -926,7 +679,7 @@ internal ManagedDatabasesOperations(SqlManagementClient client) if (customHeaders != null) { - foreach(var _header in customHeaders) + foreach (var _header in customHeaders) { if (_httpRequest.Headers.Contains(_header.Key)) { @@ -938,11 +691,11 @@ internal ManagedDatabasesOperations(SqlManagementClient client) // Serialize Request string _requestContent = null; - if(parameters != null) + if (parameters != null) { _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, Client.SerializationSettings); _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + _httpRequest.Content.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); } // Set Credentials if (Client.Credentials != null) @@ -970,7 +723,7 @@ internal ManagedDatabasesOperations(SqlManagementClient client) try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { ex = new CloudException(_errorBody.Message); @@ -1053,7 +806,8 @@ internal ManagedDatabasesOperations(SqlManagementClient client) /// Deletes a managed database. /// /// - /// The name of the resource group. The name is case insensitive. + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. /// /// /// The name of the managed instance. @@ -1085,21 +839,6 @@ internal ManagedDatabasesOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); } - if (resourceGroupName != null) - { - if (resourceGroupName.Length > 90) - { - throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); - } - if (resourceGroupName.Length < 1) - { - throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); - } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } - } if (managedInstanceName == null) { throw new ValidationException(ValidationRules.CannotBeNull, "managedInstanceName"); @@ -1112,7 +851,7 @@ internal ManagedDatabasesOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2020-02-02-preview"; + string apiVersion = "2019-06-01-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1165,7 +904,7 @@ internal ManagedDatabasesOperations(SqlManagementClient client) if (customHeaders != null) { - foreach(var _header in customHeaders) + foreach (var _header in customHeaders) { if (_httpRequest.Headers.Contains(_header.Key)) { @@ -1203,7 +942,7 @@ internal ManagedDatabasesOperations(SqlManagementClient client) try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { ex = new CloudException(_errorBody.Message); @@ -1250,7 +989,8 @@ internal ManagedDatabasesOperations(SqlManagementClient client) /// Updates an existing database. /// /// - /// The name of the resource group. The name is case insensitive. + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. /// /// /// The name of the managed instance. @@ -1288,21 +1028,6 @@ internal ManagedDatabasesOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); } - if (resourceGroupName != null) - { - if (resourceGroupName.Length > 90) - { - throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); - } - if (resourceGroupName.Length < 1) - { - throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); - } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } - } if (managedInstanceName == null) { throw new ValidationException(ValidationRules.CannotBeNull, "managedInstanceName"); @@ -1319,7 +1044,7 @@ internal ManagedDatabasesOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2020-02-02-preview"; + string apiVersion = "2019-06-01-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1373,7 +1098,7 @@ internal ManagedDatabasesOperations(SqlManagementClient client) if (customHeaders != null) { - foreach(var _header in customHeaders) + foreach (var _header in customHeaders) { if (_httpRequest.Headers.Contains(_header.Key)) { @@ -1385,11 +1110,11 @@ internal ManagedDatabasesOperations(SqlManagementClient client) // Serialize Request string _requestContent = null; - if(parameters != null) + if (parameters != null) { _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, Client.SerializationSettings); _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + _httpRequest.Content.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); } // Set Credentials if (Client.Credentials != null) @@ -1417,7 +1142,7 @@ internal ManagedDatabasesOperations(SqlManagementClient client) try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { ex = new CloudException(_errorBody.Message); @@ -1482,7 +1207,8 @@ internal ManagedDatabasesOperations(SqlManagementClient client) /// Completes the restore operation on a managed database. /// /// - /// The name of the resource group. The name is case insensitive. + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. /// /// /// The name of the managed instance. @@ -1517,21 +1243,6 @@ internal ManagedDatabasesOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); } - if (resourceGroupName != null) - { - if (resourceGroupName.Length > 90) - { - throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); - } - if (resourceGroupName.Length < 1) - { - throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); - } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } - } if (managedInstanceName == null) { throw new ValidationException(ValidationRules.CannotBeNull, "managedInstanceName"); @@ -1552,7 +1263,7 @@ internal ManagedDatabasesOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2020-02-02-preview"; + string apiVersion = "2019-06-01-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1606,7 +1317,7 @@ internal ManagedDatabasesOperations(SqlManagementClient client) if (customHeaders != null) { - foreach(var _header in customHeaders) + foreach (var _header in customHeaders) { if (_httpRequest.Headers.Contains(_header.Key)) { @@ -1618,11 +1329,11 @@ internal ManagedDatabasesOperations(SqlManagementClient client) // Serialize Request string _requestContent = null; - if(parameters != null) + if (parameters != null) { _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, Client.SerializationSettings); _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + _httpRequest.Content.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); } // Set Credentials if (Client.Credentials != null) @@ -1650,7 +1361,7 @@ internal ManagedDatabasesOperations(SqlManagementClient client) try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { ex = new CloudException(_errorBody.Message); @@ -1767,180 +1478,7 @@ internal ManagedDatabasesOperations(SqlManagementClient client) if (customHeaders != null) { - foreach(var _header in customHeaders) - { - if (_httpRequest.Headers.Contains(_header.Key)) - { - _httpRequest.Headers.Remove(_header.Key); - } - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Client.Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200) - { - var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - try - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); - if (_errorBody != null) - { - ex = new CloudException(_errorBody.Message); - ex.Body = _errorBody; - } - } - catch (JsonException) - { - // Ignore the exception - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = new AzureOperationResponse>(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// Gets a list of inaccessible managed databases in a managed instance - /// - /// - /// The NextLink from the previous successful call to List operation. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task>> ListInaccessibleByInstanceNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (nextPageLink == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("nextPageLink", nextPageLink); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListInaccessibleByInstanceNext", tracingParameters); - } - // Construct URL - string _url = "{nextLink}"; - _url = _url.Replace("{nextLink}", nextPageLink); - List _queryParameters = new List(); - if (_queryParameters.Count > 0) - { - _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // Set Headers - if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) - { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); - } - if (Client.AcceptLanguage != null) - { - if (_httpRequest.Headers.Contains("accept-language")) - { - _httpRequest.Headers.Remove("accept-language"); - } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); - } - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) + foreach (var _header in customHeaders) { if (_httpRequest.Headers.Contains(_header.Key)) { @@ -1978,7 +1516,7 @@ internal ManagedDatabasesOperations(SqlManagementClient client) try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { ex = new CloudException(_errorBody.Message); @@ -2040,4 +1578,4 @@ internal ManagedDatabasesOperations(SqlManagementClient client) } } -} +} \ No newline at end of file diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedDatabasesOperationsExtensions.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedDatabasesOperationsExtensions.cs index 5dbeea1e0f01..a4e4e4af9ac8 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedDatabasesOperationsExtensions.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedDatabasesOperationsExtensions.cs @@ -28,7 +28,8 @@ public static partial class ManagedDatabasesOperationsExtensions /// The operations group for this extension method. /// /// - /// The name of the resource group. The name is case insensitive. + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. /// /// /// The name of the managed instance. @@ -45,7 +46,8 @@ public static IPage ListByInstance(this IManagedDatabasesOperat /// The operations group for this extension method. /// /// - /// The name of the resource group. The name is case insensitive. + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. /// /// /// The name of the managed instance. @@ -68,7 +70,8 @@ public static IPage ListByInstance(this IManagedDatabasesOperat /// The operations group for this extension method. /// /// - /// The name of the resource group. The name is case insensitive. + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. /// /// /// The name of the managed instance. @@ -88,7 +91,8 @@ public static ManagedDatabase Get(this IManagedDatabasesOperations operations, s /// The operations group for this extension method. /// /// - /// The name of the resource group. The name is case insensitive. + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. /// /// /// The name of the managed instance. @@ -114,7 +118,8 @@ public static ManagedDatabase Get(this IManagedDatabasesOperations operations, s /// The operations group for this extension method. /// /// - /// The name of the resource group. The name is case insensitive. + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. /// /// /// The name of the managed instance. @@ -137,7 +142,8 @@ public static ManagedDatabase CreateOrUpdate(this IManagedDatabasesOperations op /// The operations group for this extension method. /// /// - /// The name of the resource group. The name is case insensitive. + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. /// /// /// The name of the managed instance. @@ -166,7 +172,8 @@ public static ManagedDatabase CreateOrUpdate(this IManagedDatabasesOperations op /// The operations group for this extension method. /// /// - /// The name of the resource group. The name is case insensitive. + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. /// /// /// The name of the managed instance. @@ -186,7 +193,8 @@ public static void Delete(this IManagedDatabasesOperations operations, string re /// The operations group for this extension method. /// /// - /// The name of the resource group. The name is case insensitive. + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. /// /// /// The name of the managed instance. @@ -209,7 +217,8 @@ public static void Delete(this IManagedDatabasesOperations operations, string re /// The operations group for this extension method. /// /// - /// The name of the resource group. The name is case insensitive. + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. /// /// /// The name of the managed instance. @@ -232,7 +241,8 @@ public static ManagedDatabase Update(this IManagedDatabasesOperations operations /// The operations group for this extension method. /// /// - /// The name of the resource group. The name is case insensitive. + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. /// /// /// The name of the managed instance. @@ -254,46 +264,6 @@ public static ManagedDatabase Update(this IManagedDatabasesOperations operations } } - /// - /// Gets a list of inaccessible managed databases in a managed instance - /// - /// - /// The operations group for this extension method. - /// - /// - /// The name of the resource group. The name is case insensitive. - /// - /// - /// The name of the managed instance. - /// - public static IPage ListInaccessibleByInstance(this IManagedDatabasesOperations operations, string resourceGroupName, string managedInstanceName) - { - return operations.ListInaccessibleByInstanceAsync(resourceGroupName, managedInstanceName).GetAwaiter().GetResult(); - } - - /// - /// Gets a list of inaccessible managed databases in a managed instance - /// - /// - /// The operations group for this extension method. - /// - /// - /// The name of the resource group. The name is case insensitive. - /// - /// - /// The name of the managed instance. - /// - /// - /// The cancellation token. - /// - public static async Task> ListInaccessibleByInstanceAsync(this IManagedDatabasesOperations operations, string resourceGroupName, string managedInstanceName, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListInaccessibleByInstanceWithHttpMessagesAsync(resourceGroupName, managedInstanceName, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - /// /// Completes the restore operation on a managed database. /// @@ -301,7 +271,8 @@ public static IPage ListInaccessibleByInstance(this IManagedDat /// The operations group for this extension method. /// /// - /// The name of the resource group. The name is case insensitive. + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. /// /// /// The name of the managed instance. @@ -324,7 +295,8 @@ public static void CompleteRestore(this IManagedDatabasesOperations operations, /// The operations group for this extension method. /// /// - /// The name of the resource group. The name is case insensitive. + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. /// /// /// The name of the managed instance. @@ -350,7 +322,8 @@ public static void CompleteRestore(this IManagedDatabasesOperations operations, /// The operations group for this extension method. /// /// - /// The name of the resource group. The name is case insensitive. + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. /// /// /// The name of the managed instance. @@ -373,7 +346,8 @@ public static ManagedDatabase BeginCreateOrUpdate(this IManagedDatabasesOperatio /// The operations group for this extension method. /// /// - /// The name of the resource group. The name is case insensitive. + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. /// /// /// The name of the managed instance. @@ -402,7 +376,8 @@ public static ManagedDatabase BeginCreateOrUpdate(this IManagedDatabasesOperatio /// The operations group for this extension method. /// /// - /// The name of the resource group. The name is case insensitive. + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. /// /// /// The name of the managed instance. @@ -422,7 +397,8 @@ public static void BeginDelete(this IManagedDatabasesOperations operations, stri /// The operations group for this extension method. /// /// - /// The name of the resource group. The name is case insensitive. + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. /// /// /// The name of the managed instance. @@ -445,7 +421,8 @@ public static void BeginDelete(this IManagedDatabasesOperations operations, stri /// The operations group for this extension method. /// /// - /// The name of the resource group. The name is case insensitive. + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. /// /// /// The name of the managed instance. @@ -468,7 +445,8 @@ public static ManagedDatabase BeginUpdate(this IManagedDatabasesOperations opera /// The operations group for this extension method. /// /// - /// The name of the resource group. The name is case insensitive. + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. /// /// /// The name of the managed instance. @@ -497,7 +475,8 @@ public static ManagedDatabase BeginUpdate(this IManagedDatabasesOperations opera /// The operations group for this extension method. /// /// - /// The name of the resource group. The name is case insensitive. + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. /// /// /// The name of the managed instance. @@ -520,7 +499,8 @@ public static void BeginCompleteRestore(this IManagedDatabasesOperations operati /// The operations group for this extension method. /// /// - /// The name of the resource group. The name is case insensitive. + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. /// /// /// The name of the managed instance. @@ -573,39 +553,5 @@ public static IPage ListByInstanceNext(this IManagedDatabasesOp } } - /// - /// Gets a list of inaccessible managed databases in a managed instance - /// - /// - /// The operations group for this extension method. - /// - /// - /// The NextLink from the previous successful call to List operation. - /// - public static IPage ListInaccessibleByInstanceNext(this IManagedDatabasesOperations operations, string nextPageLink) - { - return operations.ListInaccessibleByInstanceNextAsync(nextPageLink).GetAwaiter().GetResult(); - } - - /// - /// Gets a list of inaccessible managed databases in a managed instance - /// - /// - /// The operations group for this extension method. - /// - /// - /// The NextLink from the previous successful call to List operation. - /// - /// - /// The cancellation token. - /// - public static async Task> ListInaccessibleByInstanceNextAsync(this IManagedDatabasesOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListInaccessibleByInstanceNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedInstancesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedInstancesOperations.cs index 9dad29e0afce..c29329ed913d 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedInstancesOperations.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedInstancesOperations.cs @@ -51,38 +51,15 @@ internal ManagedInstancesOperations(SqlManagementClient client) public SqlManagementClient Client { get; private set; } /// - /// Failovers a managed instance. - /// - /// - /// The name of the resource group. The name is case insensitive. - /// - /// - /// The name of the managed instance. - /// - /// - /// The type of replica to be failed over. Possible values include: 'Primary', - /// 'ReadableSecondary' - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - public async Task FailoverWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, ReplicaType? replicaType = default(ReplicaType?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Send request - AzureOperationResponse _response = await BeginFailoverWithHttpMessagesAsync(resourceGroupName, managedInstanceName, replicaType, customHeaders, cancellationToken).ConfigureAwait(false); - return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); - } - - /// - /// Gets a list of managed instances in a resource group. + /// Gets a list of all managed instances in an instance pool. /// /// /// The name of the resource group that contains the resource. You can obtain /// this value from the Azure Resource Manager API or the portal. /// + /// + /// The instance pool name. + /// /// /// Headers that will be added to request. /// @@ -104,12 +81,16 @@ internal ManagedInstancesOperations(SqlManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListByResourceGroupWithHttpMessagesAsync(string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByInstancePoolWithHttpMessagesAsync(string resourceGroupName, string instancePoolName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (resourceGroupName == null) { throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); } + if (instancePoolName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "instancePoolName"); + } if (Client.SubscriptionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); @@ -123,14 +104,16 @@ internal ManagedInstancesOperations(SqlManagementClient client) _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("instancePoolName", instancePoolName); tracingParameters.Add("apiVersion", apiVersion); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListByResourceGroup", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "ListByInstancePool", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/instancePools/{instancePoolName}/managedInstances").ToString(); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{instancePoolName}", System.Uri.EscapeDataString(instancePoolName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); List _queryParameters = new List(); if (apiVersion != null) @@ -263,15 +246,12 @@ internal ManagedInstancesOperations(SqlManagementClient client) } /// - /// Gets a managed instance. + /// Gets a list of managed instances in a resource group. /// /// /// The name of the resource group that contains the resource. You can obtain /// this value from the Azure Resource Manager API or the portal. /// - /// - /// The name of the managed instance. - /// /// /// Headers that will be added to request. /// @@ -293,16 +273,12 @@ internal ManagedInstancesOperations(SqlManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByResourceGroupWithHttpMessagesAsync(string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (resourceGroupName == null) { throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); } - if (managedInstanceName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "managedInstanceName"); - } if (Client.SubscriptionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); @@ -316,16 +292,14 @@ internal ManagedInstancesOperations(SqlManagementClient client) _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("resourceGroupName", resourceGroupName); - tracingParameters.Add("managedInstanceName", managedInstanceName); tracingParameters.Add("apiVersion", apiVersion); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "ListByResourceGroup", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances").ToString(); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); - _url = _url.Replace("{managedInstanceName}", System.Uri.EscapeDataString(managedInstanceName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); List _queryParameters = new List(); if (apiVersion != null) @@ -425,7 +399,7 @@ internal ManagedInstancesOperations(SqlManagementClient client) throw ex; } // Create Result - var _result = new AzureOperationResponse(); + var _result = new AzureOperationResponse>(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) @@ -438,7 +412,7 @@ internal ManagedInstancesOperations(SqlManagementClient client) _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); } catch (JsonException ex) { @@ -458,56 +432,7 @@ internal ManagedInstancesOperations(SqlManagementClient client) } /// - /// Creates or updates a managed instance. - /// - /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. - /// - /// - /// The name of the managed instance. - /// - /// - /// The requested managed instance resource state. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - public async Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, ManagedInstance parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Send Request - AzureOperationResponse _response = await BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, managedInstanceName, parameters, customHeaders, cancellationToken).ConfigureAwait(false); - return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); - } - - /// - /// Deletes a managed instance. - /// - /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. - /// - /// - /// The name of the managed instance. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - public async Task DeleteWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Send request - AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(resourceGroupName, managedInstanceName, customHeaders, cancellationToken).ConfigureAwait(false); - return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); - } - - /// - /// Updates a managed instance. + /// Gets a managed instance. /// /// /// The name of the resource group that contains the resource. You can obtain @@ -516,32 +441,6 @@ internal ManagedInstancesOperations(SqlManagementClient client) /// /// The name of the managed instance. /// - /// - /// The requested managed instance resource state. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - public async Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, ManagedInstanceUpdate parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Send Request - AzureOperationResponse _response = await BeginUpdateWithHttpMessagesAsync(resourceGroupName, managedInstanceName, parameters, customHeaders, cancellationToken).ConfigureAwait(false); - return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); - } - - /// - /// Gets a list of all managed instances in an instance pool. - /// - /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. - /// - /// - /// The instance pool name. - /// /// /// Headers that will be added to request. /// @@ -563,15 +462,15 @@ internal ManagedInstancesOperations(SqlManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListByInstancePoolWithHttpMessagesAsync(string resourceGroupName, string instancePoolName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (resourceGroupName == null) { throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); } - if (instancePoolName == null) + if (managedInstanceName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "instancePoolName"); + throw new ValidationException(ValidationRules.CannotBeNull, "managedInstanceName"); } if (Client.SubscriptionId == null) { @@ -586,16 +485,16 @@ internal ManagedInstancesOperations(SqlManagementClient client) _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("resourceGroupName", resourceGroupName); - tracingParameters.Add("instancePoolName", instancePoolName); + tracingParameters.Add("managedInstanceName", managedInstanceName); tracingParameters.Add("apiVersion", apiVersion); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListByInstancePool", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/instancePools/{instancePoolName}/managedInstances").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}").ToString(); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); - _url = _url.Replace("{instancePoolName}", System.Uri.EscapeDataString(instancePoolName)); + _url = _url.Replace("{managedInstanceName}", System.Uri.EscapeDataString(managedInstanceName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); List _queryParameters = new List(); if (apiVersion != null) @@ -695,7 +594,7 @@ internal ManagedInstancesOperations(SqlManagementClient client) throw ex; } // Create Result - var _result = new AzureOperationResponse>(); + var _result = new AzureOperationResponse(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) @@ -708,7 +607,7 @@ internal ManagedInstancesOperations(SqlManagementClient client) _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); } catch (JsonException ex) { @@ -728,195 +627,84 @@ internal ManagedInstancesOperations(SqlManagementClient client) } /// - /// Gets a list of all managed instances in the subscription. + /// Creates or updates a managed instance. /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the managed instance. + /// + /// + /// The requested managed instance resource state. + /// /// - /// Headers that will be added to request. + /// The headers that will be added to request. /// /// /// The cancellation token. /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task>> ListWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, ManagedInstance parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.SubscriptionId == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); - } - string apiVersion = "2020-02-02-preview"; - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("apiVersion", apiVersion); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters); - } - // Construct URL - var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.Sql/managedInstances").ToString(); - _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); - List _queryParameters = new List(); - if (apiVersion != null) - { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); - } - if (_queryParameters.Count > 0) - { - _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // Set Headers - if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) - { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); - } - if (Client.AcceptLanguage != null) - { - if (_httpRequest.Headers.Contains("accept-language")) - { - _httpRequest.Headers.Remove("accept-language"); - } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); - } - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - if (_httpRequest.Headers.Contains(_header.Key)) - { - _httpRequest.Headers.Remove(_header.Key); - } - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Client.Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200) - { - var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - try - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); - if (_errorBody != null) - { - ex = new CloudException(_errorBody.Message); - ex.Body = _errorBody; - } - } - catch (JsonException) - { - // Ignore the exception - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = new AzureOperationResponse>(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; + AzureOperationResponse _response = await BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, managedInstanceName, parameters, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); } /// - /// Failovers a managed instance. + /// Deletes a managed instance. /// /// - /// The name of the resource group. The name is case insensitive. + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. /// /// /// The name of the managed instance. /// - /// - /// The type of replica to be failed over. Possible values include: 'Primary', - /// 'ReadableSecondary' + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task DeleteWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(resourceGroupName, managedInstanceName, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Updates a managed instance. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the managed instance. + /// + /// + /// The requested managed instance resource state. /// /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, ManagedInstanceUpdate parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send Request + AzureOperationResponse _response = await BeginUpdateWithHttpMessagesAsync(resourceGroupName, managedInstanceName, parameters, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Gets a list of all managed instances in the subscription. + /// + /// /// Headers that will be added to request. /// /// @@ -925,6 +713,9 @@ internal ManagedInstancesOperations(SqlManagementClient client) /// /// Thrown when the operation returned an invalid status code /// + /// + /// Thrown when unable to deserialize the response + /// /// /// Thrown when a required parameter is null /// @@ -934,36 +725,13 @@ internal ManagedInstancesOperations(SqlManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task BeginFailoverWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, ReplicaType? replicaType = default(ReplicaType?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (resourceGroupName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); - } - if (resourceGroupName != null) - { - if (resourceGroupName.Length > 90) - { - throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); - } - if (resourceGroupName.Length < 1) - { - throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); - } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } - } if (Client.SubscriptionId == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); - } - if (managedInstanceName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "managedInstanceName"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01-preview"; + string apiVersion = "2020-02-02-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -971,28 +739,19 @@ internal ManagedInstancesOperations(SqlManagementClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("apiVersion", apiVersion); - tracingParameters.Add("managedInstanceName", managedInstanceName); - tracingParameters.Add("replicaType", replicaType); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "BeginFailover", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/failover").ToString(); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.Sql/managedInstances").ToString(); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); - _url = _url.Replace("{managedInstanceName}", System.Uri.EscapeDataString(managedInstanceName)); List _queryParameters = new List(); if (apiVersion != null) { _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); } - if (replicaType != null) - { - _queryParameters.Add(string.Format("replicaType={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(replicaType, Client.SerializationSettings).Trim('"')))); - } if (_queryParameters.Count > 0) { _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); @@ -1000,7 +759,7 @@ internal ManagedInstancesOperations(SqlManagementClient client) // Create HTTP transport objects var _httpRequest = new HttpRequestMessage(); HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.Method = new HttpMethod("GET"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) @@ -1051,7 +810,7 @@ internal ManagedInstancesOperations(SqlManagementClient client) HttpStatusCode _statusCode = _httpResponse.StatusCode; cancellationToken.ThrowIfCancellationRequested(); string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 202) + if ((int)_statusCode != 200) { var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try @@ -1086,13 +845,31 @@ internal ManagedInstancesOperations(SqlManagementClient client) throw ex; } // Create Result - var _result = new AzureOperationResponse(); + var _result = new AzureOperationResponse>(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) { _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } if (_shouldTrace) { ServiceClientTracing.Exit(_invocationId, _result); @@ -1100,6 +877,32 @@ internal ManagedInstancesOperations(SqlManagementClient client) return _result; } + /// + /// Failovers a managed instance. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the managed instance. + /// + /// + /// The type of replica to be failed over. Possible values include: 'Primary', + /// 'ReadableSecondary' + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task FailoverWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, string replicaType = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginFailoverWithHttpMessagesAsync(resourceGroupName, managedInstanceName, replicaType, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + /// /// Creates or updates a managed instance. /// @@ -1715,7 +1518,190 @@ internal ManagedInstancesOperations(SqlManagementClient client) } /// - /// Gets a list of managed instances in a resource group. + /// Failovers a managed instance. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the managed instance to failover. + /// + /// + /// The type of replica to be failed over. Possible values include: 'Primary', + /// 'ReadableSecondary' + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task BeginFailoverWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, string replicaType = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (managedInstanceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "managedInstanceName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + string apiVersion = "2019-06-01-preview"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("managedInstanceName", managedInstanceName); + tracingParameters.Add("replicaType", replicaType); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginFailover", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/failover").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{managedInstanceName}", System.Uri.EscapeDataString(managedInstanceName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (replicaType != null) + { + _queryParameters.Add(string.Format("replicaType={0}", System.Uri.EscapeDataString(replicaType))); + } + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 202) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Gets a list of all managed instances in an instance pool. /// /// /// The NextLink from the previous successful call to List operation. @@ -1741,7 +1727,7 @@ internal ManagedInstancesOperations(SqlManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListByResourceGroupNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByInstancePoolNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (nextPageLink == null) { @@ -1756,7 +1742,7 @@ internal ManagedInstancesOperations(SqlManagementClient client) Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("nextPageLink", nextPageLink); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListByResourceGroupNext", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "ListByInstancePoolNext", tracingParameters); } // Construct URL string _url = "{nextLink}"; @@ -1888,7 +1874,7 @@ internal ManagedInstancesOperations(SqlManagementClient client) } /// - /// Gets a list of all managed instances in an instance pool. + /// Gets a list of managed instances in a resource group. /// /// /// The NextLink from the previous successful call to List operation. @@ -1914,7 +1900,7 @@ internal ManagedInstancesOperations(SqlManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListByInstancePoolNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByResourceGroupNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (nextPageLink == null) { @@ -1929,7 +1915,7 @@ internal ManagedInstancesOperations(SqlManagementClient client) Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("nextPageLink", nextPageLink); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListByInstancePoolNext", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "ListByResourceGroupNext", tracingParameters); } // Construct URL string _url = "{nextLink}"; diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedInstancesOperationsExtensions.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedInstancesOperationsExtensions.cs index 7e596b5ca65f..ab0f853584b4 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedInstancesOperationsExtensions.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedInstancesOperationsExtensions.cs @@ -22,48 +22,45 @@ namespace Microsoft.Azure.Management.Sql public static partial class ManagedInstancesOperationsExtensions { /// - /// Failovers a managed instance. + /// Gets a list of all managed instances in an instance pool. /// /// /// The operations group for this extension method. /// /// - /// The name of the resource group. The name is case insensitive. - /// - /// - /// The name of the managed instance. + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. /// - /// - /// The type of replica to be failed over. Possible values include: 'Primary', - /// 'ReadableSecondary' + /// + /// The instance pool name. /// - public static void Failover(this IManagedInstancesOperations operations, string resourceGroupName, string managedInstanceName, ReplicaType? replicaType = default(ReplicaType?)) + public static IPage ListByInstancePool(this IManagedInstancesOperations operations, string resourceGroupName, string instancePoolName) { - operations.FailoverAsync(resourceGroupName, managedInstanceName, replicaType).GetAwaiter().GetResult(); + return operations.ListByInstancePoolAsync(resourceGroupName, instancePoolName).GetAwaiter().GetResult(); } /// - /// Failovers a managed instance. + /// Gets a list of all managed instances in an instance pool. /// /// /// The operations group for this extension method. /// /// - /// The name of the resource group. The name is case insensitive. - /// - /// - /// The name of the managed instance. + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. /// - /// - /// The type of replica to be failed over. Possible values include: 'Primary', - /// 'ReadableSecondary' + /// + /// The instance pool name. /// /// /// The cancellation token. /// - public static async Task FailoverAsync(this IManagedInstancesOperations operations, string resourceGroupName, string managedInstanceName, ReplicaType? replicaType = default(ReplicaType?), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListByInstancePoolAsync(this IManagedInstancesOperations operations, string resourceGroupName, string instancePoolName, CancellationToken cancellationToken = default(CancellationToken)) { - (await operations.FailoverWithHttpMessagesAsync(resourceGroupName, managedInstanceName, replicaType, null, cancellationToken).ConfigureAwait(false)).Dispose(); + using (var _result = await operations.ListByInstancePoolWithHttpMessagesAsync(resourceGroupName, instancePoolName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } } /// @@ -279,48 +276,6 @@ public static ManagedInstance Update(this IManagedInstancesOperations operations } } - /// - /// Gets a list of all managed instances in an instance pool. - /// - /// - /// The operations group for this extension method. - /// - /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. - /// - /// - /// The instance pool name. - /// - public static IPage ListByInstancePool(this IManagedInstancesOperations operations, string resourceGroupName, string instancePoolName) - { - return operations.ListByInstancePoolAsync(resourceGroupName, instancePoolName).GetAwaiter().GetResult(); - } - - /// - /// Gets a list of all managed instances in an instance pool. - /// - /// - /// The operations group for this extension method. - /// - /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. - /// - /// - /// The instance pool name. - /// - /// - /// The cancellation token. - /// - public static async Task> ListByInstancePoolAsync(this IManagedInstancesOperations operations, string resourceGroupName, string instancePoolName, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListByInstancePoolWithHttpMessagesAsync(resourceGroupName, instancePoolName, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - /// /// Gets a list of all managed instances in the subscription. /// @@ -365,9 +320,9 @@ public static IPage List(this IManagedInstancesOperations opera /// The type of replica to be failed over. Possible values include: 'Primary', /// 'ReadableSecondary' /// - public static void BeginFailover(this IManagedInstancesOperations operations, string resourceGroupName, string managedInstanceName, ReplicaType? replicaType = default(ReplicaType?)) + public static void Failover(this IManagedInstancesOperations operations, string resourceGroupName, string managedInstanceName, string replicaType = default(string)) { - operations.BeginFailoverAsync(resourceGroupName, managedInstanceName, replicaType).GetAwaiter().GetResult(); + operations.FailoverAsync(resourceGroupName, managedInstanceName, replicaType).GetAwaiter().GetResult(); } /// @@ -389,9 +344,9 @@ public static IPage List(this IManagedInstancesOperations opera /// /// The cancellation token. /// - public static async Task BeginFailoverAsync(this IManagedInstancesOperations operations, string resourceGroupName, string managedInstanceName, ReplicaType? replicaType = default(ReplicaType?), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task FailoverAsync(this IManagedInstancesOperations operations, string resourceGroupName, string managedInstanceName, string replicaType = default(string), CancellationToken cancellationToken = default(CancellationToken)) { - (await operations.BeginFailoverWithHttpMessagesAsync(resourceGroupName, managedInstanceName, replicaType, null, cancellationToken).ConfigureAwait(false)).Dispose(); + (await operations.FailoverWithHttpMessagesAsync(resourceGroupName, managedInstanceName, replicaType, null, cancellationToken).ConfigureAwait(false)).Dispose(); } /// @@ -530,7 +485,52 @@ public static ManagedInstance BeginUpdate(this IManagedInstancesOperations opera } /// - /// Gets a list of managed instances in a resource group. + /// Failovers a managed instance. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the managed instance. + /// + /// + /// The type of replica to be failed over. Possible values include: 'Primary', + /// 'ReadableSecondary' + /// + public static void BeginFailover(this IManagedInstancesOperations operations, string resourceGroupName, string managedInstanceName, string replicaType = default(string)) + { + operations.BeginFailoverAsync(resourceGroupName, managedInstanceName, replicaType).GetAwaiter().GetResult(); + } + + /// + /// Failovers a managed instance. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the managed instance. + /// + /// + /// The type of replica to be failed over. Possible values include: 'Primary', + /// 'ReadableSecondary' + /// + /// + /// The cancellation token. + /// + public static async Task BeginFailoverAsync(this IManagedInstancesOperations operations, string resourceGroupName, string managedInstanceName, string replicaType = default(string), CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.BeginFailoverWithHttpMessagesAsync(resourceGroupName, managedInstanceName, replicaType, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Gets a list of all managed instances in an instance pool. /// /// /// The operations group for this extension method. @@ -538,13 +538,13 @@ public static ManagedInstance BeginUpdate(this IManagedInstancesOperations opera /// /// The NextLink from the previous successful call to List operation. /// - public static IPage ListByResourceGroupNext(this IManagedInstancesOperations operations, string nextPageLink) + public static IPage ListByInstancePoolNext(this IManagedInstancesOperations operations, string nextPageLink) { - return operations.ListByResourceGroupNextAsync(nextPageLink).GetAwaiter().GetResult(); + return operations.ListByInstancePoolNextAsync(nextPageLink).GetAwaiter().GetResult(); } /// - /// Gets a list of managed instances in a resource group. + /// Gets a list of all managed instances in an instance pool. /// /// /// The operations group for this extension method. @@ -555,16 +555,16 @@ public static IPage ListByResourceGroupNext(this IManagedInstan /// /// The cancellation token. /// - public static async Task> ListByResourceGroupNextAsync(this IManagedInstancesOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListByInstancePoolNextAsync(this IManagedInstancesOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListByResourceGroupNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListByInstancePoolNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Gets a list of all managed instances in an instance pool. + /// Gets a list of managed instances in a resource group. /// /// /// The operations group for this extension method. @@ -572,13 +572,13 @@ public static IPage ListByResourceGroupNext(this IManagedInstan /// /// The NextLink from the previous successful call to List operation. /// - public static IPage ListByInstancePoolNext(this IManagedInstancesOperations operations, string nextPageLink) + public static IPage ListByResourceGroupNext(this IManagedInstancesOperations operations, string nextPageLink) { - return operations.ListByInstancePoolNextAsync(nextPageLink).GetAwaiter().GetResult(); + return operations.ListByResourceGroupNextAsync(nextPageLink).GetAwaiter().GetResult(); } /// - /// Gets a list of all managed instances in an instance pool. + /// Gets a list of managed instances in a resource group. /// /// /// The operations group for this extension method. @@ -589,9 +589,9 @@ public static IPage ListByInstancePoolNext(this IManagedInstanc /// /// The cancellation token. /// - public static async Task> ListByInstancePoolNextAsync(this IManagedInstancesOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListByResourceGroupNextAsync(this IManagedInstancesOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListByInstancePoolNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListByResourceGroupNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/AutoPauseDelayTimeRange.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/AutoPauseDelayTimeRange.cs deleted file mode 100644 index 4aa00ee16aaf..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/AutoPauseDelayTimeRange.cs +++ /dev/null @@ -1,97 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - using System.Linq; - - /// - /// Supported auto pause delay time range - /// - public partial class AutoPauseDelayTimeRange - { - /// - /// Initializes a new instance of the AutoPauseDelayTimeRange class. - /// - public AutoPauseDelayTimeRange() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the AutoPauseDelayTimeRange class. - /// - /// Minimum value - /// Maximum value - /// Step value for discrete values between the - /// minimum value and the maximum value. - /// Default value is no value is - /// provided - /// Unit of time that delay is expressed in. - /// Possible values include: 'Minutes' - /// Value that is used to not pause - /// (infinite delay before pause) - public AutoPauseDelayTimeRange(int? minValue = default(int?), int? maxValue = default(int?), int? stepSize = default(int?), int? defaultProperty = default(int?), PauseDelayTimeUnit? unit = default(PauseDelayTimeUnit?), int? doNotPauseValue = default(int?)) - { - MinValue = minValue; - MaxValue = maxValue; - StepSize = stepSize; - DefaultProperty = defaultProperty; - Unit = unit; - DoNotPauseValue = doNotPauseValue; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets minimum value - /// - [JsonProperty(PropertyName = "minValue")] - public int? MinValue { get; private set; } - - /// - /// Gets maximum value - /// - [JsonProperty(PropertyName = "maxValue")] - public int? MaxValue { get; private set; } - - /// - /// Gets step value for discrete values between the minimum value and - /// the maximum value. - /// - [JsonProperty(PropertyName = "stepSize")] - public int? StepSize { get; private set; } - - /// - /// Gets default value is no value is provided - /// - [JsonProperty(PropertyName = "default")] - public int? DefaultProperty { get; private set; } - - /// - /// Gets unit of time that delay is expressed in. Possible values - /// include: 'Minutes' - /// - [JsonProperty(PropertyName = "unit")] - public PauseDelayTimeUnit? Unit { get; private set; } - - /// - /// Gets value that is used to not pause (infinite delay before pause) - /// - [JsonProperty(PropertyName = "doNotPauseValue")] - public int? DoNotPauseValue { get; private set; } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/BackupShortTermRetentionPolicy.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/BackupShortTermRetentionPolicy.cs index c1f8aa1f2397..a3666f867d33 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/BackupShortTermRetentionPolicy.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/BackupShortTermRetentionPolicy.cs @@ -40,15 +40,10 @@ public BackupShortTermRetentionPolicy() /// The backup retention period in days. /// This is how many days Point-in-Time Restore will be /// supported. - /// The differential backup - /// interval in hours. This is how many interval hours between each - /// differential backup will be supported. This is only applicable to - /// live databases but not dropped databases. - public BackupShortTermRetentionPolicy(string id = default(string), string name = default(string), string type = default(string), int? retentionDays = default(int?), int? diffBackupIntervalInHours = default(int?)) + public BackupShortTermRetentionPolicy(string id = default(string), string name = default(string), string type = default(string), int? retentionDays = default(int?)) : base(id, name, type) { RetentionDays = retentionDays; - DiffBackupIntervalInHours = diffBackupIntervalInHours; CustomInit(); } @@ -64,14 +59,5 @@ public BackupShortTermRetentionPolicy() [JsonProperty(PropertyName = "properties.retentionDays")] public int? RetentionDays { get; set; } - /// - /// Gets or sets the differential backup interval in hours. This is how - /// many interval hours between each differential backup will be - /// supported. This is only applicable to live databases but not - /// dropped databases. - /// - [JsonProperty(PropertyName = "properties.diffBackupIntervalInHours")] - public int? DiffBackupIntervalInHours { get; set; } - } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/CapabilityGroup.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/CapabilityGroup.cs index 70665148b823..17a2378a8184 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/CapabilityGroup.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/CapabilityGroup.cs @@ -10,102 +10,14 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for CapabilityGroup. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(CapabilityGroupConverter))] - public struct CapabilityGroup : System.IEquatable + public static class CapabilityGroup { - private CapabilityGroup(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly CapabilityGroup SupportedEditions = "supportedEditions"; - - public static readonly CapabilityGroup SupportedElasticPoolEditions = "supportedElasticPoolEditions"; - - public static readonly CapabilityGroup SupportedManagedInstanceVersions = "supportedManagedInstanceVersions"; - - public static readonly CapabilityGroup SupportedInstancePoolEditions = "supportedInstancePoolEditions"; - - public static readonly CapabilityGroup SupportedManagedInstanceEditions = "supportedManagedInstanceEditions"; - - - /// - /// Underlying value of enum CapabilityGroup - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for CapabilityGroup - /// - public override string ToString() - { - return UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type CapabilityGroup - /// - public bool Equals(CapabilityGroup e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to CapabilityGroup - /// - public static implicit operator CapabilityGroup(string value) - { - return new CapabilityGroup(value); - } - - /// - /// Implicit operator to convert CapabilityGroup to string - /// - public static implicit operator string(CapabilityGroup e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum CapabilityGroup - /// - public static bool operator == (CapabilityGroup e1, CapabilityGroup e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum CapabilityGroup - /// - public static bool operator != (CapabilityGroup e1, CapabilityGroup e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for CapabilityGroup - /// - public override bool Equals(object obj) - { - return obj is CapabilityGroup && Equals((CapabilityGroup)obj); - } - - /// - /// Returns for hashCode CapabilityGroup - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string SupportedEditions = "supportedEditions"; + public const string SupportedElasticPoolEditions = "supportedElasticPoolEditions"; + public const string SupportedManagedInstanceVersions = "supportedManagedInstanceVersions"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/CapabilityGroupConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/CapabilityGroupConverter.cs deleted file mode 100644 index b648ba1c90cf..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/CapabilityGroupConverter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for CapabilityGroup. - /// - public sealed class CapabilityGroupConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to CapabilityGroup by the - /// converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(CapabilityGroup).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to CapabilityGroup. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (CapabilityGroup)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for CapabilityGroup for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/CatalogCollationType.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/CatalogCollationType.cs index f16f92de27e9..9f424cc32d9b 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/CatalogCollationType.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/CatalogCollationType.cs @@ -10,96 +10,13 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for CatalogCollationType. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(CatalogCollationTypeConverter))] - public struct CatalogCollationType : System.IEquatable + public static class CatalogCollationType { - private CatalogCollationType(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly CatalogCollationType DATABASEDEFAULT = "DATABASE_DEFAULT"; - - public static readonly CatalogCollationType SQLLatin1GeneralCP1CIAS = "SQL_Latin1_General_CP1_CI_AS"; - - - /// - /// Underlying value of enum CatalogCollationType - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for CatalogCollationType - /// - public override string ToString() - { - return UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type CatalogCollationType - /// - public bool Equals(CatalogCollationType e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to CatalogCollationType - /// - public static implicit operator CatalogCollationType(string value) - { - return new CatalogCollationType(value); - } - - /// - /// Implicit operator to convert CatalogCollationType to string - /// - public static implicit operator string(CatalogCollationType e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum CatalogCollationType - /// - public static bool operator == (CatalogCollationType e1, CatalogCollationType e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum CatalogCollationType - /// - public static bool operator != (CatalogCollationType e1, CatalogCollationType e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for CatalogCollationType - /// - public override bool Equals(object obj) - { - return obj is CatalogCollationType && Equals((CatalogCollationType)obj); - } - - /// - /// Returns for hashCode CatalogCollationType - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string DATABASEDEFAULT = "DATABASE_DEFAULT"; + public const string SQLLatin1GeneralCP1CIAS = "SQL_Latin1_General_CP1_CI_AS"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/CatalogCollationTypeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/CatalogCollationTypeConverter.cs deleted file mode 100644 index f605382139bd..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/CatalogCollationTypeConverter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for CatalogCollationType. - /// - public sealed class CatalogCollationTypeConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to CatalogCollationType by - /// the converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(CatalogCollationType).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to CatalogCollationType. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (CatalogCollationType)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for CatalogCollationType for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/CheckNameAvailabilityRequest.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/CheckNameAvailabilityRequest.cs index 2a038d4fc11a..707d7cce78c2 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/CheckNameAvailabilityRequest.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/CheckNameAvailabilityRequest.cs @@ -33,6 +33,8 @@ public CheckNameAvailabilityRequest() /// Initializes a new instance of the CheckNameAvailabilityRequest /// class. /// + /// The name whose availability is to be + /// checked. public CheckNameAvailabilityRequest(string name) { Name = name; @@ -52,11 +54,14 @@ static CheckNameAvailabilityRequest() partial void CustomInit(); /// + /// Gets or sets the name whose availability is to be checked. /// [JsonProperty(PropertyName = "name")] public string Name { get; set; } /// + /// The type of resource that is used as the scope of the availability + /// check. /// [JsonProperty(PropertyName = "type")] public static string Type { get; private set; } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/CheckNameAvailabilityResponse.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/CheckNameAvailabilityResponse.cs index ae612275b439..65a8c5fc01e9 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/CheckNameAvailabilityResponse.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/CheckNameAvailabilityResponse.cs @@ -14,7 +14,8 @@ namespace Microsoft.Azure.Management.Sql.Models using System.Linq; /// - /// The result of a name availability check. + /// A response indicating whether the specified name for a resource is + /// available. /// public partial class CheckNameAvailabilityResponse { @@ -31,20 +32,20 @@ public CheckNameAvailabilityResponse() /// Initializes a new instance of the CheckNameAvailabilityResponse /// class. /// - /// The name whose availability was checked. /// True if the name is available, otherwise /// false. - /// The reason code explaining why the name is - /// unavailable. Will be undefined if the name is available. Possible - /// values include: 'Invalid', 'AlreadyExists' /// A message explaining why the name is - /// unavailable. Will be undefined if the name is available. - public CheckNameAvailabilityResponse(string name = default(string), bool? available = default(bool?), CheckNameAvailabilityReason? reason = default(CheckNameAvailabilityReason?), string message = default(string)) + /// unavailable. Will be null if the name is available. + /// The name whose availability was checked. + /// The reason code explaining why the name is + /// unavailable. Will be null if the name is available. Possible values + /// include: 'Invalid', 'AlreadyExists' + public CheckNameAvailabilityResponse(bool? available = default(bool?), string message = default(string), string name = default(string), CheckNameAvailabilityReason? reason = default(CheckNameAvailabilityReason?)) { - Name = name; Available = available; - Reason = reason; Message = message; + Name = name; + Reason = reason; CustomInit(); } @@ -53,32 +54,32 @@ public CheckNameAvailabilityResponse() /// partial void CustomInit(); - /// - /// Gets the name whose availability was checked. - /// - [JsonProperty(PropertyName = "name")] - public string Name { get; private set; } - /// /// Gets true if the name is available, otherwise false. /// [JsonProperty(PropertyName = "available")] public bool? Available { get; private set; } + /// + /// Gets a message explaining why the name is unavailable. Will be null + /// if the name is available. + /// + [JsonProperty(PropertyName = "message")] + public string Message { get; private set; } + + /// + /// Gets the name whose availability was checked. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; private set; } + /// /// Gets the reason code explaining why the name is unavailable. Will - /// be undefined if the name is available. Possible values include: + /// be null if the name is available. Possible values include: /// 'Invalid', 'AlreadyExists' /// [JsonProperty(PropertyName = "reason")] public CheckNameAvailabilityReason? Reason { get; private set; } - /// - /// Gets a message explaining why the name is unavailable. Will be - /// undefined if the name is available. - /// - [JsonProperty(PropertyName = "message")] - public string Message { get; private set; } - } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/CreateMode.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/CreateMode.cs index 187d21aa3da5..e8415a7b5ea0 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/CreateMode.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/CreateMode.cs @@ -10,112 +10,21 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for CreateMode. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(CreateModeConverter))] - public struct CreateMode : System.IEquatable + public static class CreateMode { - private CreateMode(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly CreateMode Default = "Default"; - - public static readonly CreateMode Copy = "Copy"; - - public static readonly CreateMode Secondary = "Secondary"; - - public static readonly CreateMode PointInTimeRestore = "PointInTimeRestore"; - - public static readonly CreateMode Restore = "Restore"; - - public static readonly CreateMode Recovery = "Recovery"; - - public static readonly CreateMode RestoreExternalBackup = "RestoreExternalBackup"; - - public static readonly CreateMode RestoreExternalBackupSecondary = "RestoreExternalBackupSecondary"; - - public static readonly CreateMode RestoreLongTermRetentionBackup = "RestoreLongTermRetentionBackup"; - - public static readonly CreateMode OnlineSecondary = "OnlineSecondary"; - - - /// - /// Underlying value of enum CreateMode - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for CreateMode - /// - public override string ToString() - { - return UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type CreateMode - /// - public bool Equals(CreateMode e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to CreateMode - /// - public static implicit operator CreateMode(string value) - { - return new CreateMode(value); - } - - /// - /// Implicit operator to convert CreateMode to string - /// - public static implicit operator string(CreateMode e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum CreateMode - /// - public static bool operator == (CreateMode e1, CreateMode e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum CreateMode - /// - public static bool operator != (CreateMode e1, CreateMode e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for CreateMode - /// - public override bool Equals(object obj) - { - return obj is CreateMode && Equals((CreateMode)obj); - } - - /// - /// Returns for hashCode CreateMode - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string Default = "Default"; + public const string Copy = "Copy"; + public const string Secondary = "Secondary"; + public const string PointInTimeRestore = "PointInTimeRestore"; + public const string Restore = "Restore"; + public const string Recovery = "Recovery"; + public const string RestoreExternalBackup = "RestoreExternalBackup"; + public const string RestoreExternalBackupSecondary = "RestoreExternalBackupSecondary"; + public const string RestoreLongTermRetentionBackup = "RestoreLongTermRetentionBackup"; + public const string OnlineSecondary = "OnlineSecondary"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/CreateModeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/CreateModeConverter.cs deleted file mode 100644 index b46c3e6cdda3..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/CreateModeConverter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for CreateMode. - /// - public sealed class CreateModeConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to CreateMode by the - /// converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(CreateMode).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to CreateMode. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (CreateMode)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for CreateMode for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/Database.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/Database.cs index 29cf0e8f0a62..e5d1cbad1171 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/Database.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/Database.cs @@ -152,39 +152,35 @@ public Database() /// redundant, which means the replicas of this database will be spread /// across multiple availability zones. /// The license type to apply for this - /// database. `LicenseIncluded` if you need a license, or `BasePrice` - /// if you have a license and are eligible for the Azure Hybrid - /// Benefit. Possible values include: 'LicenseIncluded', + /// database. Possible values include: 'LicenseIncluded', /// 'BasePrice' /// The max log size for this /// database. /// This records the earliest start /// date and time that restore is available for this database (ISO8601 /// format). - /// The state of read-only routing. If enabled, - /// connections that have application intent set to readonly in their - /// connection string may be routed to a readonly secondary replica in - /// the same region. Possible values include: 'Enabled', - /// 'Disabled' + /// If enabled, connections that have + /// application intent set to readonly in their connection string may + /// be routed to a readonly secondary replica. This property is only + /// settable for Premium and Business Critical databases. Possible + /// values include: 'Enabled', 'Disabled' /// The number of readonly secondary - /// replicas associated with the database. + /// replicas associated with the database to which readonly application + /// intent connections may be routed. This property is only settable + /// for Hyperscale edition databases. /// The name and tier of the SKU. /// Time in minutes after which database /// is automatically paused. A value of -1 means that automatic pause /// is disabled - /// The storage account type used to - /// store backups for this database. Currently the only supported - /// option is GRS (GeoRedundantStorage). Possible values include: - /// 'GRS', 'LRS', 'ZRS' /// Minimal capacity that database will /// always have allocated, if not paused /// The date when database was paused by user - /// configuration or action(ISO8601 format). Null if the database is + /// configuration or action (ISO8601 format). Null if the database is /// ready. /// The date when database was resumed by /// user action or database login (ISO8601 format). Null if the /// database is paused. - public Database(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), Sku sku = default(Sku), string kind = default(string), string managedBy = default(string), string createMode = default(string), string collation = default(string), long? maxSizeBytes = default(long?), string sampleName = default(string), string elasticPoolId = default(string), string sourceDatabaseId = default(string), string status = default(string), System.Guid? databaseId = default(System.Guid?), System.DateTime? creationDate = default(System.DateTime?), string currentServiceObjectiveName = default(string), string requestedServiceObjectiveName = default(string), string defaultSecondaryLocation = default(string), string failoverGroupId = default(string), System.DateTime? restorePointInTime = default(System.DateTime?), System.DateTime? sourceDatabaseDeletionDate = default(System.DateTime?), string recoveryServicesRecoveryPointId = default(string), string longTermRetentionBackupResourceId = default(string), string recoverableDatabaseId = default(string), string restorableDroppedDatabaseId = default(string), string catalogCollation = default(string), bool? zoneRedundant = default(bool?), string licenseType = default(string), long? maxLogSizeBytes = default(long?), System.DateTime? earliestRestoreDate = default(System.DateTime?), string readScale = default(string), int? readReplicaCount = default(int?), Sku currentSku = default(Sku), int? autoPauseDelay = default(int?), string storageAccountType = default(string), double? minCapacity = default(double?), System.DateTime? pausedDate = default(System.DateTime?), System.DateTime? resumedDate = default(System.DateTime?)) + public Database(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), Sku sku = default(Sku), string kind = default(string), string managedBy = default(string), string createMode = default(string), string collation = default(string), long? maxSizeBytes = default(long?), string sampleName = default(string), string elasticPoolId = default(string), string sourceDatabaseId = default(string), string status = default(string), System.Guid? databaseId = default(System.Guid?), System.DateTime? creationDate = default(System.DateTime?), string currentServiceObjectiveName = default(string), string requestedServiceObjectiveName = default(string), string defaultSecondaryLocation = default(string), string failoverGroupId = default(string), System.DateTime? restorePointInTime = default(System.DateTime?), System.DateTime? sourceDatabaseDeletionDate = default(System.DateTime?), string recoveryServicesRecoveryPointId = default(string), string longTermRetentionBackupResourceId = default(string), string recoverableDatabaseId = default(string), string restorableDroppedDatabaseId = default(string), string catalogCollation = default(string), bool? zoneRedundant = default(bool?), string licenseType = default(string), long? maxLogSizeBytes = default(long?), System.DateTime? earliestRestoreDate = default(System.DateTime?), string readScale = default(string), int? readReplicaCount = default(int?), Sku currentSku = default(Sku), int? autoPauseDelay = default(int?), double? minCapacity = default(double?), System.DateTime? pausedDate = default(System.DateTime?), System.DateTime? resumedDate = default(System.DateTime?)) : base(location, id, name, type, tags) { Sku = sku; @@ -218,7 +214,6 @@ public Database() ReadReplicaCount = readReplicaCount; CurrentSku = currentSku; AutoPauseDelay = autoPauseDelay; - StorageAccountType = storageAccountType; MinCapacity = minCapacity; PausedDate = pausedDate; ResumedDate = resumedDate; @@ -449,9 +444,7 @@ public Database() public bool? ZoneRedundant { get; set; } /// - /// Gets or sets the license type to apply for this database. - /// `LicenseIncluded` if you need a license, or `BasePrice` if you have - /// a license and are eligible for the Azure Hybrid Benefit. Possible + /// Gets or sets the license type to apply for this database. Possible /// values include: 'LicenseIncluded', 'BasePrice' /// [JsonProperty(PropertyName = "properties.licenseType")] @@ -471,17 +464,20 @@ public Database() public System.DateTime? EarliestRestoreDate { get; private set; } /// - /// Gets or sets the state of read-only routing. If enabled, - /// connections that have application intent set to readonly in their - /// connection string may be routed to a readonly secondary replica in - /// the same region. Possible values include: 'Enabled', 'Disabled' + /// Gets or sets if enabled, connections that have application intent + /// set to readonly in their connection string may be routed to a + /// readonly secondary replica. This property is only settable for + /// Premium and Business Critical databases. Possible values include: + /// 'Enabled', 'Disabled' /// [JsonProperty(PropertyName = "properties.readScale")] public string ReadScale { get; set; } /// /// Gets or sets the number of readonly secondary replicas associated - /// with the database. + /// with the database to which readonly application intent connections + /// may be routed. This property is only settable for Hyperscale + /// edition databases. /// [JsonProperty(PropertyName = "properties.readReplicaCount")] public int? ReadReplicaCount { get; set; } @@ -499,14 +495,6 @@ public Database() [JsonProperty(PropertyName = "properties.autoPauseDelay")] public int? AutoPauseDelay { get; set; } - /// - /// Gets or sets the storage account type used to store backups for - /// this database. Currently the only supported option is GRS - /// (GeoRedundantStorage). Possible values include: 'GRS', 'LRS', 'ZRS' - /// - [JsonProperty(PropertyName = "properties.storageAccountType")] - public string StorageAccountType { get; set; } - /// /// Gets or sets minimal capacity that database will always have /// allocated, if not paused @@ -516,7 +504,7 @@ public Database() /// /// Gets the date when database was paused by user configuration or - /// action(ISO8601 format). Null if the database is ready. + /// action (ISO8601 format). Null if the database is ready. /// [JsonProperty(PropertyName = "properties.pausedDate")] public System.DateTime? PausedDate { get; private set; } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseBlobAuditingPolicy.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseBlobAuditingPolicy.cs index 639db988b972..b4f9bc89e6db 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseBlobAuditingPolicy.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseBlobAuditingPolicy.cs @@ -46,19 +46,9 @@ public DatabaseBlobAuditingPolicy() /// Enabled, storageEndpoint or isAzureMonitorTargetEnabled is /// required. /// Specifies the identifier key - /// of the auditing storage account. - /// If state is Enabled and storageEndpoint is specified, not - /// specifying the storageAccountAccessKey will use SQL server - /// system-assigned managed identity to access the storage. - /// Prerequisites for using managed identity authentication: - /// 1. Assign SQL Server a system-assigned managed identity in Azure - /// Active Directory (AAD). - /// 2. Grant SQL Server identity access to the storage account by - /// adding 'Storage Blob Data Contributor' RBAC role to the server - /// identity. - /// For more information, see [Auditing to storage using Managed - /// Identity - /// authentication](https://go.microsoft.com/fwlink/?linkid=2114355) + /// of the auditing storage account. If state is Enabled and + /// storageEndpoint is specified, storageAccountAccessKey is + /// required. /// Specifies the number of days to keep in /// the audit logs in the storage account. /// Specifies the Actions-Groups @@ -210,19 +200,8 @@ public DatabaseBlobAuditingPolicy() /// /// Gets or sets specifies the identifier key of the auditing storage - /// account. - /// If state is Enabled and storageEndpoint is specified, not - /// specifying the storageAccountAccessKey will use SQL server - /// system-assigned managed identity to access the storage. - /// Prerequisites for using managed identity authentication: - /// 1. Assign SQL Server a system-assigned managed identity in Azure - /// Active Directory (AAD). - /// 2. Grant SQL Server identity access to the storage account by - /// adding 'Storage Blob Data Contributor' RBAC role to the server - /// identity. - /// For more information, see [Auditing to storage using Managed - /// Identity - /// authentication](https://go.microsoft.com/fwlink/?linkid=2114355) + /// account. If state is Enabled and storageEndpoint is specified, + /// storageAccountAccessKey is required. /// [JsonProperty(PropertyName = "properties.storageAccountAccessKey")] public string StorageAccountAccessKey { get; set; } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseLicenseType.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseLicenseType.cs index 18b62df46b65..8fec77be3faf 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseLicenseType.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseLicenseType.cs @@ -10,96 +10,13 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for DatabaseLicenseType. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(DatabaseLicenseTypeConverter))] - public struct DatabaseLicenseType : System.IEquatable + public static class DatabaseLicenseType { - private DatabaseLicenseType(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly DatabaseLicenseType LicenseIncluded = "LicenseIncluded"; - - public static readonly DatabaseLicenseType BasePrice = "BasePrice"; - - - /// - /// Underlying value of enum DatabaseLicenseType - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for DatabaseLicenseType - /// - public override string ToString() - { - return UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type DatabaseLicenseType - /// - public bool Equals(DatabaseLicenseType e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to DatabaseLicenseType - /// - public static implicit operator DatabaseLicenseType(string value) - { - return new DatabaseLicenseType(value); - } - - /// - /// Implicit operator to convert DatabaseLicenseType to string - /// - public static implicit operator string(DatabaseLicenseType e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum DatabaseLicenseType - /// - public static bool operator == (DatabaseLicenseType e1, DatabaseLicenseType e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum DatabaseLicenseType - /// - public static bool operator != (DatabaseLicenseType e1, DatabaseLicenseType e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for DatabaseLicenseType - /// - public override bool Equals(object obj) - { - return obj is DatabaseLicenseType && Equals((DatabaseLicenseType)obj); - } - - /// - /// Returns for hashCode DatabaseLicenseType - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string LicenseIncluded = "LicenseIncluded"; + public const string BasePrice = "BasePrice"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseLicenseTypeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseLicenseTypeConverter.cs deleted file mode 100644 index d72fe3f966be..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseLicenseTypeConverter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for DatabaseLicenseType. - /// - public sealed class DatabaseLicenseTypeConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to DatabaseLicenseType by - /// the converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(DatabaseLicenseType).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to DatabaseLicenseType. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (DatabaseLicenseType)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for DatabaseLicenseType for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseOperation.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseOperation.cs index 4af090f5ddb6..98d64dc4bfb6 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseOperation.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseOperation.cs @@ -58,7 +58,7 @@ public DatabaseOperation() /// The operation description. /// Whether the operation can be /// cancelled. - public DatabaseOperation(string id = default(string), string name = default(string), string type = default(string), string databaseName = default(string), string operation = default(string), string operationFriendlyName = default(string), int? percentComplete = default(int?), string serverName = default(string), System.DateTime? startTime = default(System.DateTime?), ManagementOperationState? state = default(ManagementOperationState?), int? errorCode = default(int?), string errorDescription = default(string), int? errorSeverity = default(int?), bool? isUserError = default(bool?), System.DateTime? estimatedCompletionTime = default(System.DateTime?), string description = default(string), bool? isCancellable = default(bool?)) + public DatabaseOperation(string id = default(string), string name = default(string), string type = default(string), string databaseName = default(string), string operation = default(string), string operationFriendlyName = default(string), int? percentComplete = default(int?), string serverName = default(string), System.DateTime? startTime = default(System.DateTime?), string state = default(string), int? errorCode = default(int?), string errorDescription = default(string), int? errorSeverity = default(int?), bool? isUserError = default(bool?), System.DateTime? estimatedCompletionTime = default(System.DateTime?), string description = default(string), bool? isCancellable = default(bool?)) : base(id, name, type) { DatabaseName = databaseName; @@ -125,7 +125,7 @@ public DatabaseOperation() /// 'Cancelled' /// [JsonProperty(PropertyName = "properties.state")] - public ManagementOperationState? State { get; private set; } + public string State { get; private set; } /// /// Gets the operation error code. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState1.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState1.cs index 649b01882773..2692f1d2ec2c 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState1.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState1.cs @@ -10,98 +10,14 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for DatabaseState1. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(DatabaseState1Converter))] - public struct DatabaseState1 : System.IEquatable + public static class DatabaseState1 { - private DatabaseState1(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly DatabaseState1 All = "All"; - - public static readonly DatabaseState1 Live = "Live"; - - public static readonly DatabaseState1 Deleted = "Deleted"; - - - /// - /// Underlying value of enum DatabaseState1 - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for DatabaseState1 - /// - public override string ToString() - { - return UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type DatabaseState1 - /// - public bool Equals(DatabaseState1 e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to DatabaseState1 - /// - public static implicit operator DatabaseState1(string value) - { - return new DatabaseState1(value); - } - - /// - /// Implicit operator to convert DatabaseState1 to string - /// - public static implicit operator string(DatabaseState1 e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum DatabaseState1 - /// - public static bool operator == (DatabaseState1 e1, DatabaseState1 e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum DatabaseState1 - /// - public static bool operator != (DatabaseState1 e1, DatabaseState1 e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for DatabaseState1 - /// - public override bool Equals(object obj) - { - return obj is DatabaseState1 && Equals((DatabaseState1)obj); - } - - /// - /// Returns for hashCode DatabaseState1 - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string All = "All"; + public const string Live = "Live"; + public const string Deleted = "Deleted"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState1Converter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState1Converter.cs deleted file mode 100644 index da7072c0c9bc..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState1Converter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for DatabaseState1. - /// - public sealed class DatabaseState1Converter : JsonConverter - { - - /// - /// Returns if objectType can be converted to DatabaseState1 by the - /// converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(DatabaseState1).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to DatabaseState1. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (DatabaseState1)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for DatabaseState1 for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState2.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState2.cs index cbf1efaa443e..fc0c0446db5e 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState2.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState2.cs @@ -10,98 +10,14 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for DatabaseState2. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(DatabaseState2Converter))] - public struct DatabaseState2 : System.IEquatable + public static class DatabaseState2 { - private DatabaseState2(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly DatabaseState2 All = "All"; - - public static readonly DatabaseState2 Live = "Live"; - - public static readonly DatabaseState2 Deleted = "Deleted"; - - - /// - /// Underlying value of enum DatabaseState2 - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for DatabaseState2 - /// - public override string ToString() - { - return UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type DatabaseState2 - /// - public bool Equals(DatabaseState2 e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to DatabaseState2 - /// - public static implicit operator DatabaseState2(string value) - { - return new DatabaseState2(value); - } - - /// - /// Implicit operator to convert DatabaseState2 to string - /// - public static implicit operator string(DatabaseState2 e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum DatabaseState2 - /// - public static bool operator == (DatabaseState2 e1, DatabaseState2 e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum DatabaseState2 - /// - public static bool operator != (DatabaseState2 e1, DatabaseState2 e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for DatabaseState2 - /// - public override bool Equals(object obj) - { - return obj is DatabaseState2 && Equals((DatabaseState2)obj); - } - - /// - /// Returns for hashCode DatabaseState2 - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string All = "All"; + public const string Live = "Live"; + public const string Deleted = "Deleted"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState2Converter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState2Converter.cs deleted file mode 100644 index 1e4fcb54834f..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState2Converter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for DatabaseState2. - /// - public sealed class DatabaseState2Converter : JsonConverter - { - - /// - /// Returns if objectType can be converted to DatabaseState2 by the - /// converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(DatabaseState2).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to DatabaseState2. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (DatabaseState2)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for DatabaseState2 for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState3.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState3.cs index b2db5803049a..65ba2f51d2e0 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState3.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState3.cs @@ -10,98 +10,14 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for DatabaseState3. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(DatabaseState3Converter))] - public struct DatabaseState3 : System.IEquatable + public static class DatabaseState3 { - private DatabaseState3(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly DatabaseState3 All = "All"; - - public static readonly DatabaseState3 Live = "Live"; - - public static readonly DatabaseState3 Deleted = "Deleted"; - - - /// - /// Underlying value of enum DatabaseState3 - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for DatabaseState3 - /// - public override string ToString() - { - return UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type DatabaseState3 - /// - public bool Equals(DatabaseState3 e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to DatabaseState3 - /// - public static implicit operator DatabaseState3(string value) - { - return new DatabaseState3(value); - } - - /// - /// Implicit operator to convert DatabaseState3 to string - /// - public static implicit operator string(DatabaseState3 e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum DatabaseState3 - /// - public static bool operator == (DatabaseState3 e1, DatabaseState3 e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum DatabaseState3 - /// - public static bool operator != (DatabaseState3 e1, DatabaseState3 e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for DatabaseState3 - /// - public override bool Equals(object obj) - { - return obj is DatabaseState3 && Equals((DatabaseState3)obj); - } - - /// - /// Returns for hashCode DatabaseState3 - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string All = "All"; + public const string Live = "Live"; + public const string Deleted = "Deleted"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState3Converter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState3Converter.cs deleted file mode 100644 index ca2f680cafc4..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState3Converter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for DatabaseState3. - /// - public sealed class DatabaseState3Converter : JsonConverter - { - - /// - /// Returns if objectType can be converted to DatabaseState3 by the - /// converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(DatabaseState3).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to DatabaseState3. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (DatabaseState3)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for DatabaseState3 for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState4.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState4.cs index 43ad4a950640..47eff0771e7d 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState4.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState4.cs @@ -10,98 +10,14 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for DatabaseState4. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(DatabaseState4Converter))] - public struct DatabaseState4 : System.IEquatable + public static class DatabaseState4 { - private DatabaseState4(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly DatabaseState4 All = "All"; - - public static readonly DatabaseState4 Live = "Live"; - - public static readonly DatabaseState4 Deleted = "Deleted"; - - - /// - /// Underlying value of enum DatabaseState4 - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for DatabaseState4 - /// - public override string ToString() - { - return UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type DatabaseState4 - /// - public bool Equals(DatabaseState4 e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to DatabaseState4 - /// - public static implicit operator DatabaseState4(string value) - { - return new DatabaseState4(value); - } - - /// - /// Implicit operator to convert DatabaseState4 to string - /// - public static implicit operator string(DatabaseState4 e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum DatabaseState4 - /// - public static bool operator == (DatabaseState4 e1, DatabaseState4 e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum DatabaseState4 - /// - public static bool operator != (DatabaseState4 e1, DatabaseState4 e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for DatabaseState4 - /// - public override bool Equals(object obj) - { - return obj is DatabaseState4 && Equals((DatabaseState4)obj); - } - - /// - /// Returns for hashCode DatabaseState4 - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string All = "All"; + public const string Live = "Live"; + public const string Deleted = "Deleted"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState4Converter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState4Converter.cs deleted file mode 100644 index c1a2f28537f0..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState4Converter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for DatabaseState4. - /// - public sealed class DatabaseState4Converter : JsonConverter - { - - /// - /// Returns if objectType can be converted to DatabaseState4 by the - /// converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(DatabaseState4).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to DatabaseState4. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (DatabaseState4)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for DatabaseState4 for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState5.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState5.cs index 7bb73094aec1..ce9a5903a777 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState5.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState5.cs @@ -10,98 +10,14 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for DatabaseState5. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(DatabaseState5Converter))] - public struct DatabaseState5 : System.IEquatable + public static class DatabaseState5 { - private DatabaseState5(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly DatabaseState5 All = "All"; - - public static readonly DatabaseState5 Live = "Live"; - - public static readonly DatabaseState5 Deleted = "Deleted"; - - - /// - /// Underlying value of enum DatabaseState5 - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for DatabaseState5 - /// - public override string ToString() - { - return UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type DatabaseState5 - /// - public bool Equals(DatabaseState5 e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to DatabaseState5 - /// - public static implicit operator DatabaseState5(string value) - { - return new DatabaseState5(value); - } - - /// - /// Implicit operator to convert DatabaseState5 to string - /// - public static implicit operator string(DatabaseState5 e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum DatabaseState5 - /// - public static bool operator == (DatabaseState5 e1, DatabaseState5 e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum DatabaseState5 - /// - public static bool operator != (DatabaseState5 e1, DatabaseState5 e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for DatabaseState5 - /// - public override bool Equals(object obj) - { - return obj is DatabaseState5 && Equals((DatabaseState5)obj); - } - - /// - /// Returns for hashCode DatabaseState5 - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string All = "All"; + public const string Live = "Live"; + public const string Deleted = "Deleted"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState5Converter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState5Converter.cs deleted file mode 100644 index 78b6f4aa11e5..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState5Converter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for DatabaseState5. - /// - public sealed class DatabaseState5Converter : JsonConverter - { - - /// - /// Returns if objectType can be converted to DatabaseState5 by the - /// converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(DatabaseState5).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to DatabaseState5. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (DatabaseState5)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for DatabaseState5 for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState6.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState6.cs index 50cbc1fca9bf..dc5e76219007 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState6.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState6.cs @@ -10,98 +10,14 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for DatabaseState6. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(DatabaseState6Converter))] - public struct DatabaseState6 : System.IEquatable + public static class DatabaseState6 { - private DatabaseState6(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly DatabaseState6 All = "All"; - - public static readonly DatabaseState6 Live = "Live"; - - public static readonly DatabaseState6 Deleted = "Deleted"; - - - /// - /// Underlying value of enum DatabaseState6 - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for DatabaseState6 - /// - public override string ToString() - { - return UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type DatabaseState6 - /// - public bool Equals(DatabaseState6 e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to DatabaseState6 - /// - public static implicit operator DatabaseState6(string value) - { - return new DatabaseState6(value); - } - - /// - /// Implicit operator to convert DatabaseState6 to string - /// - public static implicit operator string(DatabaseState6 e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum DatabaseState6 - /// - public static bool operator == (DatabaseState6 e1, DatabaseState6 e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum DatabaseState6 - /// - public static bool operator != (DatabaseState6 e1, DatabaseState6 e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for DatabaseState6 - /// - public override bool Equals(object obj) - { - return obj is DatabaseState6 && Equals((DatabaseState6)obj); - } - - /// - /// Returns for hashCode DatabaseState6 - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string All = "All"; + public const string Live = "Live"; + public const string Deleted = "Deleted"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState6Converter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState6Converter.cs deleted file mode 100644 index 3a3b9fbabbef..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState6Converter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for DatabaseState6. - /// - public sealed class DatabaseState6Converter : JsonConverter - { - - /// - /// Returns if objectType can be converted to DatabaseState6 by the - /// converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(DatabaseState6).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to DatabaseState6. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (DatabaseState6)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for DatabaseState6 for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseStatus.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseStatus.cs index 010a9a945d48..5caced77f2da 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseStatus.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseStatus.cs @@ -10,134 +10,32 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for DatabaseStatus. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(DatabaseStatusConverter))] - public struct DatabaseStatus : System.IEquatable + public static class DatabaseStatus { - private DatabaseStatus(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly DatabaseStatus Online = "Online"; - - public static readonly DatabaseStatus Restoring = "Restoring"; - - public static readonly DatabaseStatus RecoveryPending = "RecoveryPending"; - - public static readonly DatabaseStatus Recovering = "Recovering"; - - public static readonly DatabaseStatus Suspect = "Suspect"; - - public static readonly DatabaseStatus Offline = "Offline"; - - public static readonly DatabaseStatus Standby = "Standby"; - - public static readonly DatabaseStatus Shutdown = "Shutdown"; - - public static readonly DatabaseStatus EmergencyMode = "EmergencyMode"; - - public static readonly DatabaseStatus AutoClosed = "AutoClosed"; - - public static readonly DatabaseStatus Copying = "Copying"; - - public static readonly DatabaseStatus Creating = "Creating"; - - public static readonly DatabaseStatus Inaccessible = "Inaccessible"; - - public static readonly DatabaseStatus OfflineSecondary = "OfflineSecondary"; - - public static readonly DatabaseStatus Pausing = "Pausing"; - - public static readonly DatabaseStatus Paused = "Paused"; - - public static readonly DatabaseStatus Resuming = "Resuming"; - - public static readonly DatabaseStatus Scaling = "Scaling"; - - public static readonly DatabaseStatus OfflineChangingDwPerformanceTiers = "OfflineChangingDwPerformanceTiers"; - - public static readonly DatabaseStatus OnlineChangingDwPerformanceTiers = "OnlineChangingDwPerformanceTiers"; - - public static readonly DatabaseStatus Disabled = "Disabled"; - - - /// - /// Underlying value of enum DatabaseStatus - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for DatabaseStatus - /// - public override string ToString() - { - return UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type DatabaseStatus - /// - public bool Equals(DatabaseStatus e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to DatabaseStatus - /// - public static implicit operator DatabaseStatus(string value) - { - return new DatabaseStatus(value); - } - - /// - /// Implicit operator to convert DatabaseStatus to string - /// - public static implicit operator string(DatabaseStatus e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum DatabaseStatus - /// - public static bool operator == (DatabaseStatus e1, DatabaseStatus e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum DatabaseStatus - /// - public static bool operator != (DatabaseStatus e1, DatabaseStatus e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for DatabaseStatus - /// - public override bool Equals(object obj) - { - return obj is DatabaseStatus && Equals((DatabaseStatus)obj); - } - - /// - /// Returns for hashCode DatabaseStatus - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string Online = "Online"; + public const string Restoring = "Restoring"; + public const string RecoveryPending = "RecoveryPending"; + public const string Recovering = "Recovering"; + public const string Suspect = "Suspect"; + public const string Offline = "Offline"; + public const string Standby = "Standby"; + public const string Shutdown = "Shutdown"; + public const string EmergencyMode = "EmergencyMode"; + public const string AutoClosed = "AutoClosed"; + public const string Copying = "Copying"; + public const string Creating = "Creating"; + public const string Inaccessible = "Inaccessible"; + public const string OfflineSecondary = "OfflineSecondary"; + public const string Pausing = "Pausing"; + public const string Paused = "Paused"; + public const string Resuming = "Resuming"; + public const string Scaling = "Scaling"; + public const string OfflineChangingDwPerformanceTiers = "OfflineChangingDwPerformanceTiers"; + public const string OnlineChangingDwPerformanceTiers = "OnlineChangingDwPerformanceTiers"; + public const string Disabled = "Disabled"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseStatusConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseStatusConverter.cs deleted file mode 100644 index 9e23c1e959c2..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseStatusConverter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for DatabaseStatus. - /// - public sealed class DatabaseStatusConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to DatabaseStatus by the - /// converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(DatabaseStatus).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to DatabaseStatus. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (DatabaseStatus)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for DatabaseStatus for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseUpdate.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseUpdate.cs index e076f81f96d2..275cd2e70a33 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseUpdate.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseUpdate.cs @@ -129,40 +129,36 @@ public DatabaseUpdate() /// redundant, which means the replicas of this database will be spread /// across multiple availability zones. /// The license type to apply for this - /// database. `LicenseIncluded` if you need a license, or `BasePrice` - /// if you have a license and are eligible for the Azure Hybrid - /// Benefit. Possible values include: 'LicenseIncluded', + /// database. Possible values include: 'LicenseIncluded', /// 'BasePrice' /// The max log size for this /// database. /// This records the earliest start /// date and time that restore is available for this database (ISO8601 /// format). - /// The state of read-only routing. If enabled, - /// connections that have application intent set to readonly in their - /// connection string may be routed to a readonly secondary replica in - /// the same region. Possible values include: 'Enabled', - /// 'Disabled' + /// If enabled, connections that have + /// application intent set to readonly in their connection string may + /// be routed to a readonly secondary replica. This property is only + /// settable for Premium and Business Critical databases. Possible + /// values include: 'Enabled', 'Disabled' /// The number of readonly secondary - /// replicas associated with the database. + /// replicas associated with the database to which readonly application + /// intent connections may be routed. This property is only settable + /// for Hyperscale edition databases. /// The name and tier of the SKU. /// Time in minutes after which database /// is automatically paused. A value of -1 means that automatic pause /// is disabled - /// The storage account type used to - /// store backups for this database. Currently the only supported - /// option is GRS (GeoRedundantStorage). Possible values include: - /// 'GRS', 'LRS', 'ZRS' /// Minimal capacity that database will /// always have allocated, if not paused /// The date when database was paused by user - /// configuration or action(ISO8601 format). Null if the database is + /// configuration or action (ISO8601 format). Null if the database is /// ready. /// The date when database was resumed by /// user action or database login (ISO8601 format). Null if the /// database is paused. /// Resource tags. - public DatabaseUpdate(Sku sku = default(Sku), string createMode = default(string), string collation = default(string), long? maxSizeBytes = default(long?), string sampleName = default(string), string elasticPoolId = default(string), string sourceDatabaseId = default(string), string status = default(string), System.Guid? databaseId = default(System.Guid?), System.DateTime? creationDate = default(System.DateTime?), string currentServiceObjectiveName = default(string), string requestedServiceObjectiveName = default(string), string defaultSecondaryLocation = default(string), string failoverGroupId = default(string), System.DateTime? restorePointInTime = default(System.DateTime?), System.DateTime? sourceDatabaseDeletionDate = default(System.DateTime?), string recoveryServicesRecoveryPointId = default(string), string longTermRetentionBackupResourceId = default(string), string recoverableDatabaseId = default(string), string restorableDroppedDatabaseId = default(string), string catalogCollation = default(string), bool? zoneRedundant = default(bool?), string licenseType = default(string), long? maxLogSizeBytes = default(long?), System.DateTime? earliestRestoreDate = default(System.DateTime?), string readScale = default(string), int? readReplicaCount = default(int?), Sku currentSku = default(Sku), int? autoPauseDelay = default(int?), string storageAccountType = default(string), double? minCapacity = default(double?), System.DateTime? pausedDate = default(System.DateTime?), System.DateTime? resumedDate = default(System.DateTime?), IDictionary tags = default(IDictionary)) + public DatabaseUpdate(Sku sku = default(Sku), string createMode = default(string), string collation = default(string), long? maxSizeBytes = default(long?), string sampleName = default(string), string elasticPoolId = default(string), string sourceDatabaseId = default(string), string status = default(string), System.Guid? databaseId = default(System.Guid?), System.DateTime? creationDate = default(System.DateTime?), string currentServiceObjectiveName = default(string), string requestedServiceObjectiveName = default(string), string defaultSecondaryLocation = default(string), string failoverGroupId = default(string), System.DateTime? restorePointInTime = default(System.DateTime?), System.DateTime? sourceDatabaseDeletionDate = default(System.DateTime?), string recoveryServicesRecoveryPointId = default(string), string longTermRetentionBackupResourceId = default(string), string recoverableDatabaseId = default(string), string restorableDroppedDatabaseId = default(string), string catalogCollation = default(string), bool? zoneRedundant = default(bool?), string licenseType = default(string), long? maxLogSizeBytes = default(long?), System.DateTime? earliestRestoreDate = default(System.DateTime?), string readScale = default(string), int? readReplicaCount = default(int?), Sku currentSku = default(Sku), int? autoPauseDelay = default(int?), double? minCapacity = default(double?), System.DateTime? pausedDate = default(System.DateTime?), System.DateTime? resumedDate = default(System.DateTime?), IDictionary tags = default(IDictionary)) { Sku = sku; CreateMode = createMode; @@ -193,7 +189,6 @@ public DatabaseUpdate() ReadReplicaCount = readReplicaCount; CurrentSku = currentSku; AutoPauseDelay = autoPauseDelay; - StorageAccountType = storageAccountType; MinCapacity = minCapacity; PausedDate = pausedDate; ResumedDate = resumedDate; @@ -397,9 +392,7 @@ public DatabaseUpdate() public bool? ZoneRedundant { get; set; } /// - /// Gets or sets the license type to apply for this database. - /// `LicenseIncluded` if you need a license, or `BasePrice` if you have - /// a license and are eligible for the Azure Hybrid Benefit. Possible + /// Gets or sets the license type to apply for this database. Possible /// values include: 'LicenseIncluded', 'BasePrice' /// [JsonProperty(PropertyName = "properties.licenseType")] @@ -419,17 +412,20 @@ public DatabaseUpdate() public System.DateTime? EarliestRestoreDate { get; private set; } /// - /// Gets or sets the state of read-only routing. If enabled, - /// connections that have application intent set to readonly in their - /// connection string may be routed to a readonly secondary replica in - /// the same region. Possible values include: 'Enabled', 'Disabled' + /// Gets or sets if enabled, connections that have application intent + /// set to readonly in their connection string may be routed to a + /// readonly secondary replica. This property is only settable for + /// Premium and Business Critical databases. Possible values include: + /// 'Enabled', 'Disabled' /// [JsonProperty(PropertyName = "properties.readScale")] public string ReadScale { get; set; } /// /// Gets or sets the number of readonly secondary replicas associated - /// with the database. + /// with the database to which readonly application intent connections + /// may be routed. This property is only settable for Hyperscale + /// edition databases. /// [JsonProperty(PropertyName = "properties.readReplicaCount")] public int? ReadReplicaCount { get; set; } @@ -447,14 +443,6 @@ public DatabaseUpdate() [JsonProperty(PropertyName = "properties.autoPauseDelay")] public int? AutoPauseDelay { get; set; } - /// - /// Gets or sets the storage account type used to store backups for - /// this database. Currently the only supported option is GRS - /// (GeoRedundantStorage). Possible values include: 'GRS', 'LRS', 'ZRS' - /// - [JsonProperty(PropertyName = "properties.storageAccountType")] - public string StorageAccountType { get; set; } - /// /// Gets or sets minimal capacity that database will always have /// allocated, if not paused @@ -464,7 +452,7 @@ public DatabaseUpdate() /// /// Gets the date when database was paused by user configuration or - /// action(ISO8601 format). Null if the database is ready. + /// action (ISO8601 format). Null if the database is ready. /// [JsonProperty(PropertyName = "properties.pausedDate")] public System.DateTime? PausedDate { get; private set; } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseVulnerabilityAssessment.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseVulnerabilityAssessment.cs index 4ad6c58749bf..0fcc79220867 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseVulnerabilityAssessment.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseVulnerabilityAssessment.cs @@ -42,8 +42,8 @@ public DatabaseVulnerabilityAssessment() /// https://myStorage.blob.core.windows.net/VaScans/). It is required /// if server level vulnerability assessment policy doesn't set /// A shared access signature (SAS - /// Key) that has read and write access to the blob container specified - /// in 'storageContainerPath' parameter. If 'storageAccountAccessKey' + /// Key) that has write access to the blob container specified in + /// 'storageContainerPath' parameter. If 'storageAccountAccessKey' /// isn't specified, StorageContainerSasKey is required. /// Specifies the identifier key /// of the storage account for vulnerability assessment scan results. @@ -75,10 +75,10 @@ public DatabaseVulnerabilityAssessment() public string StorageContainerPath { get; set; } /// - /// Gets or sets a shared access signature (SAS Key) that has read and - /// write access to the blob container specified in - /// 'storageContainerPath' parameter. If 'storageAccountAccessKey' - /// isn't specified, StorageContainerSasKey is required. + /// Gets or sets a shared access signature (SAS Key) that has write + /// access to the blob container specified in 'storageContainerPath' + /// parameter. If 'storageAccountAccessKey' isn't specified, + /// StorageContainerSasKey is required. /// [JsonProperty(PropertyName = "properties.storageContainerSasKey")] public string StorageContainerSasKey { get; set; } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/EditionCapability.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/EditionCapability.cs index 6876d1efeb61..f68ebcfb7e50 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/EditionCapability.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/EditionCapability.cs @@ -36,21 +36,15 @@ public EditionCapability() /// service objectives for the edition. /// Whether or not zone redundancy is /// supported for the edition. - /// The read scale capability for the - /// edition. - /// The list of supported - /// storage capabilities for this edition /// The status of the capability. Possible values /// include: 'Visible', 'Available', 'Default', 'Disabled' /// The reason for the capability not being /// available. - public EditionCapability(string name = default(string), IList supportedServiceLevelObjectives = default(IList), bool? zoneRedundant = default(bool?), ReadScaleCapability readScale = default(ReadScaleCapability), IList supportedStorageCapabilities = default(IList), CapabilityStatus? status = default(CapabilityStatus?), string reason = default(string)) + public EditionCapability(string name = default(string), IList supportedServiceLevelObjectives = default(IList), bool? zoneRedundant = default(bool?), CapabilityStatus? status = default(CapabilityStatus?), string reason = default(string)) { Name = name; SupportedServiceLevelObjectives = supportedServiceLevelObjectives; ZoneRedundant = zoneRedundant; - ReadScale = readScale; - SupportedStorageCapabilities = supportedStorageCapabilities; Status = status; Reason = reason; CustomInit(); @@ -79,18 +73,6 @@ public EditionCapability() [JsonProperty(PropertyName = "zoneRedundant")] public bool? ZoneRedundant { get; private set; } - /// - /// Gets the read scale capability for the edition. - /// - [JsonProperty(PropertyName = "readScale")] - public ReadScaleCapability ReadScale { get; private set; } - - /// - /// Gets the list of supported storage capabilities for this edition - /// - [JsonProperty(PropertyName = "supportedStorageCapabilities")] - public IList SupportedStorageCapabilities { get; private set; } - /// /// Gets the status of the capability. Possible values include: /// 'Visible', 'Available', 'Default', 'Disabled' diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPool.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPool.cs index 0032eb762d43..9e5d861d81d0 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPool.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPool.cs @@ -67,7 +67,7 @@ public ElasticPool() /// The license type to apply for this /// elastic pool. Possible values include: 'LicenseIncluded', /// 'BasePrice' - public ElasticPool(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), Sku sku = default(Sku), string kind = default(string), ElasticPoolState? state = default(ElasticPoolState?), System.DateTime? creationDate = default(System.DateTime?), long? maxSizeBytes = default(long?), ElasticPoolPerDatabaseSettings perDatabaseSettings = default(ElasticPoolPerDatabaseSettings), bool? zoneRedundant = default(bool?), ElasticPoolLicenseType? licenseType = default(ElasticPoolLicenseType?)) + public ElasticPool(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), Sku sku = default(Sku), string kind = default(string), string state = default(string), System.DateTime? creationDate = default(System.DateTime?), long? maxSizeBytes = default(long?), ElasticPoolPerDatabaseSettings perDatabaseSettings = default(ElasticPoolPerDatabaseSettings), bool? zoneRedundant = default(bool?), string licenseType = default(string)) : base(location, id, name, type, tags) { Sku = sku; @@ -116,7 +116,7 @@ public ElasticPool() /// 'Creating', 'Ready', 'Disabled' /// [JsonProperty(PropertyName = "properties.state")] - public ElasticPoolState? State { get; private set; } + public string State { get; private set; } /// /// Gets the creation date of the elastic pool (ISO8601 format). @@ -150,7 +150,7 @@ public ElasticPool() /// Possible values include: 'LicenseIncluded', 'BasePrice' /// [JsonProperty(PropertyName = "properties.licenseType")] - public ElasticPoolLicenseType? LicenseType { get; set; } + public string LicenseType { get; set; } /// /// Validate the object. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolEdition.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolEdition.cs index 04e933f36e63..4ce546476901 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolEdition.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolEdition.cs @@ -10,102 +10,16 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for ElasticPoolEdition. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(ElasticPoolEditionConverter))] - public struct ElasticPoolEdition : System.IEquatable + public static class ElasticPoolEdition { - private ElasticPoolEdition(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly ElasticPoolEdition Basic = "Basic"; - - public static readonly ElasticPoolEdition Standard = "Standard"; - - public static readonly ElasticPoolEdition Premium = "Premium"; - - public static readonly ElasticPoolEdition GeneralPurpose = "GeneralPurpose"; - - public static readonly ElasticPoolEdition BusinessCritical = "BusinessCritical"; - - - /// - /// Underlying value of enum ElasticPoolEdition - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for ElasticPoolEdition - /// - public override string ToString() - { - return UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type ElasticPoolEdition - /// - public bool Equals(ElasticPoolEdition e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to ElasticPoolEdition - /// - public static implicit operator ElasticPoolEdition(string value) - { - return new ElasticPoolEdition(value); - } - - /// - /// Implicit operator to convert ElasticPoolEdition to string - /// - public static implicit operator string(ElasticPoolEdition e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum ElasticPoolEdition - /// - public static bool operator == (ElasticPoolEdition e1, ElasticPoolEdition e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum ElasticPoolEdition - /// - public static bool operator != (ElasticPoolEdition e1, ElasticPoolEdition e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for ElasticPoolEdition - /// - public override bool Equals(object obj) - { - return obj is ElasticPoolEdition && Equals((ElasticPoolEdition)obj); - } - - /// - /// Returns for hashCode ElasticPoolEdition - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string Basic = "Basic"; + public const string Standard = "Standard"; + public const string Premium = "Premium"; + public const string GeneralPurpose = "GeneralPurpose"; + public const string BusinessCritical = "BusinessCritical"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolEditionConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolEditionConverter.cs deleted file mode 100644 index b6041a552074..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolEditionConverter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for ElasticPoolEdition. - /// - public sealed class ElasticPoolEditionConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to ElasticPoolEdition by the - /// converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(ElasticPoolEdition).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to ElasticPoolEdition. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (ElasticPoolEdition)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for ElasticPoolEdition for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolLicenseType.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolLicenseType.cs index 290ae2618e39..91040cda5998 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolLicenseType.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolLicenseType.cs @@ -10,96 +10,13 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for ElasticPoolLicenseType. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(ElasticPoolLicenseTypeConverter))] - public struct ElasticPoolLicenseType : System.IEquatable + public static class ElasticPoolLicenseType { - private ElasticPoolLicenseType(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly ElasticPoolLicenseType LicenseIncluded = "LicenseIncluded"; - - public static readonly ElasticPoolLicenseType BasePrice = "BasePrice"; - - - /// - /// Underlying value of enum ElasticPoolLicenseType - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for ElasticPoolLicenseType - /// - public override string ToString() - { - return UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type ElasticPoolLicenseType - /// - public bool Equals(ElasticPoolLicenseType e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to ElasticPoolLicenseType - /// - public static implicit operator ElasticPoolLicenseType(string value) - { - return new ElasticPoolLicenseType(value); - } - - /// - /// Implicit operator to convert ElasticPoolLicenseType to string - /// - public static implicit operator string(ElasticPoolLicenseType e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum ElasticPoolLicenseType - /// - public static bool operator == (ElasticPoolLicenseType e1, ElasticPoolLicenseType e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum ElasticPoolLicenseType - /// - public static bool operator != (ElasticPoolLicenseType e1, ElasticPoolLicenseType e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for ElasticPoolLicenseType - /// - public override bool Equals(object obj) - { - return obj is ElasticPoolLicenseType && Equals((ElasticPoolLicenseType)obj); - } - - /// - /// Returns for hashCode ElasticPoolLicenseType - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string LicenseIncluded = "LicenseIncluded"; + public const string BasePrice = "BasePrice"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolLicenseTypeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolLicenseTypeConverter.cs deleted file mode 100644 index 553f43659d49..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolLicenseTypeConverter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for ElasticPoolLicenseType. - /// - public sealed class ElasticPoolLicenseTypeConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to ElasticPoolLicenseType by - /// the converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(ElasticPoolLicenseType).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to ElasticPoolLicenseType. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (ElasticPoolLicenseType)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for ElasticPoolLicenseType for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolPerDatabaseMaxPerformanceLevelCapability.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolPerDatabaseMaxPerformanceLevelCapability.cs index f82b6812d740..74af2a056139 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolPerDatabaseMaxPerformanceLevelCapability.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolPerDatabaseMaxPerformanceLevelCapability.cs @@ -43,7 +43,7 @@ public ElasticPoolPerDatabaseMaxPerformanceLevelCapability() /// include: 'Visible', 'Available', 'Default', 'Disabled' /// The reason for the capability not being /// available. - public ElasticPoolPerDatabaseMaxPerformanceLevelCapability(double? limit = default(double?), PerformanceLevelUnit? unit = default(PerformanceLevelUnit?), IList supportedPerDatabaseMinPerformanceLevels = default(IList), CapabilityStatus? status = default(CapabilityStatus?), string reason = default(string)) + public ElasticPoolPerDatabaseMaxPerformanceLevelCapability(double? limit = default(double?), string unit = default(string), IList supportedPerDatabaseMinPerformanceLevels = default(IList), CapabilityStatus? status = default(CapabilityStatus?), string reason = default(string)) { Limit = limit; Unit = unit; @@ -69,7 +69,7 @@ public ElasticPoolPerDatabaseMaxPerformanceLevelCapability() /// include: 'DTU', 'VCores' /// [JsonProperty(PropertyName = "unit")] - public PerformanceLevelUnit? Unit { get; private set; } + public string Unit { get; private set; } /// /// Gets the list of supported min database performance levels. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolPerDatabaseMinPerformanceLevelCapability.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolPerDatabaseMinPerformanceLevelCapability.cs index 9cea5490a81e..90abdfcd655b 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolPerDatabaseMinPerformanceLevelCapability.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolPerDatabaseMinPerformanceLevelCapability.cs @@ -39,7 +39,7 @@ public ElasticPoolPerDatabaseMinPerformanceLevelCapability() /// include: 'Visible', 'Available', 'Default', 'Disabled' /// The reason for the capability not being /// available. - public ElasticPoolPerDatabaseMinPerformanceLevelCapability(double? limit = default(double?), PerformanceLevelUnit? unit = default(PerformanceLevelUnit?), CapabilityStatus? status = default(CapabilityStatus?), string reason = default(string)) + public ElasticPoolPerDatabaseMinPerformanceLevelCapability(double? limit = default(double?), string unit = default(string), CapabilityStatus? status = default(CapabilityStatus?), string reason = default(string)) { Limit = limit; Unit = unit; @@ -64,7 +64,7 @@ public ElasticPoolPerDatabaseMinPerformanceLevelCapability() /// include: 'DTU', 'VCores' /// [JsonProperty(PropertyName = "unit")] - public PerformanceLevelUnit? Unit { get; private set; } + public string Unit { get; private set; } /// /// Gets the status of the capability. Possible values include: diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolPerformanceLevelCapability.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolPerformanceLevelCapability.cs index 9dfae52b9858..7f42a53b6408 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolPerformanceLevelCapability.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolPerformanceLevelCapability.cs @@ -48,13 +48,11 @@ public ElasticPoolPerformanceLevelCapability() /// per database max sizes. /// The list of /// supported per database max performance levels. - /// Whether or not zone redundancy is - /// supported for the performance level. /// The status of the capability. Possible values /// include: 'Visible', 'Available', 'Default', 'Disabled' /// The reason for the capability not being /// available. - public ElasticPoolPerformanceLevelCapability(PerformanceLevelCapability performanceLevel = default(PerformanceLevelCapability), Sku sku = default(Sku), IList supportedLicenseTypes = default(IList), int? maxDatabaseCount = default(int?), MaxSizeCapability includedMaxSize = default(MaxSizeCapability), IList supportedMaxSizes = default(IList), IList supportedPerDatabaseMaxSizes = default(IList), IList supportedPerDatabaseMaxPerformanceLevels = default(IList), bool? zoneRedundant = default(bool?), CapabilityStatus? status = default(CapabilityStatus?), string reason = default(string)) + public ElasticPoolPerformanceLevelCapability(PerformanceLevelCapability performanceLevel = default(PerformanceLevelCapability), Sku sku = default(Sku), IList supportedLicenseTypes = default(IList), int? maxDatabaseCount = default(int?), MaxSizeCapability includedMaxSize = default(MaxSizeCapability), IList supportedMaxSizes = default(IList), IList supportedPerDatabaseMaxSizes = default(IList), IList supportedPerDatabaseMaxPerformanceLevels = default(IList), CapabilityStatus? status = default(CapabilityStatus?), string reason = default(string)) { PerformanceLevel = performanceLevel; Sku = sku; @@ -64,7 +62,6 @@ public ElasticPoolPerformanceLevelCapability() SupportedMaxSizes = supportedMaxSizes; SupportedPerDatabaseMaxSizes = supportedPerDatabaseMaxSizes; SupportedPerDatabaseMaxPerformanceLevels = supportedPerDatabaseMaxPerformanceLevels; - ZoneRedundant = zoneRedundant; Status = status; Reason = reason; CustomInit(); @@ -123,13 +120,6 @@ public ElasticPoolPerformanceLevelCapability() [JsonProperty(PropertyName = "supportedPerDatabaseMaxPerformanceLevels")] public IList SupportedPerDatabaseMaxPerformanceLevels { get; private set; } - /// - /// Gets whether or not zone redundancy is supported for the - /// performance level. - /// - [JsonProperty(PropertyName = "zoneRedundant")] - public bool? ZoneRedundant { get; private set; } - /// /// Gets the status of the capability. Possible values include: /// 'Visible', 'Available', 'Default', 'Disabled' diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolState.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolState.cs index 9e21c9776984..5e36b8d12088 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolState.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolState.cs @@ -10,98 +10,14 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for ElasticPoolState. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(ElasticPoolStateConverter))] - public struct ElasticPoolState : System.IEquatable + public static class ElasticPoolState { - private ElasticPoolState(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly ElasticPoolState Creating = "Creating"; - - public static readonly ElasticPoolState Ready = "Ready"; - - public static readonly ElasticPoolState Disabled = "Disabled"; - - - /// - /// Underlying value of enum ElasticPoolState - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for ElasticPoolState - /// - public override string ToString() - { - return UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type ElasticPoolState - /// - public bool Equals(ElasticPoolState e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to ElasticPoolState - /// - public static implicit operator ElasticPoolState(string value) - { - return new ElasticPoolState(value); - } - - /// - /// Implicit operator to convert ElasticPoolState to string - /// - public static implicit operator string(ElasticPoolState e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum ElasticPoolState - /// - public static bool operator == (ElasticPoolState e1, ElasticPoolState e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum ElasticPoolState - /// - public static bool operator != (ElasticPoolState e1, ElasticPoolState e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for ElasticPoolState - /// - public override bool Equals(object obj) - { - return obj is ElasticPoolState && Equals((ElasticPoolState)obj); - } - - /// - /// Returns for hashCode ElasticPoolState - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string Creating = "Creating"; + public const string Ready = "Ready"; + public const string Disabled = "Disabled"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolStateConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolStateConverter.cs deleted file mode 100644 index 9eae804ada9b..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolStateConverter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for ElasticPoolState. - /// - public sealed class ElasticPoolStateConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to ElasticPoolState by the - /// converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(ElasticPoolState).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to ElasticPoolState. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (ElasticPoolState)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for ElasticPoolState for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolUpdate.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolUpdate.cs index 03144be7b350..2fddf59ce1f0 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolUpdate.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolUpdate.cs @@ -45,7 +45,7 @@ public ElasticPoolUpdate() /// elastic pool. Possible values include: 'LicenseIncluded', /// 'BasePrice' /// Resource tags. - public ElasticPoolUpdate(Sku sku = default(Sku), long? maxSizeBytes = default(long?), ElasticPoolPerDatabaseSettings perDatabaseSettings = default(ElasticPoolPerDatabaseSettings), bool? zoneRedundant = default(bool?), ElasticPoolLicenseType? licenseType = default(ElasticPoolLicenseType?), IDictionary tags = default(IDictionary)) + public ElasticPoolUpdate(Sku sku = default(Sku), long? maxSizeBytes = default(long?), ElasticPoolPerDatabaseSettings perDatabaseSettings = default(ElasticPoolPerDatabaseSettings), bool? zoneRedundant = default(bool?), string licenseType = default(string), IDictionary tags = default(IDictionary)) { Sku = sku; MaxSizeBytes = maxSizeBytes; @@ -92,7 +92,7 @@ public ElasticPoolUpdate() /// Possible values include: 'LicenseIncluded', 'BasePrice' /// [JsonProperty(PropertyName = "properties.licenseType")] - public ElasticPoolLicenseType? LicenseType { get; set; } + public string LicenseType { get; set; } /// /// Gets or sets resource tags. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/EncryptionProtector.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/EncryptionProtector.cs index 8a52edc09327..ea9fe3a5d1a5 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/EncryptionProtector.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/EncryptionProtector.cs @@ -46,7 +46,7 @@ public EncryptionProtector() /// The name of the server key. /// The URI of the server key. /// Thumbprint of the server key. - public EncryptionProtector(ServerKeyType serverKeyType, string id = default(string), string name = default(string), string type = default(string), string kind = default(string), string location = default(string), string subregion = default(string), string serverKeyName = default(string), string uri = default(string), string thumbprint = default(string)) + public EncryptionProtector(string serverKeyType, string id = default(string), string name = default(string), string type = default(string), string kind = default(string), string location = default(string), string subregion = default(string), string serverKeyName = default(string), string uri = default(string), string thumbprint = default(string)) : base(id, name, type) { Kind = kind; @@ -95,7 +95,7 @@ public EncryptionProtector() /// 'AzureKeyVault' /// [JsonProperty(PropertyName = "properties.serverKeyType")] - public ServerKeyType ServerKeyType { get; set; } + public string ServerKeyType { get; set; } /// /// Gets the URI of the server key. @@ -117,6 +117,10 @@ public EncryptionProtector() /// public virtual void Validate() { + if (ServerKeyType == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "ServerKeyType"); + } } } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ExportDatabaseDefinition.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ExportDatabaseDefinition.cs deleted file mode 100644 index a5fb485f8718..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ExportDatabaseDefinition.cs +++ /dev/null @@ -1,131 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Linq; - - /// - /// Contains the information necessary to perform export database - /// operation. - /// - public partial class ExportDatabaseDefinition - { - /// - /// Initializes a new instance of the ExportDatabaseDefinition class. - /// - public ExportDatabaseDefinition() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the ExportDatabaseDefinition class. - /// - /// Storage key type. Possible values - /// include: 'SharedAccessKey', 'StorageAccessKey' - /// Storage key. - /// Storage Uri. - /// Administrator login name. - /// Administrator login - /// password. - /// Authentication type. - /// Optional resource information to - /// enable network isolation for request. - public ExportDatabaseDefinition(StorageKeyType storageKeyType, string storageKey, string storageUri, string administratorLogin, string administratorLoginPassword, string authenticationType = default(string), NetworkIsolationSettings networkIsolation = default(NetworkIsolationSettings)) - { - StorageKeyType = storageKeyType; - StorageKey = storageKey; - StorageUri = storageUri; - AdministratorLogin = administratorLogin; - AdministratorLoginPassword = administratorLoginPassword; - AuthenticationType = authenticationType; - NetworkIsolation = networkIsolation; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets storage key type. Possible values include: - /// 'SharedAccessKey', 'StorageAccessKey' - /// - [JsonProperty(PropertyName = "storageKeyType")] - public StorageKeyType StorageKeyType { get; set; } - - /// - /// Gets or sets storage key. - /// - [JsonProperty(PropertyName = "storageKey")] - public string StorageKey { get; set; } - - /// - /// Gets or sets storage Uri. - /// - [JsonProperty(PropertyName = "storageUri")] - public string StorageUri { get; set; } - - /// - /// Gets or sets administrator login name. - /// - [JsonProperty(PropertyName = "administratorLogin")] - public string AdministratorLogin { get; set; } - - /// - /// Gets or sets administrator login password. - /// - [JsonProperty(PropertyName = "administratorLoginPassword")] - public string AdministratorLoginPassword { get; set; } - - /// - /// Gets or sets authentication type. - /// - [JsonProperty(PropertyName = "authenticationType")] - public string AuthenticationType { get; set; } - - /// - /// Gets or sets optional resource information to enable network - /// isolation for request. - /// - [JsonProperty(PropertyName = "networkIsolation")] - public NetworkIsolationSettings NetworkIsolation { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (StorageKey == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "StorageKey"); - } - if (StorageUri == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "StorageUri"); - } - if (AdministratorLogin == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "AdministratorLogin"); - } - if (AdministratorLoginPassword == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "AdministratorLoginPassword"); - } - } - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ExtendedDatabaseBlobAuditingPolicy.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ExtendedDatabaseBlobAuditingPolicy.cs index fb45c749c8e3..26e8b807a859 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ExtendedDatabaseBlobAuditingPolicy.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ExtendedDatabaseBlobAuditingPolicy.cs @@ -49,19 +49,9 @@ public ExtendedDatabaseBlobAuditingPolicy() /// Enabled, storageEndpoint or isAzureMonitorTargetEnabled is /// required. /// Specifies the identifier key - /// of the auditing storage account. - /// If state is Enabled and storageEndpoint is specified, not - /// specifying the storageAccountAccessKey will use SQL server - /// system-assigned managed identity to access the storage. - /// Prerequisites for using managed identity authentication: - /// 1. Assign SQL Server a system-assigned managed identity in Azure - /// Active Directory (AAD). - /// 2. Grant SQL Server identity access to the storage account by - /// adding 'Storage Blob Data Contributor' RBAC role to the server - /// identity. - /// For more information, see [Auditing to storage using Managed - /// Identity - /// authentication](https://go.microsoft.com/fwlink/?linkid=2114355) + /// of the auditing storage account. If state is Enabled and + /// storageEndpoint is specified, storageAccountAccessKey is + /// required. /// Specifies the number of days to keep in /// the audit logs in the storage account. /// Specifies the Actions-Groups @@ -214,19 +204,8 @@ public ExtendedDatabaseBlobAuditingPolicy() /// /// Gets or sets specifies the identifier key of the auditing storage - /// account. - /// If state is Enabled and storageEndpoint is specified, not - /// specifying the storageAccountAccessKey will use SQL server - /// system-assigned managed identity to access the storage. - /// Prerequisites for using managed identity authentication: - /// 1. Assign SQL Server a system-assigned managed identity in Azure - /// Active Directory (AAD). - /// 2. Grant SQL Server identity access to the storage account by - /// adding 'Storage Blob Data Contributor' RBAC role to the server - /// identity. - /// For more information, see [Auditing to storage using Managed - /// Identity - /// authentication](https://go.microsoft.com/fwlink/?linkid=2114355) + /// account. If state is Enabled and storageEndpoint is specified, + /// storageAccountAccessKey is required. /// [JsonProperty(PropertyName = "properties.storageAccountAccessKey")] public string StorageAccountAccessKey { get; set; } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ExtendedServerBlobAuditingPolicy.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ExtendedServerBlobAuditingPolicy.cs index f7e2e879b2bf..31f94db40baa 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ExtendedServerBlobAuditingPolicy.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ExtendedServerBlobAuditingPolicy.cs @@ -49,19 +49,9 @@ public ExtendedServerBlobAuditingPolicy() /// Enabled, storageEndpoint or isAzureMonitorTargetEnabled is /// required. /// Specifies the identifier key - /// of the auditing storage account. - /// If state is Enabled and storageEndpoint is specified, not - /// specifying the storageAccountAccessKey will use SQL server - /// system-assigned managed identity to access the storage. - /// Prerequisites for using managed identity authentication: - /// 1. Assign SQL Server a system-assigned managed identity in Azure - /// Active Directory (AAD). - /// 2. Grant SQL Server identity access to the storage account by - /// adding 'Storage Blob Data Contributor' RBAC role to the server - /// identity. - /// For more information, see [Auditing to storage using Managed - /// Identity - /// authentication](https://go.microsoft.com/fwlink/?linkid=2114355) + /// of the auditing storage account. If state is Enabled and + /// storageEndpoint is specified, storageAccountAccessKey is + /// required. /// Specifies the number of days to keep in /// the audit logs in the storage account. /// Specifies the Actions-Groups @@ -214,19 +204,8 @@ public ExtendedServerBlobAuditingPolicy() /// /// Gets or sets specifies the identifier key of the auditing storage - /// account. - /// If state is Enabled and storageEndpoint is specified, not - /// specifying the storageAccountAccessKey will use SQL server - /// system-assigned managed identity to access the storage. - /// Prerequisites for using managed identity authentication: - /// 1. Assign SQL Server a system-assigned managed identity in Azure - /// Active Directory (AAD). - /// 2. Grant SQL Server identity access to the storage account by - /// adding 'Storage Blob Data Contributor' RBAC role to the server - /// identity. - /// For more information, see [Auditing to storage using Managed - /// Identity - /// authentication](https://go.microsoft.com/fwlink/?linkid=2114355) + /// account. If state is Enabled and storageEndpoint is specified, + /// storageAccountAccessKey is required. /// [JsonProperty(PropertyName = "properties.storageAccountAccessKey")] public string StorageAccountAccessKey { get; set; } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/FailoverGroup.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/FailoverGroup.cs index 41197cecd823..9fe6b90fb1bd 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/FailoverGroup.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/FailoverGroup.cs @@ -52,7 +52,7 @@ public FailoverGroup() /// group instance. /// List of databases in the failover /// group. - public FailoverGroup(FailoverGroupReadWriteEndpoint readWriteEndpoint, IList partnerServers, string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), FailoverGroupReadOnlyEndpoint readOnlyEndpoint = default(FailoverGroupReadOnlyEndpoint), FailoverGroupReplicationRole? replicationRole = default(FailoverGroupReplicationRole?), string replicationState = default(string), IList databases = default(IList)) + public FailoverGroup(FailoverGroupReadWriteEndpoint readWriteEndpoint, IList partnerServers, string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), FailoverGroupReadOnlyEndpoint readOnlyEndpoint = default(FailoverGroupReadOnlyEndpoint), string replicationRole = default(string), string replicationState = default(string), IList databases = default(IList)) : base(id, name, type) { Location = location; @@ -100,7 +100,7 @@ public FailoverGroup() /// Possible values include: 'Primary', 'Secondary' /// [JsonProperty(PropertyName = "properties.replicationRole")] - public FailoverGroupReplicationRole? ReplicationRole { get; private set; } + public string ReplicationRole { get; private set; } /// /// Gets replication state of the failover group instance. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/FailoverGroupReadOnlyEndpoint.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/FailoverGroupReadOnlyEndpoint.cs index cc8c1dbf98fe..161a0d051d5c 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/FailoverGroupReadOnlyEndpoint.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/FailoverGroupReadOnlyEndpoint.cs @@ -34,7 +34,7 @@ public FailoverGroupReadOnlyEndpoint() /// Failover policy of the read-only /// endpoint for the failover group. Possible values include: /// 'Disabled', 'Enabled' - public FailoverGroupReadOnlyEndpoint(ReadOnlyEndpointFailoverPolicy? failoverPolicy = default(ReadOnlyEndpointFailoverPolicy?)) + public FailoverGroupReadOnlyEndpoint(string failoverPolicy = default(string)) { FailoverPolicy = failoverPolicy; CustomInit(); @@ -50,7 +50,7 @@ public FailoverGroupReadOnlyEndpoint() /// failover group. Possible values include: 'Disabled', 'Enabled' /// [JsonProperty(PropertyName = "failoverPolicy")] - public ReadOnlyEndpointFailoverPolicy? FailoverPolicy { get; set; } + public string FailoverPolicy { get; set; } } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/FailoverGroupReadWriteEndpoint.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/FailoverGroupReadWriteEndpoint.cs index f36bd4bfb0d8..823617cb01ce 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/FailoverGroupReadWriteEndpoint.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/FailoverGroupReadWriteEndpoint.cs @@ -10,6 +10,7 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Microsoft.Rest; using Newtonsoft.Json; using System.Linq; @@ -39,7 +40,7 @@ public FailoverGroupReadWriteEndpoint() /// before failover with data loss is attempted for the read-write /// endpoint. If failoverPolicy is Automatic then /// failoverWithDataLossGracePeriodMinutes is required. - public FailoverGroupReadWriteEndpoint(ReadWriteEndpointFailoverPolicy failoverPolicy, int? failoverWithDataLossGracePeriodMinutes = default(int?)) + public FailoverGroupReadWriteEndpoint(string failoverPolicy, int? failoverWithDataLossGracePeriodMinutes = default(int?)) { FailoverPolicy = failoverPolicy; FailoverWithDataLossGracePeriodMinutes = failoverWithDataLossGracePeriodMinutes; @@ -58,7 +59,7 @@ public FailoverGroupReadWriteEndpoint() /// include: 'Manual', 'Automatic' /// [JsonProperty(PropertyName = "failoverPolicy")] - public ReadWriteEndpointFailoverPolicy FailoverPolicy { get; set; } + public string FailoverPolicy { get; set; } /// /// Gets or sets grace period before failover with data loss is @@ -71,11 +72,15 @@ public FailoverGroupReadWriteEndpoint() /// /// Validate the object. /// - /// + /// /// Thrown if validation fails /// public virtual void Validate() { + if (FailoverPolicy == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "FailoverPolicy"); + } } } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/FailoverGroupReplicationRole.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/FailoverGroupReplicationRole.cs index 251e505410d2..380e10a578b4 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/FailoverGroupReplicationRole.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/FailoverGroupReplicationRole.cs @@ -10,96 +10,13 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for FailoverGroupReplicationRole. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(FailoverGroupReplicationRoleConverter))] - public struct FailoverGroupReplicationRole : System.IEquatable + public static class FailoverGroupReplicationRole { - private FailoverGroupReplicationRole(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly FailoverGroupReplicationRole Primary = "Primary"; - - public static readonly FailoverGroupReplicationRole Secondary = "Secondary"; - - - /// - /// Underlying value of enum FailoverGroupReplicationRole - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for FailoverGroupReplicationRole - /// - public override string ToString() - { - return UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type FailoverGroupReplicationRole - /// - public bool Equals(FailoverGroupReplicationRole e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to FailoverGroupReplicationRole - /// - public static implicit operator FailoverGroupReplicationRole(string value) - { - return new FailoverGroupReplicationRole(value); - } - - /// - /// Implicit operator to convert FailoverGroupReplicationRole to string - /// - public static implicit operator string(FailoverGroupReplicationRole e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum FailoverGroupReplicationRole - /// - public static bool operator == (FailoverGroupReplicationRole e1, FailoverGroupReplicationRole e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum FailoverGroupReplicationRole - /// - public static bool operator != (FailoverGroupReplicationRole e1, FailoverGroupReplicationRole e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for FailoverGroupReplicationRole - /// - public override bool Equals(object obj) - { - return obj is FailoverGroupReplicationRole && Equals((FailoverGroupReplicationRole)obj); - } - - /// - /// Returns for hashCode FailoverGroupReplicationRole - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string Primary = "Primary"; + public const string Secondary = "Secondary"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/FailoverGroupReplicationRoleConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/FailoverGroupReplicationRoleConverter.cs deleted file mode 100644 index 80c2d0b338e3..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/FailoverGroupReplicationRoleConverter.cs +++ /dev/null @@ -1,55 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for FailoverGroupReplicationRole. - /// - public sealed class FailoverGroupReplicationRoleConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to - /// FailoverGroupReplicationRole by the converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(FailoverGroupReplicationRole).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to - /// FailoverGroupReplicationRole. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (FailoverGroupReplicationRole)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for FailoverGroupReplicationRole for - /// serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/IdentityType.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/IdentityType.cs index c1c201535595..cb7c7a82b81d 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/IdentityType.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/IdentityType.cs @@ -10,94 +10,12 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for IdentityType. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(IdentityTypeConverter))] - public struct IdentityType : System.IEquatable + public static class IdentityType { - private IdentityType(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly IdentityType SystemAssigned = "SystemAssigned"; - - - /// - /// Underlying value of enum IdentityType - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for IdentityType - /// - public override string ToString() - { - return UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type IdentityType - /// - public bool Equals(IdentityType e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to IdentityType - /// - public static implicit operator IdentityType(string value) - { - return new IdentityType(value); - } - - /// - /// Implicit operator to convert IdentityType to string - /// - public static implicit operator string(IdentityType e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum IdentityType - /// - public static bool operator == (IdentityType e1, IdentityType e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum IdentityType - /// - public static bool operator != (IdentityType e1, IdentityType e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for IdentityType - /// - public override bool Equals(object obj) - { - return obj is IdentityType && Equals((IdentityType)obj); - } - - /// - /// Returns for hashCode IdentityType - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string SystemAssigned = "SystemAssigned"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/IdentityTypeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/IdentityTypeConverter.cs deleted file mode 100644 index f171ba65f248..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/IdentityTypeConverter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for IdentityType. - /// - public sealed class IdentityTypeConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to IdentityType by the - /// converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(IdentityType).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to IdentityType. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (IdentityType)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for IdentityType for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ImportExistingDatabaseDefinition.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ImportExistingDatabaseDefinition.cs deleted file mode 100644 index 0c28b55dd451..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ImportExistingDatabaseDefinition.cs +++ /dev/null @@ -1,133 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Linq; - - /// - /// Contains the information necessary to perform import operation for - /// existing database. - /// - public partial class ImportExistingDatabaseDefinition - { - /// - /// Initializes a new instance of the ImportExistingDatabaseDefinition - /// class. - /// - public ImportExistingDatabaseDefinition() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the ImportExistingDatabaseDefinition - /// class. - /// - /// Storage key type. Possible values - /// include: 'SharedAccessKey', 'StorageAccessKey' - /// Storage key. - /// Storage Uri. - /// Administrator login name. - /// Administrator login - /// password. - /// Authentication type. - /// Optional resource information to - /// enable network isolation for request. - public ImportExistingDatabaseDefinition(StorageKeyType storageKeyType, string storageKey, string storageUri, string administratorLogin, string administratorLoginPassword, string authenticationType = default(string), NetworkIsolationSettings networkIsolation = default(NetworkIsolationSettings)) - { - StorageKeyType = storageKeyType; - StorageKey = storageKey; - StorageUri = storageUri; - AdministratorLogin = administratorLogin; - AdministratorLoginPassword = administratorLoginPassword; - AuthenticationType = authenticationType; - NetworkIsolation = networkIsolation; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets storage key type. Possible values include: - /// 'SharedAccessKey', 'StorageAccessKey' - /// - [JsonProperty(PropertyName = "storageKeyType")] - public StorageKeyType StorageKeyType { get; set; } - - /// - /// Gets or sets storage key. - /// - [JsonProperty(PropertyName = "storageKey")] - public string StorageKey { get; set; } - - /// - /// Gets or sets storage Uri. - /// - [JsonProperty(PropertyName = "storageUri")] - public string StorageUri { get; set; } - - /// - /// Gets or sets administrator login name. - /// - [JsonProperty(PropertyName = "administratorLogin")] - public string AdministratorLogin { get; set; } - - /// - /// Gets or sets administrator login password. - /// - [JsonProperty(PropertyName = "administratorLoginPassword")] - public string AdministratorLoginPassword { get; set; } - - /// - /// Gets or sets authentication type. - /// - [JsonProperty(PropertyName = "authenticationType")] - public string AuthenticationType { get; set; } - - /// - /// Gets or sets optional resource information to enable network - /// isolation for request. - /// - [JsonProperty(PropertyName = "networkIsolation")] - public NetworkIsolationSettings NetworkIsolation { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (StorageKey == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "StorageKey"); - } - if (StorageUri == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "StorageUri"); - } - if (AdministratorLogin == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "AdministratorLogin"); - } - if (AdministratorLoginPassword == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "AdministratorLoginPassword"); - } - } - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ImportExportOperationResult.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ImportExportOperationResult.cs deleted file mode 100644 index 548a1664d3b2..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ImportExportOperationResult.cs +++ /dev/null @@ -1,135 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// An ImportExport operation result resource. - /// - [Rest.Serialization.JsonTransformation] - public partial class ImportExportOperationResult : ProxyResource - { - /// - /// Initializes a new instance of the ImportExportOperationResult - /// class. - /// - public ImportExportOperationResult() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the ImportExportOperationResult - /// class. - /// - /// Resource ID. - /// Resource name. - /// Resource type. - /// Request Id. - /// Request type. - /// Queued time. - /// Last modified time. - /// Blob Uri. - /// Server name. - /// Database name. - /// Operation status. - /// Error message. - /// Gets the status of private - /// endpoints associated with this request. - public ImportExportOperationResult(string id = default(string), string name = default(string), string type = default(string), System.Guid? requestId = default(System.Guid?), string requestType = default(string), string queuedTime = default(string), string lastModifiedTime = default(string), string blobUri = default(string), string serverName = default(string), string databaseName = default(string), string status = default(string), string errorMessage = default(string), IList privateEndpointConnections = default(IList)) - : base(id, name, type) - { - RequestId = requestId; - RequestType = requestType; - QueuedTime = queuedTime; - LastModifiedTime = lastModifiedTime; - BlobUri = blobUri; - ServerName = serverName; - DatabaseName = databaseName; - Status = status; - ErrorMessage = errorMessage; - PrivateEndpointConnections = privateEndpointConnections; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets request Id. - /// - [JsonProperty(PropertyName = "properties.requestId")] - public System.Guid? RequestId { get; private set; } - - /// - /// Gets request type. - /// - [JsonProperty(PropertyName = "properties.requestType")] - public string RequestType { get; private set; } - - /// - /// Gets queued time. - /// - [JsonProperty(PropertyName = "properties.queuedTime")] - public string QueuedTime { get; private set; } - - /// - /// Gets last modified time. - /// - [JsonProperty(PropertyName = "properties.lastModifiedTime")] - public string LastModifiedTime { get; private set; } - - /// - /// Gets blob Uri. - /// - [JsonProperty(PropertyName = "properties.blobUri")] - public string BlobUri { get; private set; } - - /// - /// Gets server name. - /// - [JsonProperty(PropertyName = "properties.serverName")] - public string ServerName { get; private set; } - - /// - /// Gets database name. - /// - [JsonProperty(PropertyName = "properties.databaseName")] - public string DatabaseName { get; private set; } - - /// - /// Gets operation status. - /// - [JsonProperty(PropertyName = "properties.status")] - public string Status { get; private set; } - - /// - /// Gets error message. - /// - [JsonProperty(PropertyName = "properties.errorMessage")] - public string ErrorMessage { get; private set; } - - /// - /// Gets the status of private endpoints associated with this request. - /// - [JsonProperty(PropertyName = "properties.privateEndpointConnections")] - public IList PrivateEndpointConnections { get; private set; } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ImportNewDatabaseDefinition.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ImportNewDatabaseDefinition.cs deleted file mode 100644 index d13b7f0797b7..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ImportNewDatabaseDefinition.cs +++ /dev/null @@ -1,167 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Linq; - - /// - /// Contains the information necessary to perform import operation for new - /// database. - /// - public partial class ImportNewDatabaseDefinition - { - /// - /// Initializes a new instance of the ImportNewDatabaseDefinition - /// class. - /// - public ImportNewDatabaseDefinition() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the ImportNewDatabaseDefinition - /// class. - /// - /// Storage key type. Possible values - /// include: 'SharedAccessKey', 'StorageAccessKey' - /// Storage key. - /// Storage Uri. - /// Administrator login name. - /// Administrator login - /// password. - /// Name of the import database. - /// Edition of the import database. - /// Service level objective name of - /// the import database. - /// Max size in bytes for the import - /// database. - /// Authentication type. - /// Optional resource information to - /// enable network isolation for request. - public ImportNewDatabaseDefinition(StorageKeyType storageKeyType, string storageKey, string storageUri, string administratorLogin, string administratorLoginPassword, string databaseName = default(string), string edition = default(string), string serviceObjectiveName = default(string), string maxSizeBytes = default(string), string authenticationType = default(string), NetworkIsolationSettings networkIsolation = default(NetworkIsolationSettings)) - { - DatabaseName = databaseName; - Edition = edition; - ServiceObjectiveName = serviceObjectiveName; - MaxSizeBytes = maxSizeBytes; - StorageKeyType = storageKeyType; - StorageKey = storageKey; - StorageUri = storageUri; - AdministratorLogin = administratorLogin; - AdministratorLoginPassword = administratorLoginPassword; - AuthenticationType = authenticationType; - NetworkIsolation = networkIsolation; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets name of the import database. - /// - [JsonProperty(PropertyName = "databaseName")] - public string DatabaseName { get; set; } - - /// - /// Gets or sets edition of the import database. - /// - [JsonProperty(PropertyName = "edition")] - public string Edition { get; set; } - - /// - /// Gets or sets service level objective name of the import database. - /// - [JsonProperty(PropertyName = "serviceObjectiveName")] - public string ServiceObjectiveName { get; set; } - - /// - /// Gets or sets max size in bytes for the import database. - /// - [JsonProperty(PropertyName = "maxSizeBytes")] - public string MaxSizeBytes { get; set; } - - /// - /// Gets or sets storage key type. Possible values include: - /// 'SharedAccessKey', 'StorageAccessKey' - /// - [JsonProperty(PropertyName = "storageKeyType")] - public StorageKeyType StorageKeyType { get; set; } - - /// - /// Gets or sets storage key. - /// - [JsonProperty(PropertyName = "storageKey")] - public string StorageKey { get; set; } - - /// - /// Gets or sets storage Uri. - /// - [JsonProperty(PropertyName = "storageUri")] - public string StorageUri { get; set; } - - /// - /// Gets or sets administrator login name. - /// - [JsonProperty(PropertyName = "administratorLogin")] - public string AdministratorLogin { get; set; } - - /// - /// Gets or sets administrator login password. - /// - [JsonProperty(PropertyName = "administratorLoginPassword")] - public string AdministratorLoginPassword { get; set; } - - /// - /// Gets or sets authentication type. - /// - [JsonProperty(PropertyName = "authenticationType")] - public string AuthenticationType { get; set; } - - /// - /// Gets or sets optional resource information to enable network - /// isolation for request. - /// - [JsonProperty(PropertyName = "networkIsolation")] - public NetworkIsolationSettings NetworkIsolation { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (StorageKey == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "StorageKey"); - } - if (StorageUri == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "StorageUri"); - } - if (AdministratorLogin == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "AdministratorLogin"); - } - if (AdministratorLoginPassword == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "AdministratorLoginPassword"); - } - } - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstanceFailoverGroup.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstanceFailoverGroup.cs index bc3ff7416992..19f2f6800532 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstanceFailoverGroup.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstanceFailoverGroup.cs @@ -50,7 +50,7 @@ public InstanceFailoverGroup() /// 'Secondary' /// Replication state of the failover /// group instance. - public InstanceFailoverGroup(InstanceFailoverGroupReadWriteEndpoint readWriteEndpoint, IList partnerRegions, IList managedInstancePairs, string id = default(string), string name = default(string), string type = default(string), InstanceFailoverGroupReadOnlyEndpoint readOnlyEndpoint = default(InstanceFailoverGroupReadOnlyEndpoint), InstanceFailoverGroupReplicationRole? replicationRole = default(InstanceFailoverGroupReplicationRole?), string replicationState = default(string)) + public InstanceFailoverGroup(InstanceFailoverGroupReadWriteEndpoint readWriteEndpoint, IList partnerRegions, IList managedInstancePairs, string id = default(string), string name = default(string), string type = default(string), InstanceFailoverGroupReadOnlyEndpoint readOnlyEndpoint = default(InstanceFailoverGroupReadOnlyEndpoint), string replicationRole = default(string), string replicationState = default(string)) : base(id, name, type) { ReadWriteEndpoint = readWriteEndpoint; @@ -84,7 +84,7 @@ public InstanceFailoverGroup() /// Possible values include: 'Primary', 'Secondary' /// [JsonProperty(PropertyName = "properties.replicationRole")] - public InstanceFailoverGroupReplicationRole? ReplicationRole { get; private set; } + public string ReplicationRole { get; private set; } /// /// Gets replication state of the failover group instance. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstanceFailoverGroupReadOnlyEndpoint.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstanceFailoverGroupReadOnlyEndpoint.cs index 5a7e6fcac550..c3e7c22f98d0 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstanceFailoverGroupReadOnlyEndpoint.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstanceFailoverGroupReadOnlyEndpoint.cs @@ -34,7 +34,7 @@ public InstanceFailoverGroupReadOnlyEndpoint() /// Failover policy of the read-only /// endpoint for the failover group. Possible values include: /// 'Disabled', 'Enabled' - public InstanceFailoverGroupReadOnlyEndpoint(ReadOnlyEndpointFailoverPolicy? failoverPolicy = default(ReadOnlyEndpointFailoverPolicy?)) + public InstanceFailoverGroupReadOnlyEndpoint(string failoverPolicy = default(string)) { FailoverPolicy = failoverPolicy; CustomInit(); @@ -50,7 +50,7 @@ public InstanceFailoverGroupReadOnlyEndpoint() /// failover group. Possible values include: 'Disabled', 'Enabled' /// [JsonProperty(PropertyName = "failoverPolicy")] - public ReadOnlyEndpointFailoverPolicy? FailoverPolicy { get; set; } + public string FailoverPolicy { get; set; } } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstanceFailoverGroupReadWriteEndpoint.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstanceFailoverGroupReadWriteEndpoint.cs index 7af96668a660..299752e7bf35 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstanceFailoverGroupReadWriteEndpoint.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstanceFailoverGroupReadWriteEndpoint.cs @@ -10,6 +10,7 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Microsoft.Rest; using Newtonsoft.Json; using System.Linq; @@ -39,7 +40,7 @@ public InstanceFailoverGroupReadWriteEndpoint() /// before failover with data loss is attempted for the read-write /// endpoint. If failoverPolicy is Automatic then /// failoverWithDataLossGracePeriodMinutes is required. - public InstanceFailoverGroupReadWriteEndpoint(ReadWriteEndpointFailoverPolicy failoverPolicy, int? failoverWithDataLossGracePeriodMinutes = default(int?)) + public InstanceFailoverGroupReadWriteEndpoint(string failoverPolicy, int? failoverWithDataLossGracePeriodMinutes = default(int?)) { FailoverPolicy = failoverPolicy; FailoverWithDataLossGracePeriodMinutes = failoverWithDataLossGracePeriodMinutes; @@ -58,7 +59,7 @@ public InstanceFailoverGroupReadWriteEndpoint() /// include: 'Manual', 'Automatic' /// [JsonProperty(PropertyName = "failoverPolicy")] - public ReadWriteEndpointFailoverPolicy FailoverPolicy { get; set; } + public string FailoverPolicy { get; set; } /// /// Gets or sets grace period before failover with data loss is @@ -71,11 +72,15 @@ public InstanceFailoverGroupReadWriteEndpoint() /// /// Validate the object. /// - /// + /// /// Thrown if validation fails /// public virtual void Validate() { + if (FailoverPolicy == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "FailoverPolicy"); + } } } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstanceFailoverGroupReplicationRole.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstanceFailoverGroupReplicationRole.cs index abd0ffb3c64d..cd4a463d4d89 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstanceFailoverGroupReplicationRole.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstanceFailoverGroupReplicationRole.cs @@ -10,101 +10,13 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for InstanceFailoverGroupReplicationRole. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(InstanceFailoverGroupReplicationRoleConverter))] - public struct InstanceFailoverGroupReplicationRole : System.IEquatable + public static class InstanceFailoverGroupReplicationRole { - private InstanceFailoverGroupReplicationRole(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly InstanceFailoverGroupReplicationRole Primary = "Primary"; - - public static readonly InstanceFailoverGroupReplicationRole Secondary = "Secondary"; - - - /// - /// Underlying value of enum InstanceFailoverGroupReplicationRole - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for - /// InstanceFailoverGroupReplicationRole - /// - public override string ToString() - { - return UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type InstanceFailoverGroupReplicationRole - /// - public bool Equals(InstanceFailoverGroupReplicationRole e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to - /// InstanceFailoverGroupReplicationRole - /// - public static implicit operator InstanceFailoverGroupReplicationRole(string value) - { - return new InstanceFailoverGroupReplicationRole(value); - } - - /// - /// Implicit operator to convert InstanceFailoverGroupReplicationRole - /// to string - /// - public static implicit operator string(InstanceFailoverGroupReplicationRole e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum - /// InstanceFailoverGroupReplicationRole - /// - public static bool operator == (InstanceFailoverGroupReplicationRole e1, InstanceFailoverGroupReplicationRole e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum - /// InstanceFailoverGroupReplicationRole - /// - public static bool operator != (InstanceFailoverGroupReplicationRole e1, InstanceFailoverGroupReplicationRole e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for InstanceFailoverGroupReplicationRole - /// - public override bool Equals(object obj) - { - return obj is InstanceFailoverGroupReplicationRole && Equals((InstanceFailoverGroupReplicationRole)obj); - } - - /// - /// Returns for hashCode InstanceFailoverGroupReplicationRole - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string Primary = "Primary"; + public const string Secondary = "Secondary"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstanceFailoverGroupReplicationRoleConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstanceFailoverGroupReplicationRoleConverter.cs deleted file mode 100644 index 2caa0100d9f8..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstanceFailoverGroupReplicationRoleConverter.cs +++ /dev/null @@ -1,55 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for InstanceFailoverGroupReplicationRole. - /// - public sealed class InstanceFailoverGroupReplicationRoleConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to - /// InstanceFailoverGroupReplicationRole by the converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(InstanceFailoverGroupReplicationRole).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to - /// InstanceFailoverGroupReplicationRole. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (InstanceFailoverGroupReplicationRole)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for InstanceFailoverGroupReplicationRole for - /// serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstancePool.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstancePool.cs index cf25e3b6c40b..c174f85c08ac 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstancePool.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstancePool.cs @@ -48,7 +48,7 @@ public InstancePool() /// Resource type. /// Resource tags. /// The name and tier of the SKU. - public InstancePool(string location, string subnetId, int vCores, InstancePoolLicenseType licenseType, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), Sku sku = default(Sku)) + public InstancePool(string location, string subnetId, int vCores, string licenseType, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), Sku sku = default(Sku)) : base(location, id, name, type, tags) { Sku = sku; @@ -89,7 +89,7 @@ public InstancePool() /// 'LicenseIncluded', 'BasePrice' /// [JsonProperty(PropertyName = "properties.licenseType")] - public InstancePoolLicenseType LicenseType { get; set; } + public string LicenseType { get; set; } /// /// Validate the object. @@ -104,6 +104,10 @@ public override void Validate() { throw new ValidationException(ValidationRules.CannotBeNull, "SubnetId"); } + if (LicenseType == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "LicenseType"); + } if (Sku != null) { Sku.Validate(); diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstancePoolEditionCapability.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstancePoolEditionCapability.cs deleted file mode 100644 index 01ed3b9fb65a..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstancePoolEditionCapability.cs +++ /dev/null @@ -1,82 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// The instance pool capability - /// - public partial class InstancePoolEditionCapability - { - /// - /// Initializes a new instance of the InstancePoolEditionCapability - /// class. - /// - public InstancePoolEditionCapability() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the InstancePoolEditionCapability - /// class. - /// - /// The instance pool version name. - /// The supported families. - /// The status of the capability. Possible values - /// include: 'Visible', 'Available', 'Default', 'Disabled' - /// The reason for the capability not being - /// available. - public InstancePoolEditionCapability(string name = default(string), IList supportedFamilies = default(IList), CapabilityStatus? status = default(CapabilityStatus?), string reason = default(string)) - { - Name = name; - SupportedFamilies = supportedFamilies; - Status = status; - Reason = reason; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets the instance pool version name. - /// - [JsonProperty(PropertyName = "name")] - public string Name { get; private set; } - - /// - /// Gets the supported families. - /// - [JsonProperty(PropertyName = "supportedFamilies")] - public IList SupportedFamilies { get; private set; } - - /// - /// Gets the status of the capability. Possible values include: - /// 'Visible', 'Available', 'Default', 'Disabled' - /// - [JsonProperty(PropertyName = "status")] - public CapabilityStatus? Status { get; private set; } - - /// - /// Gets or sets the reason for the capability not being available. - /// - [JsonProperty(PropertyName = "reason")] - public string Reason { get; set; } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstancePoolFamilyCapability.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstancePoolFamilyCapability.cs deleted file mode 100644 index ecfc3e5e09c7..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstancePoolFamilyCapability.cs +++ /dev/null @@ -1,92 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// The instance pool family capability. - /// - public partial class InstancePoolFamilyCapability - { - /// - /// Initializes a new instance of the InstancePoolFamilyCapability - /// class. - /// - public InstancePoolFamilyCapability() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the InstancePoolFamilyCapability - /// class. - /// - /// Family name. - /// List of supported license - /// types. - /// List of supported virtual cores - /// values. - /// The status of the capability. Possible values - /// include: 'Visible', 'Available', 'Default', 'Disabled' - /// The reason for the capability not being - /// available. - public InstancePoolFamilyCapability(string name = default(string), IList supportedLicenseTypes = default(IList), IList supportedVcoresValues = default(IList), CapabilityStatus? status = default(CapabilityStatus?), string reason = default(string)) - { - Name = name; - SupportedLicenseTypes = supportedLicenseTypes; - SupportedVcoresValues = supportedVcoresValues; - Status = status; - Reason = reason; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets family name. - /// - [JsonProperty(PropertyName = "name")] - public string Name { get; private set; } - - /// - /// Gets list of supported license types. - /// - [JsonProperty(PropertyName = "supportedLicenseTypes")] - public IList SupportedLicenseTypes { get; private set; } - - /// - /// Gets list of supported virtual cores values. - /// - [JsonProperty(PropertyName = "supportedVcoresValues")] - public IList SupportedVcoresValues { get; private set; } - - /// - /// Gets the status of the capability. Possible values include: - /// 'Visible', 'Available', 'Default', 'Disabled' - /// - [JsonProperty(PropertyName = "status")] - public CapabilityStatus? Status { get; private set; } - - /// - /// Gets or sets the reason for the capability not being available. - /// - [JsonProperty(PropertyName = "reason")] - public string Reason { get; set; } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstancePoolLicenseType.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstancePoolLicenseType.cs index cdd2c8375b95..b4371565f980 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstancePoolLicenseType.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstancePoolLicenseType.cs @@ -10,96 +10,13 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for InstancePoolLicenseType. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(InstancePoolLicenseTypeConverter))] - public struct InstancePoolLicenseType : System.IEquatable + public static class InstancePoolLicenseType { - private InstancePoolLicenseType(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly InstancePoolLicenseType LicenseIncluded = "LicenseIncluded"; - - public static readonly InstancePoolLicenseType BasePrice = "BasePrice"; - - - /// - /// Underlying value of enum InstancePoolLicenseType - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for InstancePoolLicenseType - /// - public override string ToString() - { - return UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type InstancePoolLicenseType - /// - public bool Equals(InstancePoolLicenseType e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to InstancePoolLicenseType - /// - public static implicit operator InstancePoolLicenseType(string value) - { - return new InstancePoolLicenseType(value); - } - - /// - /// Implicit operator to convert InstancePoolLicenseType to string - /// - public static implicit operator string(InstancePoolLicenseType e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum InstancePoolLicenseType - /// - public static bool operator == (InstancePoolLicenseType e1, InstancePoolLicenseType e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum InstancePoolLicenseType - /// - public static bool operator != (InstancePoolLicenseType e1, InstancePoolLicenseType e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for InstancePoolLicenseType - /// - public override bool Equals(object obj) - { - return obj is InstancePoolLicenseType && Equals((InstancePoolLicenseType)obj); - } - - /// - /// Returns for hashCode InstancePoolLicenseType - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string LicenseIncluded = "LicenseIncluded"; + public const string BasePrice = "BasePrice"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstancePoolLicenseTypeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstancePoolLicenseTypeConverter.cs deleted file mode 100644 index 0ebb9e4ee1f4..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstancePoolLicenseTypeConverter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for InstancePoolLicenseType. - /// - public sealed class InstancePoolLicenseTypeConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to InstancePoolLicenseType - /// by the converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(InstancePoolLicenseType).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to InstancePoolLicenseType. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (InstancePoolLicenseType)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for InstancePoolLicenseType for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstancePoolVcoresCapability.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstancePoolVcoresCapability.cs deleted file mode 100644 index 6d5c653c1846..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstancePoolVcoresCapability.cs +++ /dev/null @@ -1,88 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - using System.Linq; - - /// - /// The managed instance virtual cores capability. - /// - public partial class InstancePoolVcoresCapability - { - /// - /// Initializes a new instance of the InstancePoolVcoresCapability - /// class. - /// - public InstancePoolVcoresCapability() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the InstancePoolVcoresCapability - /// class. - /// - /// The virtual cores identifier. - /// The virtual cores value. - /// Storage limit. - /// The status of the capability. Possible values - /// include: 'Visible', 'Available', 'Default', 'Disabled' - /// The reason for the capability not being - /// available. - public InstancePoolVcoresCapability(string name = default(string), int? value = default(int?), MaxSizeCapability storageLimit = default(MaxSizeCapability), CapabilityStatus? status = default(CapabilityStatus?), string reason = default(string)) - { - Name = name; - Value = value; - StorageLimit = storageLimit; - Status = status; - Reason = reason; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets the virtual cores identifier. - /// - [JsonProperty(PropertyName = "name")] - public string Name { get; private set; } - - /// - /// Gets the virtual cores value. - /// - [JsonProperty(PropertyName = "value")] - public int? Value { get; private set; } - - /// - /// Gets storage limit. - /// - [JsonProperty(PropertyName = "storageLimit")] - public MaxSizeCapability StorageLimit { get; private set; } - - /// - /// Gets the status of the capability. Possible values include: - /// 'Visible', 'Available', 'Default', 'Disabled' - /// - [JsonProperty(PropertyName = "status")] - public CapabilityStatus? Status { get; private set; } - - /// - /// Gets or sets the reason for the capability not being available. - /// - [JsonProperty(PropertyName = "reason")] - public string Reason { get; set; } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobAgent.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobAgent.cs index b82e50f80551..fe6f269eab8a 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobAgent.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobAgent.cs @@ -45,7 +45,7 @@ public JobAgent() /// The state of the job agent. Possible values /// include: 'Creating', 'Ready', 'Updating', 'Deleting', /// 'Disabled' - public JobAgent(string location, string databaseId, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), Sku sku = default(Sku), JobAgentState? state = default(JobAgentState?)) + public JobAgent(string location, string databaseId, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), Sku sku = default(Sku), string state = default(string)) : base(location, id, name, type, tags) { Sku = sku; @@ -76,7 +76,7 @@ public JobAgent() /// 'Creating', 'Ready', 'Updating', 'Deleting', 'Disabled' /// [JsonProperty(PropertyName = "properties.state")] - public JobAgentState? State { get; private set; } + public string State { get; private set; } /// /// Validate the object. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobAgentState.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobAgentState.cs index 24fec667743f..b8897f53cb79 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobAgentState.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobAgentState.cs @@ -10,102 +10,16 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for JobAgentState. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(JobAgentStateConverter))] - public struct JobAgentState : System.IEquatable + public static class JobAgentState { - private JobAgentState(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly JobAgentState Creating = "Creating"; - - public static readonly JobAgentState Ready = "Ready"; - - public static readonly JobAgentState Updating = "Updating"; - - public static readonly JobAgentState Deleting = "Deleting"; - - public static readonly JobAgentState Disabled = "Disabled"; - - - /// - /// Underlying value of enum JobAgentState - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for JobAgentState - /// - public override string ToString() - { - return UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type JobAgentState - /// - public bool Equals(JobAgentState e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to JobAgentState - /// - public static implicit operator JobAgentState(string value) - { - return new JobAgentState(value); - } - - /// - /// Implicit operator to convert JobAgentState to string - /// - public static implicit operator string(JobAgentState e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum JobAgentState - /// - public static bool operator == (JobAgentState e1, JobAgentState e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum JobAgentState - /// - public static bool operator != (JobAgentState e1, JobAgentState e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for JobAgentState - /// - public override bool Equals(object obj) - { - return obj is JobAgentState && Equals((JobAgentState)obj); - } - - /// - /// Returns for hashCode JobAgentState - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string Creating = "Creating"; + public const string Ready = "Ready"; + public const string Updating = "Updating"; + public const string Deleting = "Deleting"; + public const string Disabled = "Disabled"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobAgentStateConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobAgentStateConverter.cs deleted file mode 100644 index 6c021f921d92..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobAgentStateConverter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for JobAgentState. - /// - public sealed class JobAgentStateConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to JobAgentState by the - /// converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(JobAgentState).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to JobAgentState. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (JobAgentState)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for JobAgentState for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobExecution.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobExecution.cs index 2c2768198736..39c3e70baf2c 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobExecution.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobExecution.cs @@ -61,7 +61,7 @@ public JobExecution() /// The last status or error message. /// The target that this execution is executed /// on. - public JobExecution(string id = default(string), string name = default(string), string type = default(string), int? jobVersion = default(int?), string stepName = default(string), int? stepId = default(int?), System.Guid? jobExecutionId = default(System.Guid?), JobExecutionLifecycle? lifecycle = default(JobExecutionLifecycle?), ProvisioningState? provisioningState = default(ProvisioningState?), System.DateTime? createTime = default(System.DateTime?), System.DateTime? startTime = default(System.DateTime?), System.DateTime? endTime = default(System.DateTime?), int? currentAttempts = default(int?), System.DateTime? currentAttemptStartTime = default(System.DateTime?), string lastMessage = default(string), JobExecutionTarget target = default(JobExecutionTarget)) + public JobExecution(string id = default(string), string name = default(string), string type = default(string), int? jobVersion = default(int?), string stepName = default(string), int? stepId = default(int?), System.Guid? jobExecutionId = default(System.Guid?), string lifecycle = default(string), string provisioningState = default(string), System.DateTime? createTime = default(System.DateTime?), System.DateTime? startTime = default(System.DateTime?), System.DateTime? endTime = default(System.DateTime?), int? currentAttempts = default(int?), System.DateTime? currentAttemptStartTime = default(System.DateTime?), string lastMessage = default(string), JobExecutionTarget target = default(JobExecutionTarget)) : base(id, name, type) { JobVersion = jobVersion; @@ -116,7 +116,7 @@ public JobExecution() /// 'TimedOut', 'Canceled', 'Skipped' /// [JsonProperty(PropertyName = "properties.lifecycle")] - public JobExecutionLifecycle? Lifecycle { get; private set; } + public string Lifecycle { get; private set; } /// /// Gets the ARM provisioning state of the job execution. Possible @@ -124,7 +124,7 @@ public JobExecution() /// 'Canceled' /// [JsonProperty(PropertyName = "properties.provisioningState")] - public ProvisioningState? ProvisioningState { get; private set; } + public string ProvisioningState { get; private set; } /// /// Gets the time that the job execution was created. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobExecutionLifecycle.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobExecutionLifecycle.cs index 50d8148bac4e..37ead7ce7ff5 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobExecutionLifecycle.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobExecutionLifecycle.cs @@ -10,112 +10,21 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for JobExecutionLifecycle. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(JobExecutionLifecycleConverter))] - public struct JobExecutionLifecycle : System.IEquatable + public static class JobExecutionLifecycle { - private JobExecutionLifecycle(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly JobExecutionLifecycle Created = "Created"; - - public static readonly JobExecutionLifecycle InProgress = "InProgress"; - - public static readonly JobExecutionLifecycle WaitingForChildJobExecutions = "WaitingForChildJobExecutions"; - - public static readonly JobExecutionLifecycle WaitingForRetry = "WaitingForRetry"; - - public static readonly JobExecutionLifecycle Succeeded = "Succeeded"; - - public static readonly JobExecutionLifecycle SucceededWithSkipped = "SucceededWithSkipped"; - - public static readonly JobExecutionLifecycle Failed = "Failed"; - - public static readonly JobExecutionLifecycle TimedOut = "TimedOut"; - - public static readonly JobExecutionLifecycle Canceled = "Canceled"; - - public static readonly JobExecutionLifecycle Skipped = "Skipped"; - - - /// - /// Underlying value of enum JobExecutionLifecycle - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for JobExecutionLifecycle - /// - public override string ToString() - { - return UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type JobExecutionLifecycle - /// - public bool Equals(JobExecutionLifecycle e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to JobExecutionLifecycle - /// - public static implicit operator JobExecutionLifecycle(string value) - { - return new JobExecutionLifecycle(value); - } - - /// - /// Implicit operator to convert JobExecutionLifecycle to string - /// - public static implicit operator string(JobExecutionLifecycle e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum JobExecutionLifecycle - /// - public static bool operator == (JobExecutionLifecycle e1, JobExecutionLifecycle e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum JobExecutionLifecycle - /// - public static bool operator != (JobExecutionLifecycle e1, JobExecutionLifecycle e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for JobExecutionLifecycle - /// - public override bool Equals(object obj) - { - return obj is JobExecutionLifecycle && Equals((JobExecutionLifecycle)obj); - } - - /// - /// Returns for hashCode JobExecutionLifecycle - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string Created = "Created"; + public const string InProgress = "InProgress"; + public const string WaitingForChildJobExecutions = "WaitingForChildJobExecutions"; + public const string WaitingForRetry = "WaitingForRetry"; + public const string Succeeded = "Succeeded"; + public const string SucceededWithSkipped = "SucceededWithSkipped"; + public const string Failed = "Failed"; + public const string TimedOut = "TimedOut"; + public const string Canceled = "Canceled"; + public const string Skipped = "Skipped"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobExecutionLifecycleConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobExecutionLifecycleConverter.cs deleted file mode 100644 index 4f1114861711..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobExecutionLifecycleConverter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for JobExecutionLifecycle. - /// - public sealed class JobExecutionLifecycleConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to JobExecutionLifecycle by - /// the converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(JobExecutionLifecycle).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to JobExecutionLifecycle. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (JobExecutionLifecycle)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for JobExecutionLifecycle for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobExecutionTarget.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobExecutionTarget.cs index bd2989561aef..6b7e1dff02e8 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobExecutionTarget.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobExecutionTarget.cs @@ -34,7 +34,7 @@ public JobExecutionTarget() /// 'SqlServer' /// The server name. /// The database name. - public JobExecutionTarget(JobTargetType? type = default(JobTargetType?), string serverName = default(string), string databaseName = default(string)) + public JobExecutionTarget(string type = default(string), string serverName = default(string), string databaseName = default(string)) { Type = type; ServerName = serverName; @@ -53,7 +53,7 @@ public JobExecutionTarget() /// 'SqlServer' /// [JsonProperty(PropertyName = "type")] - public JobTargetType? Type { get; private set; } + public string Type { get; private set; } /// /// Gets the server name. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobStepAction.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobStepAction.cs index e550d8f8b04e..51941a310406 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobStepAction.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobStepAction.cs @@ -36,7 +36,7 @@ public JobStepAction() /// Possible values include: 'TSql' /// The source of the action to execute. Possible /// values include: 'Inline' - public JobStepAction(string value, JobStepActionType? type = default(JobStepActionType?), JobStepActionSource? source = default(JobStepActionSource?)) + public JobStepAction(string value, string type = default(string), string source = default(string)) { Type = type; Source = source; @@ -54,14 +54,14 @@ public JobStepAction() /// Possible values include: 'TSql' /// [JsonProperty(PropertyName = "type")] - public JobStepActionType? Type { get; set; } + public string Type { get; set; } /// /// Gets or sets the source of the action to execute. Possible values /// include: 'Inline' /// [JsonProperty(PropertyName = "source")] - public JobStepActionSource? Source { get; set; } + public string Source { get; set; } /// /// Gets or sets the action value, for example the text of the T-SQL diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobStepActionSource.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobStepActionSource.cs index 18f8b1d00e82..2f96d3a39604 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobStepActionSource.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobStepActionSource.cs @@ -10,94 +10,12 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for JobStepActionSource. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(JobStepActionSourceConverter))] - public struct JobStepActionSource : System.IEquatable + public static class JobStepActionSource { - private JobStepActionSource(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly JobStepActionSource Inline = "Inline"; - - - /// - /// Underlying value of enum JobStepActionSource - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for JobStepActionSource - /// - public override string ToString() - { - return UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type JobStepActionSource - /// - public bool Equals(JobStepActionSource e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to JobStepActionSource - /// - public static implicit operator JobStepActionSource(string value) - { - return new JobStepActionSource(value); - } - - /// - /// Implicit operator to convert JobStepActionSource to string - /// - public static implicit operator string(JobStepActionSource e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum JobStepActionSource - /// - public static bool operator == (JobStepActionSource e1, JobStepActionSource e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum JobStepActionSource - /// - public static bool operator != (JobStepActionSource e1, JobStepActionSource e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for JobStepActionSource - /// - public override bool Equals(object obj) - { - return obj is JobStepActionSource && Equals((JobStepActionSource)obj); - } - - /// - /// Returns for hashCode JobStepActionSource - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string Inline = "Inline"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobStepActionSourceConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobStepActionSourceConverter.cs deleted file mode 100644 index 241c078ae7fe..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobStepActionSourceConverter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for JobStepActionSource. - /// - public sealed class JobStepActionSourceConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to JobStepActionSource by - /// the converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(JobStepActionSource).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to JobStepActionSource. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (JobStepActionSource)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for JobStepActionSource for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobStepActionType.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobStepActionType.cs index 2352a1ccadd9..6dda291ff321 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobStepActionType.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobStepActionType.cs @@ -10,94 +10,12 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for JobStepActionType. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(JobStepActionTypeConverter))] - public struct JobStepActionType : System.IEquatable + public static class JobStepActionType { - private JobStepActionType(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly JobStepActionType TSql = "TSql"; - - - /// - /// Underlying value of enum JobStepActionType - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for JobStepActionType - /// - public override string ToString() - { - return UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type JobStepActionType - /// - public bool Equals(JobStepActionType e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to JobStepActionType - /// - public static implicit operator JobStepActionType(string value) - { - return new JobStepActionType(value); - } - - /// - /// Implicit operator to convert JobStepActionType to string - /// - public static implicit operator string(JobStepActionType e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum JobStepActionType - /// - public static bool operator == (JobStepActionType e1, JobStepActionType e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum JobStepActionType - /// - public static bool operator != (JobStepActionType e1, JobStepActionType e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for JobStepActionType - /// - public override bool Equals(object obj) - { - return obj is JobStepActionType && Equals((JobStepActionType)obj); - } - - /// - /// Returns for hashCode JobStepActionType - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string TSql = "TSql"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobStepActionTypeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobStepActionTypeConverter.cs deleted file mode 100644 index 28ded5cdd872..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobStepActionTypeConverter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for JobStepActionType. - /// - public sealed class JobStepActionTypeConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to JobStepActionType by the - /// converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(JobStepActionType).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to JobStepActionType. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (JobStepActionType)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for JobStepActionType for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobStepOutput.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobStepOutput.cs index c2f8ba1e4bc0..cdd0db7bec05 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobStepOutput.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobStepOutput.cs @@ -43,7 +43,7 @@ public JobStepOutput() /// The output destination resource /// group. /// The output destination schema. - public JobStepOutput(string serverName, string databaseName, string tableName, string credential, JobStepOutputType? type = default(JobStepOutputType?), System.Guid? subscriptionId = default(System.Guid?), string resourceGroupName = default(string), string schemaName = default(string)) + public JobStepOutput(string serverName, string databaseName, string tableName, string credential, string type = default(string), System.Guid? subscriptionId = default(System.Guid?), string resourceGroupName = default(string), string schemaName = default(string)) { Type = type; SubscriptionId = subscriptionId; @@ -66,7 +66,7 @@ public JobStepOutput() /// 'SqlDatabase' /// [JsonProperty(PropertyName = "type")] - public JobStepOutputType? Type { get; set; } + public string Type { get; set; } /// /// Gets or sets the output destination subscription id. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobStepOutputType.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobStepOutputType.cs index ef25916619b3..bb86c8126657 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobStepOutputType.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobStepOutputType.cs @@ -10,94 +10,12 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for JobStepOutputType. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(JobStepOutputTypeConverter))] - public struct JobStepOutputType : System.IEquatable + public static class JobStepOutputType { - private JobStepOutputType(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly JobStepOutputType SqlDatabase = "SqlDatabase"; - - - /// - /// Underlying value of enum JobStepOutputType - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for JobStepOutputType - /// - public override string ToString() - { - return UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type JobStepOutputType - /// - public bool Equals(JobStepOutputType e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to JobStepOutputType - /// - public static implicit operator JobStepOutputType(string value) - { - return new JobStepOutputType(value); - } - - /// - /// Implicit operator to convert JobStepOutputType to string - /// - public static implicit operator string(JobStepOutputType e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum JobStepOutputType - /// - public static bool operator == (JobStepOutputType e1, JobStepOutputType e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum JobStepOutputType - /// - public static bool operator != (JobStepOutputType e1, JobStepOutputType e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for JobStepOutputType - /// - public override bool Equals(object obj) - { - return obj is JobStepOutputType && Equals((JobStepOutputType)obj); - } - - /// - /// Returns for hashCode JobStepOutputType - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string SqlDatabase = "SqlDatabase"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobStepOutputTypeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobStepOutputTypeConverter.cs deleted file mode 100644 index f6e86f9a358b..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobStepOutputTypeConverter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for JobStepOutputType. - /// - public sealed class JobStepOutputTypeConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to JobStepOutputType by the - /// converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(JobStepOutputType).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to JobStepOutputType. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (JobStepOutputType)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for JobStepOutputType for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobTarget.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobTarget.cs index 4d0b124b79da..7d03cc175e67 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobTarget.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobTarget.cs @@ -10,6 +10,7 @@ namespace Microsoft.Azure.Management.Sql.Models { + using Microsoft.Rest; using Newtonsoft.Json; using System.Linq; @@ -43,7 +44,7 @@ public JobTarget() /// The resource ID of the credential /// that is used during job execution to connect to the target and /// determine the list of databases inside the target. - public JobTarget(JobTargetType type, JobTargetGroupMembershipType? membershipType = default(JobTargetGroupMembershipType?), string serverName = default(string), string databaseName = default(string), string elasticPoolName = default(string), string shardMapName = default(string), string refreshCredential = default(string)) + public JobTarget(string type, JobTargetGroupMembershipType? membershipType = default(JobTargetGroupMembershipType?), string serverName = default(string), string databaseName = default(string), string elasticPoolName = default(string), string shardMapName = default(string), string refreshCredential = default(string)) { MembershipType = membershipType; Type = type; @@ -73,7 +74,7 @@ public JobTarget() /// 'SqlServer' /// [JsonProperty(PropertyName = "type")] - public JobTargetType Type { get; set; } + public string Type { get; set; } /// /// Gets or sets the target server name. @@ -110,11 +111,15 @@ public JobTarget() /// /// Validate the object. /// - /// + /// /// Thrown if validation fails /// public virtual void Validate() { + if (Type == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Type"); + } } } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobTargetType.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobTargetType.cs index 01fbf9a93991..bf3921ce5ec0 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobTargetType.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobTargetType.cs @@ -10,102 +10,16 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for JobTargetType. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(JobTargetTypeConverter))] - public struct JobTargetType : System.IEquatable + public static class JobTargetType { - private JobTargetType(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly JobTargetType TargetGroup = "TargetGroup"; - - public static readonly JobTargetType SqlDatabase = "SqlDatabase"; - - public static readonly JobTargetType SqlElasticPool = "SqlElasticPool"; - - public static readonly JobTargetType SqlShardMap = "SqlShardMap"; - - public static readonly JobTargetType SqlServer = "SqlServer"; - - - /// - /// Underlying value of enum JobTargetType - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for JobTargetType - /// - public override string ToString() - { - return UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type JobTargetType - /// - public bool Equals(JobTargetType e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to JobTargetType - /// - public static implicit operator JobTargetType(string value) - { - return new JobTargetType(value); - } - - /// - /// Implicit operator to convert JobTargetType to string - /// - public static implicit operator string(JobTargetType e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum JobTargetType - /// - public static bool operator == (JobTargetType e1, JobTargetType e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum JobTargetType - /// - public static bool operator != (JobTargetType e1, JobTargetType e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for JobTargetType - /// - public override bool Equals(object obj) - { - return obj is JobTargetType && Equals((JobTargetType)obj); - } - - /// - /// Returns for hashCode JobTargetType - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string TargetGroup = "TargetGroup"; + public const string SqlDatabase = "SqlDatabase"; + public const string SqlElasticPool = "SqlElasticPool"; + public const string SqlShardMap = "SqlShardMap"; + public const string SqlServer = "SqlServer"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobTargetTypeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobTargetTypeConverter.cs deleted file mode 100644 index 8b117d0ea11e..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/JobTargetTypeConverter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for JobTargetType. - /// - public sealed class JobTargetTypeConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to JobTargetType by the - /// converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(JobTargetType).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to JobTargetType. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (JobTargetType)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for JobTargetType for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/LogSizeCapability.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/LogSizeCapability.cs index aaf5d85a541b..e374ba951793 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/LogSizeCapability.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/LogSizeCapability.cs @@ -34,7 +34,7 @@ public LogSizeCapability() /// The units that the limit is expressed in. /// Possible values include: 'Megabytes', 'Gigabytes', 'Terabytes', /// 'Petabytes', 'Percent' - public LogSizeCapability(int? limit = default(int?), LogSizeUnit? unit = default(LogSizeUnit?)) + public LogSizeCapability(int? limit = default(int?), string unit = default(string)) { Limit = limit; Unit = unit; @@ -58,7 +58,7 @@ public LogSizeCapability() /// 'Percent' /// [JsonProperty(PropertyName = "unit")] - public LogSizeUnit? Unit { get; private set; } + public string Unit { get; private set; } } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/LogSizeUnit.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/LogSizeUnit.cs index e595a40f2bbc..1b8c8bfc8596 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/LogSizeUnit.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/LogSizeUnit.cs @@ -10,102 +10,16 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for LogSizeUnit. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(LogSizeUnitConverter))] - public struct LogSizeUnit : System.IEquatable + public static class LogSizeUnit { - private LogSizeUnit(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly LogSizeUnit Megabytes = "Megabytes"; - - public static readonly LogSizeUnit Gigabytes = "Gigabytes"; - - public static readonly LogSizeUnit Terabytes = "Terabytes"; - - public static readonly LogSizeUnit Petabytes = "Petabytes"; - - public static readonly LogSizeUnit Percent = "Percent"; - - - /// - /// Underlying value of enum LogSizeUnit - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for LogSizeUnit - /// - public override string ToString() - { - return UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type LogSizeUnit - /// - public bool Equals(LogSizeUnit e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to LogSizeUnit - /// - public static implicit operator LogSizeUnit(string value) - { - return new LogSizeUnit(value); - } - - /// - /// Implicit operator to convert LogSizeUnit to string - /// - public static implicit operator string(LogSizeUnit e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum LogSizeUnit - /// - public static bool operator == (LogSizeUnit e1, LogSizeUnit e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum LogSizeUnit - /// - public static bool operator != (LogSizeUnit e1, LogSizeUnit e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for LogSizeUnit - /// - public override bool Equals(object obj) - { - return obj is LogSizeUnit && Equals((LogSizeUnit)obj); - } - - /// - /// Returns for hashCode LogSizeUnit - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string Megabytes = "Megabytes"; + public const string Gigabytes = "Gigabytes"; + public const string Terabytes = "Terabytes"; + public const string Petabytes = "Petabytes"; + public const string Percent = "Percent"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/LogSizeUnitConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/LogSizeUnitConverter.cs deleted file mode 100644 index bb9f436d6278..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/LogSizeUnitConverter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for LogSizeUnit. - /// - public sealed class LogSizeUnitConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to LogSizeUnit by the - /// converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(LogSizeUnit).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to LogSizeUnit. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (LogSizeUnit)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for LogSizeUnit for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/LongTermRetentionDatabaseState.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/LongTermRetentionDatabaseState.cs index 341242387fe3..5bcd5d6f4710 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/LongTermRetentionDatabaseState.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/LongTermRetentionDatabaseState.cs @@ -10,100 +10,14 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for LongTermRetentionDatabaseState. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(LongTermRetentionDatabaseStateConverter))] - public struct LongTermRetentionDatabaseState : System.IEquatable + public static class LongTermRetentionDatabaseState { - private LongTermRetentionDatabaseState(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly LongTermRetentionDatabaseState All = "All"; - - public static readonly LongTermRetentionDatabaseState Live = "Live"; - - public static readonly LongTermRetentionDatabaseState Deleted = "Deleted"; - - - /// - /// Underlying value of enum LongTermRetentionDatabaseState - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for LongTermRetentionDatabaseState - /// - public override string ToString() - { - return UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type LongTermRetentionDatabaseState - /// - public bool Equals(LongTermRetentionDatabaseState e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to - /// LongTermRetentionDatabaseState - /// - public static implicit operator LongTermRetentionDatabaseState(string value) - { - return new LongTermRetentionDatabaseState(value); - } - - /// - /// Implicit operator to convert LongTermRetentionDatabaseState to - /// string - /// - public static implicit operator string(LongTermRetentionDatabaseState e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum LongTermRetentionDatabaseState - /// - public static bool operator == (LongTermRetentionDatabaseState e1, LongTermRetentionDatabaseState e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum LongTermRetentionDatabaseState - /// - public static bool operator != (LongTermRetentionDatabaseState e1, LongTermRetentionDatabaseState e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for LongTermRetentionDatabaseState - /// - public override bool Equals(object obj) - { - return obj is LongTermRetentionDatabaseState && Equals((LongTermRetentionDatabaseState)obj); - } - - /// - /// Returns for hashCode LongTermRetentionDatabaseState - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string All = "All"; + public const string Live = "Live"; + public const string Deleted = "Deleted"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/LongTermRetentionDatabaseStateConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/LongTermRetentionDatabaseStateConverter.cs deleted file mode 100644 index ecda89352bb8..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/LongTermRetentionDatabaseStateConverter.cs +++ /dev/null @@ -1,55 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for LongTermRetentionDatabaseState. - /// - public sealed class LongTermRetentionDatabaseStateConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to - /// LongTermRetentionDatabaseState by the converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(LongTermRetentionDatabaseState).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to - /// LongTermRetentionDatabaseState. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (LongTermRetentionDatabaseState)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for LongTermRetentionDatabaseState for - /// serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedDatabase.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedDatabase.cs index d16a278fd6e2..097d79ad06b1 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedDatabase.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedDatabase.cs @@ -93,7 +93,7 @@ public ManagedDatabase() /// of this managed database. /// Last backup file name for restore of /// this managed database. - public ManagedDatabase(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), string collation = default(string), ManagedDatabaseStatus? status = default(ManagedDatabaseStatus?), System.DateTime? creationDate = default(System.DateTime?), System.DateTime? earliestRestorePoint = default(System.DateTime?), System.DateTime? restorePointInTime = default(System.DateTime?), string defaultSecondaryLocation = default(string), CatalogCollationType? catalogCollation = default(CatalogCollationType?), ManagedDatabaseCreateMode? createMode = default(ManagedDatabaseCreateMode?), string storageContainerUri = default(string), string sourceDatabaseId = default(string), string restorableDroppedDatabaseId = default(string), string storageContainerSasToken = default(string), string failoverGroupId = default(string), string recoverableDatabaseId = default(string), string longTermRetentionBackupResourceId = default(string), bool? autoCompleteRestore = default(bool?), string lastBackupName = default(string)) + public ManagedDatabase(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), string collation = default(string), string status = default(string), System.DateTime? creationDate = default(System.DateTime?), System.DateTime? earliestRestorePoint = default(System.DateTime?), System.DateTime? restorePointInTime = default(System.DateTime?), string defaultSecondaryLocation = default(string), string catalogCollation = default(string), string createMode = default(string), string storageContainerUri = default(string), string sourceDatabaseId = default(string), string restorableDroppedDatabaseId = default(string), string storageContainerSasToken = default(string), string failoverGroupId = default(string), string recoverableDatabaseId = default(string), string longTermRetentionBackupResourceId = default(string), bool? autoCompleteRestore = default(bool?), string lastBackupName = default(string)) : base(location, id, name, type, tags) { Collation = collation; @@ -133,7 +133,7 @@ public ManagedDatabase() /// 'Updating' /// [JsonProperty(PropertyName = "properties.status")] - public ManagedDatabaseStatus? Status { get; private set; } + public string Status { get; private set; } /// /// Gets creation date of the database. @@ -167,7 +167,7 @@ public ManagedDatabase() /// include: 'DATABASE_DEFAULT', 'SQL_Latin1_General_CP1_CI_AS' /// [JsonProperty(PropertyName = "properties.catalogCollation")] - public CatalogCollationType? CatalogCollation { get; set; } + public string CatalogCollation { get; set; } /// /// Gets or sets managed database create mode. PointInTimeRestore: @@ -185,7 +185,7 @@ public ManagedDatabase() /// 'Recovery', 'RestoreLongTermRetentionBackup' /// [JsonProperty(PropertyName = "properties.createMode")] - public ManagedDatabaseCreateMode? CreateMode { get; set; } + public string CreateMode { get; set; } /// /// Gets or sets conditional. If createMode is RestoreExternalBackup, diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedDatabaseCreateMode.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedDatabaseCreateMode.cs index 8edb412f8b74..c7c1e20d8260 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedDatabaseCreateMode.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedDatabaseCreateMode.cs @@ -10,102 +10,16 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for ManagedDatabaseCreateMode. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(ManagedDatabaseCreateModeConverter))] - public struct ManagedDatabaseCreateMode : System.IEquatable + public static class ManagedDatabaseCreateMode { - private ManagedDatabaseCreateMode(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly ManagedDatabaseCreateMode Default = "Default"; - - public static readonly ManagedDatabaseCreateMode RestoreExternalBackup = "RestoreExternalBackup"; - - public static readonly ManagedDatabaseCreateMode PointInTimeRestore = "PointInTimeRestore"; - - public static readonly ManagedDatabaseCreateMode Recovery = "Recovery"; - - public static readonly ManagedDatabaseCreateMode RestoreLongTermRetentionBackup = "RestoreLongTermRetentionBackup"; - - - /// - /// Underlying value of enum ManagedDatabaseCreateMode - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for ManagedDatabaseCreateMode - /// - public override string ToString() - { - return UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type ManagedDatabaseCreateMode - /// - public bool Equals(ManagedDatabaseCreateMode e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to ManagedDatabaseCreateMode - /// - public static implicit operator ManagedDatabaseCreateMode(string value) - { - return new ManagedDatabaseCreateMode(value); - } - - /// - /// Implicit operator to convert ManagedDatabaseCreateMode to string - /// - public static implicit operator string(ManagedDatabaseCreateMode e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum ManagedDatabaseCreateMode - /// - public static bool operator == (ManagedDatabaseCreateMode e1, ManagedDatabaseCreateMode e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum ManagedDatabaseCreateMode - /// - public static bool operator != (ManagedDatabaseCreateMode e1, ManagedDatabaseCreateMode e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for ManagedDatabaseCreateMode - /// - public override bool Equals(object obj) - { - return obj is ManagedDatabaseCreateMode && Equals((ManagedDatabaseCreateMode)obj); - } - - /// - /// Returns for hashCode ManagedDatabaseCreateMode - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string Default = "Default"; + public const string RestoreExternalBackup = "RestoreExternalBackup"; + public const string PointInTimeRestore = "PointInTimeRestore"; + public const string Recovery = "Recovery"; + public const string RestoreLongTermRetentionBackup = "RestoreLongTermRetentionBackup"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedDatabaseCreateModeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedDatabaseCreateModeConverter.cs deleted file mode 100644 index bfc490f8b789..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedDatabaseCreateModeConverter.cs +++ /dev/null @@ -1,54 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for ManagedDatabaseCreateMode. - /// - public sealed class ManagedDatabaseCreateModeConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to ManagedDatabaseCreateMode - /// by the converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(ManagedDatabaseCreateMode).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to ManagedDatabaseCreateMode. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (ManagedDatabaseCreateMode)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for ManagedDatabaseCreateMode for - /// serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedDatabaseStatus.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedDatabaseStatus.cs index df66c5020284..fb53873a68b4 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedDatabaseStatus.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedDatabaseStatus.cs @@ -10,106 +10,18 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for ManagedDatabaseStatus. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(ManagedDatabaseStatusConverter))] - public struct ManagedDatabaseStatus : System.IEquatable + public static class ManagedDatabaseStatus { - private ManagedDatabaseStatus(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly ManagedDatabaseStatus Online = "Online"; - - public static readonly ManagedDatabaseStatus Offline = "Offline"; - - public static readonly ManagedDatabaseStatus Shutdown = "Shutdown"; - - public static readonly ManagedDatabaseStatus Creating = "Creating"; - - public static readonly ManagedDatabaseStatus Inaccessible = "Inaccessible"; - - public static readonly ManagedDatabaseStatus Restoring = "Restoring"; - - public static readonly ManagedDatabaseStatus Updating = "Updating"; - - - /// - /// Underlying value of enum ManagedDatabaseStatus - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for ManagedDatabaseStatus - /// - public override string ToString() - { - return UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type ManagedDatabaseStatus - /// - public bool Equals(ManagedDatabaseStatus e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to ManagedDatabaseStatus - /// - public static implicit operator ManagedDatabaseStatus(string value) - { - return new ManagedDatabaseStatus(value); - } - - /// - /// Implicit operator to convert ManagedDatabaseStatus to string - /// - public static implicit operator string(ManagedDatabaseStatus e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum ManagedDatabaseStatus - /// - public static bool operator == (ManagedDatabaseStatus e1, ManagedDatabaseStatus e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum ManagedDatabaseStatus - /// - public static bool operator != (ManagedDatabaseStatus e1, ManagedDatabaseStatus e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for ManagedDatabaseStatus - /// - public override bool Equals(object obj) - { - return obj is ManagedDatabaseStatus && Equals((ManagedDatabaseStatus)obj); - } - - /// - /// Returns for hashCode ManagedDatabaseStatus - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string Online = "Online"; + public const string Offline = "Offline"; + public const string Shutdown = "Shutdown"; + public const string Creating = "Creating"; + public const string Inaccessible = "Inaccessible"; + public const string Restoring = "Restoring"; + public const string Updating = "Updating"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedDatabaseStatusConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedDatabaseStatusConverter.cs deleted file mode 100644 index 3478b2db9f0a..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedDatabaseStatusConverter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for ManagedDatabaseStatus. - /// - public sealed class ManagedDatabaseStatusConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to ManagedDatabaseStatus by - /// the converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(ManagedDatabaseStatus).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to ManagedDatabaseStatus. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (ManagedDatabaseStatus)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for ManagedDatabaseStatus for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedDatabaseUpdate.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedDatabaseUpdate.cs index 6729a79e652a..4afb5faa70f0 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedDatabaseUpdate.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedDatabaseUpdate.cs @@ -89,7 +89,7 @@ public ManagedDatabaseUpdate() /// Last backup file name for restore of /// this managed database. /// Resource tags. - public ManagedDatabaseUpdate(string collation = default(string), ManagedDatabaseStatus? status = default(ManagedDatabaseStatus?), System.DateTime? creationDate = default(System.DateTime?), System.DateTime? earliestRestorePoint = default(System.DateTime?), System.DateTime? restorePointInTime = default(System.DateTime?), string defaultSecondaryLocation = default(string), CatalogCollationType? catalogCollation = default(CatalogCollationType?), ManagedDatabaseCreateMode? createMode = default(ManagedDatabaseCreateMode?), string storageContainerUri = default(string), string sourceDatabaseId = default(string), string restorableDroppedDatabaseId = default(string), string storageContainerSasToken = default(string), string failoverGroupId = default(string), string recoverableDatabaseId = default(string), string longTermRetentionBackupResourceId = default(string), bool? autoCompleteRestore = default(bool?), string lastBackupName = default(string), IDictionary tags = default(IDictionary)) + public ManagedDatabaseUpdate(string collation = default(string), string status = default(string), System.DateTime? creationDate = default(System.DateTime?), System.DateTime? earliestRestorePoint = default(System.DateTime?), System.DateTime? restorePointInTime = default(System.DateTime?), string defaultSecondaryLocation = default(string), string catalogCollation = default(string), string createMode = default(string), string storageContainerUri = default(string), string sourceDatabaseId = default(string), string restorableDroppedDatabaseId = default(string), string storageContainerSasToken = default(string), string failoverGroupId = default(string), string recoverableDatabaseId = default(string), string longTermRetentionBackupResourceId = default(string), bool? autoCompleteRestore = default(bool?), string lastBackupName = default(string), IDictionary tags = default(IDictionary)) { Collation = collation; Status = status; @@ -129,7 +129,7 @@ public ManagedDatabaseUpdate() /// 'Updating' /// [JsonProperty(PropertyName = "properties.status")] - public ManagedDatabaseStatus? Status { get; private set; } + public string Status { get; private set; } /// /// Gets creation date of the database. @@ -163,7 +163,7 @@ public ManagedDatabaseUpdate() /// include: 'DATABASE_DEFAULT', 'SQL_Latin1_General_CP1_CI_AS' /// [JsonProperty(PropertyName = "properties.catalogCollation")] - public CatalogCollationType? CatalogCollation { get; set; } + public string CatalogCollation { get; set; } /// /// Gets or sets managed database create mode. PointInTimeRestore: @@ -181,7 +181,7 @@ public ManagedDatabaseUpdate() /// 'Recovery', 'RestoreLongTermRetentionBackup' /// [JsonProperty(PropertyName = "properties.createMode")] - public ManagedDatabaseCreateMode? CreateMode { get; set; } + public string CreateMode { get; set; } /// /// Gets or sets conditional. If createMode is RestoreExternalBackup, diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstance.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstance.cs index 1e0e2bbf1469..39e3bb0b60a5 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstance.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstance.cs @@ -105,8 +105,6 @@ public ManagedInstance() /// Europe Standard Time". /// The Id of the instance pool this /// managed server belongs to. - /// Specifies maintenance - /// configuration id to apply to this managed instance. /// Minimal TLS version. Allowed /// values: 'None', '1.0', '1.1', '1.2' /// The storage account type used to @@ -114,7 +112,7 @@ public ManagedInstance() /// (LocallyRedundantStorage), ZRS (ZoneRedundantStorage) and GRS /// (GeoRedundantStorage). Possible values include: 'GRS', 'LRS', /// 'ZRS' - public ManagedInstance(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), ResourceIdentity identity = default(ResourceIdentity), Sku sku = default(Sku), string provisioningState = default(string), ManagedServerCreateMode? managedInstanceCreateMode = default(ManagedServerCreateMode?), string fullyQualifiedDomainName = default(string), string administratorLogin = default(string), string administratorLoginPassword = default(string), string subnetId = default(string), string state = default(string), ManagedInstanceLicenseType? licenseType = default(ManagedInstanceLicenseType?), int? vCores = default(int?), int? storageSizeInGB = default(int?), string collation = default(string), string dnsZone = default(string), string dnsZonePartner = default(string), bool? publicDataEndpointEnabled = default(bool?), string sourceManagedInstanceId = default(string), System.DateTime? restorePointInTime = default(System.DateTime?), ManagedInstanceProxyOverride? proxyOverride = default(ManagedInstanceProxyOverride?), string timezoneId = default(string), string instancePoolId = default(string), string maintenanceConfigurationId = default(string), string minimalTlsVersion = default(string), StorageAccountType? storageAccountType = default(StorageAccountType?)) + public ManagedInstance(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), ResourceIdentity identity = default(ResourceIdentity), Sku sku = default(Sku), string provisioningState = default(string), string managedInstanceCreateMode = default(string), string fullyQualifiedDomainName = default(string), string administratorLogin = default(string), string administratorLoginPassword = default(string), string subnetId = default(string), string state = default(string), string licenseType = default(string), int? vCores = default(int?), int? storageSizeInGB = default(int?), string collation = default(string), string dnsZone = default(string), string dnsZonePartner = default(string), bool? publicDataEndpointEnabled = default(bool?), string sourceManagedInstanceId = default(string), System.DateTime? restorePointInTime = default(System.DateTime?), string proxyOverride = default(string), string timezoneId = default(string), string instancePoolId = default(string), string maintenanceConfigurationId = default(string), string minimalTlsVersion = default(string), string storageAccountType = default(string)) : base(location, id, name, type, tags) { Identity = identity; @@ -138,7 +136,6 @@ public ManagedInstance() ProxyOverride = proxyOverride; TimezoneId = timezoneId; InstancePoolId = instancePoolId; - MaintenanceConfigurationId = maintenanceConfigurationId; MinimalTlsVersion = minimalTlsVersion; StorageAccountType = storageAccountType; CustomInit(); @@ -181,7 +178,7 @@ public ManagedInstance() /// 'Default', 'PointInTimeRestore' /// [JsonProperty(PropertyName = "properties.managedInstanceCreateMode")] - public ManagedServerCreateMode? ManagedInstanceCreateMode { get; set; } + public string ManagedInstanceCreateMode { get; set; } /// /// Gets the fully qualified domain name of the managed instance. @@ -223,7 +220,7 @@ public ManagedInstance() /// licenses). Possible values include: 'LicenseIncluded', 'BasePrice' /// [JsonProperty(PropertyName = "properties.licenseType")] - public ManagedInstanceLicenseType? LicenseType { get; set; } + public string LicenseType { get; set; } /// /// Gets or sets the number of vCores. Allowed values: 8, 16, 24, 32, @@ -283,7 +280,7 @@ public ManagedInstance() /// Possible values include: 'Proxy', 'Redirect', 'Default' /// [JsonProperty(PropertyName = "properties.proxyOverride")] - public ManagedInstanceProxyOverride? ProxyOverride { get; set; } + public string ProxyOverride { get; set; } /// /// Gets or sets id of the timezone. Allowed values are timezones @@ -309,13 +306,6 @@ public ManagedInstance() [JsonProperty(PropertyName = "properties.instancePoolId")] public string InstancePoolId { get; set; } - /// - /// Gets or sets specifies maintenance configuration id to apply to - /// this managed instance. - /// - [JsonProperty(PropertyName = "properties.maintenanceConfigurationId")] - public string MaintenanceConfigurationId { get; set; } - /// /// Gets or sets minimal TLS version. Allowed values: 'None', '1.0', /// '1.1', '1.2' @@ -330,7 +320,7 @@ public ManagedInstance() /// values include: 'GRS', 'LRS', 'ZRS' /// [JsonProperty(PropertyName = "properties.storageAccountType")] - public StorageAccountType? StorageAccountType { get; set; } + public string StorageAccountType { get; set; } /// /// Validate the object. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceEncryptionProtector.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceEncryptionProtector.cs index 73de91c7a668..10a41136245f 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceEncryptionProtector.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceEncryptionProtector.cs @@ -46,7 +46,7 @@ public ManagedInstanceEncryptionProtector() /// key. /// The URI of the server key. /// Thumbprint of the server key. - public ManagedInstanceEncryptionProtector(ServerKeyType serverKeyType, string id = default(string), string name = default(string), string type = default(string), string kind = default(string), string serverKeyName = default(string), string uri = default(string), string thumbprint = default(string)) + public ManagedInstanceEncryptionProtector(string serverKeyType, string id = default(string), string name = default(string), string type = default(string), string kind = default(string), string serverKeyName = default(string), string uri = default(string), string thumbprint = default(string)) : base(id, name, type) { Kind = kind; @@ -81,7 +81,7 @@ public ManagedInstanceEncryptionProtector() /// 'AzureKeyVault' /// [JsonProperty(PropertyName = "properties.serverKeyType")] - public ServerKeyType ServerKeyType { get; set; } + public string ServerKeyType { get; set; } /// /// Gets the URI of the server key. @@ -103,6 +103,10 @@ public ManagedInstanceEncryptionProtector() /// public virtual void Validate() { + if (ServerKeyType == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "ServerKeyType"); + } } } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceFamilyCapability.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceFamilyCapability.cs index df268f844004..0e2270ab9283 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceFamilyCapability.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceFamilyCapability.cs @@ -39,16 +39,20 @@ public ManagedInstanceFamilyCapability() /// types. /// List of supported virtual cores /// values. + /// Included size. + /// Storage size ranges. /// The status of the capability. Possible values /// include: 'Visible', 'Available', 'Default', 'Disabled' /// The reason for the capability not being /// available. - public ManagedInstanceFamilyCapability(string name = default(string), string sku = default(string), IList supportedLicenseTypes = default(IList), IList supportedVcoresValues = default(IList), CapabilityStatus? status = default(CapabilityStatus?), string reason = default(string)) + public ManagedInstanceFamilyCapability(string name = default(string), string sku = default(string), IList supportedLicenseTypes = default(IList), IList supportedVcoresValues = default(IList), MaxSizeCapability includedMaxSize = default(MaxSizeCapability), IList supportedStorageSizes = default(IList), CapabilityStatus? status = default(CapabilityStatus?), string reason = default(string)) { Name = name; Sku = sku; SupportedLicenseTypes = supportedLicenseTypes; SupportedVcoresValues = supportedVcoresValues; + IncludedMaxSize = includedMaxSize; + SupportedStorageSizes = supportedStorageSizes; Status = status; Reason = reason; CustomInit(); @@ -83,6 +87,18 @@ public ManagedInstanceFamilyCapability() [JsonProperty(PropertyName = "supportedVcoresValues")] public IList SupportedVcoresValues { get; private set; } + /// + /// Gets included size. + /// + [JsonProperty(PropertyName = "includedMaxSize")] + public MaxSizeCapability IncludedMaxSize { get; private set; } + + /// + /// Gets storage size ranges. + /// + [JsonProperty(PropertyName = "supportedStorageSizes")] + public IList SupportedStorageSizes { get; private set; } + /// /// Gets the status of the capability. Possible values include: /// 'Visible', 'Available', 'Default', 'Disabled' diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceKey.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceKey.cs index b4bd7e381580..da6ab159a907 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceKey.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceKey.cs @@ -44,7 +44,7 @@ public ManagedInstanceKey() /// AzureKeyVault, then the URI is required. /// Thumbprint of the key. /// The key creation date. - public ManagedInstanceKey(ServerKeyType serverKeyType, string id = default(string), string name = default(string), string type = default(string), string kind = default(string), string uri = default(string), string thumbprint = default(string), System.DateTime? creationDate = default(System.DateTime?)) + public ManagedInstanceKey(string serverKeyType, string id = default(string), string name = default(string), string type = default(string), string kind = default(string), string uri = default(string), string thumbprint = default(string), System.DateTime? creationDate = default(System.DateTime?)) : base(id, name, type) { Kind = kind; @@ -72,7 +72,7 @@ public ManagedInstanceKey() /// Possible values include: 'ServiceManaged', 'AzureKeyVault' /// [JsonProperty(PropertyName = "properties.serverKeyType")] - public ServerKeyType ServerKeyType { get; set; } + public string ServerKeyType { get; set; } /// /// Gets or sets the URI of the key. If the ServerKeyType is @@ -101,6 +101,10 @@ public ManagedInstanceKey() /// public virtual void Validate() { + if (ServerKeyType == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "ServerKeyType"); + } } } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceLicenseType.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceLicenseType.cs index 40cc37539f93..518832b8e90d 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceLicenseType.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceLicenseType.cs @@ -10,96 +10,13 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for ManagedInstanceLicenseType. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(ManagedInstanceLicenseTypeConverter))] - public struct ManagedInstanceLicenseType : System.IEquatable + public static class ManagedInstanceLicenseType { - private ManagedInstanceLicenseType(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly ManagedInstanceLicenseType LicenseIncluded = "LicenseIncluded"; - - public static readonly ManagedInstanceLicenseType BasePrice = "BasePrice"; - - - /// - /// Underlying value of enum ManagedInstanceLicenseType - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for ManagedInstanceLicenseType - /// - public override string ToString() - { - return UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type ManagedInstanceLicenseType - /// - public bool Equals(ManagedInstanceLicenseType e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to ManagedInstanceLicenseType - /// - public static implicit operator ManagedInstanceLicenseType(string value) - { - return new ManagedInstanceLicenseType(value); - } - - /// - /// Implicit operator to convert ManagedInstanceLicenseType to string - /// - public static implicit operator string(ManagedInstanceLicenseType e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum ManagedInstanceLicenseType - /// - public static bool operator == (ManagedInstanceLicenseType e1, ManagedInstanceLicenseType e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum ManagedInstanceLicenseType - /// - public static bool operator != (ManagedInstanceLicenseType e1, ManagedInstanceLicenseType e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for ManagedInstanceLicenseType - /// - public override bool Equals(object obj) - { - return obj is ManagedInstanceLicenseType && Equals((ManagedInstanceLicenseType)obj); - } - - /// - /// Returns for hashCode ManagedInstanceLicenseType - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string LicenseIncluded = "LicenseIncluded"; + public const string BasePrice = "BasePrice"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceLicenseTypeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceLicenseTypeConverter.cs deleted file mode 100644 index 3299377a282e..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceLicenseTypeConverter.cs +++ /dev/null @@ -1,55 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for ManagedInstanceLicenseType. - /// - public sealed class ManagedInstanceLicenseTypeConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to - /// ManagedInstanceLicenseType by the converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(ManagedInstanceLicenseType).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to - /// ManagedInstanceLicenseType. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (ManagedInstanceLicenseType)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for ManagedInstanceLicenseType for - /// serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstancePrivateLinkServiceConnectionStateProperty.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstancePrivateLinkServiceConnectionStateProperty.cs deleted file mode 100644 index 19079afb92e3..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstancePrivateLinkServiceConnectionStateProperty.cs +++ /dev/null @@ -1,87 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Linq; - - public partial class ManagedInstancePrivateLinkServiceConnectionStateProperty - { - /// - /// Initializes a new instance of the - /// ManagedInstancePrivateLinkServiceConnectionStateProperty class. - /// - public ManagedInstancePrivateLinkServiceConnectionStateProperty() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the - /// ManagedInstancePrivateLinkServiceConnectionStateProperty class. - /// - /// The private link service connection - /// status. - /// The private link service connection - /// description. - /// The private link service connection - /// description. - public ManagedInstancePrivateLinkServiceConnectionStateProperty(string status, string description, string actionsRequired = default(string)) - { - Status = status; - Description = description; - ActionsRequired = actionsRequired; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the private link service connection status. - /// - [JsonProperty(PropertyName = "status")] - public string Status { get; set; } - - /// - /// Gets or sets the private link service connection description. - /// - [JsonProperty(PropertyName = "description")] - public string Description { get; set; } - - /// - /// Gets the private link service connection description. - /// - [JsonProperty(PropertyName = "actionsRequired")] - public string ActionsRequired { get; private set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Status == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Status"); - } - if (Description == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Description"); - } - } - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceProxyOverride.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceProxyOverride.cs index ca55ea27c5b1..dd6d2f660269 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceProxyOverride.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceProxyOverride.cs @@ -10,98 +10,14 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for ManagedInstanceProxyOverride. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(ManagedInstanceProxyOverrideConverter))] - public struct ManagedInstanceProxyOverride : System.IEquatable + public static class ManagedInstanceProxyOverride { - private ManagedInstanceProxyOverride(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly ManagedInstanceProxyOverride Proxy = "Proxy"; - - public static readonly ManagedInstanceProxyOverride Redirect = "Redirect"; - - public static readonly ManagedInstanceProxyOverride Default = "Default"; - - - /// - /// Underlying value of enum ManagedInstanceProxyOverride - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for ManagedInstanceProxyOverride - /// - public override string ToString() - { - return UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type ManagedInstanceProxyOverride - /// - public bool Equals(ManagedInstanceProxyOverride e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to ManagedInstanceProxyOverride - /// - public static implicit operator ManagedInstanceProxyOverride(string value) - { - return new ManagedInstanceProxyOverride(value); - } - - /// - /// Implicit operator to convert ManagedInstanceProxyOverride to string - /// - public static implicit operator string(ManagedInstanceProxyOverride e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum ManagedInstanceProxyOverride - /// - public static bool operator == (ManagedInstanceProxyOverride e1, ManagedInstanceProxyOverride e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum ManagedInstanceProxyOverride - /// - public static bool operator != (ManagedInstanceProxyOverride e1, ManagedInstanceProxyOverride e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for ManagedInstanceProxyOverride - /// - public override bool Equals(object obj) - { - return obj is ManagedInstanceProxyOverride && Equals((ManagedInstanceProxyOverride)obj); - } - - /// - /// Returns for hashCode ManagedInstanceProxyOverride - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string Proxy = "Proxy"; + public const string Redirect = "Redirect"; + public const string Default = "Default"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceProxyOverrideConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceProxyOverrideConverter.cs deleted file mode 100644 index bf7fbf0f8b03..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceProxyOverrideConverter.cs +++ /dev/null @@ -1,55 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for ManagedInstanceProxyOverride. - /// - public sealed class ManagedInstanceProxyOverrideConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to - /// ManagedInstanceProxyOverride by the converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(ManagedInstanceProxyOverride).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to - /// ManagedInstanceProxyOverride. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (ManagedInstanceProxyOverride)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for ManagedInstanceProxyOverride for - /// serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceUpdate.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceUpdate.cs index 612e4dad5760..c7a69145d33a 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceUpdate.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceUpdate.cs @@ -97,8 +97,6 @@ public ManagedInstanceUpdate() /// Europe Standard Time". /// The Id of the instance pool this /// managed server belongs to. - /// Specifies maintenance - /// configuration id to apply to this managed instance. /// Minimal TLS version. Allowed /// values: 'None', '1.0', '1.1', '1.2' /// The storage account type used to @@ -107,7 +105,7 @@ public ManagedInstanceUpdate() /// (GeoRedundantStorage). Possible values include: 'GRS', 'LRS', /// 'ZRS' /// Resource tags. - public ManagedInstanceUpdate(Sku sku = default(Sku), string provisioningState = default(string), ManagedServerCreateMode? managedInstanceCreateMode = default(ManagedServerCreateMode?), string fullyQualifiedDomainName = default(string), string administratorLogin = default(string), string administratorLoginPassword = default(string), string subnetId = default(string), string state = default(string), ManagedInstanceLicenseType? licenseType = default(ManagedInstanceLicenseType?), int? vCores = default(int?), int? storageSizeInGB = default(int?), string collation = default(string), string dnsZone = default(string), string dnsZonePartner = default(string), bool? publicDataEndpointEnabled = default(bool?), string sourceManagedInstanceId = default(string), System.DateTime? restorePointInTime = default(System.DateTime?), ManagedInstanceProxyOverride? proxyOverride = default(ManagedInstanceProxyOverride?), string timezoneId = default(string), string instancePoolId = default(string), string maintenanceConfigurationId = default(string), string minimalTlsVersion = default(string), StorageAccountType? storageAccountType = default(StorageAccountType?), IDictionary tags = default(IDictionary)) + public ManagedInstanceUpdate(Sku sku = default(Sku), string provisioningState = default(string), string managedInstanceCreateMode = default(string), string fullyQualifiedDomainName = default(string), string administratorLogin = default(string), string administratorLoginPassword = default(string), string subnetId = default(string), string state = default(string), string licenseType = default(string), int? vCores = default(int?), int? storageSizeInGB = default(int?), string collation = default(string), string dnsZone = default(string), string dnsZonePartner = default(string), bool? publicDataEndpointEnabled = default(bool?), string sourceManagedInstanceId = default(string), System.DateTime? restorePointInTime = default(System.DateTime?), string proxyOverride = default(string), string timezoneId = default(string), string instancePoolId = default(string), string maintenanceConfigurationId = default(string), string minimalTlsVersion = default(string), string storageAccountType = default(string), IDictionary tags = default(IDictionary)) { Sku = sku; ProvisioningState = provisioningState; @@ -129,7 +127,6 @@ public ManagedInstanceUpdate() ProxyOverride = proxyOverride; TimezoneId = timezoneId; InstancePoolId = instancePoolId; - MaintenanceConfigurationId = maintenanceConfigurationId; MinimalTlsVersion = minimalTlsVersion; StorageAccountType = storageAccountType; Tags = tags; @@ -165,7 +162,7 @@ public ManagedInstanceUpdate() /// 'Default', 'PointInTimeRestore' /// [JsonProperty(PropertyName = "properties.managedInstanceCreateMode")] - public ManagedServerCreateMode? ManagedInstanceCreateMode { get; set; } + public string ManagedInstanceCreateMode { get; set; } /// /// Gets the fully qualified domain name of the managed instance. @@ -207,7 +204,7 @@ public ManagedInstanceUpdate() /// licenses). Possible values include: 'LicenseIncluded', 'BasePrice' /// [JsonProperty(PropertyName = "properties.licenseType")] - public ManagedInstanceLicenseType? LicenseType { get; set; } + public string LicenseType { get; set; } /// /// Gets or sets the number of vCores. Allowed values: 8, 16, 24, 32, @@ -267,7 +264,7 @@ public ManagedInstanceUpdate() /// Possible values include: 'Proxy', 'Redirect', 'Default' /// [JsonProperty(PropertyName = "properties.proxyOverride")] - public ManagedInstanceProxyOverride? ProxyOverride { get; set; } + public string ProxyOverride { get; set; } /// /// Gets or sets id of the timezone. Allowed values are timezones @@ -293,13 +290,6 @@ public ManagedInstanceUpdate() [JsonProperty(PropertyName = "properties.instancePoolId")] public string InstancePoolId { get; set; } - /// - /// Gets or sets specifies maintenance configuration id to apply to - /// this managed instance. - /// - [JsonProperty(PropertyName = "properties.maintenanceConfigurationId")] - public string MaintenanceConfigurationId { get; set; } - /// /// Gets or sets minimal TLS version. Allowed values: 'None', '1.0', /// '1.1', '1.2' @@ -314,7 +304,7 @@ public ManagedInstanceUpdate() /// values include: 'GRS', 'LRS', 'ZRS' /// [JsonProperty(PropertyName = "properties.storageAccountType")] - public StorageAccountType? StorageAccountType { get; set; } + public string StorageAccountType { get; set; } /// /// Gets or sets resource tags. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceVcoresCapability.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceVcoresCapability.cs index c252dd6a583a..5d8c8e6adbfb 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceVcoresCapability.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceVcoresCapability.cs @@ -11,8 +11,6 @@ namespace Microsoft.Azure.Management.Sql.Models { using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; using System.Linq; /// @@ -35,24 +33,14 @@ public ManagedInstanceVcoresCapability() /// /// The virtual cores identifier. /// The virtual cores value. - /// Included size. - /// Storage size ranges. - /// True if this service objective - /// is supported for managed instances in an instance pool. - /// True if this service objective is - /// supported for standalone managed instances. /// The status of the capability. Possible values /// include: 'Visible', 'Available', 'Default', 'Disabled' /// The reason for the capability not being /// available. - public ManagedInstanceVcoresCapability(string name = default(string), int? value = default(int?), MaxSizeCapability includedMaxSize = default(MaxSizeCapability), IList supportedStorageSizes = default(IList), bool? instancePoolSupported = default(bool?), bool? standaloneSupported = default(bool?), CapabilityStatus? status = default(CapabilityStatus?), string reason = default(string)) + public ManagedInstanceVcoresCapability(string name = default(string), int? value = default(int?), CapabilityStatus? status = default(CapabilityStatus?), string reason = default(string)) { Name = name; Value = value; - IncludedMaxSize = includedMaxSize; - SupportedStorageSizes = supportedStorageSizes; - InstancePoolSupported = instancePoolSupported; - StandaloneSupported = standaloneSupported; Status = status; Reason = reason; CustomInit(); @@ -75,32 +63,6 @@ public ManagedInstanceVcoresCapability() [JsonProperty(PropertyName = "value")] public int? Value { get; private set; } - /// - /// Gets included size. - /// - [JsonProperty(PropertyName = "includedMaxSize")] - public MaxSizeCapability IncludedMaxSize { get; private set; } - - /// - /// Gets storage size ranges. - /// - [JsonProperty(PropertyName = "supportedStorageSizes")] - public IList SupportedStorageSizes { get; private set; } - - /// - /// Gets true if this service objective is supported for managed - /// instances in an instance pool. - /// - [JsonProperty(PropertyName = "instancePoolSupported")] - public bool? InstancePoolSupported { get; private set; } - - /// - /// Gets true if this service objective is supported for standalone - /// managed instances. - /// - [JsonProperty(PropertyName = "standaloneSupported")] - public bool? StandaloneSupported { get; private set; } - /// /// Gets the status of the capability. Possible values include: /// 'Visible', 'Available', 'Default', 'Disabled' diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceVersionCapability.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceVersionCapability.cs index 2278b208d4c5..e715d86d3e63 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceVersionCapability.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceVersionCapability.cs @@ -36,17 +36,14 @@ public ManagedInstanceVersionCapability() /// The server version name. /// The list of supported managed /// instance editions. - /// The list of supported - /// instance pool editions. /// The status of the capability. Possible values /// include: 'Visible', 'Available', 'Default', 'Disabled' /// The reason for the capability not being /// available. - public ManagedInstanceVersionCapability(string name = default(string), IList supportedEditions = default(IList), IList supportedInstancePoolEditions = default(IList), CapabilityStatus? status = default(CapabilityStatus?), string reason = default(string)) + public ManagedInstanceVersionCapability(string name = default(string), IList supportedEditions = default(IList), CapabilityStatus? status = default(CapabilityStatus?), string reason = default(string)) { Name = name; SupportedEditions = supportedEditions; - SupportedInstancePoolEditions = supportedInstancePoolEditions; Status = status; Reason = reason; CustomInit(); @@ -69,12 +66,6 @@ public ManagedInstanceVersionCapability() [JsonProperty(PropertyName = "supportedEditions")] public IList SupportedEditions { get; private set; } - /// - /// Gets the list of supported instance pool editions. - /// - [JsonProperty(PropertyName = "supportedInstancePoolEditions")] - public IList SupportedInstancePoolEditions { get; private set; } - /// /// Gets the status of the capability. Possible values include: /// 'Visible', 'Available', 'Default', 'Disabled' diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceVulnerabilityAssessment.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceVulnerabilityAssessment.cs index 7c46e6d77625..aec229e8d1eb 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceVulnerabilityAssessment.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceVulnerabilityAssessment.cs @@ -41,8 +41,8 @@ public ManagedInstanceVulnerabilityAssessment() /// Resource name. /// Resource type. /// A shared access signature (SAS - /// Key) that has read and write access to the blob container specified - /// in 'storageContainerPath' parameter. If 'storageAccountAccessKey' + /// Key) that has write access to the blob container specified in + /// 'storageContainerPath' parameter. If 'storageAccountAccessKey' /// isn't specified, StorageContainerSasKey is required. /// Specifies the identifier key /// of the storage account for vulnerability assessment scan results. @@ -72,10 +72,10 @@ public ManagedInstanceVulnerabilityAssessment() public string StorageContainerPath { get; set; } /// - /// Gets or sets a shared access signature (SAS Key) that has read and - /// write access to the blob container specified in - /// 'storageContainerPath' parameter. If 'storageAccountAccessKey' - /// isn't specified, StorageContainerSasKey is required. + /// Gets or sets a shared access signature (SAS Key) that has write + /// access to the blob container specified in 'storageContainerPath' + /// parameter. If 'storageAccountAccessKey' isn't specified, + /// StorageContainerSasKey is required. /// [JsonProperty(PropertyName = "properties.storageContainerSasKey")] public string StorageContainerSasKey { get; set; } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedServerCreateMode.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedServerCreateMode.cs index 6d1ca26a908f..141db5dae3f7 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedServerCreateMode.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedServerCreateMode.cs @@ -10,96 +10,13 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for ManagedServerCreateMode. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(ManagedServerCreateModeConverter))] - public struct ManagedServerCreateMode : System.IEquatable + public static class ManagedServerCreateMode { - private ManagedServerCreateMode(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly ManagedServerCreateMode Default = "Default"; - - public static readonly ManagedServerCreateMode PointInTimeRestore = "PointInTimeRestore"; - - - /// - /// Underlying value of enum ManagedServerCreateMode - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for ManagedServerCreateMode - /// - public override string ToString() - { - return UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type ManagedServerCreateMode - /// - public bool Equals(ManagedServerCreateMode e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to ManagedServerCreateMode - /// - public static implicit operator ManagedServerCreateMode(string value) - { - return new ManagedServerCreateMode(value); - } - - /// - /// Implicit operator to convert ManagedServerCreateMode to string - /// - public static implicit operator string(ManagedServerCreateMode e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum ManagedServerCreateMode - /// - public static bool operator == (ManagedServerCreateMode e1, ManagedServerCreateMode e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum ManagedServerCreateMode - /// - public static bool operator != (ManagedServerCreateMode e1, ManagedServerCreateMode e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for ManagedServerCreateMode - /// - public override bool Equals(object obj) - { - return obj is ManagedServerCreateMode && Equals((ManagedServerCreateMode)obj); - } - - /// - /// Returns for hashCode ManagedServerCreateMode - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string Default = "Default"; + public const string PointInTimeRestore = "PointInTimeRestore"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedServerCreateModeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedServerCreateModeConverter.cs deleted file mode 100644 index a634f8a5f8d9..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedServerCreateModeConverter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for ManagedServerCreateMode. - /// - public sealed class ManagedServerCreateModeConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to ManagedServerCreateMode - /// by the converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(ManagedServerCreateMode).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to ManagedServerCreateMode. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (ManagedServerCreateMode)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for ManagedServerCreateMode for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagementOperationState.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagementOperationState.cs index 14fd4ea107c3..5cc2d5460636 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagementOperationState.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagementOperationState.cs @@ -10,104 +10,17 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for ManagementOperationState. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(ManagementOperationStateConverter))] - public struct ManagementOperationState : System.IEquatable + public static class ManagementOperationState { - private ManagementOperationState(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly ManagementOperationState Pending = "Pending"; - - public static readonly ManagementOperationState InProgress = "InProgress"; - - public static readonly ManagementOperationState Succeeded = "Succeeded"; - - public static readonly ManagementOperationState Failed = "Failed"; - - public static readonly ManagementOperationState CancelInProgress = "CancelInProgress"; - - public static readonly ManagementOperationState Cancelled = "Cancelled"; - - - /// - /// Underlying value of enum ManagementOperationState - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for ManagementOperationState - /// - public override string ToString() - { - return UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type ManagementOperationState - /// - public bool Equals(ManagementOperationState e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to ManagementOperationState - /// - public static implicit operator ManagementOperationState(string value) - { - return new ManagementOperationState(value); - } - - /// - /// Implicit operator to convert ManagementOperationState to string - /// - public static implicit operator string(ManagementOperationState e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum ManagementOperationState - /// - public static bool operator == (ManagementOperationState e1, ManagementOperationState e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum ManagementOperationState - /// - public static bool operator != (ManagementOperationState e1, ManagementOperationState e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for ManagementOperationState - /// - public override bool Equals(object obj) - { - return obj is ManagementOperationState && Equals((ManagementOperationState)obj); - } - - /// - /// Returns for hashCode ManagementOperationState - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string Pending = "Pending"; + public const string InProgress = "InProgress"; + public const string Succeeded = "Succeeded"; + public const string Failed = "Failed"; + public const string CancelInProgress = "CancelInProgress"; + public const string Cancelled = "Cancelled"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagementOperationStateConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagementOperationStateConverter.cs deleted file mode 100644 index a3d6452f16a0..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagementOperationStateConverter.cs +++ /dev/null @@ -1,54 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for ManagementOperationState. - /// - public sealed class ManagementOperationStateConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to ManagementOperationState - /// by the converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(ManagementOperationState).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to ManagementOperationState. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (ManagementOperationState)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for ManagementOperationState for - /// serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/MaxSizeCapability.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/MaxSizeCapability.cs index def373f39d61..e0475eee1066 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/MaxSizeCapability.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/MaxSizeCapability.cs @@ -34,7 +34,7 @@ public MaxSizeCapability() /// The units that the limit is expressed in. /// Possible values include: 'Megabytes', 'Gigabytes', 'Terabytes', /// 'Petabytes' - public MaxSizeCapability(int? limit = default(int?), MaxSizeUnit? unit = default(MaxSizeUnit?)) + public MaxSizeCapability(int? limit = default(int?), string unit = default(string)) { Limit = limit; Unit = unit; @@ -57,7 +57,7 @@ public MaxSizeCapability() /// include: 'Megabytes', 'Gigabytes', 'Terabytes', 'Petabytes' /// [JsonProperty(PropertyName = "unit")] - public MaxSizeUnit? Unit { get; private set; } + public string Unit { get; private set; } } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/MaxSizeUnit.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/MaxSizeUnit.cs index 96177a14eaa8..cdf8f43bfd5c 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/MaxSizeUnit.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/MaxSizeUnit.cs @@ -10,100 +10,15 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for MaxSizeUnit. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(MaxSizeUnitConverter))] - public struct MaxSizeUnit : System.IEquatable + public static class MaxSizeUnit { - private MaxSizeUnit(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly MaxSizeUnit Megabytes = "Megabytes"; - - public static readonly MaxSizeUnit Gigabytes = "Gigabytes"; - - public static readonly MaxSizeUnit Terabytes = "Terabytes"; - - public static readonly MaxSizeUnit Petabytes = "Petabytes"; - - - /// - /// Underlying value of enum MaxSizeUnit - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for MaxSizeUnit - /// - public override string ToString() - { - return UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type MaxSizeUnit - /// - public bool Equals(MaxSizeUnit e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to MaxSizeUnit - /// - public static implicit operator MaxSizeUnit(string value) - { - return new MaxSizeUnit(value); - } - - /// - /// Implicit operator to convert MaxSizeUnit to string - /// - public static implicit operator string(MaxSizeUnit e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum MaxSizeUnit - /// - public static bool operator == (MaxSizeUnit e1, MaxSizeUnit e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum MaxSizeUnit - /// - public static bool operator != (MaxSizeUnit e1, MaxSizeUnit e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for MaxSizeUnit - /// - public override bool Equals(object obj) - { - return obj is MaxSizeUnit && Equals((MaxSizeUnit)obj); - } - - /// - /// Returns for hashCode MaxSizeUnit - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string Megabytes = "Megabytes"; + public const string Gigabytes = "Gigabytes"; + public const string Terabytes = "Terabytes"; + public const string Petabytes = "Petabytes"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/MaxSizeUnitConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/MaxSizeUnitConverter.cs deleted file mode 100644 index a63443040350..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/MaxSizeUnitConverter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for MaxSizeUnit. - /// - public sealed class MaxSizeUnitConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to MaxSizeUnit by the - /// converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(MaxSizeUnit).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to MaxSizeUnit. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (MaxSizeUnit)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for MaxSizeUnit for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/Metric.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/Metric.cs index f81d6baa6b56..c2f7e0249613 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/Metric.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/Metric.cs @@ -43,7 +43,7 @@ public Metric() /// The name information for the metric. /// The metric values for the specified time /// window and timestep. - public Metric(System.DateTime? startTime = default(System.DateTime?), System.DateTime? endTime = default(System.DateTime?), string timeGrain = default(string), UnitType? unit = default(UnitType?), MetricName name = default(MetricName), IList metricValues = default(IList)) + public Metric(System.DateTime? startTime = default(System.DateTime?), System.DateTime? endTime = default(System.DateTime?), string timeGrain = default(string), string unit = default(string), MetricName name = default(MetricName), IList metricValues = default(IList)) { StartTime = startTime; EndTime = endTime; @@ -82,7 +82,7 @@ public Metric() /// 'bytes', 'seconds', 'percent', 'countPerSecond', 'bytesPerSecond' /// [JsonProperty(PropertyName = "unit")] - public UnitType? Unit { get; private set; } + public string Unit { get; private set; } /// /// Gets the name information for the metric. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/MetricDefinition.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/MetricDefinition.cs index dc33003c3588..5bd07c0d50f1 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/MetricDefinition.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/MetricDefinition.cs @@ -41,7 +41,7 @@ public MetricDefinition() /// 'BytesPerSecond' /// The list of database metric /// availabilities for the metric. - public MetricDefinition(MetricName name = default(MetricName), PrimaryAggregationType? primaryAggregationType = default(PrimaryAggregationType?), string resourceUri = default(string), UnitDefinitionType? unit = default(UnitDefinitionType?), IList metricAvailabilities = default(IList)) + public MetricDefinition(MetricName name = default(MetricName), string primaryAggregationType = default(string), string resourceUri = default(string), string unit = default(string), IList metricAvailabilities = default(IList)) { Name = name; PrimaryAggregationType = primaryAggregationType; @@ -68,7 +68,7 @@ public MetricDefinition() /// 'Minimum', 'Maximum', 'Total' /// [JsonProperty(PropertyName = "primaryAggregationType")] - public PrimaryAggregationType? PrimaryAggregationType { get; private set; } + public string PrimaryAggregationType { get; private set; } /// /// Gets the resource uri of the database. @@ -81,7 +81,7 @@ public MetricDefinition() /// 'Bytes', 'Seconds', 'Percent', 'CountPerSecond', 'BytesPerSecond' /// [JsonProperty(PropertyName = "unit")] - public UnitDefinitionType? Unit { get; private set; } + public string Unit { get; private set; } /// /// Gets the list of database metric availabilities for the metric. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/MinCapacityCapability.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/MinCapacityCapability.cs deleted file mode 100644 index b713250cad8e..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/MinCapacityCapability.cs +++ /dev/null @@ -1,70 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - using System.Linq; - - /// - /// The min capacity capability - /// - public partial class MinCapacityCapability - { - /// - /// Initializes a new instance of the MinCapacityCapability class. - /// - public MinCapacityCapability() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the MinCapacityCapability class. - /// - /// Min capacity value - /// The status of the capability. Possible values - /// include: 'Visible', 'Available', 'Default', 'Disabled' - /// The reason for the capability not being - /// available. - public MinCapacityCapability(double? value = default(double?), CapabilityStatus? status = default(CapabilityStatus?), string reason = default(string)) - { - Value = value; - Status = status; - Reason = reason; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets min capacity value - /// - [JsonProperty(PropertyName = "value")] - public double? Value { get; private set; } - - /// - /// Gets the status of the capability. Possible values include: - /// 'Visible', 'Available', 'Default', 'Disabled' - /// - [JsonProperty(PropertyName = "status")] - public CapabilityStatus? Status { get; private set; } - - /// - /// Gets or sets the reason for the capability not being available. - /// - [JsonProperty(PropertyName = "reason")] - public string Reason { get; set; } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/NetworkIsolationSettings.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/NetworkIsolationSettings.cs deleted file mode 100644 index b83f3b2b33fa..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/NetworkIsolationSettings.cs +++ /dev/null @@ -1,72 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - using System.Linq; - - /// - /// Contains the ARM resources for which to create private endpoint - /// connection. - /// - public partial class NetworkIsolationSettings - { - /// - /// Initializes a new instance of the NetworkIsolationSettings class. - /// - public NetworkIsolationSettings() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the NetworkIsolationSettings class. - /// - /// The resource id for the - /// storage account used to store BACPAC file. If set, private endpoint - /// connection will be created for the storage account. Must match - /// storage account used for StorageUri parameter. - /// The resource id for the SQL - /// server which is the target of this request. If set, private - /// endpoint connection will be created for the SQL server. Must match - /// server which is target of the operation. - public NetworkIsolationSettings(string storageAccountResourceId = default(string), string sqlServerResourceId = default(string)) - { - StorageAccountResourceId = storageAccountResourceId; - SqlServerResourceId = sqlServerResourceId; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the resource id for the storage account used to store - /// BACPAC file. If set, private endpoint connection will be created - /// for the storage account. Must match storage account used for - /// StorageUri parameter. - /// - [JsonProperty(PropertyName = "storageAccountResourceId")] - public string StorageAccountResourceId { get; set; } - - /// - /// Gets or sets the resource id for the SQL server which is the target - /// of this request. If set, private endpoint connection will be - /// created for the SQL server. Must match server which is target of - /// the operation. - /// - [JsonProperty(PropertyName = "sqlServerResourceId")] - public string SqlServerResourceId { get; set; } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/Operation.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/Operation.cs index d6f75827c8ff..fcf0b7b48dbc 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/Operation.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/Operation.cs @@ -39,7 +39,7 @@ public Operation() /// Possible values include: 'user', 'system' /// Additional descriptions for the /// operation. - public Operation(string name = default(string), OperationDisplay display = default(OperationDisplay), OperationOrigin? origin = default(OperationOrigin?), IDictionary properties = default(IDictionary)) + public Operation(string name = default(string), OperationDisplay display = default(OperationDisplay), string origin = default(string), IDictionary properties = default(IDictionary)) { Name = name; Display = display; @@ -72,7 +72,7 @@ public Operation() /// include: 'user', 'system' /// [JsonProperty(PropertyName = "origin")] - public OperationOrigin? Origin { get; private set; } + public string Origin { get; private set; } /// /// Gets additional descriptions for the operation. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/OperationOrigin.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/OperationOrigin.cs index 350fa72bba26..4d779e5b4c1a 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/OperationOrigin.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/OperationOrigin.cs @@ -10,96 +10,13 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for OperationOrigin. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(OperationOriginConverter))] - public struct OperationOrigin : System.IEquatable + public static class OperationOrigin { - private OperationOrigin(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly OperationOrigin User = "user"; - - public static readonly OperationOrigin System = "system"; - - - /// - /// Underlying value of enum OperationOrigin - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for OperationOrigin - /// - public override string ToString() - { - return UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type OperationOrigin - /// - public bool Equals(OperationOrigin e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to OperationOrigin - /// - public static implicit operator OperationOrigin(string value) - { - return new OperationOrigin(value); - } - - /// - /// Implicit operator to convert OperationOrigin to string - /// - public static implicit operator string(OperationOrigin e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum OperationOrigin - /// - public static bool operator == (OperationOrigin e1, OperationOrigin e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum OperationOrigin - /// - public static bool operator != (OperationOrigin e1, OperationOrigin e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for OperationOrigin - /// - public override bool Equals(object obj) - { - return obj is OperationOrigin && Equals((OperationOrigin)obj); - } - - /// - /// Returns for hashCode OperationOrigin - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string User = "user"; + public const string System = "system"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/OperationOriginConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/OperationOriginConverter.cs deleted file mode 100644 index 4375b48232c9..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/OperationOriginConverter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for OperationOrigin. - /// - public sealed class OperationOriginConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to OperationOrigin by the - /// converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(OperationOrigin).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to OperationOrigin. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (OperationOrigin)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for OperationOrigin for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PartnerInfo.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PartnerInfo.cs index e6fe406b738d..440a5d14a763 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PartnerInfo.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PartnerInfo.cs @@ -34,7 +34,7 @@ public PartnerInfo() /// Geo location of the partner server. /// Replication role of the partner /// server. Possible values include: 'Primary', 'Secondary' - public PartnerInfo(string id, string location = default(string), FailoverGroupReplicationRole? replicationRole = default(FailoverGroupReplicationRole?)) + public PartnerInfo(string id, string location = default(string), string replicationRole = default(string)) { Id = id; Location = location; @@ -64,7 +64,7 @@ public PartnerInfo() /// include: 'Primary', 'Secondary' /// [JsonProperty(PropertyName = "replicationRole")] - public FailoverGroupReplicationRole? ReplicationRole { get; private set; } + public string ReplicationRole { get; private set; } /// /// Validate the object. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PartnerRegionInfo.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PartnerRegionInfo.cs index a816aa9c042f..4835389285ef 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PartnerRegionInfo.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PartnerRegionInfo.cs @@ -34,7 +34,7 @@ public PartnerRegionInfo() /// Replication role of the partner /// managed instances. Possible values include: 'Primary', /// 'Secondary' - public PartnerRegionInfo(string location = default(string), InstanceFailoverGroupReplicationRole? replicationRole = default(InstanceFailoverGroupReplicationRole?)) + public PartnerRegionInfo(string location = default(string), string replicationRole = default(string)) { Location = location; ReplicationRole = replicationRole; @@ -57,7 +57,7 @@ public PartnerRegionInfo() /// values include: 'Primary', 'Secondary' /// [JsonProperty(PropertyName = "replicationRole")] - public InstanceFailoverGroupReplicationRole? ReplicationRole { get; private set; } + public string ReplicationRole { get; private set; } } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PauseDelayTimeUnit.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PauseDelayTimeUnit.cs deleted file mode 100644 index caa8340bbd93..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PauseDelayTimeUnit.cs +++ /dev/null @@ -1,103 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - /// - /// Defines values for PauseDelayTimeUnit. - /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(PauseDelayTimeUnitConverter))] - public struct PauseDelayTimeUnit : System.IEquatable - { - private PauseDelayTimeUnit(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly PauseDelayTimeUnit Minutes = "Minutes"; - - - /// - /// Underlying value of enum PauseDelayTimeUnit - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for PauseDelayTimeUnit - /// - public override string ToString() - { - return UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type PauseDelayTimeUnit - /// - public bool Equals(PauseDelayTimeUnit e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to PauseDelayTimeUnit - /// - public static implicit operator PauseDelayTimeUnit(string value) - { - return new PauseDelayTimeUnit(value); - } - - /// - /// Implicit operator to convert PauseDelayTimeUnit to string - /// - public static implicit operator string(PauseDelayTimeUnit e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum PauseDelayTimeUnit - /// - public static bool operator == (PauseDelayTimeUnit e1, PauseDelayTimeUnit e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum PauseDelayTimeUnit - /// - public static bool operator != (PauseDelayTimeUnit e1, PauseDelayTimeUnit e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for PauseDelayTimeUnit - /// - public override bool Equals(object obj) - { - return obj is PauseDelayTimeUnit && Equals((PauseDelayTimeUnit)obj); - } - - /// - /// Returns for hashCode PauseDelayTimeUnit - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PauseDelayTimeUnitConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PauseDelayTimeUnitConverter.cs deleted file mode 100644 index 13ba249919e9..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PauseDelayTimeUnitConverter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for PauseDelayTimeUnit. - /// - public sealed class PauseDelayTimeUnitConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to PauseDelayTimeUnit by the - /// converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(PauseDelayTimeUnit).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to PauseDelayTimeUnit. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (PauseDelayTimeUnit)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for PauseDelayTimeUnit for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PerformanceLevelCapability.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PerformanceLevelCapability.cs index 5e0493983703..8b04656c9b9c 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PerformanceLevelCapability.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PerformanceLevelCapability.cs @@ -32,7 +32,7 @@ public PerformanceLevelCapability() /// Performance level value. /// Unit type used to measure performance level. /// Possible values include: 'DTU', 'VCores' - public PerformanceLevelCapability(double? value = default(double?), PerformanceLevelUnit? unit = default(PerformanceLevelUnit?)) + public PerformanceLevelCapability(double? value = default(double?), string unit = default(string)) { Value = value; Unit = unit; @@ -55,7 +55,7 @@ public PerformanceLevelCapability() /// include: 'DTU', 'VCores' /// [JsonProperty(PropertyName = "unit")] - public PerformanceLevelUnit? Unit { get; private set; } + public string Unit { get; private set; } } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PerformanceLevelUnit.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PerformanceLevelUnit.cs index a115b6322345..8eb843ed2bc3 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PerformanceLevelUnit.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PerformanceLevelUnit.cs @@ -10,96 +10,13 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for PerformanceLevelUnit. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(PerformanceLevelUnitConverter))] - public struct PerformanceLevelUnit : System.IEquatable + public static class PerformanceLevelUnit { - private PerformanceLevelUnit(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly PerformanceLevelUnit DTU = "DTU"; - - public static readonly PerformanceLevelUnit VCores = "VCores"; - - - /// - /// Underlying value of enum PerformanceLevelUnit - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for PerformanceLevelUnit - /// - public override string ToString() - { - return UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type PerformanceLevelUnit - /// - public bool Equals(PerformanceLevelUnit e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to PerformanceLevelUnit - /// - public static implicit operator PerformanceLevelUnit(string value) - { - return new PerformanceLevelUnit(value); - } - - /// - /// Implicit operator to convert PerformanceLevelUnit to string - /// - public static implicit operator string(PerformanceLevelUnit e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum PerformanceLevelUnit - /// - public static bool operator == (PerformanceLevelUnit e1, PerformanceLevelUnit e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum PerformanceLevelUnit - /// - public static bool operator != (PerformanceLevelUnit e1, PerformanceLevelUnit e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for PerformanceLevelUnit - /// - public override bool Equals(object obj) - { - return obj is PerformanceLevelUnit && Equals((PerformanceLevelUnit)obj); - } - - /// - /// Returns for hashCode PerformanceLevelUnit - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string DTU = "DTU"; + public const string VCores = "VCores"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PerformanceLevelUnitConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PerformanceLevelUnitConverter.cs deleted file mode 100644 index 3d58b1c585e4..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PerformanceLevelUnitConverter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for PerformanceLevelUnit. - /// - public sealed class PerformanceLevelUnitConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to PerformanceLevelUnit by - /// the converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(PerformanceLevelUnit).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to PerformanceLevelUnit. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (PerformanceLevelUnit)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for PerformanceLevelUnit for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrimaryAggregationType.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrimaryAggregationType.cs index fc710e285372..d863b177f680 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrimaryAggregationType.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrimaryAggregationType.cs @@ -10,104 +10,17 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for PrimaryAggregationType. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(PrimaryAggregationTypeConverter))] - public struct PrimaryAggregationType : System.IEquatable + public static class PrimaryAggregationType { - private PrimaryAggregationType(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly PrimaryAggregationType None = "None"; - - public static readonly PrimaryAggregationType Average = "Average"; - - public static readonly PrimaryAggregationType Count = "Count"; - - public static readonly PrimaryAggregationType Minimum = "Minimum"; - - public static readonly PrimaryAggregationType Maximum = "Maximum"; - - public static readonly PrimaryAggregationType Total = "Total"; - - - /// - /// Underlying value of enum PrimaryAggregationType - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for PrimaryAggregationType - /// - public override string ToString() - { - return UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type PrimaryAggregationType - /// - public bool Equals(PrimaryAggregationType e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to PrimaryAggregationType - /// - public static implicit operator PrimaryAggregationType(string value) - { - return new PrimaryAggregationType(value); - } - - /// - /// Implicit operator to convert PrimaryAggregationType to string - /// - public static implicit operator string(PrimaryAggregationType e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum PrimaryAggregationType - /// - public static bool operator == (PrimaryAggregationType e1, PrimaryAggregationType e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum PrimaryAggregationType - /// - public static bool operator != (PrimaryAggregationType e1, PrimaryAggregationType e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for PrimaryAggregationType - /// - public override bool Equals(object obj) - { - return obj is PrimaryAggregationType && Equals((PrimaryAggregationType)obj); - } - - /// - /// Returns for hashCode PrimaryAggregationType - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string None = "None"; + public const string Average = "Average"; + public const string Count = "Count"; + public const string Minimum = "Minimum"; + public const string Maximum = "Maximum"; + public const string Total = "Total"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrimaryAggregationTypeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrimaryAggregationTypeConverter.cs deleted file mode 100644 index 72fcf7333fdf..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrimaryAggregationTypeConverter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for PrimaryAggregationType. - /// - public sealed class PrimaryAggregationTypeConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to PrimaryAggregationType by - /// the converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(PrimaryAggregationType).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to PrimaryAggregationType. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (PrimaryAggregationType)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for PrimaryAggregationType for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateEndpointConnection.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateEndpointConnection.cs index 7d429e5f86b5..1e5b5bd72283 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateEndpointConnection.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateEndpointConnection.cs @@ -42,7 +42,7 @@ public PrivateEndpointConnection() /// State of the private endpoint /// connection. Possible values include: 'Approving', 'Ready', /// 'Dropping', 'Failed', 'Rejecting' - public PrivateEndpointConnection(string id = default(string), string name = default(string), string type = default(string), PrivateEndpointProperty privateEndpoint = default(PrivateEndpointProperty), PrivateLinkServiceConnectionStateProperty privateLinkServiceConnectionState = default(PrivateLinkServiceConnectionStateProperty), PrivateEndpointProvisioningState? provisioningState = default(PrivateEndpointProvisioningState?)) + public PrivateEndpointConnection(string id = default(string), string name = default(string), string type = default(string), PrivateEndpointProperty privateEndpoint = default(PrivateEndpointProperty), PrivateLinkServiceConnectionStateProperty privateLinkServiceConnectionState = default(PrivateLinkServiceConnectionStateProperty), string provisioningState = default(string)) : base(id, name, type) { PrivateEndpoint = privateEndpoint; @@ -73,7 +73,7 @@ public PrivateEndpointConnection() /// include: 'Approving', 'Ready', 'Dropping', 'Failed', 'Rejecting' /// [JsonProperty(PropertyName = "properties.provisioningState")] - public PrivateEndpointProvisioningState? ProvisioningState { get; private set; } + public string ProvisioningState { get; private set; } /// /// Validate the object. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateEndpointConnectionProperties.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateEndpointConnectionProperties.cs index 09f479a5dad3..86d661659397 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateEndpointConnectionProperties.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateEndpointConnectionProperties.cs @@ -38,7 +38,7 @@ public PrivateEndpointConnectionProperties() /// State of the private endpoint /// connection. Possible values include: 'Approving', 'Ready', /// 'Dropping', 'Failed', 'Rejecting' - public PrivateEndpointConnectionProperties(PrivateEndpointProperty privateEndpoint = default(PrivateEndpointProperty), PrivateLinkServiceConnectionStateProperty privateLinkServiceConnectionState = default(PrivateLinkServiceConnectionStateProperty), PrivateEndpointProvisioningState? provisioningState = default(PrivateEndpointProvisioningState?)) + public PrivateEndpointConnectionProperties(PrivateEndpointProperty privateEndpoint = default(PrivateEndpointProperty), PrivateLinkServiceConnectionStateProperty privateLinkServiceConnectionState = default(PrivateLinkServiceConnectionStateProperty), string provisioningState = default(string)) { PrivateEndpoint = privateEndpoint; PrivateLinkServiceConnectionState = privateLinkServiceConnectionState; @@ -68,7 +68,7 @@ public PrivateEndpointConnectionProperties() /// include: 'Approving', 'Ready', 'Dropping', 'Failed', 'Rejecting' /// [JsonProperty(PropertyName = "provisioningState")] - public PrivateEndpointProvisioningState? ProvisioningState { get; private set; } + public string ProvisioningState { get; private set; } /// /// Validate the object. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateEndpointConnectionRequestStatus.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateEndpointConnectionRequestStatus.cs deleted file mode 100644 index e65d5eece7a2..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateEndpointConnectionRequestStatus.cs +++ /dev/null @@ -1,72 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - using System.Linq; - - /// - /// Contains the private endpoint connection requests status. - /// - public partial class PrivateEndpointConnectionRequestStatus - { - /// - /// Initializes a new instance of the - /// PrivateEndpointConnectionRequestStatus class. - /// - public PrivateEndpointConnectionRequestStatus() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the - /// PrivateEndpointConnectionRequestStatus class. - /// - /// Resource id for which the - /// private endpoint is created. - /// The connection name for - /// the private endpoint. - /// Status of this private endpoint - /// connection. - public PrivateEndpointConnectionRequestStatus(string privateLinkServiceId = default(string), string privateEndpointConnectionName = default(string), string status = default(string)) - { - PrivateLinkServiceId = privateLinkServiceId; - PrivateEndpointConnectionName = privateEndpointConnectionName; - Status = status; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets resource id for which the private endpoint is created. - /// - [JsonProperty(PropertyName = "privateLinkServiceId")] - public string PrivateLinkServiceId { get; private set; } - - /// - /// Gets the connection name for the private endpoint. - /// - [JsonProperty(PropertyName = "privateEndpointConnectionName")] - public string PrivateEndpointConnectionName { get; private set; } - - /// - /// Gets status of this private endpoint connection. - /// - [JsonProperty(PropertyName = "status")] - public string Status { get; private set; } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateEndpointProvisioningState.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateEndpointProvisioningState.cs index 13b8474b6d40..8b51147cfcf2 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateEndpointProvisioningState.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateEndpointProvisioningState.cs @@ -10,104 +10,16 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for PrivateEndpointProvisioningState. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(PrivateEndpointProvisioningStateConverter))] - public struct PrivateEndpointProvisioningState : System.IEquatable + public static class PrivateEndpointProvisioningState { - private PrivateEndpointProvisioningState(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly PrivateEndpointProvisioningState Approving = "Approving"; - - public static readonly PrivateEndpointProvisioningState Ready = "Ready"; - - public static readonly PrivateEndpointProvisioningState Dropping = "Dropping"; - - public static readonly PrivateEndpointProvisioningState Failed = "Failed"; - - public static readonly PrivateEndpointProvisioningState Rejecting = "Rejecting"; - - - /// - /// Underlying value of enum PrivateEndpointProvisioningState - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for PrivateEndpointProvisioningState - /// - public override string ToString() - { - return UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type PrivateEndpointProvisioningState - /// - public bool Equals(PrivateEndpointProvisioningState e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to - /// PrivateEndpointProvisioningState - /// - public static implicit operator PrivateEndpointProvisioningState(string value) - { - return new PrivateEndpointProvisioningState(value); - } - - /// - /// Implicit operator to convert PrivateEndpointProvisioningState to - /// string - /// - public static implicit operator string(PrivateEndpointProvisioningState e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum PrivateEndpointProvisioningState - /// - public static bool operator == (PrivateEndpointProvisioningState e1, PrivateEndpointProvisioningState e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum PrivateEndpointProvisioningState - /// - public static bool operator != (PrivateEndpointProvisioningState e1, PrivateEndpointProvisioningState e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for PrivateEndpointProvisioningState - /// - public override bool Equals(object obj) - { - return obj is PrivateEndpointProvisioningState && Equals((PrivateEndpointProvisioningState)obj); - } - - /// - /// Returns for hashCode PrivateEndpointProvisioningState - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string Approving = "Approving"; + public const string Ready = "Ready"; + public const string Dropping = "Dropping"; + public const string Failed = "Failed"; + public const string Rejecting = "Rejecting"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateEndpointProvisioningStateConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateEndpointProvisioningStateConverter.cs deleted file mode 100644 index 4aba156c0b1e..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateEndpointProvisioningStateConverter.cs +++ /dev/null @@ -1,55 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for PrivateEndpointProvisioningState. - /// - public sealed class PrivateEndpointProvisioningStateConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to - /// PrivateEndpointProvisioningState by the converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(PrivateEndpointProvisioningState).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to - /// PrivateEndpointProvisioningState. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (PrivateEndpointProvisioningState)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for PrivateEndpointProvisioningState for - /// serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateLinkServiceConnectionStateActionsRequire.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateLinkServiceConnectionStateActionsRequire.cs index 9d4f37c6de77..65076ffb9e33 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateLinkServiceConnectionStateActionsRequire.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateLinkServiceConnectionStateActionsRequire.cs @@ -10,103 +10,12 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for PrivateLinkServiceConnectionStateActionsRequire. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(PrivateLinkServiceConnectionStateActionsRequireConverter))] - public struct PrivateLinkServiceConnectionStateActionsRequire : System.IEquatable + public static class PrivateLinkServiceConnectionStateActionsRequire { - private PrivateLinkServiceConnectionStateActionsRequire(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly PrivateLinkServiceConnectionStateActionsRequire None = "None"; - - - /// - /// Underlying value of enum - /// PrivateLinkServiceConnectionStateActionsRequire - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for - /// PrivateLinkServiceConnectionStateActionsRequire - /// - public override string ToString() - { - return UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type - /// PrivateLinkServiceConnectionStateActionsRequire - /// - public bool Equals(PrivateLinkServiceConnectionStateActionsRequire e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to - /// PrivateLinkServiceConnectionStateActionsRequire - /// - public static implicit operator PrivateLinkServiceConnectionStateActionsRequire(string value) - { - return new PrivateLinkServiceConnectionStateActionsRequire(value); - } - - /// - /// Implicit operator to convert - /// PrivateLinkServiceConnectionStateActionsRequire to string - /// - public static implicit operator string(PrivateLinkServiceConnectionStateActionsRequire e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum - /// PrivateLinkServiceConnectionStateActionsRequire - /// - public static bool operator == (PrivateLinkServiceConnectionStateActionsRequire e1, PrivateLinkServiceConnectionStateActionsRequire e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum - /// PrivateLinkServiceConnectionStateActionsRequire - /// - public static bool operator != (PrivateLinkServiceConnectionStateActionsRequire e1, PrivateLinkServiceConnectionStateActionsRequire e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for - /// PrivateLinkServiceConnectionStateActionsRequire - /// - public override bool Equals(object obj) - { - return obj is PrivateLinkServiceConnectionStateActionsRequire && Equals((PrivateLinkServiceConnectionStateActionsRequire)obj); - } - - /// - /// Returns for hashCode - /// PrivateLinkServiceConnectionStateActionsRequire - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string None = "None"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateLinkServiceConnectionStateActionsRequireConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateLinkServiceConnectionStateActionsRequireConverter.cs deleted file mode 100644 index 11ba9fac5962..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateLinkServiceConnectionStateActionsRequireConverter.cs +++ /dev/null @@ -1,55 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for PrivateLinkServiceConnectionStateActionsRequire. - /// - public sealed class PrivateLinkServiceConnectionStateActionsRequireConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to - /// PrivateLinkServiceConnectionStateActionsRequire by the converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(PrivateLinkServiceConnectionStateActionsRequire).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to - /// PrivateLinkServiceConnectionStateActionsRequire. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (PrivateLinkServiceConnectionStateActionsRequire)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for - /// PrivateLinkServiceConnectionStateActionsRequire for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateLinkServiceConnectionStateProperty.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateLinkServiceConnectionStateProperty.cs index 35c59ae42bc3..b37af54682f7 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateLinkServiceConnectionStateProperty.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateLinkServiceConnectionStateProperty.cs @@ -36,7 +36,7 @@ public PrivateLinkServiceConnectionStateProperty() /// description. /// The actions required for private link /// service connection. Possible values include: 'None' - public PrivateLinkServiceConnectionStateProperty(PrivateLinkServiceConnectionStateStatus status, string description, PrivateLinkServiceConnectionStateActionsRequire? actionsRequired = default(PrivateLinkServiceConnectionStateActionsRequire?)) + public PrivateLinkServiceConnectionStateProperty(string status, string description, string actionsRequired = default(string)) { Status = status; Description = description; @@ -54,7 +54,7 @@ public PrivateLinkServiceConnectionStateProperty() /// values include: 'Approved', 'Pending', 'Rejected', 'Disconnected' /// [JsonProperty(PropertyName = "status")] - public PrivateLinkServiceConnectionStateStatus Status { get; set; } + public string Status { get; set; } /// /// Gets or sets the private link service connection description. @@ -67,7 +67,7 @@ public PrivateLinkServiceConnectionStateProperty() /// Possible values include: 'None' /// [JsonProperty(PropertyName = "actionsRequired")] - public PrivateLinkServiceConnectionStateActionsRequire? ActionsRequired { get; private set; } + public string ActionsRequired { get; private set; } /// /// Validate the object. @@ -77,6 +77,10 @@ public PrivateLinkServiceConnectionStateProperty() /// public virtual void Validate() { + if (Status == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Status"); + } if (Description == null) { throw new ValidationException(ValidationRules.CannotBeNull, "Description"); diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateLinkServiceConnectionStateStatus.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateLinkServiceConnectionStateStatus.cs index 8a205f8eb4b8..625f7c0aed92 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateLinkServiceConnectionStateStatus.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateLinkServiceConnectionStateStatus.cs @@ -10,106 +10,15 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for PrivateLinkServiceConnectionStateStatus. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(PrivateLinkServiceConnectionStateStatusConverter))] - public struct PrivateLinkServiceConnectionStateStatus : System.IEquatable + public static class PrivateLinkServiceConnectionStateStatus { - private PrivateLinkServiceConnectionStateStatus(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly PrivateLinkServiceConnectionStateStatus Approved = "Approved"; - - public static readonly PrivateLinkServiceConnectionStateStatus Pending = "Pending"; - - public static readonly PrivateLinkServiceConnectionStateStatus Rejected = "Rejected"; - - public static readonly PrivateLinkServiceConnectionStateStatus Disconnected = "Disconnected"; - - - /// - /// Underlying value of enum PrivateLinkServiceConnectionStateStatus - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for - /// PrivateLinkServiceConnectionStateStatus - /// - public override string ToString() - { - return UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type PrivateLinkServiceConnectionStateStatus - /// - public bool Equals(PrivateLinkServiceConnectionStateStatus e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to - /// PrivateLinkServiceConnectionStateStatus - /// - public static implicit operator PrivateLinkServiceConnectionStateStatus(string value) - { - return new PrivateLinkServiceConnectionStateStatus(value); - } - - /// - /// Implicit operator to convert - /// PrivateLinkServiceConnectionStateStatus to string - /// - public static implicit operator string(PrivateLinkServiceConnectionStateStatus e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum - /// PrivateLinkServiceConnectionStateStatus - /// - public static bool operator == (PrivateLinkServiceConnectionStateStatus e1, PrivateLinkServiceConnectionStateStatus e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum - /// PrivateLinkServiceConnectionStateStatus - /// - public static bool operator != (PrivateLinkServiceConnectionStateStatus e1, PrivateLinkServiceConnectionStateStatus e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for - /// PrivateLinkServiceConnectionStateStatus - /// - public override bool Equals(object obj) - { - return obj is PrivateLinkServiceConnectionStateStatus && Equals((PrivateLinkServiceConnectionStateStatus)obj); - } - - /// - /// Returns for hashCode PrivateLinkServiceConnectionStateStatus - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string Approved = "Approved"; + public const string Pending = "Pending"; + public const string Rejected = "Rejected"; + public const string Disconnected = "Disconnected"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateLinkServiceConnectionStateStatusConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateLinkServiceConnectionStateStatusConverter.cs deleted file mode 100644 index 5b6c95b39411..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateLinkServiceConnectionStateStatusConverter.cs +++ /dev/null @@ -1,55 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for PrivateLinkServiceConnectionStateStatus. - /// - public sealed class PrivateLinkServiceConnectionStateStatusConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to - /// PrivateLinkServiceConnectionStateStatus by the converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(PrivateLinkServiceConnectionStateStatus).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to - /// PrivateLinkServiceConnectionStateStatus. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (PrivateLinkServiceConnectionStateStatus)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for PrivateLinkServiceConnectionStateStatus - /// for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ProvisioningState.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ProvisioningState.cs index ac6c1d688463..86dff5006da9 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ProvisioningState.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ProvisioningState.cs @@ -10,102 +10,16 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for ProvisioningState. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(ProvisioningStateConverter))] - public struct ProvisioningState : System.IEquatable + public static class ProvisioningState { - private ProvisioningState(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly ProvisioningState Created = "Created"; - - public static readonly ProvisioningState InProgress = "InProgress"; - - public static readonly ProvisioningState Succeeded = "Succeeded"; - - public static readonly ProvisioningState Failed = "Failed"; - - public static readonly ProvisioningState Canceled = "Canceled"; - - - /// - /// Underlying value of enum ProvisioningState - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for ProvisioningState - /// - public override string ToString() - { - return UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type ProvisioningState - /// - public bool Equals(ProvisioningState e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to ProvisioningState - /// - public static implicit operator ProvisioningState(string value) - { - return new ProvisioningState(value); - } - - /// - /// Implicit operator to convert ProvisioningState to string - /// - public static implicit operator string(ProvisioningState e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum ProvisioningState - /// - public static bool operator == (ProvisioningState e1, ProvisioningState e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum ProvisioningState - /// - public static bool operator != (ProvisioningState e1, ProvisioningState e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for ProvisioningState - /// - public override bool Equals(object obj) - { - return obj is ProvisioningState && Equals((ProvisioningState)obj); - } - - /// - /// Returns for hashCode ProvisioningState - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string Created = "Created"; + public const string InProgress = "InProgress"; + public const string Succeeded = "Succeeded"; + public const string Failed = "Failed"; + public const string Canceled = "Canceled"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ProvisioningStateConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ProvisioningStateConverter.cs deleted file mode 100644 index 1daf14e3574a..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ProvisioningStateConverter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for ProvisioningState. - /// - public sealed class ProvisioningStateConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to ProvisioningState by the - /// converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(ProvisioningState).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to ProvisioningState. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (ProvisioningState)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for ProvisioningState for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReadOnlyEndpointFailoverPolicy.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReadOnlyEndpointFailoverPolicy.cs index 6ceb6583de86..4d78fadf1980 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReadOnlyEndpointFailoverPolicy.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReadOnlyEndpointFailoverPolicy.cs @@ -10,98 +10,13 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for ReadOnlyEndpointFailoverPolicy. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(ReadOnlyEndpointFailoverPolicyConverter))] - public struct ReadOnlyEndpointFailoverPolicy : System.IEquatable + public static class ReadOnlyEndpointFailoverPolicy { - private ReadOnlyEndpointFailoverPolicy(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly ReadOnlyEndpointFailoverPolicy Disabled = "Disabled"; - - public static readonly ReadOnlyEndpointFailoverPolicy Enabled = "Enabled"; - - - /// - /// Underlying value of enum ReadOnlyEndpointFailoverPolicy - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for ReadOnlyEndpointFailoverPolicy - /// - public override string ToString() - { - return UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type ReadOnlyEndpointFailoverPolicy - /// - public bool Equals(ReadOnlyEndpointFailoverPolicy e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to - /// ReadOnlyEndpointFailoverPolicy - /// - public static implicit operator ReadOnlyEndpointFailoverPolicy(string value) - { - return new ReadOnlyEndpointFailoverPolicy(value); - } - - /// - /// Implicit operator to convert ReadOnlyEndpointFailoverPolicy to - /// string - /// - public static implicit operator string(ReadOnlyEndpointFailoverPolicy e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum ReadOnlyEndpointFailoverPolicy - /// - public static bool operator == (ReadOnlyEndpointFailoverPolicy e1, ReadOnlyEndpointFailoverPolicy e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum ReadOnlyEndpointFailoverPolicy - /// - public static bool operator != (ReadOnlyEndpointFailoverPolicy e1, ReadOnlyEndpointFailoverPolicy e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for ReadOnlyEndpointFailoverPolicy - /// - public override bool Equals(object obj) - { - return obj is ReadOnlyEndpointFailoverPolicy && Equals((ReadOnlyEndpointFailoverPolicy)obj); - } - - /// - /// Returns for hashCode ReadOnlyEndpointFailoverPolicy - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string Disabled = "Disabled"; + public const string Enabled = "Enabled"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReadOnlyEndpointFailoverPolicyConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReadOnlyEndpointFailoverPolicyConverter.cs deleted file mode 100644 index f2b2352a5cee..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReadOnlyEndpointFailoverPolicyConverter.cs +++ /dev/null @@ -1,55 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for ReadOnlyEndpointFailoverPolicy. - /// - public sealed class ReadOnlyEndpointFailoverPolicyConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to - /// ReadOnlyEndpointFailoverPolicy by the converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(ReadOnlyEndpointFailoverPolicy).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to - /// ReadOnlyEndpointFailoverPolicy. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (ReadOnlyEndpointFailoverPolicy)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for ReadOnlyEndpointFailoverPolicy for - /// serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReadScaleCapability.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReadScaleCapability.cs deleted file mode 100644 index 1055b0b9c412..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReadScaleCapability.cs +++ /dev/null @@ -1,71 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - using System.Linq; - - /// - /// The read scale capability. - /// - public partial class ReadScaleCapability - { - /// - /// Initializes a new instance of the ReadScaleCapability class. - /// - public ReadScaleCapability() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the ReadScaleCapability class. - /// - /// The maximum number of read scale - /// replicas. - /// The status of the capability. Possible values - /// include: 'Visible', 'Available', 'Default', 'Disabled' - /// The reason for the capability not being - /// available. - public ReadScaleCapability(int? maxNumberOfReplicas = default(int?), CapabilityStatus? status = default(CapabilityStatus?), string reason = default(string)) - { - MaxNumberOfReplicas = maxNumberOfReplicas; - Status = status; - Reason = reason; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets the maximum number of read scale replicas. - /// - [JsonProperty(PropertyName = "maxNumberOfReplicas")] - public int? MaxNumberOfReplicas { get; private set; } - - /// - /// Gets the status of the capability. Possible values include: - /// 'Visible', 'Available', 'Default', 'Disabled' - /// - [JsonProperty(PropertyName = "status")] - public CapabilityStatus? Status { get; private set; } - - /// - /// Gets or sets the reason for the capability not being available. - /// - [JsonProperty(PropertyName = "reason")] - public string Reason { get; set; } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReadWriteEndpointFailoverPolicy.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReadWriteEndpointFailoverPolicy.cs index 08e2db05c2e7..1ea812a89b20 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReadWriteEndpointFailoverPolicy.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReadWriteEndpointFailoverPolicy.cs @@ -10,98 +10,13 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for ReadWriteEndpointFailoverPolicy. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(ReadWriteEndpointFailoverPolicyConverter))] - public struct ReadWriteEndpointFailoverPolicy : System.IEquatable + public static class ReadWriteEndpointFailoverPolicy { - private ReadWriteEndpointFailoverPolicy(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly ReadWriteEndpointFailoverPolicy Manual = "Manual"; - - public static readonly ReadWriteEndpointFailoverPolicy Automatic = "Automatic"; - - - /// - /// Underlying value of enum ReadWriteEndpointFailoverPolicy - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for ReadWriteEndpointFailoverPolicy - /// - public override string ToString() - { - return UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type ReadWriteEndpointFailoverPolicy - /// - public bool Equals(ReadWriteEndpointFailoverPolicy e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to - /// ReadWriteEndpointFailoverPolicy - /// - public static implicit operator ReadWriteEndpointFailoverPolicy(string value) - { - return new ReadWriteEndpointFailoverPolicy(value); - } - - /// - /// Implicit operator to convert ReadWriteEndpointFailoverPolicy to - /// string - /// - public static implicit operator string(ReadWriteEndpointFailoverPolicy e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum ReadWriteEndpointFailoverPolicy - /// - public static bool operator == (ReadWriteEndpointFailoverPolicy e1, ReadWriteEndpointFailoverPolicy e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum ReadWriteEndpointFailoverPolicy - /// - public static bool operator != (ReadWriteEndpointFailoverPolicy e1, ReadWriteEndpointFailoverPolicy e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for ReadWriteEndpointFailoverPolicy - /// - public override bool Equals(object obj) - { - return obj is ReadWriteEndpointFailoverPolicy && Equals((ReadWriteEndpointFailoverPolicy)obj); - } - - /// - /// Returns for hashCode ReadWriteEndpointFailoverPolicy - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string Manual = "Manual"; + public const string Automatic = "Automatic"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReadWriteEndpointFailoverPolicyConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReadWriteEndpointFailoverPolicyConverter.cs deleted file mode 100644 index 953d3b242b00..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReadWriteEndpointFailoverPolicyConverter.cs +++ /dev/null @@ -1,55 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for ReadWriteEndpointFailoverPolicy. - /// - public sealed class ReadWriteEndpointFailoverPolicyConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to - /// ReadWriteEndpointFailoverPolicy by the converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(ReadWriteEndpointFailoverPolicy).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to - /// ReadWriteEndpointFailoverPolicy. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (ReadWriteEndpointFailoverPolicy)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for ReadWriteEndpointFailoverPolicy for - /// serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/RecommendedElasticPool.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/RecommendedElasticPool.cs index ee7c2e27ec44..64bc89c9d26f 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/RecommendedElasticPool.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/RecommendedElasticPool.cs @@ -58,7 +58,7 @@ public RecommendedElasticPool() /// Expanded property /// The list of databases housed in the server. /// Expanded property - public RecommendedElasticPool(string id = default(string), string name = default(string), string type = default(string), ElasticPoolEdition? databaseEdition = default(ElasticPoolEdition?), double? dtu = default(double?), double? databaseDtuMin = default(double?), double? databaseDtuMax = default(double?), double? storageMB = default(double?), System.DateTime? observationPeriodStart = default(System.DateTime?), System.DateTime? observationPeriodEnd = default(System.DateTime?), double? maxObservedDtu = default(double?), double? maxObservedStorageMB = default(double?), IList databases = default(IList), IList metrics = default(IList)) + public RecommendedElasticPool(string id = default(string), string name = default(string), string type = default(string), string databaseEdition = default(string), double? dtu = default(double?), double? databaseDtuMin = default(double?), double? databaseDtuMax = default(double?), double? storageMB = default(double?), System.DateTime? observationPeriodStart = default(System.DateTime?), System.DateTime? observationPeriodEnd = default(System.DateTime?), double? maxObservedDtu = default(double?), double? maxObservedStorageMB = default(double?), IList databases = default(IList), IList metrics = default(IList)) : base(id, name, type) { DatabaseEdition = databaseEdition; @@ -87,7 +87,7 @@ public RecommendedElasticPool() /// 'GeneralPurpose', 'BusinessCritical' /// [JsonProperty(PropertyName = "properties.databaseEdition")] - public ElasticPoolEdition? DatabaseEdition { get; private set; } + public string DatabaseEdition { get; private set; } /// /// Gets or sets the DTU for the recommended elastic pool. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReplicaType.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReplicaType.cs index 2050f79eaa5e..f7a52812ab85 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReplicaType.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReplicaType.cs @@ -10,96 +10,13 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for ReplicaType. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(ReplicaTypeConverter))] - public struct ReplicaType : System.IEquatable + public static class ReplicaType { - private ReplicaType(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly ReplicaType Primary = "Primary"; - - public static readonly ReplicaType ReadableSecondary = "ReadableSecondary"; - - - /// - /// Underlying value of enum ReplicaType - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for ReplicaType - /// - public override string ToString() - { - return UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type ReplicaType - /// - public bool Equals(ReplicaType e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to ReplicaType - /// - public static implicit operator ReplicaType(string value) - { - return new ReplicaType(value); - } - - /// - /// Implicit operator to convert ReplicaType to string - /// - public static implicit operator string(ReplicaType e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum ReplicaType - /// - public static bool operator == (ReplicaType e1, ReplicaType e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum ReplicaType - /// - public static bool operator != (ReplicaType e1, ReplicaType e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for ReplicaType - /// - public override bool Equals(object obj) - { - return obj is ReplicaType && Equals((ReplicaType)obj); - } - - /// - /// Returns for hashCode ReplicaType - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string Primary = "Primary"; + public const string ReadableSecondary = "ReadableSecondary"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReplicaTypeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReplicaTypeConverter.cs deleted file mode 100644 index 2dc81d8fbb2b..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReplicaTypeConverter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for ReplicaType. - /// - public sealed class ReplicaTypeConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to ReplicaType by the - /// converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(ReplicaType).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to ReplicaType. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (ReplicaType)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for ReplicaType for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReplicationLink.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReplicationLink.cs index d1de4fb55e02..0d886828bfad 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReplicationLink.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReplicationLink.cs @@ -60,7 +60,7 @@ public ReplicationLink() /// The replication state for the /// replication link. Possible values include: 'PENDING', 'SEEDING', /// 'CATCH_UP', 'SUSPENDED' - public ReplicationLink(string id = default(string), string name = default(string), string type = default(string), string location = default(string), bool? isTerminationAllowed = default(bool?), string replicationMode = default(string), string partnerServer = default(string), string partnerDatabase = default(string), string partnerLocation = default(string), ReplicationRole? role = default(ReplicationRole?), ReplicationRole? partnerRole = default(ReplicationRole?), System.DateTime? startTime = default(System.DateTime?), int? percentComplete = default(int?), ReplicationState? replicationState = default(ReplicationState?)) + public ReplicationLink(string id = default(string), string name = default(string), string type = default(string), string location = default(string), bool? isTerminationAllowed = default(bool?), string replicationMode = default(string), string partnerServer = default(string), string partnerDatabase = default(string), string partnerLocation = default(string), ReplicationRole? role = default(ReplicationRole?), ReplicationRole? partnerRole = default(ReplicationRole?), System.DateTime? startTime = default(System.DateTime?), int? percentComplete = default(int?), string replicationState = default(string)) : base(id, name, type) { Location = location; @@ -152,7 +152,7 @@ public ReplicationLink() /// values include: 'PENDING', 'SEEDING', 'CATCH_UP', 'SUSPENDED' /// [JsonProperty(PropertyName = "properties.replicationState")] - public ReplicationState? ReplicationState { get; private set; } + public string ReplicationState { get; private set; } } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReplicationState.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReplicationState.cs index e84297c1c21a..067c14bdb345 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReplicationState.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReplicationState.cs @@ -10,100 +10,15 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for ReplicationState. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(ReplicationStateConverter))] - public struct ReplicationState : System.IEquatable + public static class ReplicationState { - private ReplicationState(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly ReplicationState PENDING = "PENDING"; - - public static readonly ReplicationState SEEDING = "SEEDING"; - - public static readonly ReplicationState CATCHUP = "CATCH_UP"; - - public static readonly ReplicationState SUSPENDED = "SUSPENDED"; - - - /// - /// Underlying value of enum ReplicationState - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for ReplicationState - /// - public override string ToString() - { - return UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type ReplicationState - /// - public bool Equals(ReplicationState e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to ReplicationState - /// - public static implicit operator ReplicationState(string value) - { - return new ReplicationState(value); - } - - /// - /// Implicit operator to convert ReplicationState to string - /// - public static implicit operator string(ReplicationState e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum ReplicationState - /// - public static bool operator == (ReplicationState e1, ReplicationState e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum ReplicationState - /// - public static bool operator != (ReplicationState e1, ReplicationState e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for ReplicationState - /// - public override bool Equals(object obj) - { - return obj is ReplicationState && Equals((ReplicationState)obj); - } - - /// - /// Returns for hashCode ReplicationState - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string PENDING = "PENDING"; + public const string SEEDING = "SEEDING"; + public const string CATCHUP = "CATCH_UP"; + public const string SUSPENDED = "SUSPENDED"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReplicationStateConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReplicationStateConverter.cs deleted file mode 100644 index 37a054974228..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReplicationStateConverter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for ReplicationState. - /// - public sealed class ReplicationStateConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to ReplicationState by the - /// converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(ReplicationState).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to ReplicationState. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (ReplicationState)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for ReplicationState for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ResourceIdentity.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ResourceIdentity.cs index 5fbf0848c174..d3f9595700d3 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ResourceIdentity.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ResourceIdentity.cs @@ -37,7 +37,7 @@ public ResourceIdentity() /// 'SystemAssigned' /// The Azure Active Directory tenant /// id. - public ResourceIdentity(System.Guid? principalId = default(System.Guid?), IdentityType? type = default(IdentityType?), System.Guid? tenantId = default(System.Guid?)) + public ResourceIdentity(System.Guid? principalId = default(System.Guid?), string type = default(string), System.Guid? tenantId = default(System.Guid?)) { PrincipalId = principalId; Type = type; @@ -63,7 +63,7 @@ public ResourceIdentity() /// 'SystemAssigned' /// [JsonProperty(PropertyName = "type")] - public IdentityType? Type { get; set; } + public string Type { get; set; } /// /// Gets the Azure Active Directory tenant id. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SampleName.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SampleName.cs index 6f400bda716c..92a7ff7a1560 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SampleName.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SampleName.cs @@ -10,98 +10,14 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for SampleName. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(SampleNameConverter))] - public struct SampleName : System.IEquatable + public static class SampleName { - private SampleName(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly SampleName AdventureWorksLT = "AdventureWorksLT"; - - public static readonly SampleName WideWorldImportersStd = "WideWorldImportersStd"; - - public static readonly SampleName WideWorldImportersFull = "WideWorldImportersFull"; - - - /// - /// Underlying value of enum SampleName - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for SampleName - /// - public override string ToString() - { - return UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type SampleName - /// - public bool Equals(SampleName e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to SampleName - /// - public static implicit operator SampleName(string value) - { - return new SampleName(value); - } - - /// - /// Implicit operator to convert SampleName to string - /// - public static implicit operator string(SampleName e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum SampleName - /// - public static bool operator == (SampleName e1, SampleName e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum SampleName - /// - public static bool operator != (SampleName e1, SampleName e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for SampleName - /// - public override bool Equals(object obj) - { - return obj is SampleName && Equals((SampleName)obj); - } - - /// - /// Returns for hashCode SampleName - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string AdventureWorksLT = "AdventureWorksLT"; + public const string WideWorldImportersStd = "WideWorldImportersStd"; + public const string WideWorldImportersFull = "WideWorldImportersFull"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SampleNameConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SampleNameConverter.cs deleted file mode 100644 index fb7b9b68f517..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SampleNameConverter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for SampleName. - /// - public sealed class SampleNameConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to SampleName by the - /// converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(SampleName).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to SampleName. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (SampleName)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for SampleName for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/Server.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/Server.cs index e7b9dc14b8f5..ceb028f78c6f 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/Server.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/Server.cs @@ -59,7 +59,7 @@ public Server() /// access is allowed for this server. Value is optional but if passed /// in, must be 'Enabled' or 'Disabled'. Possible values include: /// 'Enabled', 'Disabled' - public Server(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), ResourceIdentity identity = default(ResourceIdentity), string kind = default(string), string administratorLogin = default(string), string administratorLoginPassword = default(string), string version = default(string), string state = default(string), string fullyQualifiedDomainName = default(string), IList privateEndpointConnections = default(IList), string minimalTlsVersion = default(string), ServerPublicNetworkAccess? publicNetworkAccess = default(ServerPublicNetworkAccess?)) + public Server(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), ResourceIdentity identity = default(ResourceIdentity), string kind = default(string), string administratorLogin = default(string), string administratorLoginPassword = default(string), string version = default(string), string state = default(string), string fullyQualifiedDomainName = default(string), IList privateEndpointConnections = default(IList), string minimalTlsVersion = default(string), string publicNetworkAccess = default(string)) : base(location, id, name, type, tags) { Identity = identity; @@ -144,7 +144,7 @@ public Server() /// or 'Disabled'. Possible values include: 'Enabled', 'Disabled' /// [JsonProperty(PropertyName = "properties.publicNetworkAccess")] - public ServerPublicNetworkAccess? PublicNetworkAccess { get; set; } + public string PublicNetworkAccess { get; set; } /// /// Validate the object. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServerBlobAuditingPolicy.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServerBlobAuditingPolicy.cs index ff252b229b69..c7a9ac26f54a 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServerBlobAuditingPolicy.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServerBlobAuditingPolicy.cs @@ -45,19 +45,9 @@ public ServerBlobAuditingPolicy() /// Enabled, storageEndpoint or isAzureMonitorTargetEnabled is /// required. /// Specifies the identifier key - /// of the auditing storage account. - /// If state is Enabled and storageEndpoint is specified, not - /// specifying the storageAccountAccessKey will use SQL server - /// system-assigned managed identity to access the storage. - /// Prerequisites for using managed identity authentication: - /// 1. Assign SQL Server a system-assigned managed identity in Azure - /// Active Directory (AAD). - /// 2. Grant SQL Server identity access to the storage account by - /// adding 'Storage Blob Data Contributor' RBAC role to the server - /// identity. - /// For more information, see [Auditing to storage using Managed - /// Identity - /// authentication](https://go.microsoft.com/fwlink/?linkid=2114355) + /// of the auditing storage account. If state is Enabled and + /// storageEndpoint is specified, storageAccountAccessKey is + /// required. /// Specifies the number of days to keep in /// the audit logs in the storage account. /// Specifies the Actions-Groups @@ -202,19 +192,8 @@ public ServerBlobAuditingPolicy() /// /// Gets or sets specifies the identifier key of the auditing storage - /// account. - /// If state is Enabled and storageEndpoint is specified, not - /// specifying the storageAccountAccessKey will use SQL server - /// system-assigned managed identity to access the storage. - /// Prerequisites for using managed identity authentication: - /// 1. Assign SQL Server a system-assigned managed identity in Azure - /// Active Directory (AAD). - /// 2. Grant SQL Server identity access to the storage account by - /// adding 'Storage Blob Data Contributor' RBAC role to the server - /// identity. - /// For more information, see [Auditing to storage using Managed - /// Identity - /// authentication](https://go.microsoft.com/fwlink/?linkid=2114355) + /// account. If state is Enabled and storageEndpoint is specified, + /// storageAccountAccessKey is required. /// [JsonProperty(PropertyName = "properties.storageAccountAccessKey")] public string StorageAccountAccessKey { get; set; } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServerKey.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServerKey.cs index ec2a227780a5..75567c92ac7e 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServerKey.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServerKey.cs @@ -45,7 +45,7 @@ public ServerKey() /// The URI of the server key. /// Thumbprint of the server key. /// The server key creation date. - public ServerKey(ServerKeyType serverKeyType, string id = default(string), string name = default(string), string type = default(string), string kind = default(string), string location = default(string), string subregion = default(string), string uri = default(string), string thumbprint = default(string), System.DateTime? creationDate = default(System.DateTime?)) + public ServerKey(string serverKeyType, string id = default(string), string name = default(string), string type = default(string), string kind = default(string), string location = default(string), string subregion = default(string), string uri = default(string), string thumbprint = default(string), System.DateTime? creationDate = default(System.DateTime?)) : base(id, name, type) { Kind = kind; @@ -88,7 +88,7 @@ public ServerKey() /// 'AzureKeyVault' /// [JsonProperty(PropertyName = "properties.serverKeyType")] - public ServerKeyType ServerKeyType { get; set; } + public string ServerKeyType { get; set; } /// /// Gets or sets the URI of the server key. @@ -116,6 +116,10 @@ public ServerKey() /// public virtual void Validate() { + if (ServerKeyType == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "ServerKeyType"); + } } } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServerKeyType.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServerKeyType.cs index 9c0f2dcd8226..3358ddccad1e 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServerKeyType.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServerKeyType.cs @@ -10,96 +10,13 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for ServerKeyType. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(ServerKeyTypeConverter))] - public struct ServerKeyType : System.IEquatable + public static class ServerKeyType { - private ServerKeyType(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly ServerKeyType ServiceManaged = "ServiceManaged"; - - public static readonly ServerKeyType AzureKeyVault = "AzureKeyVault"; - - - /// - /// Underlying value of enum ServerKeyType - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for ServerKeyType - /// - public override string ToString() - { - return UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type ServerKeyType - /// - public bool Equals(ServerKeyType e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to ServerKeyType - /// - public static implicit operator ServerKeyType(string value) - { - return new ServerKeyType(value); - } - - /// - /// Implicit operator to convert ServerKeyType to string - /// - public static implicit operator string(ServerKeyType e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum ServerKeyType - /// - public static bool operator == (ServerKeyType e1, ServerKeyType e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum ServerKeyType - /// - public static bool operator != (ServerKeyType e1, ServerKeyType e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for ServerKeyType - /// - public override bool Equals(object obj) - { - return obj is ServerKeyType && Equals((ServerKeyType)obj); - } - - /// - /// Returns for hashCode ServerKeyType - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string ServiceManaged = "ServiceManaged"; + public const string AzureKeyVault = "AzureKeyVault"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServerKeyTypeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServerKeyTypeConverter.cs deleted file mode 100644 index eaaa4bf4d7cf..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServerKeyTypeConverter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for ServerKeyType. - /// - public sealed class ServerKeyTypeConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to ServerKeyType by the - /// converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(ServerKeyType).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to ServerKeyType. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (ServerKeyType)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for ServerKeyType for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServerPublicNetworkAccess.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServerPublicNetworkAccess.cs index 58c6df5bf2c8..6b611e0db6a3 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServerPublicNetworkAccess.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServerPublicNetworkAccess.cs @@ -10,96 +10,13 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for ServerPublicNetworkAccess. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(ServerPublicNetworkAccessConverter))] - public struct ServerPublicNetworkAccess : System.IEquatable + public static class ServerPublicNetworkAccess { - private ServerPublicNetworkAccess(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly ServerPublicNetworkAccess Enabled = "Enabled"; - - public static readonly ServerPublicNetworkAccess Disabled = "Disabled"; - - - /// - /// Underlying value of enum ServerPublicNetworkAccess - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for ServerPublicNetworkAccess - /// - public override string ToString() - { - return UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type ServerPublicNetworkAccess - /// - public bool Equals(ServerPublicNetworkAccess e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to ServerPublicNetworkAccess - /// - public static implicit operator ServerPublicNetworkAccess(string value) - { - return new ServerPublicNetworkAccess(value); - } - - /// - /// Implicit operator to convert ServerPublicNetworkAccess to string - /// - public static implicit operator string(ServerPublicNetworkAccess e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum ServerPublicNetworkAccess - /// - public static bool operator == (ServerPublicNetworkAccess e1, ServerPublicNetworkAccess e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum ServerPublicNetworkAccess - /// - public static bool operator != (ServerPublicNetworkAccess e1, ServerPublicNetworkAccess e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for ServerPublicNetworkAccess - /// - public override bool Equals(object obj) - { - return obj is ServerPublicNetworkAccess && Equals((ServerPublicNetworkAccess)obj); - } - - /// - /// Returns for hashCode ServerPublicNetworkAccess - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string Enabled = "Enabled"; + public const string Disabled = "Disabled"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServerPublicNetworkAccessConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServerPublicNetworkAccessConverter.cs deleted file mode 100644 index bd8c40a3ddfc..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServerPublicNetworkAccessConverter.cs +++ /dev/null @@ -1,54 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for ServerPublicNetworkAccess. - /// - public sealed class ServerPublicNetworkAccessConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to ServerPublicNetworkAccess - /// by the converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(ServerPublicNetworkAccess).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to ServerPublicNetworkAccess. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (ServerPublicNetworkAccess)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for ServerPublicNetworkAccess for - /// serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServerUpdate.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServerUpdate.cs index 3131ab12bf44..cd86344ea902 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServerUpdate.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServerUpdate.cs @@ -51,7 +51,7 @@ public ServerUpdate() /// in, must be 'Enabled' or 'Disabled'. Possible values include: /// 'Enabled', 'Disabled' /// Resource tags. - public ServerUpdate(string administratorLogin = default(string), string administratorLoginPassword = default(string), string version = default(string), string state = default(string), string fullyQualifiedDomainName = default(string), IList privateEndpointConnections = default(IList), string minimalTlsVersion = default(string), ServerPublicNetworkAccess? publicNetworkAccess = default(ServerPublicNetworkAccess?), IDictionary tags = default(IDictionary)) + public ServerUpdate(string administratorLogin = default(string), string administratorLoginPassword = default(string), string version = default(string), string state = default(string), string fullyQualifiedDomainName = default(string), IList privateEndpointConnections = default(IList), string minimalTlsVersion = default(string), string publicNetworkAccess = default(string), IDictionary tags = default(IDictionary)) { AdministratorLogin = administratorLogin; AdministratorLoginPassword = administratorLoginPassword; @@ -121,7 +121,7 @@ public ServerUpdate() /// or 'Disabled'. Possible values include: 'Enabled', 'Disabled' /// [JsonProperty(PropertyName = "properties.publicNetworkAccess")] - public ServerPublicNetworkAccess? PublicNetworkAccess { get; set; } + public string PublicNetworkAccess { get; set; } /// /// Gets or sets resource tags. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServerVulnerabilityAssessment.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServerVulnerabilityAssessment.cs index 0fe8baa64ded..a66171057791 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServerVulnerabilityAssessment.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServerVulnerabilityAssessment.cs @@ -41,8 +41,8 @@ public ServerVulnerabilityAssessment() /// Resource name. /// Resource type. /// A shared access signature (SAS - /// Key) that has read and write access to the blob container specified - /// in 'storageContainerPath' parameter. If 'storageAccountAccessKey' + /// Key) that has write access to the blob container specified in + /// 'storageContainerPath' parameter. If 'storageAccountAccessKey' /// isn't specified, StorageContainerSasKey is required. /// Specifies the identifier key /// of the storage account for vulnerability assessment scan results. @@ -72,10 +72,10 @@ public ServerVulnerabilityAssessment() public string StorageContainerPath { get; set; } /// - /// Gets or sets a shared access signature (SAS Key) that has read and - /// write access to the blob container specified in - /// 'storageContainerPath' parameter. If 'storageAccountAccessKey' - /// isn't specified, StorageContainerSasKey is required. + /// Gets or sets a shared access signature (SAS Key) that has write + /// access to the blob container specified in 'storageContainerPath' + /// parameter. If 'storageAccountAccessKey' isn't specified, + /// StorageContainerSasKey is required. /// [JsonProperty(PropertyName = "properties.storageContainerSasKey")] public string StorageContainerSasKey { get; set; } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServiceObjectiveCapability.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServiceObjectiveCapability.cs index b6a9fcc01c28..57a002937dfe 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServiceObjectiveCapability.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServiceObjectiveCapability.cs @@ -40,18 +40,11 @@ public ServiceObjectiveCapability() /// List of supported license /// types. /// The included (free) max size. - /// Whether or not zone redundancy is - /// supported for the service objective. - /// Supported time range for auto - /// pause delay - /// List of supported min - /// capacities - /// The compute model /// The status of the capability. Possible values /// include: 'Visible', 'Available', 'Default', 'Disabled' /// The reason for the capability not being /// available. - public ServiceObjectiveCapability(System.Guid? id = default(System.Guid?), string name = default(string), IList supportedMaxSizes = default(IList), PerformanceLevelCapability performanceLevel = default(PerformanceLevelCapability), Sku sku = default(Sku), IList supportedLicenseTypes = default(IList), MaxSizeCapability includedMaxSize = default(MaxSizeCapability), bool? zoneRedundant = default(bool?), AutoPauseDelayTimeRange supportedAutoPauseDelay = default(AutoPauseDelayTimeRange), IList supportedMinCapacities = default(IList), string computeModel = default(string), CapabilityStatus? status = default(CapabilityStatus?), string reason = default(string)) + public ServiceObjectiveCapability(System.Guid? id = default(System.Guid?), string name = default(string), IList supportedMaxSizes = default(IList), PerformanceLevelCapability performanceLevel = default(PerformanceLevelCapability), Sku sku = default(Sku), IList supportedLicenseTypes = default(IList), MaxSizeCapability includedMaxSize = default(MaxSizeCapability), CapabilityStatus? status = default(CapabilityStatus?), string reason = default(string)) { Id = id; Name = name; @@ -60,10 +53,6 @@ public ServiceObjectiveCapability() Sku = sku; SupportedLicenseTypes = supportedLicenseTypes; IncludedMaxSize = includedMaxSize; - ZoneRedundant = zoneRedundant; - SupportedAutoPauseDelay = supportedAutoPauseDelay; - SupportedMinCapacities = supportedMinCapacities; - ComputeModel = computeModel; Status = status; Reason = reason; CustomInit(); @@ -116,31 +105,6 @@ public ServiceObjectiveCapability() [JsonProperty(PropertyName = "includedMaxSize")] public MaxSizeCapability IncludedMaxSize { get; private set; } - /// - /// Gets whether or not zone redundancy is supported for the service - /// objective. - /// - [JsonProperty(PropertyName = "zoneRedundant")] - public bool? ZoneRedundant { get; private set; } - - /// - /// Gets supported time range for auto pause delay - /// - [JsonProperty(PropertyName = "supportedAutoPauseDelay")] - public AutoPauseDelayTimeRange SupportedAutoPauseDelay { get; private set; } - - /// - /// Gets list of supported min capacities - /// - [JsonProperty(PropertyName = "supportedMinCapacities")] - public IList SupportedMinCapacities { get; private set; } - - /// - /// Gets the compute model - /// - [JsonProperty(PropertyName = "computeModel")] - public string ComputeModel { get; private set; } - /// /// Gets the status of the capability. Possible values include: /// 'Visible', 'Available', 'Default', 'Disabled' diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServiceObjectiveName.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServiceObjectiveName.cs index 86c882966c9c..befe17ba9bbf 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServiceObjectiveName.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServiceObjectiveName.cs @@ -10,222 +10,76 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for ServiceObjectiveName. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(ServiceObjectiveNameConverter))] - public struct ServiceObjectiveName : System.IEquatable + public static class ServiceObjectiveName { - private ServiceObjectiveName(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly ServiceObjectiveName System = "System"; - - public static readonly ServiceObjectiveName System0 = "System0"; - - public static readonly ServiceObjectiveName System1 = "System1"; - - public static readonly ServiceObjectiveName System2 = "System2"; - - public static readonly ServiceObjectiveName System3 = "System3"; - - public static readonly ServiceObjectiveName System4 = "System4"; - - public static readonly ServiceObjectiveName System2L = "System2L"; - - public static readonly ServiceObjectiveName System3L = "System3L"; - - public static readonly ServiceObjectiveName System4L = "System4L"; - - public static readonly ServiceObjectiveName Free = "Free"; - - public static readonly ServiceObjectiveName Basic = "Basic"; - - public static readonly ServiceObjectiveName S0 = "S0"; - - public static readonly ServiceObjectiveName S1 = "S1"; - - public static readonly ServiceObjectiveName S2 = "S2"; - - public static readonly ServiceObjectiveName S3 = "S3"; - - public static readonly ServiceObjectiveName S4 = "S4"; - - public static readonly ServiceObjectiveName S6 = "S6"; - - public static readonly ServiceObjectiveName S7 = "S7"; - - public static readonly ServiceObjectiveName S9 = "S9"; - - public static readonly ServiceObjectiveName S12 = "S12"; - - public static readonly ServiceObjectiveName P1 = "P1"; - - public static readonly ServiceObjectiveName P2 = "P2"; - - public static readonly ServiceObjectiveName P3 = "P3"; - - public static readonly ServiceObjectiveName P4 = "P4"; - - public static readonly ServiceObjectiveName P6 = "P6"; - - public static readonly ServiceObjectiveName P11 = "P11"; - - public static readonly ServiceObjectiveName P15 = "P15"; - - public static readonly ServiceObjectiveName PRS1 = "PRS1"; - - public static readonly ServiceObjectiveName PRS2 = "PRS2"; - - public static readonly ServiceObjectiveName PRS4 = "PRS4"; - - public static readonly ServiceObjectiveName PRS6 = "PRS6"; - - public static readonly ServiceObjectiveName DW100 = "DW100"; - - public static readonly ServiceObjectiveName DW200 = "DW200"; - - public static readonly ServiceObjectiveName DW300 = "DW300"; - - public static readonly ServiceObjectiveName DW400 = "DW400"; - - public static readonly ServiceObjectiveName DW500 = "DW500"; - - public static readonly ServiceObjectiveName DW600 = "DW600"; - - public static readonly ServiceObjectiveName DW1000 = "DW1000"; - - public static readonly ServiceObjectiveName DW1200 = "DW1200"; - - public static readonly ServiceObjectiveName DW1000c = "DW1000c"; - - public static readonly ServiceObjectiveName DW1500 = "DW1500"; - - public static readonly ServiceObjectiveName DW1500c = "DW1500c"; - - public static readonly ServiceObjectiveName DW2000 = "DW2000"; - - public static readonly ServiceObjectiveName DW2000c = "DW2000c"; - - public static readonly ServiceObjectiveName DW3000 = "DW3000"; - - public static readonly ServiceObjectiveName DW2500c = "DW2500c"; - - public static readonly ServiceObjectiveName DW3000c = "DW3000c"; - - public static readonly ServiceObjectiveName DW6000 = "DW6000"; - - public static readonly ServiceObjectiveName DW5000c = "DW5000c"; - - public static readonly ServiceObjectiveName DW6000c = "DW6000c"; - - public static readonly ServiceObjectiveName DW7500c = "DW7500c"; - - public static readonly ServiceObjectiveName DW10000c = "DW10000c"; - - public static readonly ServiceObjectiveName DW15000c = "DW15000c"; - - public static readonly ServiceObjectiveName DW30000c = "DW30000c"; - - public static readonly ServiceObjectiveName DS100 = "DS100"; - - public static readonly ServiceObjectiveName DS200 = "DS200"; - - public static readonly ServiceObjectiveName DS300 = "DS300"; - - public static readonly ServiceObjectiveName DS400 = "DS400"; - - public static readonly ServiceObjectiveName DS500 = "DS500"; - - public static readonly ServiceObjectiveName DS600 = "DS600"; - - public static readonly ServiceObjectiveName DS1000 = "DS1000"; - - public static readonly ServiceObjectiveName DS1200 = "DS1200"; - - public static readonly ServiceObjectiveName DS1500 = "DS1500"; - - public static readonly ServiceObjectiveName DS2000 = "DS2000"; - - public static readonly ServiceObjectiveName ElasticPool = "ElasticPool"; - - - /// - /// Underlying value of enum ServiceObjectiveName - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for ServiceObjectiveName - /// - public override string ToString() - { - return UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type ServiceObjectiveName - /// - public bool Equals(ServiceObjectiveName e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to ServiceObjectiveName - /// - public static implicit operator ServiceObjectiveName(string value) - { - return new ServiceObjectiveName(value); - } - - /// - /// Implicit operator to convert ServiceObjectiveName to string - /// - public static implicit operator string(ServiceObjectiveName e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum ServiceObjectiveName - /// - public static bool operator == (ServiceObjectiveName e1, ServiceObjectiveName e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum ServiceObjectiveName - /// - public static bool operator != (ServiceObjectiveName e1, ServiceObjectiveName e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for ServiceObjectiveName - /// - public override bool Equals(object obj) - { - return obj is ServiceObjectiveName && Equals((ServiceObjectiveName)obj); - } - - /// - /// Returns for hashCode ServiceObjectiveName - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string System = "System"; + public const string System0 = "System0"; + public const string System1 = "System1"; + public const string System2 = "System2"; + public const string System3 = "System3"; + public const string System4 = "System4"; + public const string System2L = "System2L"; + public const string System3L = "System3L"; + public const string System4L = "System4L"; + public const string Free = "Free"; + public const string Basic = "Basic"; + public const string S0 = "S0"; + public const string S1 = "S1"; + public const string S2 = "S2"; + public const string S3 = "S3"; + public const string S4 = "S4"; + public const string S6 = "S6"; + public const string S7 = "S7"; + public const string S9 = "S9"; + public const string S12 = "S12"; + public const string P1 = "P1"; + public const string P2 = "P2"; + public const string P3 = "P3"; + public const string P4 = "P4"; + public const string P6 = "P6"; + public const string P11 = "P11"; + public const string P15 = "P15"; + public const string PRS1 = "PRS1"; + public const string PRS2 = "PRS2"; + public const string PRS4 = "PRS4"; + public const string PRS6 = "PRS6"; + public const string DW100 = "DW100"; + public const string DW200 = "DW200"; + public const string DW300 = "DW300"; + public const string DW400 = "DW400"; + public const string DW500 = "DW500"; + public const string DW600 = "DW600"; + public const string DW1000 = "DW1000"; + public const string DW1200 = "DW1200"; + public const string DW1000c = "DW1000c"; + public const string DW1500 = "DW1500"; + public const string DW1500c = "DW1500c"; + public const string DW2000 = "DW2000"; + public const string DW2000c = "DW2000c"; + public const string DW3000 = "DW3000"; + public const string DW2500c = "DW2500c"; + public const string DW3000c = "DW3000c"; + public const string DW6000 = "DW6000"; + public const string DW5000c = "DW5000c"; + public const string DW6000c = "DW6000c"; + public const string DW7500c = "DW7500c"; + public const string DW10000c = "DW10000c"; + public const string DW15000c = "DW15000c"; + public const string DW30000c = "DW30000c"; + public const string DS100 = "DS100"; + public const string DS200 = "DS200"; + public const string DS300 = "DS300"; + public const string DS400 = "DS400"; + public const string DS500 = "DS500"; + public const string DS600 = "DS600"; + public const string DS1000 = "DS1000"; + public const string DS1200 = "DS1200"; + public const string DS1500 = "DS1500"; + public const string DS2000 = "DS2000"; + public const string ElasticPool = "ElasticPool"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServiceObjectiveNameConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServiceObjectiveNameConverter.cs deleted file mode 100644 index a9fcced25ad5..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServiceObjectiveNameConverter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for ServiceObjectiveName. - /// - public sealed class ServiceObjectiveNameConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to ServiceObjectiveName by - /// the converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(ServiceObjectiveName).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to ServiceObjectiveName. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (ServiceObjectiveName)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for ServiceObjectiveName for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SloUsageMetric.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SloUsageMetric.cs index e3ff7d022675..0f4b019f4948 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SloUsageMetric.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SloUsageMetric.cs @@ -44,7 +44,7 @@ public SloUsageMetric() /// for SLO usage metric. /// Gets or sets inRangeTimeRatio for /// SLO usage metric. - public SloUsageMetric(ServiceObjectiveName? serviceLevelObjective = default(ServiceObjectiveName?), System.Guid serviceLevelObjectiveId = default(System.Guid), double inRangeTimeRatio = default(double)) + public SloUsageMetric(string serviceLevelObjective = default(string), System.Guid serviceLevelObjectiveId = default(System.Guid), double inRangeTimeRatio = default(double)) { ServiceLevelObjective = serviceLevelObjective; ServiceLevelObjectiveId = serviceLevelObjectiveId; @@ -71,7 +71,7 @@ public SloUsageMetric() /// 'DS1500', 'DS2000', 'ElasticPool' /// [JsonProperty(PropertyName = "serviceLevelObjective")] - public ServiceObjectiveName? ServiceLevelObjective { get; private set; } + public string ServiceLevelObjective { get; private set; } /// /// Gets the serviceLevelObjectiveId for SLO usage metric. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/StorageAccountType.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/StorageAccountType.cs index 7e59838e8140..f174ff85775d 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/StorageAccountType.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/StorageAccountType.cs @@ -10,98 +10,14 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for StorageAccountType. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(StorageAccountTypeConverter))] - public struct StorageAccountType : System.IEquatable + public static class StorageAccountType { - private StorageAccountType(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly StorageAccountType GRS = "GRS"; - - public static readonly StorageAccountType LRS = "LRS"; - - public static readonly StorageAccountType ZRS = "ZRS"; - - - /// - /// Underlying value of enum StorageAccountType - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for StorageAccountType - /// - public override string ToString() - { - return UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type StorageAccountType - /// - public bool Equals(StorageAccountType e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to StorageAccountType - /// - public static implicit operator StorageAccountType(string value) - { - return new StorageAccountType(value); - } - - /// - /// Implicit operator to convert StorageAccountType to string - /// - public static implicit operator string(StorageAccountType e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum StorageAccountType - /// - public static bool operator == (StorageAccountType e1, StorageAccountType e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum StorageAccountType - /// - public static bool operator != (StorageAccountType e1, StorageAccountType e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for StorageAccountType - /// - public override bool Equals(object obj) - { - return obj is StorageAccountType && Equals((StorageAccountType)obj); - } - - /// - /// Returns for hashCode StorageAccountType - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string GRS = "GRS"; + public const string LRS = "LRS"; + public const string ZRS = "ZRS"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/StorageAccountTypeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/StorageAccountTypeConverter.cs deleted file mode 100644 index 64f6d37618d0..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/StorageAccountTypeConverter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for StorageAccountType. - /// - public sealed class StorageAccountTypeConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to StorageAccountType by the - /// converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(StorageAccountType).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to StorageAccountType. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (StorageAccountType)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for StorageAccountType for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/StorageKeyType.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/StorageKeyType.cs index f4ae7a72c85a..b1e639658412 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/StorageKeyType.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/StorageKeyType.cs @@ -11,95 +11,50 @@ namespace Microsoft.Azure.Management.Sql.Models { using Newtonsoft.Json; + using Newtonsoft.Json.Converters; + using System.Runtime; + using System.Runtime.Serialization; /// /// Defines values for StorageKeyType. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(StorageKeyTypeConverter))] - public struct StorageKeyType : System.IEquatable + [JsonConverter(typeof(StringEnumConverter))] + public enum StorageKeyType { - private StorageKeyType(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly StorageKeyType SharedAccessKey = "SharedAccessKey"; - - public static readonly StorageKeyType StorageAccessKey = "StorageAccessKey"; - - - /// - /// Underlying value of enum StorageKeyType - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for StorageKeyType - /// - public override string ToString() - { - return UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type StorageKeyType - /// - public bool Equals(StorageKeyType e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to StorageKeyType - /// - public static implicit operator StorageKeyType(string value) - { - return new StorageKeyType(value); - } - - /// - /// Implicit operator to convert StorageKeyType to string - /// - public static implicit operator string(StorageKeyType e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum StorageKeyType - /// - public static bool operator == (StorageKeyType e1, StorageKeyType e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum StorageKeyType - /// - public static bool operator != (StorageKeyType e1, StorageKeyType e2) + [EnumMember(Value = "StorageAccessKey")] + StorageAccessKey, + [EnumMember(Value = "SharedAccessKey")] + SharedAccessKey + } + internal static class StorageKeyTypeEnumExtension + { + internal static string ToSerializedValue(this StorageKeyType? value) { - return !e2.Equals(e1); + return value == null ? null : ((StorageKeyType)value).ToSerializedValue(); } - /// - /// Overrides Equals operator for StorageKeyType - /// - public override bool Equals(object obj) + internal static string ToSerializedValue(this StorageKeyType value) { - return obj is StorageKeyType && Equals((StorageKeyType)obj); + switch( value ) + { + case StorageKeyType.StorageAccessKey: + return "StorageAccessKey"; + case StorageKeyType.SharedAccessKey: + return "SharedAccessKey"; + } + return null; } - /// - /// Returns for hashCode StorageKeyType - /// - public override int GetHashCode() + internal static StorageKeyType? ParseStorageKeyType(this string value) { - return UnderlyingValue.GetHashCode(); + switch( value ) + { + case "StorageAccessKey": + return StorageKeyType.StorageAccessKey; + case "SharedAccessKey": + return StorageKeyType.SharedAccessKey; + } + return null; } - } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/StorageKeyTypeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/StorageKeyTypeConverter.cs deleted file mode 100644 index b1a7b808de9a..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/StorageKeyTypeConverter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for StorageKeyType. - /// - public sealed class StorageKeyTypeConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to StorageKeyType by the - /// converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(StorageKeyType).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to StorageKeyType. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (StorageKeyType)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for StorageKeyType for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncAgent.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncAgent.cs index 2f810854b151..dd27b72537d5 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncAgent.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncAgent.cs @@ -47,7 +47,7 @@ public SyncAgent() /// Expiration time of the sync agent /// version. /// Version of the sync agent. - public SyncAgent(string id = default(string), string name = default(string), string type = default(string), string syncAgentName = default(string), string syncDatabaseId = default(string), System.DateTime? lastAliveTime = default(System.DateTime?), SyncAgentState? state = default(SyncAgentState?), bool? isUpToDate = default(bool?), System.DateTime? expiryTime = default(System.DateTime?), string version = default(string)) + public SyncAgent(string id = default(string), string name = default(string), string type = default(string), string syncAgentName = default(string), string syncDatabaseId = default(string), System.DateTime? lastAliveTime = default(System.DateTime?), string state = default(string), bool? isUpToDate = default(bool?), System.DateTime? expiryTime = default(System.DateTime?), string version = default(string)) : base(id, name, type) { SyncAgentName = syncAgentName; @@ -89,7 +89,7 @@ public SyncAgent() /// 'Offline', 'NeverConnected' /// [JsonProperty(PropertyName = "properties.state")] - public SyncAgentState? State { get; private set; } + public string State { get; private set; } /// /// Gets if the sync agent version is up to date. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncAgentLinkedDatabase.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncAgentLinkedDatabase.cs index b9993a161b2e..075a8cd921cc 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncAgentLinkedDatabase.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncAgentLinkedDatabase.cs @@ -48,7 +48,7 @@ public SyncAgentLinkedDatabase() /// database. /// User name of the sync agent linked /// database. - public SyncAgentLinkedDatabase(string id = default(string), string name = default(string), string type = default(string), SyncMemberDbType? databaseType = default(SyncMemberDbType?), string databaseId = default(string), string description = default(string), string serverName = default(string), string databaseName = default(string), string userName = default(string)) + public SyncAgentLinkedDatabase(string id = default(string), string name = default(string), string type = default(string), string databaseType = default(string), string databaseId = default(string), string description = default(string), string serverName = default(string), string databaseName = default(string), string userName = default(string)) : base(id, name, type) { DatabaseType = databaseType; @@ -70,7 +70,7 @@ public SyncAgentLinkedDatabase() /// include: 'AzureSqlDatabase', 'SqlServerDatabase' /// [JsonProperty(PropertyName = "properties.databaseType")] - public SyncMemberDbType? DatabaseType { get; private set; } + public string DatabaseType { get; private set; } /// /// Gets id of the sync agent linked database. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncAgentState.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncAgentState.cs index 08b49470357f..3c0f38964739 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncAgentState.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncAgentState.cs @@ -10,98 +10,14 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for SyncAgentState. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(SyncAgentStateConverter))] - public struct SyncAgentState : System.IEquatable + public static class SyncAgentState { - private SyncAgentState(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly SyncAgentState Online = "Online"; - - public static readonly SyncAgentState Offline = "Offline"; - - public static readonly SyncAgentState NeverConnected = "NeverConnected"; - - - /// - /// Underlying value of enum SyncAgentState - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for SyncAgentState - /// - public override string ToString() - { - return UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type SyncAgentState - /// - public bool Equals(SyncAgentState e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to SyncAgentState - /// - public static implicit operator SyncAgentState(string value) - { - return new SyncAgentState(value); - } - - /// - /// Implicit operator to convert SyncAgentState to string - /// - public static implicit operator string(SyncAgentState e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum SyncAgentState - /// - public static bool operator == (SyncAgentState e1, SyncAgentState e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum SyncAgentState - /// - public static bool operator != (SyncAgentState e1, SyncAgentState e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for SyncAgentState - /// - public override bool Equals(object obj) - { - return obj is SyncAgentState && Equals((SyncAgentState)obj); - } - - /// - /// Returns for hashCode SyncAgentState - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string Online = "Online"; + public const string Offline = "Offline"; + public const string NeverConnected = "NeverConnected"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncAgentStateConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncAgentStateConverter.cs deleted file mode 100644 index 1aa815ca2c27..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncAgentStateConverter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for SyncAgentState. - /// - public sealed class SyncAgentStateConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to SyncAgentState by the - /// converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(SyncAgentState).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to SyncAgentState. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (SyncAgentState)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for SyncAgentState for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncConflictResolutionPolicy.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncConflictResolutionPolicy.cs index 9308ff10219c..ce499c6de853 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncConflictResolutionPolicy.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncConflictResolutionPolicy.cs @@ -10,96 +10,13 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for SyncConflictResolutionPolicy. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(SyncConflictResolutionPolicyConverter))] - public struct SyncConflictResolutionPolicy : System.IEquatable + public static class SyncConflictResolutionPolicy { - private SyncConflictResolutionPolicy(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly SyncConflictResolutionPolicy HubWin = "HubWin"; - - public static readonly SyncConflictResolutionPolicy MemberWin = "MemberWin"; - - - /// - /// Underlying value of enum SyncConflictResolutionPolicy - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for SyncConflictResolutionPolicy - /// - public override string ToString() - { - return UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type SyncConflictResolutionPolicy - /// - public bool Equals(SyncConflictResolutionPolicy e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to SyncConflictResolutionPolicy - /// - public static implicit operator SyncConflictResolutionPolicy(string value) - { - return new SyncConflictResolutionPolicy(value); - } - - /// - /// Implicit operator to convert SyncConflictResolutionPolicy to string - /// - public static implicit operator string(SyncConflictResolutionPolicy e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum SyncConflictResolutionPolicy - /// - public static bool operator == (SyncConflictResolutionPolicy e1, SyncConflictResolutionPolicy e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum SyncConflictResolutionPolicy - /// - public static bool operator != (SyncConflictResolutionPolicy e1, SyncConflictResolutionPolicy e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for SyncConflictResolutionPolicy - /// - public override bool Equals(object obj) - { - return obj is SyncConflictResolutionPolicy && Equals((SyncConflictResolutionPolicy)obj); - } - - /// - /// Returns for hashCode SyncConflictResolutionPolicy - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string HubWin = "HubWin"; + public const string MemberWin = "MemberWin"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncConflictResolutionPolicyConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncConflictResolutionPolicyConverter.cs deleted file mode 100644 index b412bdc31b29..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncConflictResolutionPolicyConverter.cs +++ /dev/null @@ -1,55 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for SyncConflictResolutionPolicy. - /// - public sealed class SyncConflictResolutionPolicyConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to - /// SyncConflictResolutionPolicy by the converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(SyncConflictResolutionPolicy).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to - /// SyncConflictResolutionPolicy. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (SyncConflictResolutionPolicy)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for SyncConflictResolutionPolicy for - /// serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncDirection.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncDirection.cs index 2041f5b6f040..67774a8584fd 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncDirection.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncDirection.cs @@ -10,98 +10,14 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for SyncDirection. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(SyncDirectionConverter))] - public struct SyncDirection : System.IEquatable + public static class SyncDirection { - private SyncDirection(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly SyncDirection Bidirectional = "Bidirectional"; - - public static readonly SyncDirection OneWayMemberToHub = "OneWayMemberToHub"; - - public static readonly SyncDirection OneWayHubToMember = "OneWayHubToMember"; - - - /// - /// Underlying value of enum SyncDirection - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for SyncDirection - /// - public override string ToString() - { - return UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type SyncDirection - /// - public bool Equals(SyncDirection e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to SyncDirection - /// - public static implicit operator SyncDirection(string value) - { - return new SyncDirection(value); - } - - /// - /// Implicit operator to convert SyncDirection to string - /// - public static implicit operator string(SyncDirection e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum SyncDirection - /// - public static bool operator == (SyncDirection e1, SyncDirection e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum SyncDirection - /// - public static bool operator != (SyncDirection e1, SyncDirection e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for SyncDirection - /// - public override bool Equals(object obj) - { - return obj is SyncDirection && Equals((SyncDirection)obj); - } - - /// - /// Returns for hashCode SyncDirection - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string Bidirectional = "Bidirectional"; + public const string OneWayMemberToHub = "OneWayMemberToHub"; + public const string OneWayHubToMember = "OneWayHubToMember"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncDirectionConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncDirectionConverter.cs deleted file mode 100644 index 8b3d0ea72510..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncDirectionConverter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for SyncDirection. - /// - public sealed class SyncDirectionConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to SyncDirection by the - /// converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(SyncDirection).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to SyncDirection. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (SyncDirection)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for SyncDirection for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncGroup.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncGroup.cs index 30da9e6c32c8..7a16030cfff4 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncGroup.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncGroup.cs @@ -53,7 +53,7 @@ public SyncGroup() /// Sync schema of the sync group. /// If use private link /// connection is enabled. - public SyncGroup(string id = default(string), string name = default(string), string type = default(string), int? interval = default(int?), System.DateTime? lastSyncTime = default(System.DateTime?), SyncConflictResolutionPolicy? conflictResolutionPolicy = default(SyncConflictResolutionPolicy?), string syncDatabaseId = default(string), string hubDatabaseUserName = default(string), string hubDatabasePassword = default(string), SyncGroupState? syncState = default(SyncGroupState?), SyncGroupSchema schema = default(SyncGroupSchema), bool? usePrivateLinkConnection = default(bool?)) + public SyncGroup(string id = default(string), string name = default(string), string type = default(string), int? interval = default(int?), System.DateTime? lastSyncTime = default(System.DateTime?), string conflictResolutionPolicy = default(string), string syncDatabaseId = default(string), string hubDatabaseUserName = default(string), string hubDatabasePassword = default(string), string syncState = default(string), SyncGroupSchema schema = default(SyncGroupSchema), bool? usePrivateLinkConnection = default(bool?)) : base(id, name, type) { Interval = interval; @@ -90,7 +90,7 @@ public SyncGroup() /// values include: 'HubWin', 'MemberWin' /// [JsonProperty(PropertyName = "properties.conflictResolutionPolicy")] - public SyncConflictResolutionPolicy? ConflictResolutionPolicy { get; set; } + public string ConflictResolutionPolicy { get; set; } /// /// Gets or sets ARM resource id of the sync database in the sync @@ -116,7 +116,7 @@ public SyncGroup() /// 'NotReady', 'Error', 'Warning', 'Progressing', 'Good' /// [JsonProperty(PropertyName = "properties.syncState")] - public SyncGroupState? SyncState { get; private set; } + public string SyncState { get; private set; } /// /// Gets or sets sync schema of the sync group. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncGroupLogProperties.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncGroupLogProperties.cs index b2a7136b00fb..f587146600e2 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncGroupLogProperties.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncGroupLogProperties.cs @@ -37,7 +37,7 @@ public SyncGroupLogProperties() /// TracingId of the sync group log. /// OperationStatus of the sync group /// log. - public SyncGroupLogProperties(System.DateTime? timestamp = default(System.DateTime?), SyncGroupLogType? type = default(SyncGroupLogType?), string source = default(string), string details = default(string), System.Guid? tracingId = default(System.Guid?), string operationStatus = default(string)) + public SyncGroupLogProperties(System.DateTime? timestamp = default(System.DateTime?), string type = default(string), string source = default(string), string details = default(string), System.Guid? tracingId = default(System.Guid?), string operationStatus = default(string)) { Timestamp = timestamp; Type = type; @@ -64,7 +64,7 @@ public SyncGroupLogProperties() /// 'Error', 'Warning', 'Success' /// [JsonProperty(PropertyName = "type")] - public SyncGroupLogType? Type { get; private set; } + public string Type { get; private set; } /// /// Gets source of the sync group log. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncGroupLogType.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncGroupLogType.cs index 6e38e4cc4305..fb3ce4637cfc 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncGroupLogType.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncGroupLogType.cs @@ -10,100 +10,15 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for SyncGroupLogType. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(SyncGroupLogTypeConverter))] - public struct SyncGroupLogType : System.IEquatable + public static class SyncGroupLogType { - private SyncGroupLogType(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly SyncGroupLogType All = "All"; - - public static readonly SyncGroupLogType Error = "Error"; - - public static readonly SyncGroupLogType Warning = "Warning"; - - public static readonly SyncGroupLogType Success = "Success"; - - - /// - /// Underlying value of enum SyncGroupLogType - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for SyncGroupLogType - /// - public override string ToString() - { - return UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type SyncGroupLogType - /// - public bool Equals(SyncGroupLogType e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to SyncGroupLogType - /// - public static implicit operator SyncGroupLogType(string value) - { - return new SyncGroupLogType(value); - } - - /// - /// Implicit operator to convert SyncGroupLogType to string - /// - public static implicit operator string(SyncGroupLogType e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum SyncGroupLogType - /// - public static bool operator == (SyncGroupLogType e1, SyncGroupLogType e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum SyncGroupLogType - /// - public static bool operator != (SyncGroupLogType e1, SyncGroupLogType e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for SyncGroupLogType - /// - public override bool Equals(object obj) - { - return obj is SyncGroupLogType && Equals((SyncGroupLogType)obj); - } - - /// - /// Returns for hashCode SyncGroupLogType - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string All = "All"; + public const string Error = "Error"; + public const string Warning = "Warning"; + public const string Success = "Success"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncGroupLogTypeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncGroupLogTypeConverter.cs deleted file mode 100644 index 224fd4dfab5f..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncGroupLogTypeConverter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for SyncGroupLogType. - /// - public sealed class SyncGroupLogTypeConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to SyncGroupLogType by the - /// converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(SyncGroupLogType).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to SyncGroupLogType. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (SyncGroupLogType)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for SyncGroupLogType for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncGroupState.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncGroupState.cs index 4642c76efc95..4367211c97bc 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncGroupState.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncGroupState.cs @@ -10,102 +10,16 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for SyncGroupState. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(SyncGroupStateConverter))] - public struct SyncGroupState : System.IEquatable + public static class SyncGroupState { - private SyncGroupState(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly SyncGroupState NotReady = "NotReady"; - - public static readonly SyncGroupState Error = "Error"; - - public static readonly SyncGroupState Warning = "Warning"; - - public static readonly SyncGroupState Progressing = "Progressing"; - - public static readonly SyncGroupState Good = "Good"; - - - /// - /// Underlying value of enum SyncGroupState - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for SyncGroupState - /// - public override string ToString() - { - return UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type SyncGroupState - /// - public bool Equals(SyncGroupState e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to SyncGroupState - /// - public static implicit operator SyncGroupState(string value) - { - return new SyncGroupState(value); - } - - /// - /// Implicit operator to convert SyncGroupState to string - /// - public static implicit operator string(SyncGroupState e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum SyncGroupState - /// - public static bool operator == (SyncGroupState e1, SyncGroupState e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum SyncGroupState - /// - public static bool operator != (SyncGroupState e1, SyncGroupState e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for SyncGroupState - /// - public override bool Equals(object obj) - { - return obj is SyncGroupState && Equals((SyncGroupState)obj); - } - - /// - /// Returns for hashCode SyncGroupState - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string NotReady = "NotReady"; + public const string Error = "Error"; + public const string Warning = "Warning"; + public const string Progressing = "Progressing"; + public const string Good = "Good"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncGroupStateConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncGroupStateConverter.cs deleted file mode 100644 index b9183c88b750..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncGroupStateConverter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for SyncGroupState. - /// - public sealed class SyncGroupStateConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to SyncGroupState by the - /// converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(SyncGroupState).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to SyncGroupState. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (SyncGroupState)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for SyncGroupState for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncMember.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncMember.cs index 828d184e1f29..a2c6837a2407 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncMember.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncMember.cs @@ -65,7 +65,7 @@ public SyncMember() /// 'UnProvisioned', 'Provisioning', 'Provisioned', 'ProvisionFailed', /// 'DeProvisioning', 'DeProvisioned', 'DeProvisionFailed', /// 'Reprovisioning', 'ReprovisionFailed', 'UnReprovisioned' - public SyncMember(string id = default(string), string name = default(string), string type = default(string), SyncMemberDbType? databaseType = default(SyncMemberDbType?), string syncAgentId = default(string), System.Guid? sqlServerDatabaseId = default(System.Guid?), string syncMemberAzureDatabaseResourceId = default(string), bool? usePrivateLinkConnection = default(bool?), string serverName = default(string), string databaseName = default(string), string userName = default(string), string password = default(string), SyncDirection? syncDirection = default(SyncDirection?), SyncMemberState? syncState = default(SyncMemberState?)) + public SyncMember(string id = default(string), string name = default(string), string type = default(string), string databaseType = default(string), string syncAgentId = default(string), System.Guid? sqlServerDatabaseId = default(System.Guid?), string syncMemberAzureDatabaseResourceId = default(string), bool? usePrivateLinkConnection = default(bool?), string serverName = default(string), string databaseName = default(string), string userName = default(string), string password = default(string), string syncDirection = default(string), string syncState = default(string)) : base(id, name, type) { DatabaseType = databaseType; @@ -92,7 +92,7 @@ public SyncMember() /// include: 'AzureSqlDatabase', 'SqlServerDatabase' /// [JsonProperty(PropertyName = "properties.databaseType")] - public SyncMemberDbType? DatabaseType { get; set; } + public string DatabaseType { get; set; } /// /// Gets or sets ARM resource id of the sync agent in the sync member. @@ -149,7 +149,7 @@ public SyncMember() /// include: 'Bidirectional', 'OneWayMemberToHub', 'OneWayHubToMember' /// [JsonProperty(PropertyName = "properties.syncDirection")] - public SyncDirection? SyncDirection { get; set; } + public string SyncDirection { get; set; } /// /// Gets sync state of the sync member. Possible values include: @@ -161,7 +161,7 @@ public SyncMember() /// 'Reprovisioning', 'ReprovisionFailed', 'UnReprovisioned' /// [JsonProperty(PropertyName = "properties.syncState")] - public SyncMemberState? SyncState { get; private set; } + public string SyncState { get; private set; } } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncMemberDbType.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncMemberDbType.cs index 4135c5b95395..62c0d7fda443 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncMemberDbType.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncMemberDbType.cs @@ -10,96 +10,13 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for SyncMemberDbType. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(SyncMemberDbTypeConverter))] - public struct SyncMemberDbType : System.IEquatable + public static class SyncMemberDbType { - private SyncMemberDbType(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly SyncMemberDbType AzureSqlDatabase = "AzureSqlDatabase"; - - public static readonly SyncMemberDbType SqlServerDatabase = "SqlServerDatabase"; - - - /// - /// Underlying value of enum SyncMemberDbType - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for SyncMemberDbType - /// - public override string ToString() - { - return UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type SyncMemberDbType - /// - public bool Equals(SyncMemberDbType e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to SyncMemberDbType - /// - public static implicit operator SyncMemberDbType(string value) - { - return new SyncMemberDbType(value); - } - - /// - /// Implicit operator to convert SyncMemberDbType to string - /// - public static implicit operator string(SyncMemberDbType e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum SyncMemberDbType - /// - public static bool operator == (SyncMemberDbType e1, SyncMemberDbType e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum SyncMemberDbType - /// - public static bool operator != (SyncMemberDbType e1, SyncMemberDbType e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for SyncMemberDbType - /// - public override bool Equals(object obj) - { - return obj is SyncMemberDbType && Equals((SyncMemberDbType)obj); - } - - /// - /// Returns for hashCode SyncMemberDbType - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string AzureSqlDatabase = "AzureSqlDatabase"; + public const string SqlServerDatabase = "SqlServerDatabase"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncMemberDbTypeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncMemberDbTypeConverter.cs deleted file mode 100644 index a7be8e6b7c67..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncMemberDbTypeConverter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for SyncMemberDbType. - /// - public sealed class SyncMemberDbTypeConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to SyncMemberDbType by the - /// converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(SyncMemberDbType).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to SyncMemberDbType. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (SyncMemberDbType)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for SyncMemberDbType for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncMemberState.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncMemberState.cs index a88b7fea97c0..8ef9ca4ac2d1 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncMemberState.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncMemberState.cs @@ -10,128 +10,29 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for SyncMemberState. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(SyncMemberStateConverter))] - public struct SyncMemberState : System.IEquatable + public static class SyncMemberState { - private SyncMemberState(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly SyncMemberState SyncInProgress = "SyncInProgress"; - - public static readonly SyncMemberState SyncSucceeded = "SyncSucceeded"; - - public static readonly SyncMemberState SyncFailed = "SyncFailed"; - - public static readonly SyncMemberState DisabledTombstoneCleanup = "DisabledTombstoneCleanup"; - - public static readonly SyncMemberState DisabledBackupRestore = "DisabledBackupRestore"; - - public static readonly SyncMemberState SyncSucceededWithWarnings = "SyncSucceededWithWarnings"; - - public static readonly SyncMemberState SyncCancelling = "SyncCancelling"; - - public static readonly SyncMemberState SyncCancelled = "SyncCancelled"; - - public static readonly SyncMemberState UnProvisioned = "UnProvisioned"; - - public static readonly SyncMemberState Provisioning = "Provisioning"; - - public static readonly SyncMemberState Provisioned = "Provisioned"; - - public static readonly SyncMemberState ProvisionFailed = "ProvisionFailed"; - - public static readonly SyncMemberState DeProvisioning = "DeProvisioning"; - - public static readonly SyncMemberState DeProvisioned = "DeProvisioned"; - - public static readonly SyncMemberState DeProvisionFailed = "DeProvisionFailed"; - - public static readonly SyncMemberState Reprovisioning = "Reprovisioning"; - - public static readonly SyncMemberState ReprovisionFailed = "ReprovisionFailed"; - - public static readonly SyncMemberState UnReprovisioned = "UnReprovisioned"; - - - /// - /// Underlying value of enum SyncMemberState - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for SyncMemberState - /// - public override string ToString() - { - return UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type SyncMemberState - /// - public bool Equals(SyncMemberState e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to SyncMemberState - /// - public static implicit operator SyncMemberState(string value) - { - return new SyncMemberState(value); - } - - /// - /// Implicit operator to convert SyncMemberState to string - /// - public static implicit operator string(SyncMemberState e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum SyncMemberState - /// - public static bool operator == (SyncMemberState e1, SyncMemberState e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum SyncMemberState - /// - public static bool operator != (SyncMemberState e1, SyncMemberState e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for SyncMemberState - /// - public override bool Equals(object obj) - { - return obj is SyncMemberState && Equals((SyncMemberState)obj); - } - - /// - /// Returns for hashCode SyncMemberState - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string SyncInProgress = "SyncInProgress"; + public const string SyncSucceeded = "SyncSucceeded"; + public const string SyncFailed = "SyncFailed"; + public const string DisabledTombstoneCleanup = "DisabledTombstoneCleanup"; + public const string DisabledBackupRestore = "DisabledBackupRestore"; + public const string SyncSucceededWithWarnings = "SyncSucceededWithWarnings"; + public const string SyncCancelling = "SyncCancelling"; + public const string SyncCancelled = "SyncCancelled"; + public const string UnProvisioned = "UnProvisioned"; + public const string Provisioning = "Provisioning"; + public const string Provisioned = "Provisioned"; + public const string ProvisionFailed = "ProvisionFailed"; + public const string DeProvisioning = "DeProvisioning"; + public const string DeProvisioned = "DeProvisioned"; + public const string DeProvisionFailed = "DeProvisionFailed"; + public const string Reprovisioning = "Reprovisioning"; + public const string ReprovisionFailed = "ReprovisionFailed"; + public const string UnReprovisioned = "UnReprovisioned"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncMemberStateConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncMemberStateConverter.cs deleted file mode 100644 index 6e26b4d585bc..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/SyncMemberStateConverter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for SyncMemberState. - /// - public sealed class SyncMemberStateConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to SyncMemberState by the - /// converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(SyncMemberState).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to SyncMemberState. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (SyncMemberState)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for SyncMemberState for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/TransparentDataEncryptionActivity.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/TransparentDataEncryptionActivity.cs index 910daceaab5d..ab34253c2b81 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/TransparentDataEncryptionActivity.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/TransparentDataEncryptionActivity.cs @@ -42,7 +42,7 @@ public TransparentDataEncryptionActivity() /// include: 'Encrypting', 'Decrypting' /// The percent complete of the /// transparent data encryption scan for a database. - public TransparentDataEncryptionActivity(string id = default(string), string name = default(string), string type = default(string), string location = default(string), TransparentDataEncryptionActivityStatus? status = default(TransparentDataEncryptionActivityStatus?), double? percentComplete = default(double?)) + public TransparentDataEncryptionActivity(string id = default(string), string name = default(string), string type = default(string), string location = default(string), string status = default(string), double? percentComplete = default(double?)) : base(id, name, type) { Location = location; @@ -67,7 +67,7 @@ public TransparentDataEncryptionActivity() /// 'Encrypting', 'Decrypting' /// [JsonProperty(PropertyName = "properties.status")] - public TransparentDataEncryptionActivityStatus? Status { get; private set; } + public string Status { get; private set; } /// /// Gets the percent complete of the transparent data encryption scan diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/TransparentDataEncryptionActivityStatus.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/TransparentDataEncryptionActivityStatus.cs index 6a47ce56c7fe..5880bd69d615 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/TransparentDataEncryptionActivityStatus.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/TransparentDataEncryptionActivityStatus.cs @@ -10,102 +10,13 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for TransparentDataEncryptionActivityStatus. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(TransparentDataEncryptionActivityStatusConverter))] - public struct TransparentDataEncryptionActivityStatus : System.IEquatable + public static class TransparentDataEncryptionActivityStatus { - private TransparentDataEncryptionActivityStatus(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly TransparentDataEncryptionActivityStatus Encrypting = "Encrypting"; - - public static readonly TransparentDataEncryptionActivityStatus Decrypting = "Decrypting"; - - - /// - /// Underlying value of enum TransparentDataEncryptionActivityStatus - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for - /// TransparentDataEncryptionActivityStatus - /// - public override string ToString() - { - return UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type TransparentDataEncryptionActivityStatus - /// - public bool Equals(TransparentDataEncryptionActivityStatus e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to - /// TransparentDataEncryptionActivityStatus - /// - public static implicit operator TransparentDataEncryptionActivityStatus(string value) - { - return new TransparentDataEncryptionActivityStatus(value); - } - - /// - /// Implicit operator to convert - /// TransparentDataEncryptionActivityStatus to string - /// - public static implicit operator string(TransparentDataEncryptionActivityStatus e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum - /// TransparentDataEncryptionActivityStatus - /// - public static bool operator == (TransparentDataEncryptionActivityStatus e1, TransparentDataEncryptionActivityStatus e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum - /// TransparentDataEncryptionActivityStatus - /// - public static bool operator != (TransparentDataEncryptionActivityStatus e1, TransparentDataEncryptionActivityStatus e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for - /// TransparentDataEncryptionActivityStatus - /// - public override bool Equals(object obj) - { - return obj is TransparentDataEncryptionActivityStatus && Equals((TransparentDataEncryptionActivityStatus)obj); - } - - /// - /// Returns for hashCode TransparentDataEncryptionActivityStatus - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string Encrypting = "Encrypting"; + public const string Decrypting = "Decrypting"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/TransparentDataEncryptionActivityStatusConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/TransparentDataEncryptionActivityStatusConverter.cs deleted file mode 100644 index 4a694506acac..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/TransparentDataEncryptionActivityStatusConverter.cs +++ /dev/null @@ -1,55 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for TransparentDataEncryptionActivityStatus. - /// - public sealed class TransparentDataEncryptionActivityStatusConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to - /// TransparentDataEncryptionActivityStatus by the converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(TransparentDataEncryptionActivityStatus).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to - /// TransparentDataEncryptionActivityStatus. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (TransparentDataEncryptionActivityStatus)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for TransparentDataEncryptionActivityStatus - /// for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/UnitDefinitionType.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/UnitDefinitionType.cs index 16c3edd9beac..1184776ad156 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/UnitDefinitionType.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/UnitDefinitionType.cs @@ -10,104 +10,17 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for UnitDefinitionType. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(UnitDefinitionTypeConverter))] - public struct UnitDefinitionType : System.IEquatable + public static class UnitDefinitionType { - private UnitDefinitionType(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly UnitDefinitionType Count = "Count"; - - public static readonly UnitDefinitionType Bytes = "Bytes"; - - public static readonly UnitDefinitionType Seconds = "Seconds"; - - public static readonly UnitDefinitionType Percent = "Percent"; - - public static readonly UnitDefinitionType CountPerSecond = "CountPerSecond"; - - public static readonly UnitDefinitionType BytesPerSecond = "BytesPerSecond"; - - - /// - /// Underlying value of enum UnitDefinitionType - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for UnitDefinitionType - /// - public override string ToString() - { - return UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type UnitDefinitionType - /// - public bool Equals(UnitDefinitionType e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to UnitDefinitionType - /// - public static implicit operator UnitDefinitionType(string value) - { - return new UnitDefinitionType(value); - } - - /// - /// Implicit operator to convert UnitDefinitionType to string - /// - public static implicit operator string(UnitDefinitionType e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum UnitDefinitionType - /// - public static bool operator == (UnitDefinitionType e1, UnitDefinitionType e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum UnitDefinitionType - /// - public static bool operator != (UnitDefinitionType e1, UnitDefinitionType e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for UnitDefinitionType - /// - public override bool Equals(object obj) - { - return obj is UnitDefinitionType && Equals((UnitDefinitionType)obj); - } - - /// - /// Returns for hashCode UnitDefinitionType - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string Count = "Count"; + public const string Bytes = "Bytes"; + public const string Seconds = "Seconds"; + public const string Percent = "Percent"; + public const string CountPerSecond = "CountPerSecond"; + public const string BytesPerSecond = "BytesPerSecond"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/UnitDefinitionTypeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/UnitDefinitionTypeConverter.cs deleted file mode 100644 index dda3dfcf2386..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/UnitDefinitionTypeConverter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for UnitDefinitionType. - /// - public sealed class UnitDefinitionTypeConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to UnitDefinitionType by the - /// converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(UnitDefinitionType).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to UnitDefinitionType. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (UnitDefinitionType)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for UnitDefinitionType for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/UnitType.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/UnitType.cs index 0ddad426ce1c..ecd9b7388bdf 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/UnitType.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/UnitType.cs @@ -10,104 +10,17 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for UnitType. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(UnitTypeConverter))] - public struct UnitType : System.IEquatable + public static class UnitType { - private UnitType(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly UnitType Count = "count"; - - public static readonly UnitType Bytes = "bytes"; - - public static readonly UnitType Seconds = "seconds"; - - public static readonly UnitType Percent = "percent"; - - public static readonly UnitType CountPerSecond = "countPerSecond"; - - public static readonly UnitType BytesPerSecond = "bytesPerSecond"; - - - /// - /// Underlying value of enum UnitType - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for UnitType - /// - public override string ToString() - { - return UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type UnitType - /// - public bool Equals(UnitType e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to UnitType - /// - public static implicit operator UnitType(string value) - { - return new UnitType(value); - } - - /// - /// Implicit operator to convert UnitType to string - /// - public static implicit operator string(UnitType e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum UnitType - /// - public static bool operator == (UnitType e1, UnitType e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum UnitType - /// - public static bool operator != (UnitType e1, UnitType e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for UnitType - /// - public override bool Equals(object obj) - { - return obj is UnitType && Equals((UnitType)obj); - } - - /// - /// Returns for hashCode UnitType - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string Count = "count"; + public const string Bytes = "bytes"; + public const string Seconds = "seconds"; + public const string Percent = "percent"; + public const string CountPerSecond = "countPerSecond"; + public const string BytesPerSecond = "bytesPerSecond"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/UnitTypeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/UnitTypeConverter.cs deleted file mode 100644 index a0e37419629f..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/UnitTypeConverter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for UnitType. - /// - public sealed class UnitTypeConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to UnitType by the - /// converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(UnitType).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to UnitType. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (UnitType)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for UnitType for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/UnlinkParameters.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/UnlinkParameters.cs deleted file mode 100644 index 773e905009a0..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/UnlinkParameters.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - using System.Linq; - - /// - /// Represents the parameters for Unlink Replication Link request. - /// - public partial class UnlinkParameters - { - /// - /// Initializes a new instance of the UnlinkParameters class. - /// - public UnlinkParameters() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the UnlinkParameters class. - /// - /// Determines whether link will be - /// terminated in a forced or a friendly way. - public UnlinkParameters(bool? forcedTermination = default(bool?)) - { - ForcedTermination = forcedTermination; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets determines whether link will be terminated in a forced - /// or a friendly way. - /// - [JsonProperty(PropertyName = "forcedTermination")] - public bool? ForcedTermination { get; set; } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/VirtualNetworkRule.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/VirtualNetworkRule.cs index d742c4ade135..b34438897190 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/VirtualNetworkRule.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/VirtualNetworkRule.cs @@ -43,7 +43,7 @@ public VirtualNetworkRule() /// Virtual Network Rule State. Possible values /// include: 'Initializing', 'InProgress', 'Ready', 'Deleting', /// 'Unknown' - public VirtualNetworkRule(string virtualNetworkSubnetId, string id = default(string), string name = default(string), string type = default(string), bool? ignoreMissingVnetServiceEndpoint = default(bool?), VirtualNetworkRuleState? state = default(VirtualNetworkRuleState?)) + public VirtualNetworkRule(string virtualNetworkSubnetId, string id = default(string), string name = default(string), string type = default(string), bool? ignoreMissingVnetServiceEndpoint = default(bool?), string state = default(string)) : base(id, name, type) { VirtualNetworkSubnetId = virtualNetworkSubnetId; @@ -75,7 +75,7 @@ public VirtualNetworkRule() /// 'Initializing', 'InProgress', 'Ready', 'Deleting', 'Unknown' /// [JsonProperty(PropertyName = "properties.state")] - public VirtualNetworkRuleState? State { get; private set; } + public string State { get; private set; } /// /// Validate the object. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/VirtualNetworkRuleState.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/VirtualNetworkRuleState.cs index a0aefe8e5a92..ef0dd2f70a5b 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/VirtualNetworkRuleState.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/VirtualNetworkRuleState.cs @@ -10,102 +10,16 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for VirtualNetworkRuleState. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(VirtualNetworkRuleStateConverter))] - public struct VirtualNetworkRuleState : System.IEquatable + public static class VirtualNetworkRuleState { - private VirtualNetworkRuleState(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly VirtualNetworkRuleState Initializing = "Initializing"; - - public static readonly VirtualNetworkRuleState InProgress = "InProgress"; - - public static readonly VirtualNetworkRuleState Ready = "Ready"; - - public static readonly VirtualNetworkRuleState Deleting = "Deleting"; - - public static readonly VirtualNetworkRuleState Unknown = "Unknown"; - - - /// - /// Underlying value of enum VirtualNetworkRuleState - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for VirtualNetworkRuleState - /// - public override string ToString() - { - return UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type VirtualNetworkRuleState - /// - public bool Equals(VirtualNetworkRuleState e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to VirtualNetworkRuleState - /// - public static implicit operator VirtualNetworkRuleState(string value) - { - return new VirtualNetworkRuleState(value); - } - - /// - /// Implicit operator to convert VirtualNetworkRuleState to string - /// - public static implicit operator string(VirtualNetworkRuleState e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum VirtualNetworkRuleState - /// - public static bool operator == (VirtualNetworkRuleState e1, VirtualNetworkRuleState e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum VirtualNetworkRuleState - /// - public static bool operator != (VirtualNetworkRuleState e1, VirtualNetworkRuleState e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for VirtualNetworkRuleState - /// - public override bool Equals(object obj) - { - return obj is VirtualNetworkRuleState && Equals((VirtualNetworkRuleState)obj); - } - - /// - /// Returns for hashCode VirtualNetworkRuleState - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string Initializing = "Initializing"; + public const string InProgress = "InProgress"; + public const string Ready = "Ready"; + public const string Deleting = "Deleting"; + public const string Unknown = "Unknown"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/VirtualNetworkRuleStateConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/VirtualNetworkRuleStateConverter.cs deleted file mode 100644 index 337961087a9c..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/VirtualNetworkRuleStateConverter.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for VirtualNetworkRuleState. - /// - public sealed class VirtualNetworkRuleStateConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to VirtualNetworkRuleState - /// by the converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(VirtualNetworkRuleState).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to VirtualNetworkRuleState. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (VirtualNetworkRuleState)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for VirtualNetworkRuleState for serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/VulnerabilityAssessmentScanRecord.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/VulnerabilityAssessmentScanRecord.cs index ca8eac5a1248..298f1c24a1f8 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/VulnerabilityAssessmentScanRecord.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/VulnerabilityAssessmentScanRecord.cs @@ -51,7 +51,7 @@ public VulnerabilityAssessmentScanRecord() /// container path. /// The number of failed /// security checks. - public VulnerabilityAssessmentScanRecord(string id = default(string), string name = default(string), string type = default(string), string scanId = default(string), VulnerabilityAssessmentScanTriggerType? triggerType = default(VulnerabilityAssessmentScanTriggerType?), VulnerabilityAssessmentScanState? state = default(VulnerabilityAssessmentScanState?), System.DateTime? startTime = default(System.DateTime?), System.DateTime? endTime = default(System.DateTime?), IList errors = default(IList), string storageContainerPath = default(string), int? numberOfFailedSecurityChecks = default(int?)) + public VulnerabilityAssessmentScanRecord(string id = default(string), string name = default(string), string type = default(string), string scanId = default(string), string triggerType = default(string), string state = default(string), System.DateTime? startTime = default(System.DateTime?), System.DateTime? endTime = default(System.DateTime?), IList errors = default(IList), string storageContainerPath = default(string), int? numberOfFailedSecurityChecks = default(int?)) : base(id, name, type) { ScanId = scanId; @@ -81,14 +81,14 @@ public VulnerabilityAssessmentScanRecord() /// 'Recurring' /// [JsonProperty(PropertyName = "properties.triggerType")] - public VulnerabilityAssessmentScanTriggerType? TriggerType { get; private set; } + public string TriggerType { get; private set; } /// /// Gets the scan status. Possible values include: 'Passed', 'Failed', /// 'FailedToRun', 'InProgress' /// [JsonProperty(PropertyName = "properties.state")] - public VulnerabilityAssessmentScanState? State { get; private set; } + public string State { get; private set; } /// /// Gets the scan start time (UTC). diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/VulnerabilityAssessmentScanState.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/VulnerabilityAssessmentScanState.cs index 5cc58647739b..503c61895227 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/VulnerabilityAssessmentScanState.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/VulnerabilityAssessmentScanState.cs @@ -10,102 +10,15 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for VulnerabilityAssessmentScanState. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(VulnerabilityAssessmentScanStateConverter))] - public struct VulnerabilityAssessmentScanState : System.IEquatable + public static class VulnerabilityAssessmentScanState { - private VulnerabilityAssessmentScanState(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly VulnerabilityAssessmentScanState Passed = "Passed"; - - public static readonly VulnerabilityAssessmentScanState Failed = "Failed"; - - public static readonly VulnerabilityAssessmentScanState FailedToRun = "FailedToRun"; - - public static readonly VulnerabilityAssessmentScanState InProgress = "InProgress"; - - - /// - /// Underlying value of enum VulnerabilityAssessmentScanState - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for VulnerabilityAssessmentScanState - /// - public override string ToString() - { - return UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type VulnerabilityAssessmentScanState - /// - public bool Equals(VulnerabilityAssessmentScanState e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to - /// VulnerabilityAssessmentScanState - /// - public static implicit operator VulnerabilityAssessmentScanState(string value) - { - return new VulnerabilityAssessmentScanState(value); - } - - /// - /// Implicit operator to convert VulnerabilityAssessmentScanState to - /// string - /// - public static implicit operator string(VulnerabilityAssessmentScanState e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum VulnerabilityAssessmentScanState - /// - public static bool operator == (VulnerabilityAssessmentScanState e1, VulnerabilityAssessmentScanState e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum VulnerabilityAssessmentScanState - /// - public static bool operator != (VulnerabilityAssessmentScanState e1, VulnerabilityAssessmentScanState e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for VulnerabilityAssessmentScanState - /// - public override bool Equals(object obj) - { - return obj is VulnerabilityAssessmentScanState && Equals((VulnerabilityAssessmentScanState)obj); - } - - /// - /// Returns for hashCode VulnerabilityAssessmentScanState - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string Passed = "Passed"; + public const string Failed = "Failed"; + public const string FailedToRun = "FailedToRun"; + public const string InProgress = "InProgress"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/VulnerabilityAssessmentScanStateConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/VulnerabilityAssessmentScanStateConverter.cs deleted file mode 100644 index a54163f7d51f..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/VulnerabilityAssessmentScanStateConverter.cs +++ /dev/null @@ -1,55 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for VulnerabilityAssessmentScanState. - /// - public sealed class VulnerabilityAssessmentScanStateConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to - /// VulnerabilityAssessmentScanState by the converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(VulnerabilityAssessmentScanState).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to - /// VulnerabilityAssessmentScanState. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (VulnerabilityAssessmentScanState)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for VulnerabilityAssessmentScanState for - /// serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/VulnerabilityAssessmentScanTriggerType.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/VulnerabilityAssessmentScanTriggerType.cs index 293ed963bdaa..252a76bff40a 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/VulnerabilityAssessmentScanTriggerType.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/VulnerabilityAssessmentScanTriggerType.cs @@ -10,102 +10,13 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; /// /// Defines values for VulnerabilityAssessmentScanTriggerType. /// - /// - /// Determine base value for a given allowed value if exists, else return - /// the value itself - /// - [JsonConverter(typeof(VulnerabilityAssessmentScanTriggerTypeConverter))] - public struct VulnerabilityAssessmentScanTriggerType : System.IEquatable + public static class VulnerabilityAssessmentScanTriggerType { - private VulnerabilityAssessmentScanTriggerType(string underlyingValue) - { - UnderlyingValue=underlyingValue; - } - - public static readonly VulnerabilityAssessmentScanTriggerType OnDemand = "OnDemand"; - - public static readonly VulnerabilityAssessmentScanTriggerType Recurring = "Recurring"; - - - /// - /// Underlying value of enum VulnerabilityAssessmentScanTriggerType - /// - private readonly string UnderlyingValue; - - /// - /// Returns string representation for - /// VulnerabilityAssessmentScanTriggerType - /// - public override string ToString() - { - return UnderlyingValue.ToString(); - } - - /// - /// Compares enums of type VulnerabilityAssessmentScanTriggerType - /// - public bool Equals(VulnerabilityAssessmentScanTriggerType e) - { - return UnderlyingValue.Equals(e.UnderlyingValue); - } - - /// - /// Implicit operator to convert string to - /// VulnerabilityAssessmentScanTriggerType - /// - public static implicit operator VulnerabilityAssessmentScanTriggerType(string value) - { - return new VulnerabilityAssessmentScanTriggerType(value); - } - - /// - /// Implicit operator to convert VulnerabilityAssessmentScanTriggerType - /// to string - /// - public static implicit operator string(VulnerabilityAssessmentScanTriggerType e) - { - return e.UnderlyingValue; - } - - /// - /// Overriding == operator for enum - /// VulnerabilityAssessmentScanTriggerType - /// - public static bool operator == (VulnerabilityAssessmentScanTriggerType e1, VulnerabilityAssessmentScanTriggerType e2) - { - return e2.Equals(e1); - } - - /// - /// Overriding != operator for enum - /// VulnerabilityAssessmentScanTriggerType - /// - public static bool operator != (VulnerabilityAssessmentScanTriggerType e1, VulnerabilityAssessmentScanTriggerType e2) - { - return !e2.Equals(e1); - } - - /// - /// Overrides Equals operator for - /// VulnerabilityAssessmentScanTriggerType - /// - public override bool Equals(object obj) - { - return obj is VulnerabilityAssessmentScanTriggerType && Equals((VulnerabilityAssessmentScanTriggerType)obj); - } - - /// - /// Returns for hashCode VulnerabilityAssessmentScanTriggerType - /// - public override int GetHashCode() - { - return UnderlyingValue.GetHashCode(); - } - + public const string OnDemand = "OnDemand"; + public const string Recurring = "Recurring"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/VulnerabilityAssessmentScanTriggerTypeConverter.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/VulnerabilityAssessmentScanTriggerTypeConverter.cs deleted file mode 100644 index 38737f84fae4..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/VulnerabilityAssessmentScanTriggerTypeConverter.cs +++ /dev/null @@ -1,55 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - - using System.Reflection; - - /// - /// Defines values for VulnerabilityAssessmentScanTriggerType. - /// - public sealed class VulnerabilityAssessmentScanTriggerTypeConverter : JsonConverter - { - - /// - /// Returns if objectType can be converted to - /// VulnerabilityAssessmentScanTriggerType by the converter. - /// - public override bool CanConvert(System.Type objectType) - { - return typeof(VulnerabilityAssessmentScanTriggerType).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); - } - - /// - /// Overrides ReadJson and converts token to - /// VulnerabilityAssessmentScanTriggerType. - /// - public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) - { - if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) - { - return null; - } - return (VulnerabilityAssessmentScanTriggerType)serializer.Deserialize(reader); - } - - /// - /// Overriding WriteJson for VulnerabilityAssessmentScanTriggerType for - /// serialization. - /// - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString()); - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/WorkloadClassifier.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/WorkloadClassifier.cs deleted file mode 100644 index c8c86d0bbbb3..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/WorkloadClassifier.cs +++ /dev/null @@ -1,115 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Linq; - - /// - /// Workload classifier operations for a data warehouse - /// - [Rest.Serialization.JsonTransformation] - public partial class WorkloadClassifier : ProxyResource - { - /// - /// Initializes a new instance of the WorkloadClassifier class. - /// - public WorkloadClassifier() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the WorkloadClassifier class. - /// - /// The workload classifier member - /// name. - /// Resource ID. - /// Resource name. - /// Resource type. - /// The workload classifier label. - /// The workload classifier context. - /// The workload classifier start time for - /// classification. - /// The workload classifier end time for - /// classification. - /// The workload classifier - /// importance. - public WorkloadClassifier(string memberName, string id = default(string), string name = default(string), string type = default(string), string label = default(string), string context = default(string), string startTime = default(string), string endTime = default(string), string importance = default(string)) - : base(id, name, type) - { - MemberName = memberName; - Label = label; - Context = context; - StartTime = startTime; - EndTime = endTime; - Importance = importance; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the workload classifier member name. - /// - [JsonProperty(PropertyName = "properties.memberName")] - public string MemberName { get; set; } - - /// - /// Gets or sets the workload classifier label. - /// - [JsonProperty(PropertyName = "properties.label")] - public string Label { get; set; } - - /// - /// Gets or sets the workload classifier context. - /// - [JsonProperty(PropertyName = "properties.context")] - public string Context { get; set; } - - /// - /// Gets or sets the workload classifier start time for classification. - /// - [JsonProperty(PropertyName = "properties.startTime")] - public string StartTime { get; set; } - - /// - /// Gets or sets the workload classifier end time for classification. - /// - [JsonProperty(PropertyName = "properties.endTime")] - public string EndTime { get; set; } - - /// - /// Gets or sets the workload classifier importance. - /// - [JsonProperty(PropertyName = "properties.importance")] - public string Importance { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (MemberName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "MemberName"); - } - } - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/WorkloadGroup.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/WorkloadGroup.cs deleted file mode 100644 index feac7eea8cc5..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/WorkloadGroup.cs +++ /dev/null @@ -1,114 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Linq; - - /// - /// Workload group operations for a data warehouse - /// - [Rest.Serialization.JsonTransformation] - public partial class WorkloadGroup : ProxyResource - { - /// - /// Initializes a new instance of the WorkloadGroup class. - /// - public WorkloadGroup() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the WorkloadGroup class. - /// - /// The workload group minimum - /// percentage resource. - /// The workload group cap percentage - /// resource. - /// The workload group - /// request minimum grant percentage. - /// Resource ID. - /// Resource name. - /// Resource type. - /// The workload group - /// request maximum grant percentage. - /// The workload group importance - /// level. - /// The workload group query - /// execution timeout. - public WorkloadGroup(int minResourcePercent, int maxResourcePercent, double minResourcePercentPerRequest, string id = default(string), string name = default(string), string type = default(string), double? maxResourcePercentPerRequest = default(double?), string importance = default(string), int? queryExecutionTimeout = default(int?)) - : base(id, name, type) - { - MinResourcePercent = minResourcePercent; - MaxResourcePercent = maxResourcePercent; - MinResourcePercentPerRequest = minResourcePercentPerRequest; - MaxResourcePercentPerRequest = maxResourcePercentPerRequest; - Importance = importance; - QueryExecutionTimeout = queryExecutionTimeout; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the workload group minimum percentage resource. - /// - [JsonProperty(PropertyName = "properties.minResourcePercent")] - public int MinResourcePercent { get; set; } - - /// - /// Gets or sets the workload group cap percentage resource. - /// - [JsonProperty(PropertyName = "properties.maxResourcePercent")] - public int MaxResourcePercent { get; set; } - - /// - /// Gets or sets the workload group request minimum grant percentage. - /// - [JsonProperty(PropertyName = "properties.minResourcePercentPerRequest")] - public double MinResourcePercentPerRequest { get; set; } - - /// - /// Gets or sets the workload group request maximum grant percentage. - /// - [JsonProperty(PropertyName = "properties.maxResourcePercentPerRequest")] - public double? MaxResourcePercentPerRequest { get; set; } - - /// - /// Gets or sets the workload group importance level. - /// - [JsonProperty(PropertyName = "properties.importance")] - public string Importance { get; set; } - - /// - /// Gets or sets the workload group query execution timeout. - /// - [JsonProperty(PropertyName = "properties.queryExecutionTimeout")] - public int? QueryExecutionTimeout { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - //Nothing to validate - } - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ReplicationLinksOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ReplicationLinksOperations.cs index 7861ec699f79..3c745fd9c417 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ReplicationLinksOperations.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ReplicationLinksOperations.cs @@ -515,38 +515,6 @@ internal ReplicationLinksOperations(SqlManagementClient client) return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); } - /// - /// Deletes a database replication link in forced or friendly way. - /// - /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. - /// - /// - /// The name of the server. - /// - /// - /// The name of the database that has the replication link to be failed over. - /// - /// - /// The ID of the replication link to be failed over. - /// - /// - /// The required parameters for unlinking replication link. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - public async Task UnlinkWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string linkId, UnlinkParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Send request - AzureOperationResponse _response = await BeginUnlinkWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, linkId, parameters, customHeaders, cancellationToken).ConfigureAwait(false); - return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); - } - /// /// Lists a database's replication links. /// @@ -1137,211 +1105,5 @@ internal ReplicationLinksOperations(SqlManagementClient client) return _result; } - /// - /// Deletes a database replication link in forced or friendly way. - /// - /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. - /// - /// - /// The name of the server. - /// - /// - /// The name of the database that has the replication link to be failed over. - /// - /// - /// The ID of the replication link to be failed over. - /// - /// - /// The required parameters for unlinking replication link. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task BeginUnlinkWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string linkId, UnlinkParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (Client.SubscriptionId == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); - } - if (resourceGroupName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); - } - if (serverName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "serverName"); - } - if (databaseName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "databaseName"); - } - if (linkId == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "linkId"); - } - if (parameters == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); - } - string apiVersion = "2014-04-01"; - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("apiVersion", apiVersion); - tracingParameters.Add("resourceGroupName", resourceGroupName); - tracingParameters.Add("serverName", serverName); - tracingParameters.Add("databaseName", databaseName); - tracingParameters.Add("linkId", linkId); - tracingParameters.Add("parameters", parameters); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "BeginUnlink", tracingParameters); - } - // Construct URL - var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/replicationLinks/{linkId}/unlink").ToString(); - _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); - _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); - _url = _url.Replace("{databaseName}", System.Uri.EscapeDataString(databaseName)); - _url = _url.Replace("{linkId}", System.Uri.EscapeDataString(linkId)); - List _queryParameters = new List(); - if (apiVersion != null) - { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); - } - if (_queryParameters.Count > 0) - { - _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("POST"); - _httpRequest.RequestUri = new System.Uri(_url); - // Set Headers - if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) - { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); - } - if (Client.AcceptLanguage != null) - { - if (_httpRequest.Headers.Contains("accept-language")) - { - _httpRequest.Headers.Remove("accept-language"); - } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); - } - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - if (_httpRequest.Headers.Contains(_header.Key)) - { - _httpRequest.Headers.Remove(_header.Key); - } - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(parameters != null) - { - _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, Client.SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Client.Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 202 && (int)_statusCode != 204) - { - var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - try - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); - if (_errorBody != null) - { - ex = new CloudException(_errorBody.Message); - ex.Body = _errorBody; - } - } - catch (JsonException) - { - // Ignore the exception - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = new AzureOperationResponse(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ReplicationLinksOperationsExtensions.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ReplicationLinksOperationsExtensions.cs index 345f961efc83..87eab086f901 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ReplicationLinksOperationsExtensions.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ReplicationLinksOperationsExtensions.cs @@ -234,63 +234,6 @@ public static void FailoverAllowDataLoss(this IReplicationLinksOperations operat (await operations.FailoverAllowDataLossWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, linkId, null, cancellationToken).ConfigureAwait(false)).Dispose(); } - /// - /// Deletes a database replication link in forced or friendly way. - /// - /// - /// The operations group for this extension method. - /// - /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. - /// - /// - /// The name of the server. - /// - /// - /// The name of the database that has the replication link to be failed over. - /// - /// - /// The ID of the replication link to be failed over. - /// - /// - /// The required parameters for unlinking replication link. - /// - public static void Unlink(this IReplicationLinksOperations operations, string resourceGroupName, string serverName, string databaseName, string linkId, UnlinkParameters parameters) - { - operations.UnlinkAsync(resourceGroupName, serverName, databaseName, linkId, parameters).GetAwaiter().GetResult(); - } - - /// - /// Deletes a database replication link in forced or friendly way. - /// - /// - /// The operations group for this extension method. - /// - /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. - /// - /// - /// The name of the server. - /// - /// - /// The name of the database that has the replication link to be failed over. - /// - /// - /// The ID of the replication link to be failed over. - /// - /// - /// The required parameters for unlinking replication link. - /// - /// - /// The cancellation token. - /// - public static async Task UnlinkAsync(this IReplicationLinksOperations operations, string resourceGroupName, string serverName, string databaseName, string linkId, UnlinkParameters parameters, CancellationToken cancellationToken = default(CancellationToken)) - { - (await operations.UnlinkWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, linkId, parameters, null, cancellationToken).ConfigureAwait(false)).Dispose(); - } - /// /// Lists a database's replication links. /// @@ -445,62 +388,5 @@ public static void BeginFailoverAllowDataLoss(this IReplicationLinksOperations o (await operations.BeginFailoverAllowDataLossWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, linkId, null, cancellationToken).ConfigureAwait(false)).Dispose(); } - /// - /// Deletes a database replication link in forced or friendly way. - /// - /// - /// The operations group for this extension method. - /// - /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. - /// - /// - /// The name of the server. - /// - /// - /// The name of the database that has the replication link to be failed over. - /// - /// - /// The ID of the replication link to be failed over. - /// - /// - /// The required parameters for unlinking replication link. - /// - public static void BeginUnlink(this IReplicationLinksOperations operations, string resourceGroupName, string serverName, string databaseName, string linkId, UnlinkParameters parameters) - { - operations.BeginUnlinkAsync(resourceGroupName, serverName, databaseName, linkId, parameters).GetAwaiter().GetResult(); - } - - /// - /// Deletes a database replication link in forced or friendly way. - /// - /// - /// The operations group for this extension method. - /// - /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. - /// - /// - /// The name of the server. - /// - /// - /// The name of the database that has the replication link to be failed over. - /// - /// - /// The ID of the replication link to be failed over. - /// - /// - /// The required parameters for unlinking replication link. - /// - /// - /// The cancellation token. - /// - public static async Task BeginUnlinkAsync(this IReplicationLinksOperations operations, string resourceGroupName, string serverName, string databaseName, string linkId, UnlinkParameters parameters, CancellationToken cancellationToken = default(CancellationToken)) - { - (await operations.BeginUnlinkWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, linkId, parameters, null, cancellationToken).ConfigureAwait(false)).Dispose(); - } - } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/SdkInfo_SqlManagementClient.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/SdkInfo_SqlManagementClient.cs index fb6e69606085..8e9b95d7666d 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/SdkInfo_SqlManagementClient.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/SdkInfo_SqlManagementClient.cs @@ -1,19 +1,27 @@ -using System; -using System.Collections.Generic; -using System.Linq; +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// -internal static partial class SdkInfo +namespace Microsoft.Azure.Management.Sql { - public static IEnumerable> ApiInfo_SqlManagementClient - { - get - { - return new Tuple[] - { + using System; + using System.Collections.Generic; + using System.Linq; + + internal static partial class SdkInfo + { + public static IEnumerable> ApiInfo_SqlManagementClient + { + get + { + return new Tuple[] + { new Tuple("Sql", "BackupLongTermRetentionPolicies", "2017-03-01-preview"), - new Tuple("Sql", "BackupShortTermRetentionPolicies", "2020-02-02-preview"), - new Tuple("Sql", "Capabilities", "2018-06-01-preview"), + new Tuple("Sql", "BackupShortTermRetentionPolicies", "2017-10-01-preview"), + new Tuple("Sql", "Capabilities", "2017-10-01-preview"), new Tuple("Sql", "DataMaskingPolicies", "2014-04-01"), new Tuple("Sql", "DataMaskingRules", "2014-04-01"), new Tuple("Sql", "DatabaseAutomaticTuning", "2015-05-01-preview"), @@ -25,8 +33,8 @@ public static IEnumerable> ApiInfo_SqlManagementCl new Tuple("Sql", "DatabaseVulnerabilityAssessmentScans", "2017-10-01-preview"), new Tuple("Sql", "DatabaseVulnerabilityAssessments", "2017-03-01-preview"), new Tuple("Sql", "Databases", "2014-04-01"), - new Tuple("Sql", "Databases", "2019-06-01-preview"), - new Tuple("Sql", "Databases", "2020-02-02-preview"), + new Tuple("Sql", "Databases", "2017-10-01-preview"), + new Tuple("Sql", "Databases", "2018-06-01-preview"), new Tuple("Sql", "ElasticPoolActivities", "2014-04-01"), new Tuple("Sql", "ElasticPoolDatabaseActivities", "2014-04-01"), new Tuple("Sql", "ElasticPoolOperations", "2017-10-01-preview"), @@ -39,7 +47,6 @@ public static IEnumerable> ApiInfo_SqlManagementCl new Tuple("Sql", "FailoverGroups", "2015-05-01-preview"), new Tuple("Sql", "FirewallRules", "2014-04-01"), new Tuple("Sql", "GeoBackupPolicies", "2014-04-01"), - new Tuple("Sql", "ImportExport", "2020-02-02-preview"), new Tuple("Sql", "InstanceFailoverGroups", "2017-10-01-preview"), new Tuple("Sql", "InstancePools", "2018-06-01-preview"), new Tuple("Sql", "JobAgents", "2017-03-01-preview"), @@ -54,7 +61,7 @@ public static IEnumerable> ApiInfo_SqlManagementCl new Tuple("Sql", "LongTermRetentionBackups", "2017-03-01-preview"), new Tuple("Sql", "LongTermRetentionManagedInstanceBackups", "2018-06-01-preview"), new Tuple("Sql", "ManagedBackupShortTermRetentionPolicies", "2017-03-01-preview"), - new Tuple("Sql", "ManagedDatabaseRestoreDetails", "2020-02-02-preview"), + new Tuple("Sql", "ManagedDatabaseRestoreDetails", "2019-06-01-preview"), new Tuple("Sql", "ManagedDatabaseSecurityAlertPolicies", "2017-03-01-preview"), new Tuple("Sql", "ManagedDatabaseSensitivityLabels", "2018-06-01-preview"), new Tuple("Sql", "ManagedDatabaseVulnerabilityAssessmentRuleBaselines", "2017-10-01-preview"), @@ -62,11 +69,10 @@ public static IEnumerable> ApiInfo_SqlManagementCl new Tuple("Sql", "ManagedDatabaseVulnerabilityAssessments", "2017-10-01-preview"), new Tuple("Sql", "ManagedDatabases", "2020-02-02-preview"), new Tuple("Sql", "ManagedInstanceAdministrators", "2017-03-01-preview"), - new Tuple("Sql", "ManagedInstanceAzureADOnlyAuthentications", "2020-02-02-preview"), new Tuple("Sql", "ManagedInstanceEncryptionProtectors", "2017-10-01-preview"), new Tuple("Sql", "ManagedInstanceKeys", "2017-10-01-preview"), - new Tuple("Sql", "ManagedInstanceLongTermRetentionPolicies", "2018-06-01-preview"), new Tuple("Sql", "ManagedInstanceOperations", "2019-06-01-preview"), + new Tuple("Sql", "ManagedInstanceLongTermRetentionPolicies", "2018-06-01-preview"), new Tuple("Sql", "ManagedInstanceTdeCertificates", "2017-10-01-preview"), new Tuple("Sql", "ManagedInstanceVulnerabilityAssessments", "2018-06-01-preview"), new Tuple("Sql", "ManagedInstances", "2019-06-01-preview"), @@ -85,8 +91,7 @@ public static IEnumerable> ApiInfo_SqlManagementCl new Tuple("Sql", "RestorePoints", "2017-03-01-preview"), new Tuple("Sql", "SensitivityLabels", "2017-03-01-preview"), new Tuple("Sql", "ServerAutomaticTuning", "2017-03-01-preview"), - new Tuple("Sql", "ServerAzureADAdministrators", "2019-06-01-preview"), - new Tuple("Sql", "ServerAzureADOnlyAuthentications", "2020-02-02-preview"), + new Tuple("Sql", "ServerAzureADAdministrators", "2014-04-01"), new Tuple("Sql", "ServerBlobAuditingPolicies", "2017-03-01-preview"), new Tuple("Sql", "ServerCommunicationLinks", "2014-04-01"), new Tuple("Sql", "ServerConnectionPolicies", "2014-04-01"), @@ -96,22 +101,32 @@ public static IEnumerable> ApiInfo_SqlManagementCl new Tuple("Sql", "ServerUsages", "2014-04-01"), new Tuple("Sql", "ServerVulnerabilityAssessments", "2018-06-01-preview"), new Tuple("Sql", "Servers", "2019-06-01-preview"), - new Tuple("Sql", "Servers", "2020-02-02-preview"), + new Tuple("Sql", "Servers", "2015-05-01-preview"), new Tuple("Sql", "ServiceObjectives", "2014-04-01"), new Tuple("Sql", "ServiceTierAdvisors", "2014-04-01"), new Tuple("Sql", "SubscriptionUsages", "2015-05-01-preview"), new Tuple("Sql", "SyncAgents", "2015-05-01-preview"), - new Tuple("Sql", "SyncGroups", "2019-06-01-preview"), - new Tuple("Sql", "SyncMembers", "2019-06-01-preview"), + new Tuple("Sql", "SyncGroups", "2015-05-01-preview"), + new Tuple("Sql", "SyncMembers", "2015-05-01-preview"), new Tuple("Sql", "TdeCertificates", "2017-10-01-preview"), new Tuple("Sql", "TransparentDataEncryptionActivities", "2014-04-01"), new Tuple("Sql", "TransparentDataEncryptions", "2014-04-01"), new Tuple("Sql", "Usages", "2018-06-01-preview"), new Tuple("Sql", "VirtualClusters", "2015-05-01-preview"), new Tuple("Sql", "VirtualNetworkRules", "2015-05-01-preview"), - new Tuple("Sql", "WorkloadClassifiers", "2019-06-01-preview"), - new Tuple("Sql", "WorkloadGroups", "2019-06-01-preview"), - }.AsEnumerable(); - } + }.AsEnumerable(); + } + } + // BEGIN: Code Generation Metadata Section + public static readonly String AutoRestVersion = "v2"; + public static readonly String AutoRestBootStrapperVersion = "autorest@2.0.4413"; + public static readonly String AutoRestCmdExecuted = "cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/sql/resource-manager/readme.md --csharp --version=v2 --reflect-api-versions --csharp-sdks-folder=."; + public static readonly String GithubForkName = "Azure"; + public static readonly String GithubBranchName = "master"; + public static readonly String GithubCommidId = "615259b6d33d3029de2d6e403ffe0c12776da1d4"; + public static readonly String CodeGenerationErrors = ""; + public static readonly String GithubRepoName = "azure-rest-api-specs"; + // END: Code Generation Metadata Section } } + diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ServersOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ServersOperations.cs index 6fb27c3a7ea6..b3040eac702b 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ServersOperations.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ServersOperations.cs @@ -876,32 +876,6 @@ internal ServersOperations(SqlManagementClient client) return _result; } - /// - /// Imports a bacpac into a new database. - /// - /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. - /// - /// - /// The name of the server. - /// - /// - /// The database import request parameters. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - public async Task> ImportDatabaseWithHttpMessagesAsync(string resourceGroupName, string serverName, ImportNewDatabaseDefinition parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Send request - AzureOperationResponse _response = await BeginImportDatabaseWithHttpMessagesAsync(resourceGroupName, serverName, parameters, customHeaders, cancellationToken).ConfigureAwait(false); - return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); - } - /// /// Creates or updates a server. /// @@ -1516,219 +1490,6 @@ internal ServersOperations(SqlManagementClient client) return _result; } - /// - /// Imports a bacpac into a new database. - /// - /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. - /// - /// - /// The name of the server. - /// - /// - /// The database import request parameters. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> BeginImportDatabaseWithHttpMessagesAsync(string resourceGroupName, string serverName, ImportNewDatabaseDefinition parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (resourceGroupName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); - } - if (serverName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "serverName"); - } - if (parameters == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); - } - if (parameters != null) - { - parameters.Validate(); - } - if (Client.SubscriptionId == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); - } - string apiVersion = "2020-02-02-preview"; - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); - tracingParameters.Add("serverName", serverName); - tracingParameters.Add("parameters", parameters); - tracingParameters.Add("apiVersion", apiVersion); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "BeginImportDatabase", tracingParameters); - } - // Construct URL - var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/import").ToString(); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); - _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); - _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); - List _queryParameters = new List(); - if (apiVersion != null) - { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); - } - if (_queryParameters.Count > 0) - { - _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("POST"); - _httpRequest.RequestUri = new System.Uri(_url); - // Set Headers - if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) - { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); - } - if (Client.AcceptLanguage != null) - { - if (_httpRequest.Headers.Contains("accept-language")) - { - _httpRequest.Headers.Remove("accept-language"); - } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); - } - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - if (_httpRequest.Headers.Contains(_header.Key)) - { - _httpRequest.Headers.Remove(_header.Key); - } - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(parameters != null) - { - _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, Client.SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Client.Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 202) - { - var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - try - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); - if (_errorBody != null) - { - ex = new CloudException(_errorBody.Message); - ex.Body = _errorBody; - } - } - catch (JsonException) - { - // Ignore the exception - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = new AzureOperationResponse(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - /// /// Gets a list of servers in a resource groups. /// diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ServersOperationsExtensions.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ServersOperationsExtensions.cs index 89784f56684a..92d5362a701a 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ServersOperationsExtensions.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ServersOperationsExtensions.cs @@ -296,54 +296,6 @@ public static CheckNameAvailabilityResponse CheckNameAvailability(this IServersO } } - /// - /// Imports a bacpac into a new database. - /// - /// - /// The operations group for this extension method. - /// - /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. - /// - /// - /// The name of the server. - /// - /// - /// The database import request parameters. - /// - public static ImportExportOperationResult ImportDatabase(this IServersOperations operations, string resourceGroupName, string serverName, ImportNewDatabaseDefinition parameters) - { - return operations.ImportDatabaseAsync(resourceGroupName, serverName, parameters).GetAwaiter().GetResult(); - } - - /// - /// Imports a bacpac into a new database. - /// - /// - /// The operations group for this extension method. - /// - /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. - /// - /// - /// The name of the server. - /// - /// - /// The database import request parameters. - /// - /// - /// The cancellation token. - /// - public static async Task ImportDatabaseAsync(this IServersOperations operations, string resourceGroupName, string serverName, ImportNewDatabaseDefinition parameters, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ImportDatabaseWithHttpMessagesAsync(resourceGroupName, serverName, parameters, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - /// /// Creates or updates a server. /// @@ -479,54 +431,6 @@ public static Server BeginUpdate(this IServersOperations operations, string reso } } - /// - /// Imports a bacpac into a new database. - /// - /// - /// The operations group for this extension method. - /// - /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. - /// - /// - /// The name of the server. - /// - /// - /// The database import request parameters. - /// - public static ImportExportOperationResult BeginImportDatabase(this IServersOperations operations, string resourceGroupName, string serverName, ImportNewDatabaseDefinition parameters) - { - return operations.BeginImportDatabaseAsync(resourceGroupName, serverName, parameters).GetAwaiter().GetResult(); - } - - /// - /// Imports a bacpac into a new database. - /// - /// - /// The operations group for this extension method. - /// - /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. - /// - /// - /// The name of the server. - /// - /// - /// The database import request parameters. - /// - /// - /// The cancellation token. - /// - public static async Task BeginImportDatabaseAsync(this IServersOperations operations, string resourceGroupName, string serverName, ImportNewDatabaseDefinition parameters, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.BeginImportDatabaseWithHttpMessagesAsync(resourceGroupName, serverName, parameters, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - /// /// Gets a list of servers in a resource groups. /// diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/SqlManagementClient.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/SqlManagementClient.cs index 5062500bd5da..4c0f249b7cf1 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/SqlManagementClient.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/SqlManagementClient.cs @@ -396,6 +396,11 @@ public partial class SqlManagementClient : ServiceClient, I /// public virtual IInstanceFailoverGroupsOperations InstanceFailoverGroups { get; private set; } + /// + /// Gets the IBackupShortTermRetentionPoliciesOperations. + /// + public virtual IBackupShortTermRetentionPoliciesOperations BackupShortTermRetentionPolicies { get; private set; } + /// /// Gets the ITdeCertificatesOperations. /// @@ -446,6 +451,11 @@ public partial class SqlManagementClient : ServiceClient, I /// public virtual IUsagesOperations Usages { get; private set; } + /// + /// Gets the IManagedInstancesOperations. + /// + public virtual IManagedInstancesOperations ManagedInstances { get; private set; } + /// /// Gets the IPrivateEndpointConnectionsOperations. /// @@ -476,16 +486,6 @@ public partial class SqlManagementClient : ServiceClient, I /// public virtual IManagedInstanceLongTermRetentionPoliciesOperations ManagedInstanceLongTermRetentionPolicies { get; private set; } - /// - /// Gets the IWorkloadGroupsOperations. - /// - public virtual IWorkloadGroupsOperations WorkloadGroups { get; private set; } - - /// - /// Gets the IWorkloadClassifiersOperations. - /// - public virtual IWorkloadClassifiersOperations WorkloadClassifiers { get; private set; } - /// /// Gets the IManagedInstanceOperations. /// @@ -506,16 +506,6 @@ public partial class SqlManagementClient : ServiceClient, I /// public virtual ISyncMembersOperations SyncMembers { get; private set; } - /// - /// Gets the IManagedInstancesOperations. - /// - public virtual IManagedInstancesOperations ManagedInstances { get; private set; } - - /// - /// Gets the IBackupShortTermRetentionPoliciesOperations. - /// - public virtual IBackupShortTermRetentionPoliciesOperations BackupShortTermRetentionPolicies { get; private set; } - /// /// Gets the IManagedDatabaseRestoreDetailsOperations. /// @@ -531,11 +521,6 @@ public partial class SqlManagementClient : ServiceClient, I /// public virtual IServerAzureADOnlyAuthenticationsOperations ServerAzureADOnlyAuthentications { get; private set; } - /// - /// Gets the IImportExportOperations. - /// - public virtual IImportExportOperations ImportExport { get; private set; } - /// /// Gets the IManagedInstanceAzureADOnlyAuthenticationsOperations. /// @@ -807,6 +792,7 @@ private void Initialize() ManagedDatabaseVulnerabilityAssessmentScans = new ManagedDatabaseVulnerabilityAssessmentScansOperations(this); ManagedDatabaseVulnerabilityAssessments = new ManagedDatabaseVulnerabilityAssessmentsOperations(this); InstanceFailoverGroups = new InstanceFailoverGroupsOperations(this); + BackupShortTermRetentionPolicies = new BackupShortTermRetentionPoliciesOperations(this); TdeCertificates = new TdeCertificatesOperations(this); ManagedInstanceTdeCertificates = new ManagedInstanceTdeCertificatesOperations(this); ManagedInstanceKeys = new ManagedInstanceKeysOperations(this); @@ -817,24 +803,20 @@ private void Initialize() ManagedDatabaseSensitivityLabels = new ManagedDatabaseSensitivityLabelsOperations(this); InstancePools = new InstancePoolsOperations(this); Usages = new UsagesOperations(this); + ManagedInstances = new ManagedInstancesOperations(this); PrivateEndpointConnections = new PrivateEndpointConnectionsOperations(this); PrivateLinkResources = new PrivateLinkResourcesOperations(this); Servers = new ServersOperations(this); Capabilities = new CapabilitiesOperations(this); LongTermRetentionManagedInstanceBackups = new LongTermRetentionManagedInstanceBackupsOperations(this); ManagedInstanceLongTermRetentionPolicies = new ManagedInstanceLongTermRetentionPoliciesOperations(this); - WorkloadGroups = new WorkloadGroupsOperations(this); - WorkloadClassifiers = new WorkloadClassifiersOperations(this); ManagedInstanceOperations = new ManagedInstanceOperations(this); ServerAzureADAdministrators = new ServerAzureADAdministratorsOperations(this); SyncGroups = new SyncGroupsOperations(this); SyncMembers = new SyncMembersOperations(this); - ManagedInstances = new ManagedInstancesOperations(this); - BackupShortTermRetentionPolicies = new BackupShortTermRetentionPoliciesOperations(this); ManagedDatabaseRestoreDetails = new ManagedDatabaseRestoreDetailsOperations(this); ManagedDatabases = new ManagedDatabasesOperations(this); ServerAzureADOnlyAuthentications = new ServerAzureADOnlyAuthenticationsOperations(this); - ImportExport = new ImportExportOperations(this); ManagedInstanceAzureADOnlyAuthentications = new ManagedInstanceAzureADOnlyAuthenticationsOperations(this); BaseUri = new System.Uri("https://management.azure.com"); AcceptLanguage = "en-US"; @@ -871,4 +853,4 @@ private void Initialize() DeserializationSettings.Converters.Add(new CloudErrorJsonConverter()); } } -} +} \ No newline at end of file diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/SyncGroupsOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/SyncGroupsOperations.cs index 71d69dcc0a8f..9271bf23ee14 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/SyncGroupsOperations.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/SyncGroupsOperations.cs @@ -87,7 +87,7 @@ internal SyncGroupsOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01-preview"; + string apiVersion = "2015-05-01-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -323,7 +323,7 @@ internal SyncGroupsOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01-preview"; + string apiVersion = "2015-05-01-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -561,7 +561,7 @@ internal SyncGroupsOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01-preview"; + string apiVersion = "2015-05-01-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -791,7 +791,7 @@ internal SyncGroupsOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01-preview"; + string apiVersion = "2015-05-01-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -983,7 +983,7 @@ internal SyncGroupsOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01-preview"; + string apiVersion = "2015-05-01-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1178,7 +1178,7 @@ internal SyncGroupsOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01-preview"; + string apiVersion = "2015-05-01-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1477,7 +1477,7 @@ internal SyncGroupsOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01-preview"; + string apiVersion = "2015-05-01-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1685,7 +1685,7 @@ internal SyncGroupsOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01-preview"; + string apiVersion = "2015-05-01-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1887,7 +1887,7 @@ internal SyncGroupsOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01-preview"; + string apiVersion = "2015-05-01-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2122,7 +2122,7 @@ internal SyncGroupsOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01-preview"; + string apiVersion = "2015-05-01-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2324,7 +2324,7 @@ internal SyncGroupsOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01-preview"; + string apiVersion = "2015-05-01-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/SyncMembersOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/SyncMembersOperations.cs index 0b4acf9c3534..570159ca7802 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/SyncMembersOperations.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/SyncMembersOperations.cs @@ -116,7 +116,7 @@ internal SyncMembersOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01-preview"; + string apiVersion = "2015-05-01-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -433,7 +433,7 @@ internal SyncMembersOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01-preview"; + string apiVersion = "2015-05-01-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -653,7 +653,7 @@ internal SyncMembersOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01-preview"; + string apiVersion = "2015-05-01-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -914,7 +914,7 @@ internal SyncMembersOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01-preview"; + string apiVersion = "2015-05-01-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1158,7 +1158,7 @@ internal SyncMembersOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01-preview"; + string apiVersion = "2015-05-01-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1369,7 +1369,7 @@ internal SyncMembersOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01-preview"; + string apiVersion = "2015-05-01-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1595,7 +1595,7 @@ internal SyncMembersOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01-preview"; + string apiVersion = "2015-05-01-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/WorkloadClassifiersOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/WorkloadClassifiersOperations.cs deleted file mode 100644 index 3aca3cda1e20..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/WorkloadClassifiersOperations.cs +++ /dev/null @@ -1,1188 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql -{ - using Microsoft.Rest; - using Microsoft.Rest.Azure; - using Models; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - using System.Net; - using System.Net.Http; - using System.Threading; - using System.Threading.Tasks; - - /// - /// WorkloadClassifiersOperations operations. - /// - internal partial class WorkloadClassifiersOperations : IServiceOperations, IWorkloadClassifiersOperations - { - /// - /// Initializes a new instance of the WorkloadClassifiersOperations class. - /// - /// - /// Reference to the service client. - /// - /// - /// Thrown when a required parameter is null - /// - internal WorkloadClassifiersOperations(SqlManagementClient client) - { - if (client == null) - { - throw new System.ArgumentNullException("client"); - } - Client = client; - } - - /// - /// Gets a reference to the SqlManagementClient - /// - public SqlManagementClient Client { get; private set; } - - /// - /// Gets a workload classifier - /// - /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. - /// - /// - /// The name of the server. - /// - /// - /// The name of the database. - /// - /// - /// The name of the workload group from which to receive the classifier from. - /// - /// - /// The name of the workload classifier. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string workloadGroupName, string workloadClassifierName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (resourceGroupName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); - } - if (serverName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "serverName"); - } - if (databaseName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "databaseName"); - } - if (workloadGroupName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "workloadGroupName"); - } - if (workloadClassifierName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "workloadClassifierName"); - } - if (Client.SubscriptionId == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); - } - string apiVersion = "2019-06-01-preview"; - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); - tracingParameters.Add("serverName", serverName); - tracingParameters.Add("databaseName", databaseName); - tracingParameters.Add("workloadGroupName", workloadGroupName); - tracingParameters.Add("workloadClassifierName", workloadClassifierName); - tracingParameters.Add("apiVersion", apiVersion); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters); - } - // Construct URL - var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/workloadGroups/{workloadGroupName}/workloadClassifiers/{workloadClassifierName}").ToString(); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); - _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); - _url = _url.Replace("{databaseName}", System.Uri.EscapeDataString(databaseName)); - _url = _url.Replace("{workloadGroupName}", System.Uri.EscapeDataString(workloadGroupName)); - _url = _url.Replace("{workloadClassifierName}", System.Uri.EscapeDataString(workloadClassifierName)); - _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); - List _queryParameters = new List(); - if (apiVersion != null) - { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); - } - if (_queryParameters.Count > 0) - { - _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // Set Headers - if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) - { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); - } - if (Client.AcceptLanguage != null) - { - if (_httpRequest.Headers.Contains("accept-language")) - { - _httpRequest.Headers.Remove("accept-language"); - } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); - } - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - if (_httpRequest.Headers.Contains(_header.Key)) - { - _httpRequest.Headers.Remove(_header.Key); - } - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Client.Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200) - { - var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - try - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); - if (_errorBody != null) - { - ex = new CloudException(_errorBody.Message); - ex.Body = _errorBody; - } - } - catch (JsonException) - { - // Ignore the exception - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = new AzureOperationResponse(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// Creates or updates a workload classifier. - /// - /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. - /// - /// - /// The name of the server. - /// - /// - /// The name of the database. - /// - /// - /// The name of the workload group from which to receive the classifier from. - /// - /// - /// The name of the workload classifier to create/update. - /// - /// - /// The properties of the workload classifier. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - public async Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string workloadGroupName, string workloadClassifierName, WorkloadClassifier parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Send Request - AzureOperationResponse _response = await BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, workloadGroupName, workloadClassifierName, parameters, customHeaders, cancellationToken).ConfigureAwait(false); - return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); - } - - /// - /// Deletes a workload classifier. - /// - /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. - /// - /// - /// The name of the server. - /// - /// - /// The name of the database. - /// - /// - /// The name of the workload group from which to receive the classifier from. - /// - /// - /// The name of the workload classifier to delete. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - public async Task DeleteWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string workloadGroupName, string workloadClassifierName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Send request - AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, workloadGroupName, workloadClassifierName, customHeaders, cancellationToken).ConfigureAwait(false); - return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); - } - - /// - /// Gets the list of workload classifiers for a workload group - /// - /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. - /// - /// - /// The name of the server. - /// - /// - /// The name of the database. - /// - /// - /// The name of the workload group from which to receive the classifiers from. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task>> ListByWorkloadGroupWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string workloadGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (resourceGroupName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); - } - if (serverName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "serverName"); - } - if (databaseName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "databaseName"); - } - if (workloadGroupName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "workloadGroupName"); - } - if (Client.SubscriptionId == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); - } - string apiVersion = "2019-06-01-preview"; - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); - tracingParameters.Add("serverName", serverName); - tracingParameters.Add("databaseName", databaseName); - tracingParameters.Add("workloadGroupName", workloadGroupName); - tracingParameters.Add("apiVersion", apiVersion); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListByWorkloadGroup", tracingParameters); - } - // Construct URL - var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/workloadGroups/{workloadGroupName}/workloadClassifiers").ToString(); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); - _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); - _url = _url.Replace("{databaseName}", System.Uri.EscapeDataString(databaseName)); - _url = _url.Replace("{workloadGroupName}", System.Uri.EscapeDataString(workloadGroupName)); - _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); - List _queryParameters = new List(); - if (apiVersion != null) - { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); - } - if (_queryParameters.Count > 0) - { - _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // Set Headers - if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) - { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); - } - if (Client.AcceptLanguage != null) - { - if (_httpRequest.Headers.Contains("accept-language")) - { - _httpRequest.Headers.Remove("accept-language"); - } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); - } - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - if (_httpRequest.Headers.Contains(_header.Key)) - { - _httpRequest.Headers.Remove(_header.Key); - } - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Client.Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200) - { - var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - try - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); - if (_errorBody != null) - { - ex = new CloudException(_errorBody.Message); - ex.Body = _errorBody; - } - } - catch (JsonException) - { - // Ignore the exception - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = new AzureOperationResponse>(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// Creates or updates a workload classifier. - /// - /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. - /// - /// - /// The name of the server. - /// - /// - /// The name of the database. - /// - /// - /// The name of the workload group from which to receive the classifier from. - /// - /// - /// The name of the workload classifier to create/update. - /// - /// - /// The properties of the workload classifier. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string workloadGroupName, string workloadClassifierName, WorkloadClassifier parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (resourceGroupName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); - } - if (serverName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "serverName"); - } - if (databaseName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "databaseName"); - } - if (workloadGroupName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "workloadGroupName"); - } - if (workloadClassifierName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "workloadClassifierName"); - } - if (parameters == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); - } - if (parameters != null) - { - parameters.Validate(); - } - if (Client.SubscriptionId == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); - } - string apiVersion = "2019-06-01-preview"; - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); - tracingParameters.Add("serverName", serverName); - tracingParameters.Add("databaseName", databaseName); - tracingParameters.Add("workloadGroupName", workloadGroupName); - tracingParameters.Add("workloadClassifierName", workloadClassifierName); - tracingParameters.Add("parameters", parameters); - tracingParameters.Add("apiVersion", apiVersion); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "BeginCreateOrUpdate", tracingParameters); - } - // Construct URL - var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/workloadGroups/{workloadGroupName}/workloadClassifiers/{workloadClassifierName}").ToString(); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); - _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); - _url = _url.Replace("{databaseName}", System.Uri.EscapeDataString(databaseName)); - _url = _url.Replace("{workloadGroupName}", System.Uri.EscapeDataString(workloadGroupName)); - _url = _url.Replace("{workloadClassifierName}", System.Uri.EscapeDataString(workloadClassifierName)); - _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); - List _queryParameters = new List(); - if (apiVersion != null) - { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); - } - if (_queryParameters.Count > 0) - { - _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PUT"); - _httpRequest.RequestUri = new System.Uri(_url); - // Set Headers - if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) - { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); - } - if (Client.AcceptLanguage != null) - { - if (_httpRequest.Headers.Contains("accept-language")) - { - _httpRequest.Headers.Remove("accept-language"); - } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); - } - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - if (_httpRequest.Headers.Contains(_header.Key)) - { - _httpRequest.Headers.Remove(_header.Key); - } - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(parameters != null) - { - _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, Client.SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Client.Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - try - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); - if (_errorBody != null) - { - ex = new CloudException(_errorBody.Message); - ex.Body = _errorBody; - } - } - catch (JsonException) - { - // Ignore the exception - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = new AzureOperationResponse(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - // Deserialize Response - if ((int)_statusCode == 201) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// Deletes a workload classifier. - /// - /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. - /// - /// - /// The name of the server. - /// - /// - /// The name of the database. - /// - /// - /// The name of the workload group from which to receive the classifier from. - /// - /// - /// The name of the workload classifier to delete. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string workloadGroupName, string workloadClassifierName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (resourceGroupName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); - } - if (serverName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "serverName"); - } - if (databaseName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "databaseName"); - } - if (workloadGroupName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "workloadGroupName"); - } - if (workloadClassifierName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "workloadClassifierName"); - } - if (Client.SubscriptionId == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); - } - string apiVersion = "2019-06-01-preview"; - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); - tracingParameters.Add("serverName", serverName); - tracingParameters.Add("databaseName", databaseName); - tracingParameters.Add("workloadGroupName", workloadGroupName); - tracingParameters.Add("workloadClassifierName", workloadClassifierName); - tracingParameters.Add("apiVersion", apiVersion); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "BeginDelete", tracingParameters); - } - // Construct URL - var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/workloadGroups/{workloadGroupName}/workloadClassifiers/{workloadClassifierName}").ToString(); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); - _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); - _url = _url.Replace("{databaseName}", System.Uri.EscapeDataString(databaseName)); - _url = _url.Replace("{workloadGroupName}", System.Uri.EscapeDataString(workloadGroupName)); - _url = _url.Replace("{workloadClassifierName}", System.Uri.EscapeDataString(workloadClassifierName)); - _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); - List _queryParameters = new List(); - if (apiVersion != null) - { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); - } - if (_queryParameters.Count > 0) - { - _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); - _httpRequest.RequestUri = new System.Uri(_url); - // Set Headers - if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) - { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); - } - if (Client.AcceptLanguage != null) - { - if (_httpRequest.Headers.Contains("accept-language")) - { - _httpRequest.Headers.Remove("accept-language"); - } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); - } - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - if (_httpRequest.Headers.Contains(_header.Key)) - { - _httpRequest.Headers.Remove(_header.Key); - } - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Client.Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 202 && (int)_statusCode != 204) - { - var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - try - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); - if (_errorBody != null) - { - ex = new CloudException(_errorBody.Message); - ex.Body = _errorBody; - } - } - catch (JsonException) - { - // Ignore the exception - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = new AzureOperationResponse(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// Gets the list of workload classifiers for a workload group - /// - /// - /// The NextLink from the previous successful call to List operation. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task>> ListByWorkloadGroupNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (nextPageLink == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("nextPageLink", nextPageLink); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListByWorkloadGroupNext", tracingParameters); - } - // Construct URL - string _url = "{nextLink}"; - _url = _url.Replace("{nextLink}", nextPageLink); - List _queryParameters = new List(); - if (_queryParameters.Count > 0) - { - _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // Set Headers - if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) - { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); - } - if (Client.AcceptLanguage != null) - { - if (_httpRequest.Headers.Contains("accept-language")) - { - _httpRequest.Headers.Remove("accept-language"); - } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); - } - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - if (_httpRequest.Headers.Contains(_header.Key)) - { - _httpRequest.Headers.Remove(_header.Key); - } - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Client.Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200) - { - var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - try - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); - if (_errorBody != null) - { - ex = new CloudException(_errorBody.Message); - ex.Body = _errorBody; - } - } - catch (JsonException) - { - // Ignore the exception - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = new AzureOperationResponse>(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/WorkloadClassifiersOperationsExtensions.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/WorkloadClassifiersOperationsExtensions.cs deleted file mode 100644 index c8cc02707fd7..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/WorkloadClassifiersOperationsExtensions.cs +++ /dev/null @@ -1,419 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql -{ - using Microsoft.Rest; - using Microsoft.Rest.Azure; - using Models; - using System.Threading; - using System.Threading.Tasks; - - /// - /// Extension methods for WorkloadClassifiersOperations. - /// - public static partial class WorkloadClassifiersOperationsExtensions - { - /// - /// Gets a workload classifier - /// - /// - /// The operations group for this extension method. - /// - /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. - /// - /// - /// The name of the server. - /// - /// - /// The name of the database. - /// - /// - /// The name of the workload group from which to receive the classifier from. - /// - /// - /// The name of the workload classifier. - /// - public static WorkloadClassifier Get(this IWorkloadClassifiersOperations operations, string resourceGroupName, string serverName, string databaseName, string workloadGroupName, string workloadClassifierName) - { - return operations.GetAsync(resourceGroupName, serverName, databaseName, workloadGroupName, workloadClassifierName).GetAwaiter().GetResult(); - } - - /// - /// Gets a workload classifier - /// - /// - /// The operations group for this extension method. - /// - /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. - /// - /// - /// The name of the server. - /// - /// - /// The name of the database. - /// - /// - /// The name of the workload group from which to receive the classifier from. - /// - /// - /// The name of the workload classifier. - /// - /// - /// The cancellation token. - /// - public static async Task GetAsync(this IWorkloadClassifiersOperations operations, string resourceGroupName, string serverName, string databaseName, string workloadGroupName, string workloadClassifierName, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, workloadGroupName, workloadClassifierName, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// Creates or updates a workload classifier. - /// - /// - /// The operations group for this extension method. - /// - /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. - /// - /// - /// The name of the server. - /// - /// - /// The name of the database. - /// - /// - /// The name of the workload group from which to receive the classifier from. - /// - /// - /// The name of the workload classifier to create/update. - /// - /// - /// The properties of the workload classifier. - /// - public static WorkloadClassifier CreateOrUpdate(this IWorkloadClassifiersOperations operations, string resourceGroupName, string serverName, string databaseName, string workloadGroupName, string workloadClassifierName, WorkloadClassifier parameters) - { - return operations.CreateOrUpdateAsync(resourceGroupName, serverName, databaseName, workloadGroupName, workloadClassifierName, parameters).GetAwaiter().GetResult(); - } - - /// - /// Creates or updates a workload classifier. - /// - /// - /// The operations group for this extension method. - /// - /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. - /// - /// - /// The name of the server. - /// - /// - /// The name of the database. - /// - /// - /// The name of the workload group from which to receive the classifier from. - /// - /// - /// The name of the workload classifier to create/update. - /// - /// - /// The properties of the workload classifier. - /// - /// - /// The cancellation token. - /// - public static async Task CreateOrUpdateAsync(this IWorkloadClassifiersOperations operations, string resourceGroupName, string serverName, string databaseName, string workloadGroupName, string workloadClassifierName, WorkloadClassifier parameters, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, workloadGroupName, workloadClassifierName, parameters, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// Deletes a workload classifier. - /// - /// - /// The operations group for this extension method. - /// - /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. - /// - /// - /// The name of the server. - /// - /// - /// The name of the database. - /// - /// - /// The name of the workload group from which to receive the classifier from. - /// - /// - /// The name of the workload classifier to delete. - /// - public static void Delete(this IWorkloadClassifiersOperations operations, string resourceGroupName, string serverName, string databaseName, string workloadGroupName, string workloadClassifierName) - { - operations.DeleteAsync(resourceGroupName, serverName, databaseName, workloadGroupName, workloadClassifierName).GetAwaiter().GetResult(); - } - - /// - /// Deletes a workload classifier. - /// - /// - /// The operations group for this extension method. - /// - /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. - /// - /// - /// The name of the server. - /// - /// - /// The name of the database. - /// - /// - /// The name of the workload group from which to receive the classifier from. - /// - /// - /// The name of the workload classifier to delete. - /// - /// - /// The cancellation token. - /// - public static async Task DeleteAsync(this IWorkloadClassifiersOperations operations, string resourceGroupName, string serverName, string databaseName, string workloadGroupName, string workloadClassifierName, CancellationToken cancellationToken = default(CancellationToken)) - { - (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, workloadGroupName, workloadClassifierName, null, cancellationToken).ConfigureAwait(false)).Dispose(); - } - - /// - /// Gets the list of workload classifiers for a workload group - /// - /// - /// The operations group for this extension method. - /// - /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. - /// - /// - /// The name of the server. - /// - /// - /// The name of the database. - /// - /// - /// The name of the workload group from which to receive the classifiers from. - /// - public static IPage ListByWorkloadGroup(this IWorkloadClassifiersOperations operations, string resourceGroupName, string serverName, string databaseName, string workloadGroupName) - { - return operations.ListByWorkloadGroupAsync(resourceGroupName, serverName, databaseName, workloadGroupName).GetAwaiter().GetResult(); - } - - /// - /// Gets the list of workload classifiers for a workload group - /// - /// - /// The operations group for this extension method. - /// - /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. - /// - /// - /// The name of the server. - /// - /// - /// The name of the database. - /// - /// - /// The name of the workload group from which to receive the classifiers from. - /// - /// - /// The cancellation token. - /// - public static async Task> ListByWorkloadGroupAsync(this IWorkloadClassifiersOperations operations, string resourceGroupName, string serverName, string databaseName, string workloadGroupName, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListByWorkloadGroupWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, workloadGroupName, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// Creates or updates a workload classifier. - /// - /// - /// The operations group for this extension method. - /// - /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. - /// - /// - /// The name of the server. - /// - /// - /// The name of the database. - /// - /// - /// The name of the workload group from which to receive the classifier from. - /// - /// - /// The name of the workload classifier to create/update. - /// - /// - /// The properties of the workload classifier. - /// - public static WorkloadClassifier BeginCreateOrUpdate(this IWorkloadClassifiersOperations operations, string resourceGroupName, string serverName, string databaseName, string workloadGroupName, string workloadClassifierName, WorkloadClassifier parameters) - { - return operations.BeginCreateOrUpdateAsync(resourceGroupName, serverName, databaseName, workloadGroupName, workloadClassifierName, parameters).GetAwaiter().GetResult(); - } - - /// - /// Creates or updates a workload classifier. - /// - /// - /// The operations group for this extension method. - /// - /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. - /// - /// - /// The name of the server. - /// - /// - /// The name of the database. - /// - /// - /// The name of the workload group from which to receive the classifier from. - /// - /// - /// The name of the workload classifier to create/update. - /// - /// - /// The properties of the workload classifier. - /// - /// - /// The cancellation token. - /// - public static async Task BeginCreateOrUpdateAsync(this IWorkloadClassifiersOperations operations, string resourceGroupName, string serverName, string databaseName, string workloadGroupName, string workloadClassifierName, WorkloadClassifier parameters, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, workloadGroupName, workloadClassifierName, parameters, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// Deletes a workload classifier. - /// - /// - /// The operations group for this extension method. - /// - /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. - /// - /// - /// The name of the server. - /// - /// - /// The name of the database. - /// - /// - /// The name of the workload group from which to receive the classifier from. - /// - /// - /// The name of the workload classifier to delete. - /// - public static void BeginDelete(this IWorkloadClassifiersOperations operations, string resourceGroupName, string serverName, string databaseName, string workloadGroupName, string workloadClassifierName) - { - operations.BeginDeleteAsync(resourceGroupName, serverName, databaseName, workloadGroupName, workloadClassifierName).GetAwaiter().GetResult(); - } - - /// - /// Deletes a workload classifier. - /// - /// - /// The operations group for this extension method. - /// - /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. - /// - /// - /// The name of the server. - /// - /// - /// The name of the database. - /// - /// - /// The name of the workload group from which to receive the classifier from. - /// - /// - /// The name of the workload classifier to delete. - /// - /// - /// The cancellation token. - /// - public static async Task BeginDeleteAsync(this IWorkloadClassifiersOperations operations, string resourceGroupName, string serverName, string databaseName, string workloadGroupName, string workloadClassifierName, CancellationToken cancellationToken = default(CancellationToken)) - { - (await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, workloadGroupName, workloadClassifierName, null, cancellationToken).ConfigureAwait(false)).Dispose(); - } - - /// - /// Gets the list of workload classifiers for a workload group - /// - /// - /// The operations group for this extension method. - /// - /// - /// The NextLink from the previous successful call to List operation. - /// - public static IPage ListByWorkloadGroupNext(this IWorkloadClassifiersOperations operations, string nextPageLink) - { - return operations.ListByWorkloadGroupNextAsync(nextPageLink).GetAwaiter().GetResult(); - } - - /// - /// Gets the list of workload classifiers for a workload group - /// - /// - /// The operations group for this extension method. - /// - /// - /// The NextLink from the previous successful call to List operation. - /// - /// - /// The cancellation token. - /// - public static async Task> ListByWorkloadGroupNextAsync(this IWorkloadClassifiersOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListByWorkloadGroupNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/WorkloadGroupsOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/WorkloadGroupsOperations.cs deleted file mode 100644 index 186476f74931..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/WorkloadGroupsOperations.cs +++ /dev/null @@ -1,1146 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql -{ - using Microsoft.Rest; - using Microsoft.Rest.Azure; - using Models; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - using System.Net; - using System.Net.Http; - using System.Threading; - using System.Threading.Tasks; - - /// - /// WorkloadGroupsOperations operations. - /// - internal partial class WorkloadGroupsOperations : IServiceOperations, IWorkloadGroupsOperations - { - /// - /// Initializes a new instance of the WorkloadGroupsOperations class. - /// - /// - /// Reference to the service client. - /// - /// - /// Thrown when a required parameter is null - /// - internal WorkloadGroupsOperations(SqlManagementClient client) - { - if (client == null) - { - throw new System.ArgumentNullException("client"); - } - Client = client; - } - - /// - /// Gets a reference to the SqlManagementClient - /// - public SqlManagementClient Client { get; private set; } - - /// - /// Gets a workload group - /// - /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. - /// - /// - /// The name of the server. - /// - /// - /// The name of the database. - /// - /// - /// The name of the workload group. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string workloadGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (resourceGroupName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); - } - if (serverName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "serverName"); - } - if (databaseName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "databaseName"); - } - if (workloadGroupName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "workloadGroupName"); - } - if (Client.SubscriptionId == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); - } - string apiVersion = "2019-06-01-preview"; - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); - tracingParameters.Add("serverName", serverName); - tracingParameters.Add("databaseName", databaseName); - tracingParameters.Add("workloadGroupName", workloadGroupName); - tracingParameters.Add("apiVersion", apiVersion); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters); - } - // Construct URL - var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/workloadGroups/{workloadGroupName}").ToString(); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); - _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); - _url = _url.Replace("{databaseName}", System.Uri.EscapeDataString(databaseName)); - _url = _url.Replace("{workloadGroupName}", System.Uri.EscapeDataString(workloadGroupName)); - _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); - List _queryParameters = new List(); - if (apiVersion != null) - { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); - } - if (_queryParameters.Count > 0) - { - _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // Set Headers - if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) - { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); - } - if (Client.AcceptLanguage != null) - { - if (_httpRequest.Headers.Contains("accept-language")) - { - _httpRequest.Headers.Remove("accept-language"); - } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); - } - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - if (_httpRequest.Headers.Contains(_header.Key)) - { - _httpRequest.Headers.Remove(_header.Key); - } - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Client.Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200) - { - var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - try - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); - if (_errorBody != null) - { - ex = new CloudException(_errorBody.Message); - ex.Body = _errorBody; - } - } - catch (JsonException) - { - // Ignore the exception - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = new AzureOperationResponse(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// Creates or updates a workload group. - /// - /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. - /// - /// - /// The name of the server. - /// - /// - /// The name of the database. - /// - /// - /// The name of the workload group. - /// - /// - /// The requested workload group state. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - public async Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string workloadGroupName, WorkloadGroup parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Send Request - AzureOperationResponse _response = await BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, workloadGroupName, parameters, customHeaders, cancellationToken).ConfigureAwait(false); - return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); - } - - /// - /// Deletes a workload group. - /// - /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. - /// - /// - /// The name of the server. - /// - /// - /// The name of the database. - /// - /// - /// The name of the workload group to delete. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - public async Task DeleteWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string workloadGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Send request - AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, workloadGroupName, customHeaders, cancellationToken).ConfigureAwait(false); - return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); - } - - /// - /// Gets the list of workload groups - /// - /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. - /// - /// - /// The name of the server. - /// - /// - /// The name of the database. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task>> ListByDatabaseWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (resourceGroupName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); - } - if (serverName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "serverName"); - } - if (databaseName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "databaseName"); - } - if (Client.SubscriptionId == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); - } - string apiVersion = "2019-06-01-preview"; - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); - tracingParameters.Add("serverName", serverName); - tracingParameters.Add("databaseName", databaseName); - tracingParameters.Add("apiVersion", apiVersion); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListByDatabase", tracingParameters); - } - // Construct URL - var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/workloadGroups").ToString(); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); - _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); - _url = _url.Replace("{databaseName}", System.Uri.EscapeDataString(databaseName)); - _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); - List _queryParameters = new List(); - if (apiVersion != null) - { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); - } - if (_queryParameters.Count > 0) - { - _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // Set Headers - if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) - { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); - } - if (Client.AcceptLanguage != null) - { - if (_httpRequest.Headers.Contains("accept-language")) - { - _httpRequest.Headers.Remove("accept-language"); - } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); - } - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - if (_httpRequest.Headers.Contains(_header.Key)) - { - _httpRequest.Headers.Remove(_header.Key); - } - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Client.Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200) - { - var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - try - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); - if (_errorBody != null) - { - ex = new CloudException(_errorBody.Message); - ex.Body = _errorBody; - } - } - catch (JsonException) - { - // Ignore the exception - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = new AzureOperationResponse>(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// Creates or updates a workload group. - /// - /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. - /// - /// - /// The name of the server. - /// - /// - /// The name of the database. - /// - /// - /// The name of the workload group. - /// - /// - /// The requested workload group state. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string workloadGroupName, WorkloadGroup parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (resourceGroupName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); - } - if (serverName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "serverName"); - } - if (databaseName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "databaseName"); - } - if (workloadGroupName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "workloadGroupName"); - } - if (parameters == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); - } - if (parameters != null) - { - parameters.Validate(); - } - if (Client.SubscriptionId == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); - } - string apiVersion = "2019-06-01-preview"; - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); - tracingParameters.Add("serverName", serverName); - tracingParameters.Add("databaseName", databaseName); - tracingParameters.Add("workloadGroupName", workloadGroupName); - tracingParameters.Add("parameters", parameters); - tracingParameters.Add("apiVersion", apiVersion); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "BeginCreateOrUpdate", tracingParameters); - } - // Construct URL - var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/workloadGroups/{workloadGroupName}").ToString(); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); - _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); - _url = _url.Replace("{databaseName}", System.Uri.EscapeDataString(databaseName)); - _url = _url.Replace("{workloadGroupName}", System.Uri.EscapeDataString(workloadGroupName)); - _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); - List _queryParameters = new List(); - if (apiVersion != null) - { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); - } - if (_queryParameters.Count > 0) - { - _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PUT"); - _httpRequest.RequestUri = new System.Uri(_url); - // Set Headers - if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) - { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); - } - if (Client.AcceptLanguage != null) - { - if (_httpRequest.Headers.Contains("accept-language")) - { - _httpRequest.Headers.Remove("accept-language"); - } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); - } - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - if (_httpRequest.Headers.Contains(_header.Key)) - { - _httpRequest.Headers.Remove(_header.Key); - } - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - if(parameters != null) - { - _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, Client.SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Client.Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) - { - var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - try - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); - if (_errorBody != null) - { - ex = new CloudException(_errorBody.Message); - ex.Body = _errorBody; - } - } - catch (JsonException) - { - // Ignore the exception - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = new AzureOperationResponse(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - // Deserialize Response - if ((int)_statusCode == 201) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// Deletes a workload group. - /// - /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. - /// - /// - /// The name of the server. - /// - /// - /// The name of the database. - /// - /// - /// The name of the workload group to delete. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string workloadGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (resourceGroupName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); - } - if (serverName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "serverName"); - } - if (databaseName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "databaseName"); - } - if (workloadGroupName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "workloadGroupName"); - } - if (Client.SubscriptionId == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); - } - string apiVersion = "2019-06-01-preview"; - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); - tracingParameters.Add("serverName", serverName); - tracingParameters.Add("databaseName", databaseName); - tracingParameters.Add("workloadGroupName", workloadGroupName); - tracingParameters.Add("apiVersion", apiVersion); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "BeginDelete", tracingParameters); - } - // Construct URL - var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/workloadGroups/{workloadGroupName}").ToString(); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); - _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); - _url = _url.Replace("{databaseName}", System.Uri.EscapeDataString(databaseName)); - _url = _url.Replace("{workloadGroupName}", System.Uri.EscapeDataString(workloadGroupName)); - _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); - List _queryParameters = new List(); - if (apiVersion != null) - { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); - } - if (_queryParameters.Count > 0) - { - _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); - _httpRequest.RequestUri = new System.Uri(_url); - // Set Headers - if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) - { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); - } - if (Client.AcceptLanguage != null) - { - if (_httpRequest.Headers.Contains("accept-language")) - { - _httpRequest.Headers.Remove("accept-language"); - } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); - } - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - if (_httpRequest.Headers.Contains(_header.Key)) - { - _httpRequest.Headers.Remove(_header.Key); - } - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Client.Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 202 && (int)_statusCode != 204) - { - var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - try - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); - if (_errorBody != null) - { - ex = new CloudException(_errorBody.Message); - ex.Body = _errorBody; - } - } - catch (JsonException) - { - // Ignore the exception - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = new AzureOperationResponse(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// Gets the list of workload groups - /// - /// - /// The NextLink from the previous successful call to List operation. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task>> ListByDatabaseNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (nextPageLink == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("nextPageLink", nextPageLink); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListByDatabaseNext", tracingParameters); - } - // Construct URL - string _url = "{nextLink}"; - _url = _url.Replace("{nextLink}", nextPageLink); - List _queryParameters = new List(); - if (_queryParameters.Count > 0) - { - _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // Set Headers - if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) - { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); - } - if (Client.AcceptLanguage != null) - { - if (_httpRequest.Headers.Contains("accept-language")) - { - _httpRequest.Headers.Remove("accept-language"); - } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); - } - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - if (_httpRequest.Headers.Contains(_header.Key)) - { - _httpRequest.Headers.Remove(_header.Key); - } - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Client.Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200) - { - var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - try - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); - if (_errorBody != null) - { - ex = new CloudException(_errorBody.Message); - ex.Body = _errorBody; - } - } - catch (JsonException) - { - // Ignore the exception - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = new AzureOperationResponse>(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/WorkloadGroupsOperationsExtensions.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/WorkloadGroupsOperationsExtensions.cs deleted file mode 100644 index 0d86adccc315..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/WorkloadGroupsOperationsExtensions.cs +++ /dev/null @@ -1,383 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql -{ - using Microsoft.Rest; - using Microsoft.Rest.Azure; - using Models; - using System.Threading; - using System.Threading.Tasks; - - /// - /// Extension methods for WorkloadGroupsOperations. - /// - public static partial class WorkloadGroupsOperationsExtensions - { - /// - /// Gets a workload group - /// - /// - /// The operations group for this extension method. - /// - /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. - /// - /// - /// The name of the server. - /// - /// - /// The name of the database. - /// - /// - /// The name of the workload group. - /// - public static WorkloadGroup Get(this IWorkloadGroupsOperations operations, string resourceGroupName, string serverName, string databaseName, string workloadGroupName) - { - return operations.GetAsync(resourceGroupName, serverName, databaseName, workloadGroupName).GetAwaiter().GetResult(); - } - - /// - /// Gets a workload group - /// - /// - /// The operations group for this extension method. - /// - /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. - /// - /// - /// The name of the server. - /// - /// - /// The name of the database. - /// - /// - /// The name of the workload group. - /// - /// - /// The cancellation token. - /// - public static async Task GetAsync(this IWorkloadGroupsOperations operations, string resourceGroupName, string serverName, string databaseName, string workloadGroupName, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, workloadGroupName, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// Creates or updates a workload group. - /// - /// - /// The operations group for this extension method. - /// - /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. - /// - /// - /// The name of the server. - /// - /// - /// The name of the database. - /// - /// - /// The name of the workload group. - /// - /// - /// The requested workload group state. - /// - public static WorkloadGroup CreateOrUpdate(this IWorkloadGroupsOperations operations, string resourceGroupName, string serverName, string databaseName, string workloadGroupName, WorkloadGroup parameters) - { - return operations.CreateOrUpdateAsync(resourceGroupName, serverName, databaseName, workloadGroupName, parameters).GetAwaiter().GetResult(); - } - - /// - /// Creates or updates a workload group. - /// - /// - /// The operations group for this extension method. - /// - /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. - /// - /// - /// The name of the server. - /// - /// - /// The name of the database. - /// - /// - /// The name of the workload group. - /// - /// - /// The requested workload group state. - /// - /// - /// The cancellation token. - /// - public static async Task CreateOrUpdateAsync(this IWorkloadGroupsOperations operations, string resourceGroupName, string serverName, string databaseName, string workloadGroupName, WorkloadGroup parameters, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, workloadGroupName, parameters, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// Deletes a workload group. - /// - /// - /// The operations group for this extension method. - /// - /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. - /// - /// - /// The name of the server. - /// - /// - /// The name of the database. - /// - /// - /// The name of the workload group to delete. - /// - public static void Delete(this IWorkloadGroupsOperations operations, string resourceGroupName, string serverName, string databaseName, string workloadGroupName) - { - operations.DeleteAsync(resourceGroupName, serverName, databaseName, workloadGroupName).GetAwaiter().GetResult(); - } - - /// - /// Deletes a workload group. - /// - /// - /// The operations group for this extension method. - /// - /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. - /// - /// - /// The name of the server. - /// - /// - /// The name of the database. - /// - /// - /// The name of the workload group to delete. - /// - /// - /// The cancellation token. - /// - public static async Task DeleteAsync(this IWorkloadGroupsOperations operations, string resourceGroupName, string serverName, string databaseName, string workloadGroupName, CancellationToken cancellationToken = default(CancellationToken)) - { - (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, workloadGroupName, null, cancellationToken).ConfigureAwait(false)).Dispose(); - } - - /// - /// Gets the list of workload groups - /// - /// - /// The operations group for this extension method. - /// - /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. - /// - /// - /// The name of the server. - /// - /// - /// The name of the database. - /// - public static IPage ListByDatabase(this IWorkloadGroupsOperations operations, string resourceGroupName, string serverName, string databaseName) - { - return operations.ListByDatabaseAsync(resourceGroupName, serverName, databaseName).GetAwaiter().GetResult(); - } - - /// - /// Gets the list of workload groups - /// - /// - /// The operations group for this extension method. - /// - /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. - /// - /// - /// The name of the server. - /// - /// - /// The name of the database. - /// - /// - /// The cancellation token. - /// - public static async Task> ListByDatabaseAsync(this IWorkloadGroupsOperations operations, string resourceGroupName, string serverName, string databaseName, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListByDatabaseWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// Creates or updates a workload group. - /// - /// - /// The operations group for this extension method. - /// - /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. - /// - /// - /// The name of the server. - /// - /// - /// The name of the database. - /// - /// - /// The name of the workload group. - /// - /// - /// The requested workload group state. - /// - public static WorkloadGroup BeginCreateOrUpdate(this IWorkloadGroupsOperations operations, string resourceGroupName, string serverName, string databaseName, string workloadGroupName, WorkloadGroup parameters) - { - return operations.BeginCreateOrUpdateAsync(resourceGroupName, serverName, databaseName, workloadGroupName, parameters).GetAwaiter().GetResult(); - } - - /// - /// Creates or updates a workload group. - /// - /// - /// The operations group for this extension method. - /// - /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. - /// - /// - /// The name of the server. - /// - /// - /// The name of the database. - /// - /// - /// The name of the workload group. - /// - /// - /// The requested workload group state. - /// - /// - /// The cancellation token. - /// - public static async Task BeginCreateOrUpdateAsync(this IWorkloadGroupsOperations operations, string resourceGroupName, string serverName, string databaseName, string workloadGroupName, WorkloadGroup parameters, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, workloadGroupName, parameters, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// Deletes a workload group. - /// - /// - /// The operations group for this extension method. - /// - /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. - /// - /// - /// The name of the server. - /// - /// - /// The name of the database. - /// - /// - /// The name of the workload group to delete. - /// - public static void BeginDelete(this IWorkloadGroupsOperations operations, string resourceGroupName, string serverName, string databaseName, string workloadGroupName) - { - operations.BeginDeleteAsync(resourceGroupName, serverName, databaseName, workloadGroupName).GetAwaiter().GetResult(); - } - - /// - /// Deletes a workload group. - /// - /// - /// The operations group for this extension method. - /// - /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. - /// - /// - /// The name of the server. - /// - /// - /// The name of the database. - /// - /// - /// The name of the workload group to delete. - /// - /// - /// The cancellation token. - /// - public static async Task BeginDeleteAsync(this IWorkloadGroupsOperations operations, string resourceGroupName, string serverName, string databaseName, string workloadGroupName, CancellationToken cancellationToken = default(CancellationToken)) - { - (await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, workloadGroupName, null, cancellationToken).ConfigureAwait(false)).Dispose(); - } - - /// - /// Gets the list of workload groups - /// - /// - /// The operations group for this extension method. - /// - /// - /// The NextLink from the previous successful call to List operation. - /// - public static IPage ListByDatabaseNext(this IWorkloadGroupsOperations operations, string nextPageLink) - { - return operations.ListByDatabaseNextAsync(nextPageLink).GetAwaiter().GetResult(); - } - - /// - /// Gets the list of workload groups - /// - /// - /// The operations group for this extension method. - /// - /// - /// The NextLink from the previous successful call to List operation. - /// - /// - /// The cancellation token. - /// - public static async Task> ListByDatabaseNextAsync(this IWorkloadGroupsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListByDatabaseNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - } -} From 4e2b6b95442b70db7a348cd9356d0fd2e2cce9b8 Mon Sep 17 00:00:00 2001 From: Brandon Greenwood Date: Fri, 4 Sep 2020 17:44:15 -0700 Subject: [PATCH 15/19] Regenerate clients --- .../mgmtmetadata/sql_resource-manager.txt | 14 +- ...kupShortTermRetentionPoliciesOperations.cs | 8 +- .../src/Generated/CapabilitiesOperations.cs | 5 +- .../CapabilitiesOperationsExtensions.cs | 6 +- .../src/Generated/DatabasesOperations.cs | 677 ++++------ .../DatabasesOperationsExtensions.cs | 368 ++--- ...dDatabaseBlobAuditingPoliciesOperations.cs | 377 ++++++ ...lobAuditingPoliciesOperationsExtensions.cs | 82 ++ ...dedServerBlobAuditingPoliciesOperations.cs | 368 +++++ ...lobAuditingPoliciesOperationsExtensions.cs | 76 ++ .../src/Generated/ICapabilitiesOperations.cs | 3 +- .../src/Generated/IDatabasesOperations.cs | 213 +-- ...dDatabaseBlobAuditingPoliciesOperations.cs | 52 + ...dedServerBlobAuditingPoliciesOperations.cs | 49 + .../src/Generated/IImportExportOperations.cs | 93 ++ ...ManagedDatabaseRestoreDetailsOperations.cs | 4 +- .../Generated/IManagedDatabasesOperations.cs | 87 +- .../Generated/IManagedInstancesOperations.cs | 82 +- .../Generated/IReplicationLinksOperations.cs | 68 + .../src/Generated/IServersOperations.cs | 60 + .../src/Generated/ISqlManagementClient.cs | 68 +- .../IWorkloadClassifiersOperations.cs | 268 ++++ .../Generated/IWorkloadGroupsOperations.cs | 244 ++++ .../src/Generated/ImportExportOperations.cs | 305 +++++ .../ImportExportOperationsExtensions.cs | 133 ++ ...ManagedDatabaseRestoreDetailsOperations.cs | 20 +- ...abaseRestoreDetailsOperationsExtensions.cs | 6 +- .../Generated/ManagedDatabasesOperations.cs | 556 +++++++- .../ManagedDatabasesOperationsExtensions.cs | 134 +- .../Generated/ManagedInstancesOperations.cs | 676 +++++----- .../ManagedInstancesOperationsExtensions.cs | 156 +-- .../Models/AutoPauseDelayTimeRange.cs | 97 ++ .../Models/BackupShortTermRetentionPolicy.cs | 16 +- .../src/Generated/Models/CapabilityGroup.cs | 2 + .../Models/CheckNameAvailabilityRequest.cs | 5 - .../Models/CheckNameAvailabilityResponse.cs | 47 +- .../src/Generated/Models/Database.cs | 54 +- .../Models/DatabaseBlobAuditingPolicy.cs | 31 +- .../src/Generated/Models/DatabaseUpdate.cs | 54 +- .../Models/DatabaseVulnerabilityAssessment.cs | 12 +- .../src/Generated/Models/EditionCapability.cs | 20 +- .../ElasticPoolPerformanceLevelCapability.cs | 12 +- .../Models/ExportDatabaseDefinition.cs | 135 ++ .../ExtendedDatabaseBlobAuditingPolicy.cs | 31 +- .../ExtendedServerBlobAuditingPolicy.cs | 31 +- .../ImportExistingDatabaseDefinition.cs | 137 ++ .../Models/ImportExportOperationResult.cs | 135 ++ .../Models/ImportNewDatabaseDefinition.cs | 171 +++ .../Models/InstancePoolEditionCapability.cs | 82 ++ .../Models/InstancePoolFamilyCapability.cs | 92 ++ .../Models/InstancePoolVcoresCapability.cs | 88 ++ .../src/Generated/Models/ManagedInstance.cs | 10 + .../Models/ManagedInstanceFamilyCapability.cs | 18 +- ...ivateLinkServiceConnectionStateProperty.cs | 87 ++ .../Generated/Models/ManagedInstanceUpdate.cs | 10 + .../Models/ManagedInstanceVcoresCapability.cs | 40 +- .../ManagedInstanceVersionCapability.cs | 11 +- .../ManagedInstanceVulnerabilityAssessment.cs | 12 +- .../Generated/Models/MinCapacityCapability.cs | 70 + .../Models/NetworkIsolationSettings.cs | 72 + .../Generated/Models/PauseDelayTimeUnit.cs | 21 + .../PrivateEndpointConnectionRequestStatus.cs | 72 + .../Generated/Models/ReadScaleCapability.cs | 71 + .../Models/ServerBlobAuditingPolicy.cs | 31 +- .../Models/ServerVulnerabilityAssessment.cs | 12 +- .../Models/ServiceObjectiveCapability.cs | 38 +- .../src/Generated/Models/UnlinkParameters.cs | 53 + .../Generated/Models/WorkloadClassifier.cs | 115 ++ .../src/Generated/Models/WorkloadGroup.cs | 114 ++ .../Generated/ReplicationLinksOperations.cs | 238 ++++ .../ReplicationLinksOperationsExtensions.cs | 114 ++ .../Generated/SdkInfo_SqlManagementClient.cs | 38 +- .../src/Generated/ServersOperations.cs | 239 ++++ .../Generated/ServersOperationsExtensions.cs | 96 ++ .../src/Generated/SqlManagementClient.cs | 55 +- .../src/Generated/SyncGroupsOperations.cs | 22 +- .../src/Generated/SyncMembersOperations.cs | 14 +- .../WorkloadClassifiersOperations.cs | 1188 +++++++++++++++++ ...WorkloadClassifiersOperationsExtensions.cs | 419 ++++++ .../src/Generated/WorkloadGroupsOperations.cs | 1146 ++++++++++++++++ .../WorkloadGroupsOperationsExtensions.cs | 383 ++++++ .../tests/ImportExportScenarioTests.cs | 6 +- 82 files changed, 9717 insertions(+), 1608 deletions(-) create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IImportExportOperations.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IWorkloadClassifiersOperations.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IWorkloadGroupsOperations.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ImportExportOperations.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ImportExportOperationsExtensions.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/AutoPauseDelayTimeRange.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ExportDatabaseDefinition.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ImportExistingDatabaseDefinition.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ImportExportOperationResult.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ImportNewDatabaseDefinition.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstancePoolEditionCapability.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstancePoolFamilyCapability.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstancePoolVcoresCapability.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstancePrivateLinkServiceConnectionStateProperty.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/MinCapacityCapability.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/NetworkIsolationSettings.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PauseDelayTimeUnit.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateEndpointConnectionRequestStatus.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReadScaleCapability.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/UnlinkParameters.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/WorkloadClassifier.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/WorkloadGroup.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/WorkloadClassifiersOperations.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/WorkloadClassifiersOperationsExtensions.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/WorkloadGroupsOperations.cs create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/WorkloadGroupsOperationsExtensions.cs diff --git a/eng/mgmt/mgmtmetadata/sql_resource-manager.txt b/eng/mgmt/mgmtmetadata/sql_resource-manager.txt index 2c4e3f39b2ce..553d959cad24 100644 --- a/eng/mgmt/mgmtmetadata/sql_resource-manager.txt +++ b/eng/mgmt/mgmtmetadata/sql_resource-manager.txt @@ -1,14 +1,14 @@ -Installing AutoRest version: 2.0.4262 +Installing AutoRest version: v2 AutoRest installed successfully. Commencing code generation Generating CSharp code Executing AutoRest command -cmd.exe /c autorest.cmd https://github.com/brandong-ms/azure-rest-api-specs/blob/master/specification/sql/resource-manager/readme.md --csharp --version=2.0.4262 --reflect-api-versions --csharp-sdks-folder=. -2020-09-03 19:57:18 UTC +cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/sql/resource-manager/readme.md --csharp --version=v2 --reflect-api-versions --csharp-sdks-folder=. +2020-09-05 00:33:07 UTC Azure-rest-api-specs repository information -GitHub fork: brandong-ms +GitHub fork: Azure Branch: master -Commit: ee23954e1987dd2688617c68213a9e80f94adcb1 +Commit: ff06cd382011e3f255a602a813289609eb930ef3 AutoRest information -Requested version: 2.0.4262 -Bootstrapper version: autorest@2.0.4262 \ No newline at end of file +Requested version: v2 +Bootstrapper version: autorest@2.0.4413 diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/BackupShortTermRetentionPoliciesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/BackupShortTermRetentionPoliciesOperations.cs index b4519b7cbb98..e8c45d68f435 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/BackupShortTermRetentionPoliciesOperations.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/BackupShortTermRetentionPoliciesOperations.cs @@ -103,7 +103,7 @@ internal BackupShortTermRetentionPoliciesOperations(SqlManagementClient client) throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } string policyName = "default"; - string apiVersion = "2017-10-01-preview"; + string apiVersion = "2020-02-02-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -367,7 +367,7 @@ internal BackupShortTermRetentionPoliciesOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2017-10-01-preview"; + string apiVersion = "2020-02-02-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -579,7 +579,7 @@ internal BackupShortTermRetentionPoliciesOperations(SqlManagementClient client) throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } string policyName = "default"; - string apiVersion = "2017-10-01-preview"; + string apiVersion = "2020-02-02-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -800,7 +800,7 @@ internal BackupShortTermRetentionPoliciesOperations(SqlManagementClient client) throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } string policyName = "default"; - string apiVersion = "2017-10-01-preview"; + string apiVersion = "2020-02-02-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/CapabilitiesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/CapabilitiesOperations.cs index 9613b5960ba5..7482a90147f3 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/CapabilitiesOperations.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/CapabilitiesOperations.cs @@ -59,7 +59,8 @@ internal CapabilitiesOperations(SqlManagementClient client) /// /// If specified, restricts the response to only include the selected item. /// Possible values include: 'supportedEditions', - /// 'supportedElasticPoolEditions', 'supportedManagedInstanceVersions' + /// 'supportedElasticPoolEditions', 'supportedManagedInstanceVersions', + /// 'supportedInstancePoolEditions', 'supportedManagedInstanceEditions' /// /// /// Headers that will be added to request. @@ -92,7 +93,7 @@ internal CapabilitiesOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2017-10-01-preview"; + string apiVersion = "2018-06-01-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/CapabilitiesOperationsExtensions.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/CapabilitiesOperationsExtensions.cs index f3aa65d865c3..d9be266e240b 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/CapabilitiesOperationsExtensions.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/CapabilitiesOperationsExtensions.cs @@ -33,7 +33,8 @@ public static partial class CapabilitiesOperationsExtensions /// /// If specified, restricts the response to only include the selected item. /// Possible values include: 'supportedEditions', - /// 'supportedElasticPoolEditions', 'supportedManagedInstanceVersions' + /// 'supportedElasticPoolEditions', 'supportedManagedInstanceVersions', + /// 'supportedInstancePoolEditions', 'supportedManagedInstanceEditions' /// public static LocationCapabilities ListByLocation(this ICapabilitiesOperations operations, string locationName, string include = default(string)) { @@ -52,7 +53,8 @@ public static partial class CapabilitiesOperationsExtensions /// /// If specified, restricts the response to only include the selected item. /// Possible values include: 'supportedEditions', - /// 'supportedElasticPoolEditions', 'supportedManagedInstanceVersions' + /// 'supportedElasticPoolEditions', 'supportedManagedInstanceVersions', + /// 'supportedInstancePoolEditions', 'supportedManagedInstanceEditions' /// /// /// The cancellation token. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/DatabasesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/DatabasesOperations.cs index eb242f117df0..61a23af57a49 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/DatabasesOperations.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/DatabasesOperations.cs @@ -50,91 +50,6 @@ internal DatabasesOperations(SqlManagementClient client) /// public SqlManagementClient Client { get; private set; } - /// - /// Imports a bacpac into a new database. - /// - /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. - /// - /// - /// The name of the server. - /// - /// - /// The required parameters for importing a Bacpac into a database. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - public async Task> ImportWithHttpMessagesAsync(string resourceGroupName, string serverName, ImportRequest parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Send request - AzureOperationResponse _response = await BeginImportWithHttpMessagesAsync(resourceGroupName, serverName, parameters, customHeaders, cancellationToken).ConfigureAwait(false); - return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); - } - - /// - /// Creates an import operation that imports a bacpac into an existing - /// database. The existing database must be empty. - /// - /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. - /// - /// - /// The name of the server. - /// - /// - /// The name of the database to import into - /// - /// - /// The required parameters for importing a Bacpac into a database. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - public async Task> CreateImportOperationWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, ImportExtensionRequest parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Send Request - AzureOperationResponse _response = await BeginCreateImportOperationWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, parameters, customHeaders, cancellationToken).ConfigureAwait(false); - return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); - } - - /// - /// Exports a database to a bacpac. - /// - /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. - /// - /// - /// The name of the server. - /// - /// - /// The name of the database to be exported. - /// - /// - /// The required parameters for exporting a database. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - public async Task> ExportWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, ExportRequest parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Send request - AzureOperationResponse _response = await BeginExportWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, parameters, customHeaders, cancellationToken).ConfigureAwait(false); - return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); - } - /// /// Returns database metrics. /// @@ -600,7 +515,7 @@ internal DatabasesOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2017-10-01-preview"; + string apiVersion = "2019-06-01-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -802,7 +717,7 @@ internal DatabasesOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2017-10-01-preview"; + string apiVersion = "2019-06-01-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1090,7 +1005,7 @@ internal DatabasesOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2017-10-01-preview"; + string apiVersion = "2019-06-01-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1380,7 +1295,7 @@ internal DatabasesOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2017-10-01-preview"; + string apiVersion = "2019-06-01-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1522,37 +1437,7 @@ internal DatabasesOperations(SqlManagementClient client) } /// - /// Failovers a database. - /// - /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. - /// - /// - /// The name of the server. - /// - /// - /// The name of the database to failover. - /// - /// - /// The type of replica to be failed over. Possible values include: 'Primary', - /// 'ReadableSecondary' - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - public async Task FailoverWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string replicaType = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Send request - AzureOperationResponse _response = await BeginFailoverWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, replicaType, customHeaders, cancellationToken).ConfigureAwait(false); - return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); - } - - /// - /// Imports a bacpac into a new database. + /// Gets a list of inaccessible databases in a logical server /// /// /// The name of the resource group that contains the resource. You can obtain @@ -1561,9 +1446,6 @@ internal DatabasesOperations(SqlManagementClient client) /// /// The name of the server. /// - /// - /// The required parameters for importing a Bacpac into a database. - /// /// /// Headers that will be added to request. /// @@ -1585,12 +1467,8 @@ internal DatabasesOperations(SqlManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> BeginImportWithHttpMessagesAsync(string resourceGroupName, string serverName, ImportRequest parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListInaccessibleByServerWithHttpMessagesAsync(string resourceGroupName, string serverName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.SubscriptionId == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); - } if (resourceGroupName == null) { throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); @@ -1599,15 +1477,11 @@ internal DatabasesOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "serverName"); } - if (parameters == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); - } - if (parameters != null) + if (Client.SubscriptionId == null) { - parameters.Validate(); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2014-04-01"; + string apiVersion = "2019-06-01-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1615,19 +1489,18 @@ internal DatabasesOperations(SqlManagementClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("apiVersion", apiVersion); tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("serverName", serverName); - tracingParameters.Add("parameters", parameters); + tracingParameters.Add("apiVersion", apiVersion); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "BeginImport", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "ListInaccessibleByServer", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/import").ToString(); - _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/inaccessibleDatabases").ToString(); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); List _queryParameters = new List(); if (apiVersion != null) { @@ -1640,7 +1513,7 @@ internal DatabasesOperations(SqlManagementClient client) // Create HTTP transport objects var _httpRequest = new HttpRequestMessage(); HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.Method = new HttpMethod("GET"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) @@ -1671,12 +1544,6 @@ internal DatabasesOperations(SqlManagementClient client) // Serialize Request string _requestContent = null; - if(parameters != null) - { - _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, Client.SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } // Set Credentials if (Client.Credentials != null) { @@ -1697,7 +1564,7 @@ internal DatabasesOperations(SqlManagementClient client) HttpStatusCode _statusCode = _httpResponse.StatusCode; cancellationToken.ThrowIfCancellationRequested(); string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 202) + if ((int)_statusCode != 200) { var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try @@ -1732,7 +1599,7 @@ internal DatabasesOperations(SqlManagementClient client) throw ex; } // Create Result - var _result = new AzureOperationResponse(); + var _result = new AzureOperationResponse>(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) @@ -1745,7 +1612,7 @@ internal DatabasesOperations(SqlManagementClient client) _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); } catch (JsonException ex) { @@ -1765,8 +1632,66 @@ internal DatabasesOperations(SqlManagementClient client) } /// - /// Creates an import operation that imports a bacpac into an existing - /// database. The existing database must be empty. + /// Failovers a database. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database to failover. + /// + /// + /// The type of replica to be failed over. Possible values include: 'Primary', + /// 'ReadableSecondary' + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task FailoverWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string replicaType = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginFailoverWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, replicaType, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Exports a database. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database. + /// + /// + /// The database export request parameters. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> ExportWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, ExportDatabaseDefinition parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginExportWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, parameters, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Creates a new database or updates an existing database. /// /// /// The name of the resource group that contains the resource. You can obtain @@ -1776,10 +1701,10 @@ internal DatabasesOperations(SqlManagementClient client) /// The name of the server. /// /// - /// The name of the database to import into + /// The name of the database. /// /// - /// The required parameters for importing a Bacpac into a database. + /// The requested database resource state. /// /// /// Headers that will be added to request. @@ -1802,12 +1727,8 @@ internal DatabasesOperations(SqlManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> BeginCreateImportOperationWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, ImportExtensionRequest parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, Database parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.SubscriptionId == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); - } if (resourceGroupName == null) { throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); @@ -1828,8 +1749,11 @@ internal DatabasesOperations(SqlManagementClient client) { parameters.Validate(); } - string apiVersion = "2014-04-01"; - string extensionName = "import"; + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + string apiVersion = "2019-06-01-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1837,23 +1761,21 @@ internal DatabasesOperations(SqlManagementClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("apiVersion", apiVersion); tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("serverName", serverName); tracingParameters.Add("databaseName", databaseName); - tracingParameters.Add("extensionName", extensionName); tracingParameters.Add("parameters", parameters); + tracingParameters.Add("apiVersion", apiVersion); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "BeginCreateImportOperation", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "BeginCreateOrUpdate", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/extensions/{extensionName}").ToString(); - _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}").ToString(); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); _url = _url.Replace("{databaseName}", System.Uri.EscapeDataString(databaseName)); - _url = _url.Replace("{extensionName}", System.Uri.EscapeDataString(extensionName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); List _queryParameters = new List(); if (apiVersion != null) { @@ -1923,7 +1845,7 @@ internal DatabasesOperations(SqlManagementClient client) HttpStatusCode _statusCode = _httpResponse.StatusCode; cancellationToken.ThrowIfCancellationRequested(); string _responseContent = null; - if ((int)_statusCode != 201 && (int)_statusCode != 202) + if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) { var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try @@ -1958,7 +1880,7 @@ internal DatabasesOperations(SqlManagementClient client) throw ex; } // Create Result - var _result = new AzureOperationResponse(); + var _result = new AzureOperationResponse(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) @@ -1966,12 +1888,30 @@ internal DatabasesOperations(SqlManagementClient client) _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); } // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + // Deserialize Response if ((int)_statusCode == 201) { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); } catch (JsonException ex) { @@ -1991,7 +1931,7 @@ internal DatabasesOperations(SqlManagementClient client) } /// - /// Exports a database to a bacpac. + /// Deletes the database. /// /// /// The name of the resource group that contains the resource. You can obtain @@ -2001,10 +1941,7 @@ internal DatabasesOperations(SqlManagementClient client) /// The name of the server. /// /// - /// The name of the database to be exported. - /// - /// - /// The required parameters for exporting a database. + /// The name of the database. /// /// /// Headers that will be added to request. @@ -2015,9 +1952,6 @@ internal DatabasesOperations(SqlManagementClient client) /// /// Thrown when the operation returned an invalid status code /// - /// - /// Thrown when unable to deserialize the response - /// /// /// Thrown when a required parameter is null /// @@ -2027,12 +1961,8 @@ internal DatabasesOperations(SqlManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> BeginExportWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, ExportRequest parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.SubscriptionId == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); - } if (resourceGroupName == null) { throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); @@ -2045,15 +1975,11 @@ internal DatabasesOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "databaseName"); } - if (parameters == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); - } - if (parameters != null) + if (Client.SubscriptionId == null) { - parameters.Validate(); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2014-04-01"; + string apiVersion = "2019-06-01-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2061,21 +1987,20 @@ internal DatabasesOperations(SqlManagementClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("apiVersion", apiVersion); tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("serverName", serverName); tracingParameters.Add("databaseName", databaseName); - tracingParameters.Add("parameters", parameters); + tracingParameters.Add("apiVersion", apiVersion); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "BeginExport", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "BeginDelete", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/export").ToString(); - _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}").ToString(); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); _url = _url.Replace("{databaseName}", System.Uri.EscapeDataString(databaseName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); List _queryParameters = new List(); if (apiVersion != null) { @@ -2088,7 +2013,7 @@ internal DatabasesOperations(SqlManagementClient client) // Create HTTP transport objects var _httpRequest = new HttpRequestMessage(); HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.Method = new HttpMethod("DELETE"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) @@ -2119,12 +2044,6 @@ internal DatabasesOperations(SqlManagementClient client) // Serialize Request string _requestContent = null; - if(parameters != null) - { - _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, Client.SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } // Set Credentials if (Client.Credentials != null) { @@ -2145,7 +2064,7 @@ internal DatabasesOperations(SqlManagementClient client) HttpStatusCode _statusCode = _httpResponse.StatusCode; cancellationToken.ThrowIfCancellationRequested(); string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 202) + if ((int)_statusCode != 200 && (int)_statusCode != 202 && (int)_statusCode != 204) { var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try @@ -2180,31 +2099,13 @@ internal DatabasesOperations(SqlManagementClient client) throw ex; } // Create Result - var _result = new AzureOperationResponse(); + var _result = new AzureOperationResponse(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) { _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); } - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } if (_shouldTrace) { ServiceClientTracing.Exit(_invocationId, _result); @@ -2213,7 +2114,7 @@ internal DatabasesOperations(SqlManagementClient client) } /// - /// Creates a new database or updates an existing database. + /// Updates an existing database. /// /// /// The name of the resource group that contains the resource. You can obtain @@ -2249,7 +2150,7 @@ internal DatabasesOperations(SqlManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, Database parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, DatabaseUpdate parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (resourceGroupName == null) { @@ -2267,15 +2168,11 @@ internal DatabasesOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); } - if (parameters != null) - { - parameters.Validate(); - } if (Client.SubscriptionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2017-10-01-preview"; + string apiVersion = "2019-06-01-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2289,7 +2186,7 @@ internal DatabasesOperations(SqlManagementClient client) tracingParameters.Add("parameters", parameters); tracingParameters.Add("apiVersion", apiVersion); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "BeginCreateOrUpdate", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "BeginUpdate", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; @@ -2310,7 +2207,7 @@ internal DatabasesOperations(SqlManagementClient client) // Create HTTP transport objects var _httpRequest = new HttpRequestMessage(); HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PUT"); + _httpRequest.Method = new HttpMethod("PATCH"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) @@ -2367,7 +2264,7 @@ internal DatabasesOperations(SqlManagementClient client) HttpStatusCode _statusCode = _httpResponse.StatusCode; cancellationToken.ThrowIfCancellationRequested(); string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) + if ((int)_statusCode != 200 && (int)_statusCode != 202) { var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try @@ -2427,24 +2324,6 @@ internal DatabasesOperations(SqlManagementClient client) throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); } } - // Deserialize Response - if ((int)_statusCode == 201) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } if (_shouldTrace) { ServiceClientTracing.Exit(_invocationId, _result); @@ -2453,7 +2332,7 @@ internal DatabasesOperations(SqlManagementClient client) } /// - /// Deletes the database. + /// Pauses a database. /// /// /// The name of the resource group that contains the resource. You can obtain @@ -2463,7 +2342,7 @@ internal DatabasesOperations(SqlManagementClient client) /// The name of the server. /// /// - /// The name of the database. + /// The name of the database to be paused. /// /// /// Headers that will be added to request. @@ -2474,6 +2353,9 @@ internal DatabasesOperations(SqlManagementClient client) /// /// Thrown when the operation returned an invalid status code /// + /// + /// Thrown when unable to deserialize the response + /// /// /// Thrown when a required parameter is null /// @@ -2483,7 +2365,7 @@ internal DatabasesOperations(SqlManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> BeginPauseWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (resourceGroupName == null) { @@ -2501,7 +2383,7 @@ internal DatabasesOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2017-10-01-preview"; + string apiVersion = "2019-06-01-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2514,11 +2396,11 @@ internal DatabasesOperations(SqlManagementClient client) tracingParameters.Add("databaseName", databaseName); tracingParameters.Add("apiVersion", apiVersion); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "BeginDelete", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "BeginPause", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/pause").ToString(); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); _url = _url.Replace("{databaseName}", System.Uri.EscapeDataString(databaseName)); @@ -2535,7 +2417,7 @@ internal DatabasesOperations(SqlManagementClient client) // Create HTTP transport objects var _httpRequest = new HttpRequestMessage(); HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); + _httpRequest.Method = new HttpMethod("POST"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) @@ -2586,7 +2468,7 @@ internal DatabasesOperations(SqlManagementClient client) HttpStatusCode _statusCode = _httpResponse.StatusCode; cancellationToken.ThrowIfCancellationRequested(); string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 202 && (int)_statusCode != 204) + if ((int)_statusCode != 200 && (int)_statusCode != 202) { var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try @@ -2621,13 +2503,31 @@ internal DatabasesOperations(SqlManagementClient client) throw ex; } // Create Result - var _result = new AzureOperationResponse(); + var _result = new AzureOperationResponse(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) { _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } if (_shouldTrace) { ServiceClientTracing.Exit(_invocationId, _result); @@ -2636,7 +2536,7 @@ internal DatabasesOperations(SqlManagementClient client) } /// - /// Updates an existing database. + /// Resumes a database. /// /// /// The name of the resource group that contains the resource. You can obtain @@ -2646,10 +2546,7 @@ internal DatabasesOperations(SqlManagementClient client) /// The name of the server. /// /// - /// The name of the database. - /// - /// - /// The requested database resource state. + /// The name of the database to be resumed. /// /// /// Headers that will be added to request. @@ -2672,7 +2569,7 @@ internal DatabasesOperations(SqlManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, DatabaseUpdate parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> BeginResumeWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (resourceGroupName == null) { @@ -2686,15 +2583,11 @@ internal DatabasesOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "databaseName"); } - if (parameters == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); - } if (Client.SubscriptionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2017-10-01-preview"; + string apiVersion = "2019-06-01-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2705,14 +2598,13 @@ internal DatabasesOperations(SqlManagementClient client) tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("serverName", serverName); tracingParameters.Add("databaseName", databaseName); - tracingParameters.Add("parameters", parameters); tracingParameters.Add("apiVersion", apiVersion); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "BeginUpdate", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "BeginResume", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/resume").ToString(); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); _url = _url.Replace("{databaseName}", System.Uri.EscapeDataString(databaseName)); @@ -2729,7 +2621,7 @@ internal DatabasesOperations(SqlManagementClient client) // Create HTTP transport objects var _httpRequest = new HttpRequestMessage(); HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PATCH"); + _httpRequest.Method = new HttpMethod("POST"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) @@ -2760,12 +2652,6 @@ internal DatabasesOperations(SqlManagementClient client) // Serialize Request string _requestContent = null; - if(parameters != null) - { - _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, Client.SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } // Set Credentials if (Client.Credentials != null) { @@ -2854,7 +2740,7 @@ internal DatabasesOperations(SqlManagementClient client) } /// - /// Pauses a database. + /// Upgrades a data warehouse. /// /// /// The name of the resource group that contains the resource. You can obtain @@ -2864,7 +2750,7 @@ internal DatabasesOperations(SqlManagementClient client) /// The name of the server. /// /// - /// The name of the database to be paused. + /// The name of the database to be upgraded. /// /// /// Headers that will be added to request. @@ -2875,9 +2761,6 @@ internal DatabasesOperations(SqlManagementClient client) /// /// Thrown when the operation returned an invalid status code /// - /// - /// Thrown when unable to deserialize the response - /// /// /// Thrown when a required parameter is null /// @@ -2887,7 +2770,7 @@ internal DatabasesOperations(SqlManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> BeginPauseWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task BeginUpgradeDataWarehouseWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (resourceGroupName == null) { @@ -2905,7 +2788,7 @@ internal DatabasesOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2017-10-01-preview"; + string apiVersion = "2019-06-01-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2918,11 +2801,11 @@ internal DatabasesOperations(SqlManagementClient client) tracingParameters.Add("databaseName", databaseName); tracingParameters.Add("apiVersion", apiVersion); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "BeginPause", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "BeginUpgradeDataWarehouse", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/pause").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/upgradeDataWarehouse").ToString(); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); _url = _url.Replace("{databaseName}", System.Uri.EscapeDataString(databaseName)); @@ -3025,31 +2908,13 @@ internal DatabasesOperations(SqlManagementClient client) throw ex; } // Create Result - var _result = new AzureOperationResponse(); + var _result = new AzureOperationResponse(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) { _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); } - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } if (_shouldTrace) { ServiceClientTracing.Exit(_invocationId, _result); @@ -3058,7 +2923,7 @@ internal DatabasesOperations(SqlManagementClient client) } /// - /// Resumes a database. + /// Failovers a database. /// /// /// The name of the resource group that contains the resource. You can obtain @@ -3068,7 +2933,11 @@ internal DatabasesOperations(SqlManagementClient client) /// The name of the server. /// /// - /// The name of the database to be resumed. + /// The name of the database to failover. + /// + /// + /// The type of replica to be failed over. Possible values include: 'Primary', + /// 'ReadableSecondary' /// /// /// Headers that will be added to request. @@ -3079,9 +2948,6 @@ internal DatabasesOperations(SqlManagementClient client) /// /// Thrown when the operation returned an invalid status code /// - /// - /// Thrown when unable to deserialize the response - /// /// /// Thrown when a required parameter is null /// @@ -3091,7 +2957,7 @@ internal DatabasesOperations(SqlManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> BeginResumeWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task BeginFailoverWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string replicaType = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (resourceGroupName == null) { @@ -3109,7 +2975,7 @@ internal DatabasesOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2017-10-01-preview"; + string apiVersion = "2019-06-01-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -3120,18 +2986,23 @@ internal DatabasesOperations(SqlManagementClient client) tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("serverName", serverName); tracingParameters.Add("databaseName", databaseName); + tracingParameters.Add("replicaType", replicaType); tracingParameters.Add("apiVersion", apiVersion); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "BeginResume", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "BeginFailover", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/resume").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/failover").ToString(); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); _url = _url.Replace("{databaseName}", System.Uri.EscapeDataString(databaseName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); List _queryParameters = new List(); + if (replicaType != null) + { + _queryParameters.Add(string.Format("replicaType={0}", System.Uri.EscapeDataString(replicaType))); + } if (apiVersion != null) { _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); @@ -3229,31 +3100,13 @@ internal DatabasesOperations(SqlManagementClient client) throw ex; } // Create Result - var _result = new AzureOperationResponse(); + var _result = new AzureOperationResponse(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) { _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); } - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } if (_shouldTrace) { ServiceClientTracing.Exit(_invocationId, _result); @@ -3262,7 +3115,7 @@ internal DatabasesOperations(SqlManagementClient client) } /// - /// Upgrades a data warehouse. + /// Exports a database. /// /// /// The name of the resource group that contains the resource. You can obtain @@ -3272,7 +3125,10 @@ internal DatabasesOperations(SqlManagementClient client) /// The name of the server. /// /// - /// The name of the database to be upgraded. + /// The name of the database. + /// + /// + /// The database export request parameters. /// /// /// Headers that will be added to request. @@ -3283,6 +3139,9 @@ internal DatabasesOperations(SqlManagementClient client) /// /// Thrown when the operation returned an invalid status code /// + /// + /// Thrown when unable to deserialize the response + /// /// /// Thrown when a required parameter is null /// @@ -3292,7 +3151,7 @@ internal DatabasesOperations(SqlManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task BeginUpgradeDataWarehouseWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> BeginExportWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, ExportDatabaseDefinition parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (resourceGroupName == null) { @@ -3306,11 +3165,19 @@ internal DatabasesOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "databaseName"); } + if (parameters == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); + } + if (parameters != null) + { + parameters.Validate(); + } if (Client.SubscriptionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2017-10-01-preview"; + string apiVersion = "2020-02-02-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -3321,13 +3188,14 @@ internal DatabasesOperations(SqlManagementClient client) tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("serverName", serverName); tracingParameters.Add("databaseName", databaseName); + tracingParameters.Add("parameters", parameters); tracingParameters.Add("apiVersion", apiVersion); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "BeginUpgradeDataWarehouse", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "BeginExport", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/upgradeDataWarehouse").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/export").ToString(); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); _url = _url.Replace("{databaseName}", System.Uri.EscapeDataString(databaseName)); @@ -3375,6 +3243,12 @@ internal DatabasesOperations(SqlManagementClient client) // Serialize Request string _requestContent = null; + if(parameters != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } // Set Credentials if (Client.Credentials != null) { @@ -3430,13 +3304,31 @@ internal DatabasesOperations(SqlManagementClient client) throw ex; } // Create Result - var _result = new AzureOperationResponse(); + var _result = new AzureOperationResponse(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) { _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } if (_shouldTrace) { ServiceClientTracing.Exit(_invocationId, _result); @@ -3445,21 +3337,10 @@ internal DatabasesOperations(SqlManagementClient client) } /// - /// Failovers a database. + /// Gets a list of databases. /// - /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. - /// - /// - /// The name of the server. - /// - /// - /// The name of the database to failover. - /// - /// - /// The type of replica to be failed over. Possible values include: 'Primary', - /// 'ReadableSecondary' + /// + /// The NextLink from the previous successful call to List operation. /// /// /// Headers that will be added to request. @@ -3470,6 +3351,9 @@ internal DatabasesOperations(SqlManagementClient client) /// /// Thrown when the operation returned an invalid status code /// + /// + /// Thrown when unable to deserialize the response + /// /// /// Thrown when a required parameter is null /// @@ -3479,25 +3363,12 @@ internal DatabasesOperations(SqlManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task BeginFailoverWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string replicaType = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByServerNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (resourceGroupName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); - } - if (serverName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "serverName"); - } - if (databaseName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "databaseName"); - } - if (Client.SubscriptionId == null) + if (nextPageLink == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink"); } - string apiVersion = "2018-06-01-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -3505,30 +3376,14 @@ internal DatabasesOperations(SqlManagementClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); - tracingParameters.Add("serverName", serverName); - tracingParameters.Add("databaseName", databaseName); - tracingParameters.Add("replicaType", replicaType); - tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("nextPageLink", nextPageLink); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "BeginFailover", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "ListByServerNext", tracingParameters); } // Construct URL - var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/failover").ToString(); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); - _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); - _url = _url.Replace("{databaseName}", System.Uri.EscapeDataString(databaseName)); - _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + string _url = "{nextLink}"; + _url = _url.Replace("{nextLink}", nextPageLink); List _queryParameters = new List(); - if (replicaType != null) - { - _queryParameters.Add(string.Format("replicaType={0}", System.Uri.EscapeDataString(replicaType))); - } - if (apiVersion != null) - { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); - } if (_queryParameters.Count > 0) { _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); @@ -3536,7 +3391,7 @@ internal DatabasesOperations(SqlManagementClient client) // Create HTTP transport objects var _httpRequest = new HttpRequestMessage(); HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.Method = new HttpMethod("GET"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) @@ -3587,7 +3442,7 @@ internal DatabasesOperations(SqlManagementClient client) HttpStatusCode _statusCode = _httpResponse.StatusCode; cancellationToken.ThrowIfCancellationRequested(); string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 202) + if ((int)_statusCode != 200) { var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try @@ -3622,13 +3477,31 @@ internal DatabasesOperations(SqlManagementClient client) throw ex; } // Create Result - var _result = new AzureOperationResponse(); + var _result = new AzureOperationResponse>(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) { _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } if (_shouldTrace) { ServiceClientTracing.Exit(_invocationId, _result); @@ -3637,7 +3510,7 @@ internal DatabasesOperations(SqlManagementClient client) } /// - /// Gets a list of databases. + /// Gets a list of databases in an elastic pool. /// /// /// The NextLink from the previous successful call to List operation. @@ -3663,7 +3536,7 @@ internal DatabasesOperations(SqlManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListByServerNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByElasticPoolNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (nextPageLink == null) { @@ -3678,7 +3551,7 @@ internal DatabasesOperations(SqlManagementClient client) Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("nextPageLink", nextPageLink); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListByServerNext", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "ListByElasticPoolNext", tracingParameters); } // Construct URL string _url = "{nextLink}"; @@ -3810,7 +3683,7 @@ internal DatabasesOperations(SqlManagementClient client) } /// - /// Gets a list of databases in an elastic pool. + /// Gets a list of inaccessible databases in a logical server /// /// /// The NextLink from the previous successful call to List operation. @@ -3836,7 +3709,7 @@ internal DatabasesOperations(SqlManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListByElasticPoolNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListInaccessibleByServerNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (nextPageLink == null) { @@ -3851,7 +3724,7 @@ internal DatabasesOperations(SqlManagementClient client) Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("nextPageLink", nextPageLink); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListByElasticPoolNext", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "ListInaccessibleByServerNext", tracingParameters); } // Construct URL string _url = "{nextLink}"; diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/DatabasesOperationsExtensions.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/DatabasesOperationsExtensions.cs index b4ff8dbd583f..6a948d5dc3ae 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/DatabasesOperationsExtensions.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/DatabasesOperationsExtensions.cs @@ -23,164 +23,6 @@ namespace Microsoft.Azure.Management.Sql /// public static partial class DatabasesOperationsExtensions { - /// - /// Imports a bacpac into a new database. - /// - /// - /// The operations group for this extension method. - /// - /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. - /// - /// - /// The name of the server. - /// - /// - /// The required parameters for importing a Bacpac into a database. - /// - public static ImportExportResponse Import(this IDatabasesOperations operations, string resourceGroupName, string serverName, ImportRequest parameters) - { - return operations.ImportAsync(resourceGroupName, serverName, parameters).GetAwaiter().GetResult(); - } - - /// - /// Imports a bacpac into a new database. - /// - /// - /// The operations group for this extension method. - /// - /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. - /// - /// - /// The name of the server. - /// - /// - /// The required parameters for importing a Bacpac into a database. - /// - /// - /// The cancellation token. - /// - public static async Task ImportAsync(this IDatabasesOperations operations, string resourceGroupName, string serverName, ImportRequest parameters, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ImportWithHttpMessagesAsync(resourceGroupName, serverName, parameters, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// Creates an import operation that imports a bacpac into an existing - /// database. The existing database must be empty. - /// - /// - /// The operations group for this extension method. - /// - /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. - /// - /// - /// The name of the server. - /// - /// - /// The name of the database to import into - /// - /// - /// The required parameters for importing a Bacpac into a database. - /// - public static ImportExportResponse CreateImportOperation(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName, ImportExtensionRequest parameters) - { - return operations.CreateImportOperationAsync(resourceGroupName, serverName, databaseName, parameters).GetAwaiter().GetResult(); - } - - /// - /// Creates an import operation that imports a bacpac into an existing - /// database. The existing database must be empty. - /// - /// - /// The operations group for this extension method. - /// - /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. - /// - /// - /// The name of the server. - /// - /// - /// The name of the database to import into - /// - /// - /// The required parameters for importing a Bacpac into a database. - /// - /// - /// The cancellation token. - /// - public static async Task CreateImportOperationAsync(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName, ImportExtensionRequest parameters, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateImportOperationWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, parameters, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// Exports a database to a bacpac. - /// - /// - /// The operations group for this extension method. - /// - /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. - /// - /// - /// The name of the server. - /// - /// - /// The name of the database to be exported. - /// - /// - /// The required parameters for exporting a database. - /// - public static ImportExportResponse Export(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName, ExportRequest parameters) - { - return operations.ExportAsync(resourceGroupName, serverName, databaseName, parameters).GetAwaiter().GetResult(); - } - - /// - /// Exports a database to a bacpac. - /// - /// - /// The operations group for this extension method. - /// - /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. - /// - /// - /// The name of the server. - /// - /// - /// The name of the database to be exported. - /// - /// - /// The required parameters for exporting a database. - /// - /// - /// The cancellation token. - /// - public static async Task ExportAsync(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName, ExportRequest parameters, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ExportWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, parameters, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - /// /// Returns database metrics. /// @@ -767,60 +609,7 @@ public static void Rename(this IDatabasesOperations operations, string resourceG } /// - /// Failovers a database. - /// - /// - /// The operations group for this extension method. - /// - /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. - /// - /// - /// The name of the server. - /// - /// - /// The name of the database to failover. - /// - /// - /// The type of replica to be failed over. Possible values include: 'Primary', - /// 'ReadableSecondary' - /// - public static void Failover(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName, string replicaType = default(string)) - { - operations.FailoverAsync(resourceGroupName, serverName, databaseName, replicaType).GetAwaiter().GetResult(); - } - - /// - /// Failovers a database. - /// - /// - /// The operations group for this extension method. - /// - /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. - /// - /// - /// The name of the server. - /// - /// - /// The name of the database to failover. - /// - /// - /// The type of replica to be failed over. Possible values include: 'Primary', - /// 'ReadableSecondary' - /// - /// - /// The cancellation token. - /// - public static async Task FailoverAsync(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName, string replicaType = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - (await operations.FailoverWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, replicaType, null, cancellationToken).ConfigureAwait(false)).Dispose(); - } - - /// - /// Imports a bacpac into a new database. + /// Gets a list of inaccessible databases in a logical server /// /// /// The operations group for this extension method. @@ -832,16 +621,13 @@ public static void Rename(this IDatabasesOperations operations, string resourceG /// /// The name of the server. /// - /// - /// The required parameters for importing a Bacpac into a database. - /// - public static ImportExportResponse BeginImport(this IDatabasesOperations operations, string resourceGroupName, string serverName, ImportRequest parameters) + public static IPage ListInaccessibleByServer(this IDatabasesOperations operations, string resourceGroupName, string serverName) { - return operations.BeginImportAsync(resourceGroupName, serverName, parameters).GetAwaiter().GetResult(); + return operations.ListInaccessibleByServerAsync(resourceGroupName, serverName).GetAwaiter().GetResult(); } /// - /// Imports a bacpac into a new database. + /// Gets a list of inaccessible databases in a logical server /// /// /// The operations group for this extension method. @@ -853,23 +639,19 @@ public static ImportExportResponse BeginImport(this IDatabasesOperations operati /// /// The name of the server. /// - /// - /// The required parameters for importing a Bacpac into a database. - /// /// /// The cancellation token. /// - public static async Task BeginImportAsync(this IDatabasesOperations operations, string resourceGroupName, string serverName, ImportRequest parameters, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListInaccessibleByServerAsync(this IDatabasesOperations operations, string resourceGroupName, string serverName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.BeginImportWithHttpMessagesAsync(resourceGroupName, serverName, parameters, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListInaccessibleByServerWithHttpMessagesAsync(resourceGroupName, serverName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Creates an import operation that imports a bacpac into an existing - /// database. The existing database must be empty. + /// Failovers a database. /// /// /// The operations group for this extension method. @@ -882,19 +664,19 @@ public static ImportExportResponse BeginImport(this IDatabasesOperations operati /// The name of the server. /// /// - /// The name of the database to import into + /// The name of the database to failover. /// - /// - /// The required parameters for importing a Bacpac into a database. + /// + /// The type of replica to be failed over. Possible values include: 'Primary', + /// 'ReadableSecondary' /// - public static ImportExportResponse BeginCreateImportOperation(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName, ImportExtensionRequest parameters) + public static void Failover(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName, string replicaType = default(string)) { - return operations.BeginCreateImportOperationAsync(resourceGroupName, serverName, databaseName, parameters).GetAwaiter().GetResult(); + operations.FailoverAsync(resourceGroupName, serverName, databaseName, replicaType).GetAwaiter().GetResult(); } /// - /// Creates an import operation that imports a bacpac into an existing - /// database. The existing database must be empty. + /// Failovers a database. /// /// /// The operations group for this extension method. @@ -907,24 +689,22 @@ public static ImportExportResponse BeginCreateImportOperation(this IDatabasesOpe /// The name of the server. /// /// - /// The name of the database to import into + /// The name of the database to failover. /// - /// - /// The required parameters for importing a Bacpac into a database. + /// + /// The type of replica to be failed over. Possible values include: 'Primary', + /// 'ReadableSecondary' /// /// /// The cancellation token. /// - public static async Task BeginCreateImportOperationAsync(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName, ImportExtensionRequest parameters, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task FailoverAsync(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName, string replicaType = default(string), CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.BeginCreateImportOperationWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, parameters, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } + (await operations.FailoverWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, replicaType, null, cancellationToken).ConfigureAwait(false)).Dispose(); } /// - /// Exports a database to a bacpac. + /// Exports a database. /// /// /// The operations group for this extension method. @@ -937,18 +717,18 @@ public static ImportExportResponse BeginCreateImportOperation(this IDatabasesOpe /// The name of the server. /// /// - /// The name of the database to be exported. + /// The name of the database. /// /// - /// The required parameters for exporting a database. + /// The database export request parameters. /// - public static ImportExportResponse BeginExport(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName, ExportRequest parameters) + public static ImportExportOperationResult Export(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName, ExportDatabaseDefinition parameters) { - return operations.BeginExportAsync(resourceGroupName, serverName, databaseName, parameters).GetAwaiter().GetResult(); + return operations.ExportAsync(resourceGroupName, serverName, databaseName, parameters).GetAwaiter().GetResult(); } /// - /// Exports a database to a bacpac. + /// Exports a database. /// /// /// The operations group for this extension method. @@ -961,17 +741,17 @@ public static ImportExportResponse BeginExport(this IDatabasesOperations operati /// The name of the server. /// /// - /// The name of the database to be exported. + /// The name of the database. /// /// - /// The required parameters for exporting a database. + /// The database export request parameters. /// /// /// The cancellation token. /// - public static async Task BeginExportAsync(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName, ExportRequest parameters, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task ExportAsync(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName, ExportDatabaseDefinition parameters, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.BeginExportWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, parameters, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ExportWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, parameters, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -1324,6 +1104,60 @@ public static void BeginUpgradeDataWarehouse(this IDatabasesOperations operation (await operations.BeginFailoverWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, replicaType, null, cancellationToken).ConfigureAwait(false)).Dispose(); } + /// + /// Exports a database. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database. + /// + /// + /// The database export request parameters. + /// + public static ImportExportOperationResult BeginExport(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName, ExportDatabaseDefinition parameters) + { + return operations.BeginExportAsync(resourceGroupName, serverName, databaseName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Exports a database. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database. + /// + /// + /// The database export request parameters. + /// + /// + /// The cancellation token. + /// + public static async Task BeginExportAsync(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName, ExportDatabaseDefinition parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginExportWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + /// /// Gets a list of databases. /// @@ -1392,5 +1226,39 @@ public static IPage ListByElasticPoolNext(this IDatabasesOperations op } } + /// + /// Gets a list of inaccessible databases in a logical server + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListInaccessibleByServerNext(this IDatabasesOperations operations, string nextPageLink) + { + return operations.ListInaccessibleByServerNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Gets a list of inaccessible databases in a logical server + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListInaccessibleByServerNextAsync(this IDatabasesOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListInaccessibleByServerNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ExtendedDatabaseBlobAuditingPoliciesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ExtendedDatabaseBlobAuditingPoliciesOperations.cs index 1c5ac942cb1f..31b9feff5f68 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ExtendedDatabaseBlobAuditingPoliciesOperations.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ExtendedDatabaseBlobAuditingPoliciesOperations.cs @@ -500,5 +500,382 @@ internal ExtendedDatabaseBlobAuditingPoliciesOperations(SqlManagementClient clie return _result; } + /// + /// Lists extended auditing settings of a database. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListByDatabaseWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (serverName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "serverName"); + } + if (databaseName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "databaseName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + string apiVersion = "2017-03-01-preview"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("serverName", serverName); + tracingParameters.Add("databaseName", databaseName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListByDatabase", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/extendedAuditingSettings").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); + _url = _url.Replace("{databaseName}", System.Uri.EscapeDataString(databaseName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Lists extended auditing settings of a database. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListByDatabaseNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (nextPageLink == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("nextPageLink", nextPageLink); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListByDatabaseNext", tracingParameters); + } + // Construct URL + string _url = "{nextLink}"; + _url = _url.Replace("{nextLink}", nextPageLink); + List _queryParameters = new List(); + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ExtendedDatabaseBlobAuditingPoliciesOperationsExtensions.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ExtendedDatabaseBlobAuditingPoliciesOperationsExtensions.cs index f07be7a5cf22..58645764ac82 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ExtendedDatabaseBlobAuditingPoliciesOperationsExtensions.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ExtendedDatabaseBlobAuditingPoliciesOperationsExtensions.cs @@ -123,5 +123,87 @@ public static ExtendedDatabaseBlobAuditingPolicy CreateOrUpdate(this IExtendedDa } } + /// + /// Lists extended auditing settings of a database. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database. + /// + public static IPage ListByDatabase(this IExtendedDatabaseBlobAuditingPoliciesOperations operations, string resourceGroupName, string serverName, string databaseName) + { + return operations.ListByDatabaseAsync(resourceGroupName, serverName, databaseName).GetAwaiter().GetResult(); + } + + /// + /// Lists extended auditing settings of a database. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByDatabaseAsync(this IExtendedDatabaseBlobAuditingPoliciesOperations operations, string resourceGroupName, string serverName, string databaseName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByDatabaseWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Lists extended auditing settings of a database. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListByDatabaseNext(this IExtendedDatabaseBlobAuditingPoliciesOperations operations, string nextPageLink) + { + return operations.ListByDatabaseNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Lists extended auditing settings of a database. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByDatabaseNextAsync(this IExtendedDatabaseBlobAuditingPoliciesOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByDatabaseNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ExtendedServerBlobAuditingPoliciesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ExtendedServerBlobAuditingPoliciesOperations.cs index 8828d0005573..f82314c69e2e 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ExtendedServerBlobAuditingPoliciesOperations.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ExtendedServerBlobAuditingPoliciesOperations.cs @@ -274,6 +274,201 @@ internal ExtendedServerBlobAuditingPoliciesOperations(SqlManagementClient client return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); } + /// + /// Lists extended auditing settings of a server. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListByServerWithHttpMessagesAsync(string resourceGroupName, string serverName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (serverName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "serverName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + string apiVersion = "2017-03-01-preview"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("serverName", serverName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListByServer", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/extendedAuditingSettings").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + /// /// Creates or updates an extended server's blob auditing policy. /// @@ -490,5 +685,178 @@ internal ExtendedServerBlobAuditingPoliciesOperations(SqlManagementClient client return _result; } + /// + /// Lists extended auditing settings of a server. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListByServerNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (nextPageLink == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("nextPageLink", nextPageLink); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListByServerNext", tracingParameters); + } + // Construct URL + string _url = "{nextLink}"; + _url = _url.Replace("{nextLink}", nextPageLink); + List _queryParameters = new List(); + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ExtendedServerBlobAuditingPoliciesOperationsExtensions.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ExtendedServerBlobAuditingPoliciesOperationsExtensions.cs index 257fcb968361..3d6509c3d1a1 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ExtendedServerBlobAuditingPoliciesOperationsExtensions.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ExtendedServerBlobAuditingPoliciesOperationsExtensions.cs @@ -111,6 +111,48 @@ public static ExtendedServerBlobAuditingPolicy CreateOrUpdate(this IExtendedServ } } + /// + /// Lists extended auditing settings of a server. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + public static IPage ListByServer(this IExtendedServerBlobAuditingPoliciesOperations operations, string resourceGroupName, string serverName) + { + return operations.ListByServerAsync(resourceGroupName, serverName).GetAwaiter().GetResult(); + } + + /// + /// Lists extended auditing settings of a server. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByServerAsync(this IExtendedServerBlobAuditingPoliciesOperations operations, string resourceGroupName, string serverName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByServerWithHttpMessagesAsync(resourceGroupName, serverName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + /// /// Creates or updates an extended server's blob auditing policy. /// @@ -159,5 +201,39 @@ public static ExtendedServerBlobAuditingPolicy BeginCreateOrUpdate(this IExtende } } + /// + /// Lists extended auditing settings of a server. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListByServerNext(this IExtendedServerBlobAuditingPoliciesOperations operations, string nextPageLink) + { + return operations.ListByServerNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Lists extended auditing settings of a server. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByServerNextAsync(this IExtendedServerBlobAuditingPoliciesOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByServerNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ICapabilitiesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ICapabilitiesOperations.cs index 645eee3314c0..e35700693ec1 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ICapabilitiesOperations.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ICapabilitiesOperations.cs @@ -33,7 +33,8 @@ public partial interface ICapabilitiesOperations /// /// If specified, restricts the response to only include the selected /// item. Possible values include: 'supportedEditions', - /// 'supportedElasticPoolEditions', 'supportedManagedInstanceVersions' + /// 'supportedElasticPoolEditions', 'supportedManagedInstanceVersions', + /// 'supportedInstancePoolEditions', 'supportedManagedInstanceEditions' /// /// /// The headers that will be added to request. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IDatabasesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IDatabasesOperations.cs index 289c62ebab5c..5dd990ba07d6 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IDatabasesOperations.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IDatabasesOperations.cs @@ -23,103 +23,6 @@ namespace Microsoft.Azure.Management.Sql /// public partial interface IDatabasesOperations { - /// - /// Imports a bacpac into a new database. - /// - /// - /// The name of the resource group that contains the resource. You can - /// obtain this value from the Azure Resource Manager API or the - /// portal. - /// - /// - /// The name of the server. - /// - /// - /// The required parameters for importing a Bacpac into a database. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - Task> ImportWithHttpMessagesAsync(string resourceGroupName, string serverName, ImportRequest parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - /// - /// Creates an import operation that imports a bacpac into an existing - /// database. The existing database must be empty. - /// - /// - /// The name of the resource group that contains the resource. You can - /// obtain this value from the Azure Resource Manager API or the - /// portal. - /// - /// - /// The name of the server. - /// - /// - /// The name of the database to import into - /// - /// - /// The required parameters for importing a Bacpac into a database. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - Task> CreateImportOperationWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, ImportExtensionRequest parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - /// - /// Exports a database to a bacpac. - /// - /// - /// The name of the resource group that contains the resource. You can - /// obtain this value from the Azure Resource Manager API or the - /// portal. - /// - /// - /// The name of the server. - /// - /// - /// The name of the database to be exported. - /// - /// - /// The required parameters for exporting a database. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - Task> ExportWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, ExportRequest parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Returns database metrics. /// @@ -482,7 +385,7 @@ public partial interface IDatabasesOperations /// Task RenameWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, ResourceMoveDefinition parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Failovers a database. + /// Gets a list of inaccessible databases in a logical server /// /// /// The name of the resource group that contains the resource. You can @@ -492,40 +395,6 @@ public partial interface IDatabasesOperations /// /// The name of the server. /// - /// - /// The name of the database to failover. - /// - /// - /// The type of replica to be failed over. Possible values include: - /// 'Primary', 'ReadableSecondary' - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when a required parameter is null - /// - Task FailoverWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string replicaType = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - /// - /// Imports a bacpac into a new database. - /// - /// - /// The name of the resource group that contains the resource. You can - /// obtain this value from the Azure Resource Manager API or the - /// portal. - /// - /// - /// The name of the server. - /// - /// - /// The required parameters for importing a Bacpac into a database. - /// /// /// The headers that will be added to request. /// @@ -541,10 +410,9 @@ public partial interface IDatabasesOperations /// /// Thrown when a required parameter is null /// - Task> BeginImportWithHttpMessagesAsync(string resourceGroupName, string serverName, ImportRequest parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListInaccessibleByServerWithHttpMessagesAsync(string resourceGroupName, string serverName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Creates an import operation that imports a bacpac into an existing - /// database. The existing database must be empty. + /// Failovers a database. /// /// /// The name of the resource group that contains the resource. You can @@ -555,10 +423,11 @@ public partial interface IDatabasesOperations /// The name of the server. /// /// - /// The name of the database to import into + /// The name of the database to failover. /// - /// - /// The required parameters for importing a Bacpac into a database. + /// + /// The type of replica to be failed over. Possible values include: + /// 'Primary', 'ReadableSecondary' /// /// /// The headers that will be added to request. @@ -569,15 +438,12 @@ public partial interface IDatabasesOperations /// /// Thrown when the operation returned an invalid status code /// - /// - /// Thrown when unable to deserialize the response - /// /// /// Thrown when a required parameter is null /// - Task> BeginCreateImportOperationWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, ImportExtensionRequest parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task FailoverWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string replicaType = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Exports a database to a bacpac. + /// Exports a database. /// /// /// The name of the resource group that contains the resource. You can @@ -588,10 +454,10 @@ public partial interface IDatabasesOperations /// The name of the server. /// /// - /// The name of the database to be exported. + /// The name of the database. /// /// - /// The required parameters for exporting a database. + /// The database export request parameters. /// /// /// The headers that will be added to request. @@ -608,7 +474,7 @@ public partial interface IDatabasesOperations /// /// Thrown when a required parameter is null /// - Task> BeginExportWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, ExportRequest parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> ExportWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, ExportDatabaseDefinition parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Creates a new database or updates an existing database. /// @@ -821,6 +687,39 @@ public partial interface IDatabasesOperations /// Task BeginFailoverWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string replicaType = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// + /// Exports a database. + /// + /// + /// The name of the resource group that contains the resource. You can + /// obtain this value from the Azure Resource Manager API or the + /// portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database. + /// + /// + /// The database export request parameters. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> BeginExportWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, ExportDatabaseDefinition parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// /// Gets a list of databases. /// /// @@ -864,5 +763,27 @@ public partial interface IDatabasesOperations /// Thrown when a required parameter is null /// Task>> ListByElasticPoolNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets a list of inaccessible databases in a logical server + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListInaccessibleByServerNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IExtendedDatabaseBlobAuditingPoliciesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IExtendedDatabaseBlobAuditingPoliciesOperations.cs index 5517ca93c9a7..a98f84875167 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IExtendedDatabaseBlobAuditingPoliciesOperations.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IExtendedDatabaseBlobAuditingPoliciesOperations.cs @@ -86,5 +86,57 @@ public partial interface IExtendedDatabaseBlobAuditingPoliciesOperations /// Thrown when a required parameter is null /// Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, ExtendedDatabaseBlobAuditingPolicy parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Lists extended auditing settings of a database. + /// + /// + /// The name of the resource group that contains the resource. You can + /// obtain this value from the Azure Resource Manager API or the + /// portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListByDatabaseWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Lists extended auditing settings of a database. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListByDatabaseNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IExtendedServerBlobAuditingPoliciesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IExtendedServerBlobAuditingPoliciesOperations.cs index c2117ff6d9f3..5be793c26674 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IExtendedServerBlobAuditingPoliciesOperations.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IExtendedServerBlobAuditingPoliciesOperations.cs @@ -81,6 +81,33 @@ public partial interface IExtendedServerBlobAuditingPoliciesOperations /// Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string serverName, ExtendedServerBlobAuditingPolicy parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// + /// Lists extended auditing settings of a server. + /// + /// + /// The name of the resource group that contains the resource. You can + /// obtain this value from the Azure Resource Manager API or the + /// portal. + /// + /// + /// The name of the server. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListByServerWithHttpMessagesAsync(string resourceGroupName, string serverName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// /// Creates or updates an extended server's blob auditing policy. /// /// @@ -110,5 +137,27 @@ public partial interface IExtendedServerBlobAuditingPoliciesOperations /// Thrown when a required parameter is null /// Task> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string serverName, ExtendedServerBlobAuditingPolicy parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Lists extended auditing settings of a server. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListByServerNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IImportExportOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IImportExportOperations.cs new file mode 100644 index 000000000000..7fe33a73c74d --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IImportExportOperations.cs @@ -0,0 +1,93 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// ImportExportOperations operations. + /// + public partial interface IImportExportOperations + { + /// + /// Imports a bacpac into a new database. + /// + /// + /// The name of the resource group that contains the resource. You can + /// obtain this value from the Azure Resource Manager API or the + /// portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database. + /// + /// + /// The database import request parameters. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> ImportWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, ImportExistingDatabaseDefinition parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Imports a bacpac into a new database. + /// + /// + /// The name of the resource group that contains the resource. You can + /// obtain this value from the Azure Resource Manager API or the + /// portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database. + /// + /// + /// The database import request parameters. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> BeginImportWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, ImportExistingDatabaseDefinition parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IManagedDatabaseRestoreDetailsOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IManagedDatabaseRestoreDetailsOperations.cs index 3c30a767bee9..ae49842a72f4 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IManagedDatabaseRestoreDetailsOperations.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IManagedDatabaseRestoreDetailsOperations.cs @@ -27,9 +27,7 @@ public partial interface IManagedDatabaseRestoreDetailsOperations /// Gets managed database restore details. /// /// - /// The name of the resource group that contains the resource. You can - /// obtain this value from the Azure Resource Manager API or the - /// portal. + /// The name of the resource group. The name is case insensitive. /// /// /// The name of the managed instance. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IManagedDatabasesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IManagedDatabasesOperations.cs index 1acfed0f05df..29537446582d 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IManagedDatabasesOperations.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IManagedDatabasesOperations.cs @@ -27,9 +27,7 @@ public partial interface IManagedDatabasesOperations /// Gets a list of managed databases. /// /// - /// The name of the resource group that contains the resource. You can - /// obtain this value from the Azure Resource Manager API or the - /// portal. + /// The name of the resource group. The name is case insensitive. /// /// /// The name of the managed instance. @@ -54,9 +52,7 @@ public partial interface IManagedDatabasesOperations /// Gets a managed database. /// /// - /// The name of the resource group that contains the resource. You can - /// obtain this value from the Azure Resource Manager API or the - /// portal. + /// The name of the resource group. The name is case insensitive. /// /// /// The name of the managed instance. @@ -84,9 +80,7 @@ public partial interface IManagedDatabasesOperations /// Creates a new database or updates an existing database. /// /// - /// The name of the resource group that contains the resource. You can - /// obtain this value from the Azure Resource Manager API or the - /// portal. + /// The name of the resource group. The name is case insensitive. /// /// /// The name of the managed instance. @@ -117,9 +111,7 @@ public partial interface IManagedDatabasesOperations /// Deletes a managed database. /// /// - /// The name of the resource group that contains the resource. You can - /// obtain this value from the Azure Resource Manager API or the - /// portal. + /// The name of the resource group. The name is case insensitive. /// /// /// The name of the managed instance. @@ -144,9 +136,7 @@ public partial interface IManagedDatabasesOperations /// Updates an existing database. /// /// - /// The name of the resource group that contains the resource. You can - /// obtain this value from the Azure Resource Manager API or the - /// portal. + /// The name of the resource group. The name is case insensitive. /// /// /// The name of the managed instance. @@ -174,12 +164,35 @@ public partial interface IManagedDatabasesOperations /// Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, string databaseName, ManagedDatabaseUpdate parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// + /// Gets a list of inaccessible managed databases in a managed instance + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the managed instance. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListInaccessibleByInstanceWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// /// Completes the restore operation on a managed database. /// /// - /// The name of the resource group that contains the resource. You can - /// obtain this value from the Azure Resource Manager API or the - /// portal. + /// The name of the resource group. The name is case insensitive. /// /// /// The name of the managed instance. @@ -207,9 +220,7 @@ public partial interface IManagedDatabasesOperations /// Creates a new database or updates an existing database. /// /// - /// The name of the resource group that contains the resource. You can - /// obtain this value from the Azure Resource Manager API or the - /// portal. + /// The name of the resource group. The name is case insensitive. /// /// /// The name of the managed instance. @@ -240,9 +251,7 @@ public partial interface IManagedDatabasesOperations /// Deletes a managed database. /// /// - /// The name of the resource group that contains the resource. You can - /// obtain this value from the Azure Resource Manager API or the - /// portal. + /// The name of the resource group. The name is case insensitive. /// /// /// The name of the managed instance. @@ -267,9 +276,7 @@ public partial interface IManagedDatabasesOperations /// Updates an existing database. /// /// - /// The name of the resource group that contains the resource. You can - /// obtain this value from the Azure Resource Manager API or the - /// portal. + /// The name of the resource group. The name is case insensitive. /// /// /// The name of the managed instance. @@ -300,9 +307,7 @@ public partial interface IManagedDatabasesOperations /// Completes the restore operation on a managed database. /// /// - /// The name of the resource group that contains the resource. You can - /// obtain this value from the Azure Resource Manager API or the - /// portal. + /// The name of the resource group. The name is case insensitive. /// /// /// The name of the managed instance. @@ -348,5 +353,27 @@ public partial interface IManagedDatabasesOperations /// Thrown when a required parameter is null /// Task>> ListByInstanceNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets a list of inaccessible managed databases in a managed instance + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListInaccessibleByInstanceNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IManagedInstancesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IManagedInstancesOperations.cs index 7b27b7f78d56..c650c97d0dd5 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IManagedInstancesOperations.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IManagedInstancesOperations.cs @@ -24,15 +24,17 @@ namespace Microsoft.Azure.Management.Sql public partial interface IManagedInstancesOperations { /// - /// Gets a list of all managed instances in an instance pool. + /// Failovers a managed instance. /// /// - /// The name of the resource group that contains the resource. You can - /// obtain this value from the Azure Resource Manager API or the - /// portal. + /// The name of the resource group. The name is case insensitive. /// - /// - /// The instance pool name. + /// + /// The name of the managed instance. + /// + /// + /// The type of replica to be failed over. Possible values include: + /// 'Primary', 'ReadableSecondary' /// /// /// The headers that will be added to request. @@ -43,13 +45,10 @@ public partial interface IManagedInstancesOperations /// /// Thrown when the operation returned an invalid status code /// - /// - /// Thrown when unable to deserialize the response - /// /// /// Thrown when a required parameter is null /// - Task>> ListByInstancePoolWithHttpMessagesAsync(string resourceGroupName, string instancePoolName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task FailoverWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, string replicaType = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Gets a list of managed instances in a resource group. /// @@ -186,6 +185,33 @@ public partial interface IManagedInstancesOperations /// Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, ManagedInstanceUpdate parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// + /// Gets a list of all managed instances in an instance pool. + /// + /// + /// The name of the resource group that contains the resource. You can + /// obtain this value from the Azure Resource Manager API or the + /// portal. + /// + /// + /// The instance pool name. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListByInstancePoolWithHttpMessagesAsync(string resourceGroupName, string instancePoolName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// /// Gets a list of all managed instances in the subscription. /// /// @@ -229,7 +255,7 @@ public partial interface IManagedInstancesOperations /// /// Thrown when a required parameter is null /// - Task FailoverWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, string replicaType = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task BeginFailoverWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, string replicaType = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Creates or updates a managed instance. /// @@ -314,34 +340,8 @@ public partial interface IManagedInstancesOperations /// Thrown when a required parameter is null /// Task> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, ManagedInstanceUpdate parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - /// - /// Failovers a managed instance. - /// - /// - /// The name of the resource group. The name is case insensitive. - /// - /// - /// The name of the managed instance. - /// - /// - /// The type of replica to be failed over. Possible values include: - /// 'Primary', 'ReadableSecondary' - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when a required parameter is null - /// - Task BeginFailoverWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, string replicaType = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Gets a list of all managed instances in an instance pool. + /// Gets a list of managed instances in a resource group. /// /// /// The NextLink from the previous successful call to List operation. @@ -361,9 +361,9 @@ public partial interface IManagedInstancesOperations /// /// Thrown when a required parameter is null /// - Task>> ListByInstancePoolNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListByResourceGroupNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Gets a list of managed instances in a resource group. + /// Gets a list of all managed instances in an instance pool. /// /// /// The NextLink from the previous successful call to List operation. @@ -383,7 +383,7 @@ public partial interface IManagedInstancesOperations /// /// Thrown when a required parameter is null /// - Task>> ListByResourceGroupNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListByInstancePoolNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Gets a list of all managed instances in the subscription. /// diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IReplicationLinksOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IReplicationLinksOperations.cs index 7d12e91bed9b..7948b2f9f559 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IReplicationLinksOperations.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IReplicationLinksOperations.cs @@ -154,6 +154,40 @@ public partial interface IReplicationLinksOperations /// Task FailoverAllowDataLossWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string linkId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// + /// Deletes a database replication link in forced or friendly way. + /// + /// + /// The name of the resource group that contains the resource. You can + /// obtain this value from the Azure Resource Manager API or the + /// portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database that has the replication link to be failed + /// over. + /// + /// + /// The ID of the replication link to be failed over. + /// + /// + /// The required parameters for unlinking replication link. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + Task UnlinkWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string linkId, UnlinkParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// /// Lists a database's replication links. /// /// @@ -248,5 +282,39 @@ public partial interface IReplicationLinksOperations /// Thrown when a required parameter is null /// Task BeginFailoverAllowDataLossWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string linkId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deletes a database replication link in forced or friendly way. + /// + /// + /// The name of the resource group that contains the resource. You can + /// obtain this value from the Azure Resource Manager API or the + /// portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database that has the replication link to be failed + /// over. + /// + /// + /// The ID of the replication link to be failed over. + /// + /// + /// The required parameters for unlinking replication link. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + Task BeginUnlinkWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string linkId, UnlinkParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IServersOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IServersOperations.cs index 8d91a80b7962..591f10e968ab 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IServersOperations.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IServersOperations.cs @@ -201,6 +201,36 @@ public partial interface IServersOperations /// Task> CheckNameAvailabilityWithHttpMessagesAsync(CheckNameAvailabilityRequest parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// + /// Imports a bacpac into a new database. + /// + /// + /// The name of the resource group that contains the resource. You can + /// obtain this value from the Azure Resource Manager API or the + /// portal. + /// + /// + /// The name of the server. + /// + /// + /// The database import request parameters. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> ImportDatabaseWithHttpMessagesAsync(string resourceGroupName, string serverName, ImportNewDatabaseDefinition parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// /// Creates or updates a server. /// /// @@ -285,6 +315,36 @@ public partial interface IServersOperations /// Task> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string serverName, ServerUpdate parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// + /// Imports a bacpac into a new database. + /// + /// + /// The name of the resource group that contains the resource. You can + /// obtain this value from the Azure Resource Manager API or the + /// portal. + /// + /// + /// The name of the server. + /// + /// + /// The database import request parameters. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> BeginImportDatabaseWithHttpMessagesAsync(string resourceGroupName, string serverName, ImportNewDatabaseDefinition parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// /// Gets a list of servers in a resource groups. /// /// diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ISqlManagementClient.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ISqlManagementClient.cs index 5eb4da34edc5..0ee653cdffc0 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ISqlManagementClient.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ISqlManagementClient.cs @@ -202,16 +202,6 @@ public partial interface ISqlManagementClient : System.IDisposable /// ISyncAgentsOperations SyncAgents { get; } - /// - /// Gets the ISyncGroupsOperations. - /// - ISyncGroupsOperations SyncGroups { get; } - - /// - /// Gets the ISyncMembersOperations. - /// - ISyncMembersOperations SyncMembers { get; } - /// /// Gets the ISubscriptionUsagesOperations. /// @@ -402,11 +392,6 @@ public partial interface ISqlManagementClient : System.IDisposable /// IInstanceFailoverGroupsOperations InstanceFailoverGroups { get; } - /// - /// Gets the IBackupShortTermRetentionPoliciesOperations. - /// - IBackupShortTermRetentionPoliciesOperations BackupShortTermRetentionPolicies { get; } - /// /// Gets the ITdeCertificatesOperations. /// @@ -457,11 +442,6 @@ public partial interface ISqlManagementClient : System.IDisposable /// IUsagesOperations Usages { get; } - /// - /// Gets the IManagedInstancesOperations. - /// - IManagedInstancesOperations ManagedInstances { get; } - /// /// Gets the IPrivateEndpointConnectionsOperations. /// @@ -492,6 +472,46 @@ public partial interface ISqlManagementClient : System.IDisposable /// IManagedInstanceLongTermRetentionPoliciesOperations ManagedInstanceLongTermRetentionPolicies { get; } + /// + /// Gets the IWorkloadGroupsOperations. + /// + IWorkloadGroupsOperations WorkloadGroups { get; } + + /// + /// Gets the IWorkloadClassifiersOperations. + /// + IWorkloadClassifiersOperations WorkloadClassifiers { get; } + + /// + /// Gets the IManagedInstanceOperations. + /// + IManagedInstanceOperations ManagedInstanceOperations { get; } + + /// + /// Gets the IServerAzureADAdministratorsOperations. + /// + IServerAzureADAdministratorsOperations ServerAzureADAdministrators { get; } + + /// + /// Gets the ISyncGroupsOperations. + /// + ISyncGroupsOperations SyncGroups { get; } + + /// + /// Gets the ISyncMembersOperations. + /// + ISyncMembersOperations SyncMembers { get; } + + /// + /// Gets the IManagedInstancesOperations. + /// + IManagedInstancesOperations ManagedInstances { get; } + + /// + /// Gets the IBackupShortTermRetentionPoliciesOperations. + /// + IBackupShortTermRetentionPoliciesOperations BackupShortTermRetentionPolicies { get; } + /// /// Gets the IManagedDatabaseRestoreDetailsOperations. /// @@ -503,14 +523,14 @@ public partial interface ISqlManagementClient : System.IDisposable IManagedDatabasesOperations ManagedDatabases { get; } /// - /// Gets the IServerAzureADAdministratorsOperations. + /// Gets the IServerAzureADOnlyAuthenticationsOperations. /// - IServerAzureADAdministratorsOperations ServerAzureADAdministrators { get; } + IServerAzureADOnlyAuthenticationsOperations ServerAzureADOnlyAuthentications { get; } /// - /// Gets the IManagedInstanceOperations. + /// Gets the IImportExportOperations. /// - IManagedInstanceOperations ManagedInstanceOperations { get; } + IImportExportOperations ImportExport { get; } /// /// Gets the IManagedInstanceAzureADOnlyAuthenticationsOperations. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IWorkloadClassifiersOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IWorkloadClassifiersOperations.cs new file mode 100644 index 000000000000..c0e39d85d163 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IWorkloadClassifiersOperations.cs @@ -0,0 +1,268 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// WorkloadClassifiersOperations operations. + /// + public partial interface IWorkloadClassifiersOperations + { + /// + /// Gets a workload classifier + /// + /// + /// The name of the resource group that contains the resource. You can + /// obtain this value from the Azure Resource Manager API or the + /// portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database. + /// + /// + /// The name of the workload group from which to receive the classifier + /// from. + /// + /// + /// The name of the workload classifier. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> GetWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string workloadGroupName, string workloadClassifierName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Creates or updates a workload classifier. + /// + /// + /// The name of the resource group that contains the resource. You can + /// obtain this value from the Azure Resource Manager API or the + /// portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database. + /// + /// + /// The name of the workload group from which to receive the classifier + /// from. + /// + /// + /// The name of the workload classifier to create/update. + /// + /// + /// The properties of the workload classifier. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string workloadGroupName, string workloadClassifierName, WorkloadClassifier parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deletes a workload classifier. + /// + /// + /// The name of the resource group that contains the resource. You can + /// obtain this value from the Azure Resource Manager API or the + /// portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database. + /// + /// + /// The name of the workload group from which to receive the classifier + /// from. + /// + /// + /// The name of the workload classifier to delete. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + Task DeleteWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string workloadGroupName, string workloadClassifierName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets the list of workload classifiers for a workload group + /// + /// + /// The name of the resource group that contains the resource. You can + /// obtain this value from the Azure Resource Manager API or the + /// portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database. + /// + /// + /// The name of the workload group from which to receive the + /// classifiers from. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListByWorkloadGroupWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string workloadGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Creates or updates a workload classifier. + /// + /// + /// The name of the resource group that contains the resource. You can + /// obtain this value from the Azure Resource Manager API or the + /// portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database. + /// + /// + /// The name of the workload group from which to receive the classifier + /// from. + /// + /// + /// The name of the workload classifier to create/update. + /// + /// + /// The properties of the workload classifier. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string workloadGroupName, string workloadClassifierName, WorkloadClassifier parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deletes a workload classifier. + /// + /// + /// The name of the resource group that contains the resource. You can + /// obtain this value from the Azure Resource Manager API or the + /// portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database. + /// + /// + /// The name of the workload group from which to receive the classifier + /// from. + /// + /// + /// The name of the workload classifier to delete. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string workloadGroupName, string workloadClassifierName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets the list of workload classifiers for a workload group + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListByWorkloadGroupNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IWorkloadGroupsOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IWorkloadGroupsOperations.cs new file mode 100644 index 000000000000..9c2dbda017d9 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IWorkloadGroupsOperations.cs @@ -0,0 +1,244 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// WorkloadGroupsOperations operations. + /// + public partial interface IWorkloadGroupsOperations + { + /// + /// Gets a workload group + /// + /// + /// The name of the resource group that contains the resource. You can + /// obtain this value from the Azure Resource Manager API or the + /// portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database. + /// + /// + /// The name of the workload group. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> GetWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string workloadGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Creates or updates a workload group. + /// + /// + /// The name of the resource group that contains the resource. You can + /// obtain this value from the Azure Resource Manager API or the + /// portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database. + /// + /// + /// The name of the workload group. + /// + /// + /// The requested workload group state. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string workloadGroupName, WorkloadGroup parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deletes a workload group. + /// + /// + /// The name of the resource group that contains the resource. You can + /// obtain this value from the Azure Resource Manager API or the + /// portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database. + /// + /// + /// The name of the workload group to delete. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + Task DeleteWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string workloadGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets the list of workload groups + /// + /// + /// The name of the resource group that contains the resource. You can + /// obtain this value from the Azure Resource Manager API or the + /// portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListByDatabaseWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Creates or updates a workload group. + /// + /// + /// The name of the resource group that contains the resource. You can + /// obtain this value from the Azure Resource Manager API or the + /// portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database. + /// + /// + /// The name of the workload group. + /// + /// + /// The requested workload group state. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string workloadGroupName, WorkloadGroup parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deletes a workload group. + /// + /// + /// The name of the resource group that contains the resource. You can + /// obtain this value from the Azure Resource Manager API or the + /// portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database. + /// + /// + /// The name of the workload group to delete. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string workloadGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets the list of workload groups + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListByDatabaseNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ImportExportOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ImportExportOperations.cs new file mode 100644 index 000000000000..669d67e32d6b --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ImportExportOperations.cs @@ -0,0 +1,305 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + using System.Net; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + + /// + /// ImportExportOperations operations. + /// + internal partial class ImportExportOperations : IServiceOperations, IImportExportOperations + { + /// + /// Initializes a new instance of the ImportExportOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal ImportExportOperations(SqlManagementClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the SqlManagementClient + /// + public SqlManagementClient Client { get; private set; } + + /// + /// Imports a bacpac into a new database. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database. + /// + /// + /// The database import request parameters. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> ImportWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, ImportExistingDatabaseDefinition parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginImportWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, parameters, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Imports a bacpac into a new database. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database. + /// + /// + /// The database import request parameters. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> BeginImportWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, ImportExistingDatabaseDefinition parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (serverName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "serverName"); + } + if (databaseName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "databaseName"); + } + if (parameters == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); + } + if (parameters != null) + { + parameters.Validate(); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + string apiVersion = "2020-02-02-preview"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("serverName", serverName); + tracingParameters.Add("databaseName", databaseName); + tracingParameters.Add("parameters", parameters); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginImport", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/import").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); + _url = _url.Replace("{databaseName}", System.Uri.EscapeDataString(databaseName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(parameters != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 202) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ImportExportOperationsExtensions.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ImportExportOperationsExtensions.cs new file mode 100644 index 000000000000..256cedb55dd0 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ImportExportOperationsExtensions.cs @@ -0,0 +1,133 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for ImportExportOperations. + /// + public static partial class ImportExportOperationsExtensions + { + /// + /// Imports a bacpac into a new database. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database. + /// + /// + /// The database import request parameters. + /// + public static ImportExportOperationResult Import(this IImportExportOperations operations, string resourceGroupName, string serverName, string databaseName, ImportExistingDatabaseDefinition parameters) + { + return operations.ImportAsync(resourceGroupName, serverName, databaseName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Imports a bacpac into a new database. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database. + /// + /// + /// The database import request parameters. + /// + /// + /// The cancellation token. + /// + public static async Task ImportAsync(this IImportExportOperations operations, string resourceGroupName, string serverName, string databaseName, ImportExistingDatabaseDefinition parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ImportWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Imports a bacpac into a new database. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database. + /// + /// + /// The database import request parameters. + /// + public static ImportExportOperationResult BeginImport(this IImportExportOperations operations, string resourceGroupName, string serverName, string databaseName, ImportExistingDatabaseDefinition parameters) + { + return operations.BeginImportAsync(resourceGroupName, serverName, databaseName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Imports a bacpac into a new database. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database. + /// + /// + /// The database import request parameters. + /// + /// + /// The cancellation token. + /// + public static async Task BeginImportAsync(this IImportExportOperations operations, string resourceGroupName, string serverName, string databaseName, ImportExistingDatabaseDefinition parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginImportWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedDatabaseRestoreDetailsOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedDatabaseRestoreDetailsOperations.cs index fef323df26d5..d71aeb23cbce 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedDatabaseRestoreDetailsOperations.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedDatabaseRestoreDetailsOperations.cs @@ -54,8 +54,7 @@ internal ManagedDatabaseRestoreDetailsOperations(SqlManagementClient client) /// Gets managed database restore details. /// /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. + /// The name of the resource group. The name is case insensitive. /// /// /// The name of the managed instance. @@ -90,6 +89,21 @@ internal ManagedDatabaseRestoreDetailsOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } if (managedInstanceName == null) { throw new ValidationException(ValidationRules.CannotBeNull, "managedInstanceName"); @@ -103,7 +117,7 @@ internal ManagedDatabaseRestoreDetailsOperations(SqlManagementClient client) throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } string restoreDetailsName = "Default"; - string apiVersion = "2019-06-01-preview"; + string apiVersion = "2020-02-02-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedDatabaseRestoreDetailsOperationsExtensions.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedDatabaseRestoreDetailsOperationsExtensions.cs index 238d1ba21e7a..f2278f12424e 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedDatabaseRestoreDetailsOperationsExtensions.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedDatabaseRestoreDetailsOperationsExtensions.cs @@ -28,8 +28,7 @@ public static partial class ManagedDatabaseRestoreDetailsOperationsExtensions /// The operations group for this extension method. /// /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. + /// The name of the resource group. The name is case insensitive. /// /// /// The name of the managed instance. @@ -49,8 +48,7 @@ public static ManagedDatabaseRestoreDetailsResult Get(this IManagedDatabaseResto /// The operations group for this extension method. /// /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. + /// The name of the resource group. The name is case insensitive. /// /// /// The name of the managed instance. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedDatabasesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedDatabasesOperations.cs index ecc653d66f3f..6497306dd8b8 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedDatabasesOperations.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedDatabasesOperations.cs @@ -54,8 +54,7 @@ internal ManagedDatabasesOperations(SqlManagementClient client) /// Gets a list of managed databases. /// /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. + /// The name of the resource group. The name is case insensitive. /// /// /// The name of the managed instance. @@ -87,6 +86,21 @@ internal ManagedDatabasesOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } if (managedInstanceName == null) { throw new ValidationException(ValidationRules.CannotBeNull, "managedInstanceName"); @@ -95,7 +109,7 @@ internal ManagedDatabasesOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01-preview"; + string apiVersion = "2020-02-02-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -146,7 +160,7 @@ internal ManagedDatabasesOperations(SqlManagementClient client) if (customHeaders != null) { - foreach (var _header in customHeaders) + foreach(var _header in customHeaders) { if (_httpRequest.Headers.Contains(_header.Key)) { @@ -184,7 +198,7 @@ internal ManagedDatabasesOperations(SqlManagementClient client) try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { ex = new CloudException(_errorBody.Message); @@ -249,8 +263,7 @@ internal ManagedDatabasesOperations(SqlManagementClient client) /// Gets a managed database. /// /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. + /// The name of the resource group. The name is case insensitive. /// /// /// The name of the managed instance. @@ -285,6 +298,21 @@ internal ManagedDatabasesOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } if (managedInstanceName == null) { throw new ValidationException(ValidationRules.CannotBeNull, "managedInstanceName"); @@ -297,7 +325,7 @@ internal ManagedDatabasesOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01-preview"; + string apiVersion = "2020-02-02-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -350,7 +378,7 @@ internal ManagedDatabasesOperations(SqlManagementClient client) if (customHeaders != null) { - foreach (var _header in customHeaders) + foreach(var _header in customHeaders) { if (_httpRequest.Headers.Contains(_header.Key)) { @@ -388,7 +416,7 @@ internal ManagedDatabasesOperations(SqlManagementClient client) try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { ex = new CloudException(_errorBody.Message); @@ -453,8 +481,7 @@ internal ManagedDatabasesOperations(SqlManagementClient client) /// Creates a new database or updates an existing database. /// /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. + /// The name of the resource group. The name is case insensitive. /// /// /// The name of the managed instance. @@ -482,8 +509,7 @@ internal ManagedDatabasesOperations(SqlManagementClient client) /// Deletes a managed database. /// /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. + /// The name of the resource group. The name is case insensitive. /// /// /// The name of the managed instance. @@ -508,8 +534,7 @@ internal ManagedDatabasesOperations(SqlManagementClient client) /// Updates an existing database. /// /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. + /// The name of the resource group. The name is case insensitive. /// /// /// The name of the managed instance. @@ -533,12 +558,220 @@ internal ManagedDatabasesOperations(SqlManagementClient client) return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); } + /// + /// Gets a list of inaccessible managed databases in a managed instance + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the managed instance. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListInaccessibleByInstanceWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (managedInstanceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "managedInstanceName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + string apiVersion = "2020-02-02-preview"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("managedInstanceName", managedInstanceName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListInaccessibleByInstance", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/inaccessibleManagedDatabases").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{managedInstanceName}", System.Uri.EscapeDataString(managedInstanceName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + /// /// Completes the restore operation on a managed database. /// /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. + /// The name of the resource group. The name is case insensitive. /// /// /// The name of the managed instance. @@ -566,8 +799,7 @@ internal ManagedDatabasesOperations(SqlManagementClient client) /// Creates a new database or updates an existing database. /// /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. + /// The name of the resource group. The name is case insensitive. /// /// /// The name of the managed instance. @@ -605,6 +837,21 @@ internal ManagedDatabasesOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } if (managedInstanceName == null) { throw new ValidationException(ValidationRules.CannotBeNull, "managedInstanceName"); @@ -625,7 +872,7 @@ internal ManagedDatabasesOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01-preview"; + string apiVersion = "2020-02-02-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -679,7 +926,7 @@ internal ManagedDatabasesOperations(SqlManagementClient client) if (customHeaders != null) { - foreach (var _header in customHeaders) + foreach(var _header in customHeaders) { if (_httpRequest.Headers.Contains(_header.Key)) { @@ -691,11 +938,11 @@ internal ManagedDatabasesOperations(SqlManagementClient client) // Serialize Request string _requestContent = null; - if (parameters != null) + if(parameters != null) { _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, Client.SerializationSettings); _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); } // Set Credentials if (Client.Credentials != null) @@ -723,7 +970,7 @@ internal ManagedDatabasesOperations(SqlManagementClient client) try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { ex = new CloudException(_errorBody.Message); @@ -806,8 +1053,7 @@ internal ManagedDatabasesOperations(SqlManagementClient client) /// Deletes a managed database. /// /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. + /// The name of the resource group. The name is case insensitive. /// /// /// The name of the managed instance. @@ -839,6 +1085,21 @@ internal ManagedDatabasesOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } if (managedInstanceName == null) { throw new ValidationException(ValidationRules.CannotBeNull, "managedInstanceName"); @@ -851,7 +1112,7 @@ internal ManagedDatabasesOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01-preview"; + string apiVersion = "2020-02-02-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -904,7 +1165,7 @@ internal ManagedDatabasesOperations(SqlManagementClient client) if (customHeaders != null) { - foreach (var _header in customHeaders) + foreach(var _header in customHeaders) { if (_httpRequest.Headers.Contains(_header.Key)) { @@ -942,7 +1203,7 @@ internal ManagedDatabasesOperations(SqlManagementClient client) try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { ex = new CloudException(_errorBody.Message); @@ -989,8 +1250,7 @@ internal ManagedDatabasesOperations(SqlManagementClient client) /// Updates an existing database. /// /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. + /// The name of the resource group. The name is case insensitive. /// /// /// The name of the managed instance. @@ -1028,6 +1288,21 @@ internal ManagedDatabasesOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } if (managedInstanceName == null) { throw new ValidationException(ValidationRules.CannotBeNull, "managedInstanceName"); @@ -1044,7 +1319,7 @@ internal ManagedDatabasesOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01-preview"; + string apiVersion = "2020-02-02-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1098,7 +1373,7 @@ internal ManagedDatabasesOperations(SqlManagementClient client) if (customHeaders != null) { - foreach (var _header in customHeaders) + foreach(var _header in customHeaders) { if (_httpRequest.Headers.Contains(_header.Key)) { @@ -1110,11 +1385,11 @@ internal ManagedDatabasesOperations(SqlManagementClient client) // Serialize Request string _requestContent = null; - if (parameters != null) + if(parameters != null) { _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, Client.SerializationSettings); _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); } // Set Credentials if (Client.Credentials != null) @@ -1142,7 +1417,7 @@ internal ManagedDatabasesOperations(SqlManagementClient client) try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { ex = new CloudException(_errorBody.Message); @@ -1207,8 +1482,7 @@ internal ManagedDatabasesOperations(SqlManagementClient client) /// Completes the restore operation on a managed database. /// /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. + /// The name of the resource group. The name is case insensitive. /// /// /// The name of the managed instance. @@ -1243,6 +1517,21 @@ internal ManagedDatabasesOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } if (managedInstanceName == null) { throw new ValidationException(ValidationRules.CannotBeNull, "managedInstanceName"); @@ -1263,7 +1552,7 @@ internal ManagedDatabasesOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01-preview"; + string apiVersion = "2020-02-02-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1317,7 +1606,7 @@ internal ManagedDatabasesOperations(SqlManagementClient client) if (customHeaders != null) { - foreach (var _header in customHeaders) + foreach(var _header in customHeaders) { if (_httpRequest.Headers.Contains(_header.Key)) { @@ -1329,11 +1618,11 @@ internal ManagedDatabasesOperations(SqlManagementClient client) // Serialize Request string _requestContent = null; - if (parameters != null) + if(parameters != null) { _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, Client.SerializationSettings); _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); } // Set Credentials if (Client.Credentials != null) @@ -1361,7 +1650,7 @@ internal ManagedDatabasesOperations(SqlManagementClient client) try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { ex = new CloudException(_errorBody.Message); @@ -1478,7 +1767,180 @@ internal ManagedDatabasesOperations(SqlManagementClient client) if (customHeaders != null) { - foreach (var _header in customHeaders) + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Gets a list of inaccessible managed databases in a managed instance + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListInaccessibleByInstanceNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (nextPageLink == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("nextPageLink", nextPageLink); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListInaccessibleByInstanceNext", tracingParameters); + } + // Construct URL + string _url = "{nextLink}"; + _url = _url.Replace("{nextLink}", nextPageLink); + List _queryParameters = new List(); + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) { if (_httpRequest.Headers.Contains(_header.Key)) { @@ -1516,7 +1978,7 @@ internal ManagedDatabasesOperations(SqlManagementClient client) try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { ex = new CloudException(_errorBody.Message); @@ -1578,4 +2040,4 @@ internal ManagedDatabasesOperations(SqlManagementClient client) } } -} \ No newline at end of file +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedDatabasesOperationsExtensions.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedDatabasesOperationsExtensions.cs index a4e4e4af9ac8..5dbeea1e0f01 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedDatabasesOperationsExtensions.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedDatabasesOperationsExtensions.cs @@ -28,8 +28,7 @@ public static partial class ManagedDatabasesOperationsExtensions /// The operations group for this extension method. /// /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. + /// The name of the resource group. The name is case insensitive. /// /// /// The name of the managed instance. @@ -46,8 +45,7 @@ public static IPage ListByInstance(this IManagedDatabasesOperat /// The operations group for this extension method. /// /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. + /// The name of the resource group. The name is case insensitive. /// /// /// The name of the managed instance. @@ -70,8 +68,7 @@ public static IPage ListByInstance(this IManagedDatabasesOperat /// The operations group for this extension method. /// /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. + /// The name of the resource group. The name is case insensitive. /// /// /// The name of the managed instance. @@ -91,8 +88,7 @@ public static ManagedDatabase Get(this IManagedDatabasesOperations operations, s /// The operations group for this extension method. /// /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. + /// The name of the resource group. The name is case insensitive. /// /// /// The name of the managed instance. @@ -118,8 +114,7 @@ public static ManagedDatabase Get(this IManagedDatabasesOperations operations, s /// The operations group for this extension method. /// /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. + /// The name of the resource group. The name is case insensitive. /// /// /// The name of the managed instance. @@ -142,8 +137,7 @@ public static ManagedDatabase CreateOrUpdate(this IManagedDatabasesOperations op /// The operations group for this extension method. /// /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. + /// The name of the resource group. The name is case insensitive. /// /// /// The name of the managed instance. @@ -172,8 +166,7 @@ public static ManagedDatabase CreateOrUpdate(this IManagedDatabasesOperations op /// The operations group for this extension method. /// /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. + /// The name of the resource group. The name is case insensitive. /// /// /// The name of the managed instance. @@ -193,8 +186,7 @@ public static void Delete(this IManagedDatabasesOperations operations, string re /// The operations group for this extension method. /// /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. + /// The name of the resource group. The name is case insensitive. /// /// /// The name of the managed instance. @@ -217,8 +209,7 @@ public static void Delete(this IManagedDatabasesOperations operations, string re /// The operations group for this extension method. /// /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. + /// The name of the resource group. The name is case insensitive. /// /// /// The name of the managed instance. @@ -241,8 +232,7 @@ public static ManagedDatabase Update(this IManagedDatabasesOperations operations /// The operations group for this extension method. /// /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. + /// The name of the resource group. The name is case insensitive. /// /// /// The name of the managed instance. @@ -264,6 +254,46 @@ public static ManagedDatabase Update(this IManagedDatabasesOperations operations } } + /// + /// Gets a list of inaccessible managed databases in a managed instance + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the managed instance. + /// + public static IPage ListInaccessibleByInstance(this IManagedDatabasesOperations operations, string resourceGroupName, string managedInstanceName) + { + return operations.ListInaccessibleByInstanceAsync(resourceGroupName, managedInstanceName).GetAwaiter().GetResult(); + } + + /// + /// Gets a list of inaccessible managed databases in a managed instance + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the managed instance. + /// + /// + /// The cancellation token. + /// + public static async Task> ListInaccessibleByInstanceAsync(this IManagedDatabasesOperations operations, string resourceGroupName, string managedInstanceName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListInaccessibleByInstanceWithHttpMessagesAsync(resourceGroupName, managedInstanceName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + /// /// Completes the restore operation on a managed database. /// @@ -271,8 +301,7 @@ public static ManagedDatabase Update(this IManagedDatabasesOperations operations /// The operations group for this extension method. /// /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. + /// The name of the resource group. The name is case insensitive. /// /// /// The name of the managed instance. @@ -295,8 +324,7 @@ public static void CompleteRestore(this IManagedDatabasesOperations operations, /// The operations group for this extension method. /// /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. + /// The name of the resource group. The name is case insensitive. /// /// /// The name of the managed instance. @@ -322,8 +350,7 @@ public static void CompleteRestore(this IManagedDatabasesOperations operations, /// The operations group for this extension method. /// /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. + /// The name of the resource group. The name is case insensitive. /// /// /// The name of the managed instance. @@ -346,8 +373,7 @@ public static ManagedDatabase BeginCreateOrUpdate(this IManagedDatabasesOperatio /// The operations group for this extension method. /// /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. + /// The name of the resource group. The name is case insensitive. /// /// /// The name of the managed instance. @@ -376,8 +402,7 @@ public static ManagedDatabase BeginCreateOrUpdate(this IManagedDatabasesOperatio /// The operations group for this extension method. /// /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. + /// The name of the resource group. The name is case insensitive. /// /// /// The name of the managed instance. @@ -397,8 +422,7 @@ public static void BeginDelete(this IManagedDatabasesOperations operations, stri /// The operations group for this extension method. /// /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. + /// The name of the resource group. The name is case insensitive. /// /// /// The name of the managed instance. @@ -421,8 +445,7 @@ public static void BeginDelete(this IManagedDatabasesOperations operations, stri /// The operations group for this extension method. /// /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. + /// The name of the resource group. The name is case insensitive. /// /// /// The name of the managed instance. @@ -445,8 +468,7 @@ public static ManagedDatabase BeginUpdate(this IManagedDatabasesOperations opera /// The operations group for this extension method. /// /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. + /// The name of the resource group. The name is case insensitive. /// /// /// The name of the managed instance. @@ -475,8 +497,7 @@ public static ManagedDatabase BeginUpdate(this IManagedDatabasesOperations opera /// The operations group for this extension method. /// /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. + /// The name of the resource group. The name is case insensitive. /// /// /// The name of the managed instance. @@ -499,8 +520,7 @@ public static void BeginCompleteRestore(this IManagedDatabasesOperations operati /// The operations group for this extension method. /// /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. + /// The name of the resource group. The name is case insensitive. /// /// /// The name of the managed instance. @@ -553,5 +573,39 @@ public static IPage ListByInstanceNext(this IManagedDatabasesOp } } + /// + /// Gets a list of inaccessible managed databases in a managed instance + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListInaccessibleByInstanceNext(this IManagedDatabasesOperations operations, string nextPageLink) + { + return operations.ListInaccessibleByInstanceNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Gets a list of inaccessible managed databases in a managed instance + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListInaccessibleByInstanceNextAsync(this IManagedDatabasesOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListInaccessibleByInstanceNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedInstancesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedInstancesOperations.cs index c29329ed913d..aaa3ffaac776 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedInstancesOperations.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedInstancesOperations.cs @@ -51,15 +51,38 @@ internal ManagedInstancesOperations(SqlManagementClient client) public SqlManagementClient Client { get; private set; } /// - /// Gets a list of all managed instances in an instance pool. + /// Failovers a managed instance. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the managed instance. + /// + /// + /// The type of replica to be failed over. Possible values include: 'Primary', + /// 'ReadableSecondary' + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task FailoverWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, string replicaType = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginFailoverWithHttpMessagesAsync(resourceGroupName, managedInstanceName, replicaType, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Gets a list of managed instances in a resource group. /// /// /// The name of the resource group that contains the resource. You can obtain /// this value from the Azure Resource Manager API or the portal. /// - /// - /// The instance pool name. - /// /// /// Headers that will be added to request. /// @@ -81,16 +104,12 @@ internal ManagedInstancesOperations(SqlManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListByInstancePoolWithHttpMessagesAsync(string resourceGroupName, string instancePoolName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByResourceGroupWithHttpMessagesAsync(string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (resourceGroupName == null) { throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); } - if (instancePoolName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "instancePoolName"); - } if (Client.SubscriptionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); @@ -104,16 +123,14 @@ internal ManagedInstancesOperations(SqlManagementClient client) _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("resourceGroupName", resourceGroupName); - tracingParameters.Add("instancePoolName", instancePoolName); tracingParameters.Add("apiVersion", apiVersion); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListByInstancePool", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "ListByResourceGroup", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/instancePools/{instancePoolName}/managedInstances").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances").ToString(); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); - _url = _url.Replace("{instancePoolName}", System.Uri.EscapeDataString(instancePoolName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); List _queryParameters = new List(); if (apiVersion != null) @@ -246,12 +263,15 @@ internal ManagedInstancesOperations(SqlManagementClient client) } /// - /// Gets a list of managed instances in a resource group. + /// Gets a managed instance. /// /// /// The name of the resource group that contains the resource. You can obtain /// this value from the Azure Resource Manager API or the portal. /// + /// + /// The name of the managed instance. + /// /// /// Headers that will be added to request. /// @@ -273,12 +293,16 @@ internal ManagedInstancesOperations(SqlManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListByResourceGroupWithHttpMessagesAsync(string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (resourceGroupName == null) { throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); } + if (managedInstanceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "managedInstanceName"); + } if (Client.SubscriptionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); @@ -292,14 +316,16 @@ internal ManagedInstancesOperations(SqlManagementClient client) _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("managedInstanceName", managedInstanceName); tracingParameters.Add("apiVersion", apiVersion); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListByResourceGroup", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}").ToString(); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{managedInstanceName}", System.Uri.EscapeDataString(managedInstanceName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); List _queryParameters = new List(); if (apiVersion != null) @@ -399,7 +425,7 @@ internal ManagedInstancesOperations(SqlManagementClient client) throw ex; } // Create Result - var _result = new AzureOperationResponse>(); + var _result = new AzureOperationResponse(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) @@ -412,7 +438,7 @@ internal ManagedInstancesOperations(SqlManagementClient client) _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); } catch (JsonException ex) { @@ -432,7 +458,56 @@ internal ManagedInstancesOperations(SqlManagementClient client) } /// - /// Gets a managed instance. + /// Creates or updates a managed instance. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the managed instance. + /// + /// + /// The requested managed instance resource state. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, ManagedInstance parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send Request + AzureOperationResponse _response = await BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, managedInstanceName, parameters, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Deletes a managed instance. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the managed instance. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task DeleteWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(resourceGroupName, managedInstanceName, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Updates a managed instance. /// /// /// The name of the resource group that contains the resource. You can obtain @@ -441,6 +516,32 @@ internal ManagedInstancesOperations(SqlManagementClient client) /// /// The name of the managed instance. /// + /// + /// The requested managed instance resource state. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, ManagedInstanceUpdate parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send Request + AzureOperationResponse _response = await BeginUpdateWithHttpMessagesAsync(resourceGroupName, managedInstanceName, parameters, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Gets a list of all managed instances in an instance pool. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The instance pool name. + /// /// /// Headers that will be added to request. /// @@ -462,15 +563,15 @@ internal ManagedInstancesOperations(SqlManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByInstancePoolWithHttpMessagesAsync(string resourceGroupName, string instancePoolName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (resourceGroupName == null) { throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); } - if (managedInstanceName == null) + if (instancePoolName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "managedInstanceName"); + throw new ValidationException(ValidationRules.CannotBeNull, "instancePoolName"); } if (Client.SubscriptionId == null) { @@ -485,16 +586,16 @@ internal ManagedInstancesOperations(SqlManagementClient client) _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("resourceGroupName", resourceGroupName); - tracingParameters.Add("managedInstanceName", managedInstanceName); + tracingParameters.Add("instancePoolName", instancePoolName); tracingParameters.Add("apiVersion", apiVersion); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "ListByInstancePool", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/instancePools/{instancePoolName}/managedInstances").ToString(); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); - _url = _url.Replace("{managedInstanceName}", System.Uri.EscapeDataString(managedInstanceName)); + _url = _url.Replace("{instancePoolName}", System.Uri.EscapeDataString(instancePoolName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); List _queryParameters = new List(); if (apiVersion != null) @@ -594,7 +695,7 @@ internal ManagedInstancesOperations(SqlManagementClient client) throw ex; } // Create Result - var _result = new AzureOperationResponse(); + var _result = new AzureOperationResponse>(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) @@ -607,7 +708,7 @@ internal ManagedInstancesOperations(SqlManagementClient client) _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); } catch (JsonException ex) { @@ -627,84 +728,195 @@ internal ManagedInstancesOperations(SqlManagementClient client) } /// - /// Creates or updates a managed instance. + /// Gets a list of all managed instances in the subscription. /// - /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. - /// - /// - /// The name of the managed instance. - /// - /// - /// The requested managed instance resource state. - /// /// - /// The headers that will be added to request. + /// Headers that will be added to request. /// /// /// The cancellation token. /// - public async Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, ManagedInstance parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - // Send Request - AzureOperationResponse _response = await BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, managedInstanceName, parameters, customHeaders, cancellationToken).ConfigureAwait(false); - return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); - } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + string apiVersion = "2020-02-02-preview"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.Sql/managedInstances").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } - /// - /// Deletes a managed instance. - /// - /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. - /// - /// - /// The name of the managed instance. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - public async Task DeleteWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Send request - AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(resourceGroupName, managedInstanceName, customHeaders, cancellationToken).ConfigureAwait(false); - return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; } /// - /// Updates a managed instance. + /// Failovers a managed instance. /// /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. + /// The name of the resource group. The name is case insensitive. /// /// /// The name of the managed instance. /// - /// - /// The requested managed instance resource state. + /// + /// The type of replica to be failed over. Possible values include: 'Primary', + /// 'ReadableSecondary' /// /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - public async Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, ManagedInstanceUpdate parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Send Request - AzureOperationResponse _response = await BeginUpdateWithHttpMessagesAsync(resourceGroupName, managedInstanceName, parameters, customHeaders, cancellationToken).ConfigureAwait(false); - return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); - } - - /// - /// Gets a list of all managed instances in the subscription. - /// - /// /// Headers that will be added to request. /// /// @@ -713,9 +925,6 @@ internal ManagedInstancesOperations(SqlManagementClient client) /// /// Thrown when the operation returned an invalid status code /// - /// - /// Thrown when unable to deserialize the response - /// /// /// Thrown when a required parameter is null /// @@ -725,13 +934,36 @@ internal ManagedInstancesOperations(SqlManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task BeginFailoverWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, string replicaType = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } if (Client.SubscriptionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2020-02-02-preview"; + if (managedInstanceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "managedInstanceName"); + } + string apiVersion = "2019-06-01-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -739,19 +971,28 @@ internal ManagedInstancesOperations(SqlManagementClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("managedInstanceName", managedInstanceName); + tracingParameters.Add("replicaType", replicaType); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "BeginFailover", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.Sql/managedInstances").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/failover").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{managedInstanceName}", System.Uri.EscapeDataString(managedInstanceName)); List _queryParameters = new List(); if (apiVersion != null) { _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); } + if (replicaType != null) + { + _queryParameters.Add(string.Format("replicaType={0}", System.Uri.EscapeDataString(replicaType))); + } if (_queryParameters.Count > 0) { _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); @@ -759,7 +1000,7 @@ internal ManagedInstancesOperations(SqlManagementClient client) // Create HTTP transport objects var _httpRequest = new HttpRequestMessage(); HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.Method = new HttpMethod("POST"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) @@ -810,7 +1051,7 @@ internal ManagedInstancesOperations(SqlManagementClient client) HttpStatusCode _statusCode = _httpResponse.StatusCode; cancellationToken.ThrowIfCancellationRequested(); string _responseContent = null; - if ((int)_statusCode != 200) + if ((int)_statusCode != 200 && (int)_statusCode != 202) { var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try @@ -845,31 +1086,13 @@ internal ManagedInstancesOperations(SqlManagementClient client) throw ex; } // Create Result - var _result = new AzureOperationResponse>(); + var _result = new AzureOperationResponse(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) { _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); } - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } if (_shouldTrace) { ServiceClientTracing.Exit(_invocationId, _result); @@ -877,32 +1100,6 @@ internal ManagedInstancesOperations(SqlManagementClient client) return _result; } - /// - /// Failovers a managed instance. - /// - /// - /// The name of the resource group. The name is case insensitive. - /// - /// - /// The name of the managed instance. - /// - /// - /// The type of replica to be failed over. Possible values include: 'Primary', - /// 'ReadableSecondary' - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - public async Task FailoverWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, string replicaType = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Send request - AzureOperationResponse _response = await BeginFailoverWithHttpMessagesAsync(resourceGroupName, managedInstanceName, replicaType, customHeaders, cancellationToken).ConfigureAwait(false); - return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); - } - /// /// Creates or updates a managed instance. /// @@ -1518,190 +1715,7 @@ internal ManagedInstancesOperations(SqlManagementClient client) } /// - /// Failovers a managed instance. - /// - /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. - /// - /// - /// The name of the managed instance to failover. - /// - /// - /// The type of replica to be failed over. Possible values include: 'Primary', - /// 'ReadableSecondary' - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task BeginFailoverWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, string replicaType = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (resourceGroupName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); - } - if (managedInstanceName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "managedInstanceName"); - } - if (Client.SubscriptionId == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); - } - string apiVersion = "2019-06-01-preview"; - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); - tracingParameters.Add("managedInstanceName", managedInstanceName); - tracingParameters.Add("replicaType", replicaType); - tracingParameters.Add("apiVersion", apiVersion); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "BeginFailover", tracingParameters); - } - // Construct URL - var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/failover").ToString(); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); - _url = _url.Replace("{managedInstanceName}", System.Uri.EscapeDataString(managedInstanceName)); - _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); - List _queryParameters = new List(); - if (replicaType != null) - { - _queryParameters.Add(string.Format("replicaType={0}", System.Uri.EscapeDataString(replicaType))); - } - if (apiVersion != null) - { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); - } - if (_queryParameters.Count > 0) - { - _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("POST"); - _httpRequest.RequestUri = new System.Uri(_url); - // Set Headers - if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) - { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); - } - if (Client.AcceptLanguage != null) - { - if (_httpRequest.Headers.Contains("accept-language")) - { - _httpRequest.Headers.Remove("accept-language"); - } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); - } - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - if (_httpRequest.Headers.Contains(_header.Key)) - { - _httpRequest.Headers.Remove(_header.Key); - } - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Client.Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 202) - { - var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - try - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); - if (_errorBody != null) - { - ex = new CloudException(_errorBody.Message); - ex.Body = _errorBody; - } - } - catch (JsonException) - { - // Ignore the exception - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = new AzureOperationResponse(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// Gets a list of all managed instances in an instance pool. + /// Gets a list of managed instances in a resource group. /// /// /// The NextLink from the previous successful call to List operation. @@ -1727,7 +1741,7 @@ internal ManagedInstancesOperations(SqlManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListByInstancePoolNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByResourceGroupNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (nextPageLink == null) { @@ -1742,7 +1756,7 @@ internal ManagedInstancesOperations(SqlManagementClient client) Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("nextPageLink", nextPageLink); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListByInstancePoolNext", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "ListByResourceGroupNext", tracingParameters); } // Construct URL string _url = "{nextLink}"; @@ -1874,7 +1888,7 @@ internal ManagedInstancesOperations(SqlManagementClient client) } /// - /// Gets a list of managed instances in a resource group. + /// Gets a list of all managed instances in an instance pool. /// /// /// The NextLink from the previous successful call to List operation. @@ -1900,7 +1914,7 @@ internal ManagedInstancesOperations(SqlManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListByResourceGroupNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByInstancePoolNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (nextPageLink == null) { @@ -1915,7 +1929,7 @@ internal ManagedInstancesOperations(SqlManagementClient client) Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("nextPageLink", nextPageLink); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListByResourceGroupNext", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "ListByInstancePoolNext", tracingParameters); } // Construct URL string _url = "{nextLink}"; diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedInstancesOperationsExtensions.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedInstancesOperationsExtensions.cs index ab0f853584b4..4f774c2c2835 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedInstancesOperationsExtensions.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedInstancesOperationsExtensions.cs @@ -22,45 +22,48 @@ namespace Microsoft.Azure.Management.Sql public static partial class ManagedInstancesOperationsExtensions { /// - /// Gets a list of all managed instances in an instance pool. + /// Failovers a managed instance. /// /// /// The operations group for this extension method. /// /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. + /// The name of the resource group. The name is case insensitive. /// - /// - /// The instance pool name. + /// + /// The name of the managed instance. /// - public static IPage ListByInstancePool(this IManagedInstancesOperations operations, string resourceGroupName, string instancePoolName) + /// + /// The type of replica to be failed over. Possible values include: 'Primary', + /// 'ReadableSecondary' + /// + public static void Failover(this IManagedInstancesOperations operations, string resourceGroupName, string managedInstanceName, string replicaType = default(string)) { - return operations.ListByInstancePoolAsync(resourceGroupName, instancePoolName).GetAwaiter().GetResult(); + operations.FailoverAsync(resourceGroupName, managedInstanceName, replicaType).GetAwaiter().GetResult(); } /// - /// Gets a list of all managed instances in an instance pool. + /// Failovers a managed instance. /// /// /// The operations group for this extension method. /// /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. + /// The name of the resource group. The name is case insensitive. /// - /// - /// The instance pool name. + /// + /// The name of the managed instance. + /// + /// + /// The type of replica to be failed over. Possible values include: 'Primary', + /// 'ReadableSecondary' /// /// /// The cancellation token. /// - public static async Task> ListByInstancePoolAsync(this IManagedInstancesOperations operations, string resourceGroupName, string instancePoolName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task FailoverAsync(this IManagedInstancesOperations operations, string resourceGroupName, string managedInstanceName, string replicaType = default(string), CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListByInstancePoolWithHttpMessagesAsync(resourceGroupName, instancePoolName, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } + (await operations.FailoverWithHttpMessagesAsync(resourceGroupName, managedInstanceName, replicaType, null, cancellationToken).ConfigureAwait(false)).Dispose(); } /// @@ -276,6 +279,48 @@ public static ManagedInstance Update(this IManagedInstancesOperations operations } } + /// + /// Gets a list of all managed instances in an instance pool. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The instance pool name. + /// + public static IPage ListByInstancePool(this IManagedInstancesOperations operations, string resourceGroupName, string instancePoolName) + { + return operations.ListByInstancePoolAsync(resourceGroupName, instancePoolName).GetAwaiter().GetResult(); + } + + /// + /// Gets a list of all managed instances in an instance pool. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The instance pool name. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByInstancePoolAsync(this IManagedInstancesOperations operations, string resourceGroupName, string instancePoolName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByInstancePoolWithHttpMessagesAsync(resourceGroupName, instancePoolName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + /// /// Gets a list of all managed instances in the subscription. /// @@ -320,9 +365,9 @@ public static IPage List(this IManagedInstancesOperations opera /// The type of replica to be failed over. Possible values include: 'Primary', /// 'ReadableSecondary' /// - public static void Failover(this IManagedInstancesOperations operations, string resourceGroupName, string managedInstanceName, string replicaType = default(string)) + public static void BeginFailover(this IManagedInstancesOperations operations, string resourceGroupName, string managedInstanceName, string replicaType = default(string)) { - operations.FailoverAsync(resourceGroupName, managedInstanceName, replicaType).GetAwaiter().GetResult(); + operations.BeginFailoverAsync(resourceGroupName, managedInstanceName, replicaType).GetAwaiter().GetResult(); } /// @@ -344,9 +389,9 @@ public static IPage List(this IManagedInstancesOperations opera /// /// The cancellation token. /// - public static async Task FailoverAsync(this IManagedInstancesOperations operations, string resourceGroupName, string managedInstanceName, string replicaType = default(string), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task BeginFailoverAsync(this IManagedInstancesOperations operations, string resourceGroupName, string managedInstanceName, string replicaType = default(string), CancellationToken cancellationToken = default(CancellationToken)) { - (await operations.FailoverWithHttpMessagesAsync(resourceGroupName, managedInstanceName, replicaType, null, cancellationToken).ConfigureAwait(false)).Dispose(); + (await operations.BeginFailoverWithHttpMessagesAsync(resourceGroupName, managedInstanceName, replicaType, null, cancellationToken).ConfigureAwait(false)).Dispose(); } /// @@ -485,52 +530,7 @@ public static ManagedInstance BeginUpdate(this IManagedInstancesOperations opera } /// - /// Failovers a managed instance. - /// - /// - /// The operations group for this extension method. - /// - /// - /// The name of the resource group. The name is case insensitive. - /// - /// - /// The name of the managed instance. - /// - /// - /// The type of replica to be failed over. Possible values include: 'Primary', - /// 'ReadableSecondary' - /// - public static void BeginFailover(this IManagedInstancesOperations operations, string resourceGroupName, string managedInstanceName, string replicaType = default(string)) - { - operations.BeginFailoverAsync(resourceGroupName, managedInstanceName, replicaType).GetAwaiter().GetResult(); - } - - /// - /// Failovers a managed instance. - /// - /// - /// The operations group for this extension method. - /// - /// - /// The name of the resource group. The name is case insensitive. - /// - /// - /// The name of the managed instance. - /// - /// - /// The type of replica to be failed over. Possible values include: 'Primary', - /// 'ReadableSecondary' - /// - /// - /// The cancellation token. - /// - public static async Task BeginFailoverAsync(this IManagedInstancesOperations operations, string resourceGroupName, string managedInstanceName, string replicaType = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - (await operations.BeginFailoverWithHttpMessagesAsync(resourceGroupName, managedInstanceName, replicaType, null, cancellationToken).ConfigureAwait(false)).Dispose(); - } - - /// - /// Gets a list of all managed instances in an instance pool. + /// Gets a list of managed instances in a resource group. /// /// /// The operations group for this extension method. @@ -538,13 +538,13 @@ public static ManagedInstance BeginUpdate(this IManagedInstancesOperations opera /// /// The NextLink from the previous successful call to List operation. /// - public static IPage ListByInstancePoolNext(this IManagedInstancesOperations operations, string nextPageLink) + public static IPage ListByResourceGroupNext(this IManagedInstancesOperations operations, string nextPageLink) { - return operations.ListByInstancePoolNextAsync(nextPageLink).GetAwaiter().GetResult(); + return operations.ListByResourceGroupNextAsync(nextPageLink).GetAwaiter().GetResult(); } /// - /// Gets a list of all managed instances in an instance pool. + /// Gets a list of managed instances in a resource group. /// /// /// The operations group for this extension method. @@ -555,16 +555,16 @@ public static IPage ListByInstancePoolNext(this IManagedInstanc /// /// The cancellation token. /// - public static async Task> ListByInstancePoolNextAsync(this IManagedInstancesOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListByResourceGroupNextAsync(this IManagedInstancesOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListByInstancePoolNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListByResourceGroupNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Gets a list of managed instances in a resource group. + /// Gets a list of all managed instances in an instance pool. /// /// /// The operations group for this extension method. @@ -572,13 +572,13 @@ public static IPage ListByInstancePoolNext(this IManagedInstanc /// /// The NextLink from the previous successful call to List operation. /// - public static IPage ListByResourceGroupNext(this IManagedInstancesOperations operations, string nextPageLink) + public static IPage ListByInstancePoolNext(this IManagedInstancesOperations operations, string nextPageLink) { - return operations.ListByResourceGroupNextAsync(nextPageLink).GetAwaiter().GetResult(); + return operations.ListByInstancePoolNextAsync(nextPageLink).GetAwaiter().GetResult(); } /// - /// Gets a list of managed instances in a resource group. + /// Gets a list of all managed instances in an instance pool. /// /// /// The operations group for this extension method. @@ -589,9 +589,9 @@ public static IPage ListByResourceGroupNext(this IManagedInstan /// /// The cancellation token. /// - public static async Task> ListByResourceGroupNextAsync(this IManagedInstancesOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListByInstancePoolNextAsync(this IManagedInstancesOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListByResourceGroupNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListByInstancePoolNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/AutoPauseDelayTimeRange.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/AutoPauseDelayTimeRange.cs new file mode 100644 index 000000000000..e516ef733611 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/AutoPauseDelayTimeRange.cs @@ -0,0 +1,97 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Supported auto pause delay time range + /// + public partial class AutoPauseDelayTimeRange + { + /// + /// Initializes a new instance of the AutoPauseDelayTimeRange class. + /// + public AutoPauseDelayTimeRange() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the AutoPauseDelayTimeRange class. + /// + /// Minimum value + /// Maximum value + /// Step value for discrete values between the + /// minimum value and the maximum value. + /// Default value is no value is + /// provided + /// Unit of time that delay is expressed in. + /// Possible values include: 'Minutes' + /// Value that is used to not pause + /// (infinite delay before pause) + public AutoPauseDelayTimeRange(int? minValue = default(int?), int? maxValue = default(int?), int? stepSize = default(int?), int? defaultProperty = default(int?), string unit = default(string), int? doNotPauseValue = default(int?)) + { + MinValue = minValue; + MaxValue = maxValue; + StepSize = stepSize; + DefaultProperty = defaultProperty; + Unit = unit; + DoNotPauseValue = doNotPauseValue; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets minimum value + /// + [JsonProperty(PropertyName = "minValue")] + public int? MinValue { get; private set; } + + /// + /// Gets maximum value + /// + [JsonProperty(PropertyName = "maxValue")] + public int? MaxValue { get; private set; } + + /// + /// Gets step value for discrete values between the minimum value and + /// the maximum value. + /// + [JsonProperty(PropertyName = "stepSize")] + public int? StepSize { get; private set; } + + /// + /// Gets default value is no value is provided + /// + [JsonProperty(PropertyName = "default")] + public int? DefaultProperty { get; private set; } + + /// + /// Gets unit of time that delay is expressed in. Possible values + /// include: 'Minutes' + /// + [JsonProperty(PropertyName = "unit")] + public string Unit { get; private set; } + + /// + /// Gets value that is used to not pause (infinite delay before pause) + /// + [JsonProperty(PropertyName = "doNotPauseValue")] + public int? DoNotPauseValue { get; private set; } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/BackupShortTermRetentionPolicy.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/BackupShortTermRetentionPolicy.cs index a3666f867d33..c1f8aa1f2397 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/BackupShortTermRetentionPolicy.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/BackupShortTermRetentionPolicy.cs @@ -40,10 +40,15 @@ public BackupShortTermRetentionPolicy() /// The backup retention period in days. /// This is how many days Point-in-Time Restore will be /// supported. - public BackupShortTermRetentionPolicy(string id = default(string), string name = default(string), string type = default(string), int? retentionDays = default(int?)) + /// The differential backup + /// interval in hours. This is how many interval hours between each + /// differential backup will be supported. This is only applicable to + /// live databases but not dropped databases. + public BackupShortTermRetentionPolicy(string id = default(string), string name = default(string), string type = default(string), int? retentionDays = default(int?), int? diffBackupIntervalInHours = default(int?)) : base(id, name, type) { RetentionDays = retentionDays; + DiffBackupIntervalInHours = diffBackupIntervalInHours; CustomInit(); } @@ -59,5 +64,14 @@ public BackupShortTermRetentionPolicy() [JsonProperty(PropertyName = "properties.retentionDays")] public int? RetentionDays { get; set; } + /// + /// Gets or sets the differential backup interval in hours. This is how + /// many interval hours between each differential backup will be + /// supported. This is only applicable to live databases but not + /// dropped databases. + /// + [JsonProperty(PropertyName = "properties.diffBackupIntervalInHours")] + public int? DiffBackupIntervalInHours { get; set; } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/CapabilityGroup.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/CapabilityGroup.cs index 17a2378a8184..b1b3d583cc8f 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/CapabilityGroup.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/CapabilityGroup.cs @@ -19,5 +19,7 @@ public static class CapabilityGroup public const string SupportedEditions = "supportedEditions"; public const string SupportedElasticPoolEditions = "supportedElasticPoolEditions"; public const string SupportedManagedInstanceVersions = "supportedManagedInstanceVersions"; + public const string SupportedInstancePoolEditions = "supportedInstancePoolEditions"; + public const string SupportedManagedInstanceEditions = "supportedManagedInstanceEditions"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/CheckNameAvailabilityRequest.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/CheckNameAvailabilityRequest.cs index 707d7cce78c2..2a038d4fc11a 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/CheckNameAvailabilityRequest.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/CheckNameAvailabilityRequest.cs @@ -33,8 +33,6 @@ public CheckNameAvailabilityRequest() /// Initializes a new instance of the CheckNameAvailabilityRequest /// class. /// - /// The name whose availability is to be - /// checked. public CheckNameAvailabilityRequest(string name) { Name = name; @@ -54,14 +52,11 @@ static CheckNameAvailabilityRequest() partial void CustomInit(); /// - /// Gets or sets the name whose availability is to be checked. /// [JsonProperty(PropertyName = "name")] public string Name { get; set; } /// - /// The type of resource that is used as the scope of the availability - /// check. /// [JsonProperty(PropertyName = "type")] public static string Type { get; private set; } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/CheckNameAvailabilityResponse.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/CheckNameAvailabilityResponse.cs index 65a8c5fc01e9..ae612275b439 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/CheckNameAvailabilityResponse.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/CheckNameAvailabilityResponse.cs @@ -14,8 +14,7 @@ namespace Microsoft.Azure.Management.Sql.Models using System.Linq; /// - /// A response indicating whether the specified name for a resource is - /// available. + /// The result of a name availability check. /// public partial class CheckNameAvailabilityResponse { @@ -32,20 +31,20 @@ public CheckNameAvailabilityResponse() /// Initializes a new instance of the CheckNameAvailabilityResponse /// class. /// + /// The name whose availability was checked. /// True if the name is available, otherwise /// false. - /// A message explaining why the name is - /// unavailable. Will be null if the name is available. - /// The name whose availability was checked. /// The reason code explaining why the name is - /// unavailable. Will be null if the name is available. Possible values - /// include: 'Invalid', 'AlreadyExists' - public CheckNameAvailabilityResponse(bool? available = default(bool?), string message = default(string), string name = default(string), CheckNameAvailabilityReason? reason = default(CheckNameAvailabilityReason?)) + /// unavailable. Will be undefined if the name is available. Possible + /// values include: 'Invalid', 'AlreadyExists' + /// A message explaining why the name is + /// unavailable. Will be undefined if the name is available. + public CheckNameAvailabilityResponse(string name = default(string), bool? available = default(bool?), CheckNameAvailabilityReason? reason = default(CheckNameAvailabilityReason?), string message = default(string)) { - Available = available; - Message = message; Name = name; + Available = available; Reason = reason; + Message = message; CustomInit(); } @@ -54,32 +53,32 @@ public CheckNameAvailabilityResponse() /// partial void CustomInit(); - /// - /// Gets true if the name is available, otherwise false. - /// - [JsonProperty(PropertyName = "available")] - public bool? Available { get; private set; } - - /// - /// Gets a message explaining why the name is unavailable. Will be null - /// if the name is available. - /// - [JsonProperty(PropertyName = "message")] - public string Message { get; private set; } - /// /// Gets the name whose availability was checked. /// [JsonProperty(PropertyName = "name")] public string Name { get; private set; } + /// + /// Gets true if the name is available, otherwise false. + /// + [JsonProperty(PropertyName = "available")] + public bool? Available { get; private set; } + /// /// Gets the reason code explaining why the name is unavailable. Will - /// be null if the name is available. Possible values include: + /// be undefined if the name is available. Possible values include: /// 'Invalid', 'AlreadyExists' /// [JsonProperty(PropertyName = "reason")] public CheckNameAvailabilityReason? Reason { get; private set; } + /// + /// Gets a message explaining why the name is unavailable. Will be + /// undefined if the name is available. + /// + [JsonProperty(PropertyName = "message")] + public string Message { get; private set; } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/Database.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/Database.cs index e5d1cbad1171..29cf0e8f0a62 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/Database.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/Database.cs @@ -152,35 +152,39 @@ public Database() /// redundant, which means the replicas of this database will be spread /// across multiple availability zones. /// The license type to apply for this - /// database. Possible values include: 'LicenseIncluded', + /// database. `LicenseIncluded` if you need a license, or `BasePrice` + /// if you have a license and are eligible for the Azure Hybrid + /// Benefit. Possible values include: 'LicenseIncluded', /// 'BasePrice' /// The max log size for this /// database. /// This records the earliest start /// date and time that restore is available for this database (ISO8601 /// format). - /// If enabled, connections that have - /// application intent set to readonly in their connection string may - /// be routed to a readonly secondary replica. This property is only - /// settable for Premium and Business Critical databases. Possible - /// values include: 'Enabled', 'Disabled' + /// The state of read-only routing. If enabled, + /// connections that have application intent set to readonly in their + /// connection string may be routed to a readonly secondary replica in + /// the same region. Possible values include: 'Enabled', + /// 'Disabled' /// The number of readonly secondary - /// replicas associated with the database to which readonly application - /// intent connections may be routed. This property is only settable - /// for Hyperscale edition databases. + /// replicas associated with the database. /// The name and tier of the SKU. /// Time in minutes after which database /// is automatically paused. A value of -1 means that automatic pause /// is disabled + /// The storage account type used to + /// store backups for this database. Currently the only supported + /// option is GRS (GeoRedundantStorage). Possible values include: + /// 'GRS', 'LRS', 'ZRS' /// Minimal capacity that database will /// always have allocated, if not paused /// The date when database was paused by user - /// configuration or action (ISO8601 format). Null if the database is + /// configuration or action(ISO8601 format). Null if the database is /// ready. /// The date when database was resumed by /// user action or database login (ISO8601 format). Null if the /// database is paused. - public Database(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), Sku sku = default(Sku), string kind = default(string), string managedBy = default(string), string createMode = default(string), string collation = default(string), long? maxSizeBytes = default(long?), string sampleName = default(string), string elasticPoolId = default(string), string sourceDatabaseId = default(string), string status = default(string), System.Guid? databaseId = default(System.Guid?), System.DateTime? creationDate = default(System.DateTime?), string currentServiceObjectiveName = default(string), string requestedServiceObjectiveName = default(string), string defaultSecondaryLocation = default(string), string failoverGroupId = default(string), System.DateTime? restorePointInTime = default(System.DateTime?), System.DateTime? sourceDatabaseDeletionDate = default(System.DateTime?), string recoveryServicesRecoveryPointId = default(string), string longTermRetentionBackupResourceId = default(string), string recoverableDatabaseId = default(string), string restorableDroppedDatabaseId = default(string), string catalogCollation = default(string), bool? zoneRedundant = default(bool?), string licenseType = default(string), long? maxLogSizeBytes = default(long?), System.DateTime? earliestRestoreDate = default(System.DateTime?), string readScale = default(string), int? readReplicaCount = default(int?), Sku currentSku = default(Sku), int? autoPauseDelay = default(int?), double? minCapacity = default(double?), System.DateTime? pausedDate = default(System.DateTime?), System.DateTime? resumedDate = default(System.DateTime?)) + public Database(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), Sku sku = default(Sku), string kind = default(string), string managedBy = default(string), string createMode = default(string), string collation = default(string), long? maxSizeBytes = default(long?), string sampleName = default(string), string elasticPoolId = default(string), string sourceDatabaseId = default(string), string status = default(string), System.Guid? databaseId = default(System.Guid?), System.DateTime? creationDate = default(System.DateTime?), string currentServiceObjectiveName = default(string), string requestedServiceObjectiveName = default(string), string defaultSecondaryLocation = default(string), string failoverGroupId = default(string), System.DateTime? restorePointInTime = default(System.DateTime?), System.DateTime? sourceDatabaseDeletionDate = default(System.DateTime?), string recoveryServicesRecoveryPointId = default(string), string longTermRetentionBackupResourceId = default(string), string recoverableDatabaseId = default(string), string restorableDroppedDatabaseId = default(string), string catalogCollation = default(string), bool? zoneRedundant = default(bool?), string licenseType = default(string), long? maxLogSizeBytes = default(long?), System.DateTime? earliestRestoreDate = default(System.DateTime?), string readScale = default(string), int? readReplicaCount = default(int?), Sku currentSku = default(Sku), int? autoPauseDelay = default(int?), string storageAccountType = default(string), double? minCapacity = default(double?), System.DateTime? pausedDate = default(System.DateTime?), System.DateTime? resumedDate = default(System.DateTime?)) : base(location, id, name, type, tags) { Sku = sku; @@ -214,6 +218,7 @@ public Database() ReadReplicaCount = readReplicaCount; CurrentSku = currentSku; AutoPauseDelay = autoPauseDelay; + StorageAccountType = storageAccountType; MinCapacity = minCapacity; PausedDate = pausedDate; ResumedDate = resumedDate; @@ -444,7 +449,9 @@ public Database() public bool? ZoneRedundant { get; set; } /// - /// Gets or sets the license type to apply for this database. Possible + /// Gets or sets the license type to apply for this database. + /// `LicenseIncluded` if you need a license, or `BasePrice` if you have + /// a license and are eligible for the Azure Hybrid Benefit. Possible /// values include: 'LicenseIncluded', 'BasePrice' /// [JsonProperty(PropertyName = "properties.licenseType")] @@ -464,20 +471,17 @@ public Database() public System.DateTime? EarliestRestoreDate { get; private set; } /// - /// Gets or sets if enabled, connections that have application intent - /// set to readonly in their connection string may be routed to a - /// readonly secondary replica. This property is only settable for - /// Premium and Business Critical databases. Possible values include: - /// 'Enabled', 'Disabled' + /// Gets or sets the state of read-only routing. If enabled, + /// connections that have application intent set to readonly in their + /// connection string may be routed to a readonly secondary replica in + /// the same region. Possible values include: 'Enabled', 'Disabled' /// [JsonProperty(PropertyName = "properties.readScale")] public string ReadScale { get; set; } /// /// Gets or sets the number of readonly secondary replicas associated - /// with the database to which readonly application intent connections - /// may be routed. This property is only settable for Hyperscale - /// edition databases. + /// with the database. /// [JsonProperty(PropertyName = "properties.readReplicaCount")] public int? ReadReplicaCount { get; set; } @@ -495,6 +499,14 @@ public Database() [JsonProperty(PropertyName = "properties.autoPauseDelay")] public int? AutoPauseDelay { get; set; } + /// + /// Gets or sets the storage account type used to store backups for + /// this database. Currently the only supported option is GRS + /// (GeoRedundantStorage). Possible values include: 'GRS', 'LRS', 'ZRS' + /// + [JsonProperty(PropertyName = "properties.storageAccountType")] + public string StorageAccountType { get; set; } + /// /// Gets or sets minimal capacity that database will always have /// allocated, if not paused @@ -504,7 +516,7 @@ public Database() /// /// Gets the date when database was paused by user configuration or - /// action (ISO8601 format). Null if the database is ready. + /// action(ISO8601 format). Null if the database is ready. /// [JsonProperty(PropertyName = "properties.pausedDate")] public System.DateTime? PausedDate { get; private set; } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseBlobAuditingPolicy.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseBlobAuditingPolicy.cs index b4f9bc89e6db..639db988b972 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseBlobAuditingPolicy.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseBlobAuditingPolicy.cs @@ -46,9 +46,19 @@ public DatabaseBlobAuditingPolicy() /// Enabled, storageEndpoint or isAzureMonitorTargetEnabled is /// required. /// Specifies the identifier key - /// of the auditing storage account. If state is Enabled and - /// storageEndpoint is specified, storageAccountAccessKey is - /// required. + /// of the auditing storage account. + /// If state is Enabled and storageEndpoint is specified, not + /// specifying the storageAccountAccessKey will use SQL server + /// system-assigned managed identity to access the storage. + /// Prerequisites for using managed identity authentication: + /// 1. Assign SQL Server a system-assigned managed identity in Azure + /// Active Directory (AAD). + /// 2. Grant SQL Server identity access to the storage account by + /// adding 'Storage Blob Data Contributor' RBAC role to the server + /// identity. + /// For more information, see [Auditing to storage using Managed + /// Identity + /// authentication](https://go.microsoft.com/fwlink/?linkid=2114355) /// Specifies the number of days to keep in /// the audit logs in the storage account. /// Specifies the Actions-Groups @@ -200,8 +210,19 @@ public DatabaseBlobAuditingPolicy() /// /// Gets or sets specifies the identifier key of the auditing storage - /// account. If state is Enabled and storageEndpoint is specified, - /// storageAccountAccessKey is required. + /// account. + /// If state is Enabled and storageEndpoint is specified, not + /// specifying the storageAccountAccessKey will use SQL server + /// system-assigned managed identity to access the storage. + /// Prerequisites for using managed identity authentication: + /// 1. Assign SQL Server a system-assigned managed identity in Azure + /// Active Directory (AAD). + /// 2. Grant SQL Server identity access to the storage account by + /// adding 'Storage Blob Data Contributor' RBAC role to the server + /// identity. + /// For more information, see [Auditing to storage using Managed + /// Identity + /// authentication](https://go.microsoft.com/fwlink/?linkid=2114355) /// [JsonProperty(PropertyName = "properties.storageAccountAccessKey")] public string StorageAccountAccessKey { get; set; } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseUpdate.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseUpdate.cs index 275cd2e70a33..e076f81f96d2 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseUpdate.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseUpdate.cs @@ -129,36 +129,40 @@ public DatabaseUpdate() /// redundant, which means the replicas of this database will be spread /// across multiple availability zones. /// The license type to apply for this - /// database. Possible values include: 'LicenseIncluded', + /// database. `LicenseIncluded` if you need a license, or `BasePrice` + /// if you have a license and are eligible for the Azure Hybrid + /// Benefit. Possible values include: 'LicenseIncluded', /// 'BasePrice' /// The max log size for this /// database. /// This records the earliest start /// date and time that restore is available for this database (ISO8601 /// format). - /// If enabled, connections that have - /// application intent set to readonly in their connection string may - /// be routed to a readonly secondary replica. This property is only - /// settable for Premium and Business Critical databases. Possible - /// values include: 'Enabled', 'Disabled' + /// The state of read-only routing. If enabled, + /// connections that have application intent set to readonly in their + /// connection string may be routed to a readonly secondary replica in + /// the same region. Possible values include: 'Enabled', + /// 'Disabled' /// The number of readonly secondary - /// replicas associated with the database to which readonly application - /// intent connections may be routed. This property is only settable - /// for Hyperscale edition databases. + /// replicas associated with the database. /// The name and tier of the SKU. /// Time in minutes after which database /// is automatically paused. A value of -1 means that automatic pause /// is disabled + /// The storage account type used to + /// store backups for this database. Currently the only supported + /// option is GRS (GeoRedundantStorage). Possible values include: + /// 'GRS', 'LRS', 'ZRS' /// Minimal capacity that database will /// always have allocated, if not paused /// The date when database was paused by user - /// configuration or action (ISO8601 format). Null if the database is + /// configuration or action(ISO8601 format). Null if the database is /// ready. /// The date when database was resumed by /// user action or database login (ISO8601 format). Null if the /// database is paused. /// Resource tags. - public DatabaseUpdate(Sku sku = default(Sku), string createMode = default(string), string collation = default(string), long? maxSizeBytes = default(long?), string sampleName = default(string), string elasticPoolId = default(string), string sourceDatabaseId = default(string), string status = default(string), System.Guid? databaseId = default(System.Guid?), System.DateTime? creationDate = default(System.DateTime?), string currentServiceObjectiveName = default(string), string requestedServiceObjectiveName = default(string), string defaultSecondaryLocation = default(string), string failoverGroupId = default(string), System.DateTime? restorePointInTime = default(System.DateTime?), System.DateTime? sourceDatabaseDeletionDate = default(System.DateTime?), string recoveryServicesRecoveryPointId = default(string), string longTermRetentionBackupResourceId = default(string), string recoverableDatabaseId = default(string), string restorableDroppedDatabaseId = default(string), string catalogCollation = default(string), bool? zoneRedundant = default(bool?), string licenseType = default(string), long? maxLogSizeBytes = default(long?), System.DateTime? earliestRestoreDate = default(System.DateTime?), string readScale = default(string), int? readReplicaCount = default(int?), Sku currentSku = default(Sku), int? autoPauseDelay = default(int?), double? minCapacity = default(double?), System.DateTime? pausedDate = default(System.DateTime?), System.DateTime? resumedDate = default(System.DateTime?), IDictionary tags = default(IDictionary)) + public DatabaseUpdate(Sku sku = default(Sku), string createMode = default(string), string collation = default(string), long? maxSizeBytes = default(long?), string sampleName = default(string), string elasticPoolId = default(string), string sourceDatabaseId = default(string), string status = default(string), System.Guid? databaseId = default(System.Guid?), System.DateTime? creationDate = default(System.DateTime?), string currentServiceObjectiveName = default(string), string requestedServiceObjectiveName = default(string), string defaultSecondaryLocation = default(string), string failoverGroupId = default(string), System.DateTime? restorePointInTime = default(System.DateTime?), System.DateTime? sourceDatabaseDeletionDate = default(System.DateTime?), string recoveryServicesRecoveryPointId = default(string), string longTermRetentionBackupResourceId = default(string), string recoverableDatabaseId = default(string), string restorableDroppedDatabaseId = default(string), string catalogCollation = default(string), bool? zoneRedundant = default(bool?), string licenseType = default(string), long? maxLogSizeBytes = default(long?), System.DateTime? earliestRestoreDate = default(System.DateTime?), string readScale = default(string), int? readReplicaCount = default(int?), Sku currentSku = default(Sku), int? autoPauseDelay = default(int?), string storageAccountType = default(string), double? minCapacity = default(double?), System.DateTime? pausedDate = default(System.DateTime?), System.DateTime? resumedDate = default(System.DateTime?), IDictionary tags = default(IDictionary)) { Sku = sku; CreateMode = createMode; @@ -189,6 +193,7 @@ public DatabaseUpdate() ReadReplicaCount = readReplicaCount; CurrentSku = currentSku; AutoPauseDelay = autoPauseDelay; + StorageAccountType = storageAccountType; MinCapacity = minCapacity; PausedDate = pausedDate; ResumedDate = resumedDate; @@ -392,7 +397,9 @@ public DatabaseUpdate() public bool? ZoneRedundant { get; set; } /// - /// Gets or sets the license type to apply for this database. Possible + /// Gets or sets the license type to apply for this database. + /// `LicenseIncluded` if you need a license, or `BasePrice` if you have + /// a license and are eligible for the Azure Hybrid Benefit. Possible /// values include: 'LicenseIncluded', 'BasePrice' /// [JsonProperty(PropertyName = "properties.licenseType")] @@ -412,20 +419,17 @@ public DatabaseUpdate() public System.DateTime? EarliestRestoreDate { get; private set; } /// - /// Gets or sets if enabled, connections that have application intent - /// set to readonly in their connection string may be routed to a - /// readonly secondary replica. This property is only settable for - /// Premium and Business Critical databases. Possible values include: - /// 'Enabled', 'Disabled' + /// Gets or sets the state of read-only routing. If enabled, + /// connections that have application intent set to readonly in their + /// connection string may be routed to a readonly secondary replica in + /// the same region. Possible values include: 'Enabled', 'Disabled' /// [JsonProperty(PropertyName = "properties.readScale")] public string ReadScale { get; set; } /// /// Gets or sets the number of readonly secondary replicas associated - /// with the database to which readonly application intent connections - /// may be routed. This property is only settable for Hyperscale - /// edition databases. + /// with the database. /// [JsonProperty(PropertyName = "properties.readReplicaCount")] public int? ReadReplicaCount { get; set; } @@ -443,6 +447,14 @@ public DatabaseUpdate() [JsonProperty(PropertyName = "properties.autoPauseDelay")] public int? AutoPauseDelay { get; set; } + /// + /// Gets or sets the storage account type used to store backups for + /// this database. Currently the only supported option is GRS + /// (GeoRedundantStorage). Possible values include: 'GRS', 'LRS', 'ZRS' + /// + [JsonProperty(PropertyName = "properties.storageAccountType")] + public string StorageAccountType { get; set; } + /// /// Gets or sets minimal capacity that database will always have /// allocated, if not paused @@ -452,7 +464,7 @@ public DatabaseUpdate() /// /// Gets the date when database was paused by user configuration or - /// action (ISO8601 format). Null if the database is ready. + /// action(ISO8601 format). Null if the database is ready. /// [JsonProperty(PropertyName = "properties.pausedDate")] public System.DateTime? PausedDate { get; private set; } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseVulnerabilityAssessment.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseVulnerabilityAssessment.cs index 0fcc79220867..4ad6c58749bf 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseVulnerabilityAssessment.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseVulnerabilityAssessment.cs @@ -42,8 +42,8 @@ public DatabaseVulnerabilityAssessment() /// https://myStorage.blob.core.windows.net/VaScans/). It is required /// if server level vulnerability assessment policy doesn't set /// A shared access signature (SAS - /// Key) that has write access to the blob container specified in - /// 'storageContainerPath' parameter. If 'storageAccountAccessKey' + /// Key) that has read and write access to the blob container specified + /// in 'storageContainerPath' parameter. If 'storageAccountAccessKey' /// isn't specified, StorageContainerSasKey is required. /// Specifies the identifier key /// of the storage account for vulnerability assessment scan results. @@ -75,10 +75,10 @@ public DatabaseVulnerabilityAssessment() public string StorageContainerPath { get; set; } /// - /// Gets or sets a shared access signature (SAS Key) that has write - /// access to the blob container specified in 'storageContainerPath' - /// parameter. If 'storageAccountAccessKey' isn't specified, - /// StorageContainerSasKey is required. + /// Gets or sets a shared access signature (SAS Key) that has read and + /// write access to the blob container specified in + /// 'storageContainerPath' parameter. If 'storageAccountAccessKey' + /// isn't specified, StorageContainerSasKey is required. /// [JsonProperty(PropertyName = "properties.storageContainerSasKey")] public string StorageContainerSasKey { get; set; } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/EditionCapability.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/EditionCapability.cs index f68ebcfb7e50..6876d1efeb61 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/EditionCapability.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/EditionCapability.cs @@ -36,15 +36,21 @@ public EditionCapability() /// service objectives for the edition. /// Whether or not zone redundancy is /// supported for the edition. + /// The read scale capability for the + /// edition. + /// The list of supported + /// storage capabilities for this edition /// The status of the capability. Possible values /// include: 'Visible', 'Available', 'Default', 'Disabled' /// The reason for the capability not being /// available. - public EditionCapability(string name = default(string), IList supportedServiceLevelObjectives = default(IList), bool? zoneRedundant = default(bool?), CapabilityStatus? status = default(CapabilityStatus?), string reason = default(string)) + public EditionCapability(string name = default(string), IList supportedServiceLevelObjectives = default(IList), bool? zoneRedundant = default(bool?), ReadScaleCapability readScale = default(ReadScaleCapability), IList supportedStorageCapabilities = default(IList), CapabilityStatus? status = default(CapabilityStatus?), string reason = default(string)) { Name = name; SupportedServiceLevelObjectives = supportedServiceLevelObjectives; ZoneRedundant = zoneRedundant; + ReadScale = readScale; + SupportedStorageCapabilities = supportedStorageCapabilities; Status = status; Reason = reason; CustomInit(); @@ -73,6 +79,18 @@ public EditionCapability() [JsonProperty(PropertyName = "zoneRedundant")] public bool? ZoneRedundant { get; private set; } + /// + /// Gets the read scale capability for the edition. + /// + [JsonProperty(PropertyName = "readScale")] + public ReadScaleCapability ReadScale { get; private set; } + + /// + /// Gets the list of supported storage capabilities for this edition + /// + [JsonProperty(PropertyName = "supportedStorageCapabilities")] + public IList SupportedStorageCapabilities { get; private set; } + /// /// Gets the status of the capability. Possible values include: /// 'Visible', 'Available', 'Default', 'Disabled' diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolPerformanceLevelCapability.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolPerformanceLevelCapability.cs index 7f42a53b6408..9dfae52b9858 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolPerformanceLevelCapability.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolPerformanceLevelCapability.cs @@ -48,11 +48,13 @@ public ElasticPoolPerformanceLevelCapability() /// per database max sizes. /// The list of /// supported per database max performance levels. + /// Whether or not zone redundancy is + /// supported for the performance level. /// The status of the capability. Possible values /// include: 'Visible', 'Available', 'Default', 'Disabled' /// The reason for the capability not being /// available. - public ElasticPoolPerformanceLevelCapability(PerformanceLevelCapability performanceLevel = default(PerformanceLevelCapability), Sku sku = default(Sku), IList supportedLicenseTypes = default(IList), int? maxDatabaseCount = default(int?), MaxSizeCapability includedMaxSize = default(MaxSizeCapability), IList supportedMaxSizes = default(IList), IList supportedPerDatabaseMaxSizes = default(IList), IList supportedPerDatabaseMaxPerformanceLevels = default(IList), CapabilityStatus? status = default(CapabilityStatus?), string reason = default(string)) + public ElasticPoolPerformanceLevelCapability(PerformanceLevelCapability performanceLevel = default(PerformanceLevelCapability), Sku sku = default(Sku), IList supportedLicenseTypes = default(IList), int? maxDatabaseCount = default(int?), MaxSizeCapability includedMaxSize = default(MaxSizeCapability), IList supportedMaxSizes = default(IList), IList supportedPerDatabaseMaxSizes = default(IList), IList supportedPerDatabaseMaxPerformanceLevels = default(IList), bool? zoneRedundant = default(bool?), CapabilityStatus? status = default(CapabilityStatus?), string reason = default(string)) { PerformanceLevel = performanceLevel; Sku = sku; @@ -62,6 +64,7 @@ public ElasticPoolPerformanceLevelCapability() SupportedMaxSizes = supportedMaxSizes; SupportedPerDatabaseMaxSizes = supportedPerDatabaseMaxSizes; SupportedPerDatabaseMaxPerformanceLevels = supportedPerDatabaseMaxPerformanceLevels; + ZoneRedundant = zoneRedundant; Status = status; Reason = reason; CustomInit(); @@ -120,6 +123,13 @@ public ElasticPoolPerformanceLevelCapability() [JsonProperty(PropertyName = "supportedPerDatabaseMaxPerformanceLevels")] public IList SupportedPerDatabaseMaxPerformanceLevels { get; private set; } + /// + /// Gets whether or not zone redundancy is supported for the + /// performance level. + /// + [JsonProperty(PropertyName = "zoneRedundant")] + public bool? ZoneRedundant { get; private set; } + /// /// Gets the status of the capability. Possible values include: /// 'Visible', 'Available', 'Default', 'Disabled' diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ExportDatabaseDefinition.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ExportDatabaseDefinition.cs new file mode 100644 index 000000000000..0a98139a22b7 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ExportDatabaseDefinition.cs @@ -0,0 +1,135 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Linq; + + /// + /// Contains the information necessary to perform export database + /// operation. + /// + public partial class ExportDatabaseDefinition + { + /// + /// Initializes a new instance of the ExportDatabaseDefinition class. + /// + public ExportDatabaseDefinition() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ExportDatabaseDefinition class. + /// + /// Storage key type. Possible values + /// include: 'SharedAccessKey', 'StorageAccessKey' + /// Storage key. + /// Storage Uri. + /// Administrator login name. + /// Administrator login + /// password. + /// Authentication type. + /// Optional resource information to + /// enable network isolation for request. + public ExportDatabaseDefinition(string storageKeyType, string storageKey, string storageUri, string administratorLogin, string administratorLoginPassword, string authenticationType = default(string), NetworkIsolationSettings networkIsolation = default(NetworkIsolationSettings)) + { + StorageKeyType = storageKeyType; + StorageKey = storageKey; + StorageUri = storageUri; + AdministratorLogin = administratorLogin; + AdministratorLoginPassword = administratorLoginPassword; + AuthenticationType = authenticationType; + NetworkIsolation = networkIsolation; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets storage key type. Possible values include: + /// 'SharedAccessKey', 'StorageAccessKey' + /// + [JsonProperty(PropertyName = "storageKeyType")] + public string StorageKeyType { get; set; } + + /// + /// Gets or sets storage key. + /// + [JsonProperty(PropertyName = "storageKey")] + public string StorageKey { get; set; } + + /// + /// Gets or sets storage Uri. + /// + [JsonProperty(PropertyName = "storageUri")] + public string StorageUri { get; set; } + + /// + /// Gets or sets administrator login name. + /// + [JsonProperty(PropertyName = "administratorLogin")] + public string AdministratorLogin { get; set; } + + /// + /// Gets or sets administrator login password. + /// + [JsonProperty(PropertyName = "administratorLoginPassword")] + public string AdministratorLoginPassword { get; set; } + + /// + /// Gets or sets authentication type. + /// + [JsonProperty(PropertyName = "authenticationType")] + public string AuthenticationType { get; set; } + + /// + /// Gets or sets optional resource information to enable network + /// isolation for request. + /// + [JsonProperty(PropertyName = "networkIsolation")] + public NetworkIsolationSettings NetworkIsolation { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (StorageKeyType == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "StorageKeyType"); + } + if (StorageKey == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "StorageKey"); + } + if (StorageUri == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "StorageUri"); + } + if (AdministratorLogin == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "AdministratorLogin"); + } + if (AdministratorLoginPassword == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "AdministratorLoginPassword"); + } + } + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ExtendedDatabaseBlobAuditingPolicy.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ExtendedDatabaseBlobAuditingPolicy.cs index 26e8b807a859..fb45c749c8e3 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ExtendedDatabaseBlobAuditingPolicy.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ExtendedDatabaseBlobAuditingPolicy.cs @@ -49,9 +49,19 @@ public ExtendedDatabaseBlobAuditingPolicy() /// Enabled, storageEndpoint or isAzureMonitorTargetEnabled is /// required. /// Specifies the identifier key - /// of the auditing storage account. If state is Enabled and - /// storageEndpoint is specified, storageAccountAccessKey is - /// required. + /// of the auditing storage account. + /// If state is Enabled and storageEndpoint is specified, not + /// specifying the storageAccountAccessKey will use SQL server + /// system-assigned managed identity to access the storage. + /// Prerequisites for using managed identity authentication: + /// 1. Assign SQL Server a system-assigned managed identity in Azure + /// Active Directory (AAD). + /// 2. Grant SQL Server identity access to the storage account by + /// adding 'Storage Blob Data Contributor' RBAC role to the server + /// identity. + /// For more information, see [Auditing to storage using Managed + /// Identity + /// authentication](https://go.microsoft.com/fwlink/?linkid=2114355) /// Specifies the number of days to keep in /// the audit logs in the storage account. /// Specifies the Actions-Groups @@ -204,8 +214,19 @@ public ExtendedDatabaseBlobAuditingPolicy() /// /// Gets or sets specifies the identifier key of the auditing storage - /// account. If state is Enabled and storageEndpoint is specified, - /// storageAccountAccessKey is required. + /// account. + /// If state is Enabled and storageEndpoint is specified, not + /// specifying the storageAccountAccessKey will use SQL server + /// system-assigned managed identity to access the storage. + /// Prerequisites for using managed identity authentication: + /// 1. Assign SQL Server a system-assigned managed identity in Azure + /// Active Directory (AAD). + /// 2. Grant SQL Server identity access to the storage account by + /// adding 'Storage Blob Data Contributor' RBAC role to the server + /// identity. + /// For more information, see [Auditing to storage using Managed + /// Identity + /// authentication](https://go.microsoft.com/fwlink/?linkid=2114355) /// [JsonProperty(PropertyName = "properties.storageAccountAccessKey")] public string StorageAccountAccessKey { get; set; } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ExtendedServerBlobAuditingPolicy.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ExtendedServerBlobAuditingPolicy.cs index 31f94db40baa..f7e2e879b2bf 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ExtendedServerBlobAuditingPolicy.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ExtendedServerBlobAuditingPolicy.cs @@ -49,9 +49,19 @@ public ExtendedServerBlobAuditingPolicy() /// Enabled, storageEndpoint or isAzureMonitorTargetEnabled is /// required. /// Specifies the identifier key - /// of the auditing storage account. If state is Enabled and - /// storageEndpoint is specified, storageAccountAccessKey is - /// required. + /// of the auditing storage account. + /// If state is Enabled and storageEndpoint is specified, not + /// specifying the storageAccountAccessKey will use SQL server + /// system-assigned managed identity to access the storage. + /// Prerequisites for using managed identity authentication: + /// 1. Assign SQL Server a system-assigned managed identity in Azure + /// Active Directory (AAD). + /// 2. Grant SQL Server identity access to the storage account by + /// adding 'Storage Blob Data Contributor' RBAC role to the server + /// identity. + /// For more information, see [Auditing to storage using Managed + /// Identity + /// authentication](https://go.microsoft.com/fwlink/?linkid=2114355) /// Specifies the number of days to keep in /// the audit logs in the storage account. /// Specifies the Actions-Groups @@ -204,8 +214,19 @@ public ExtendedServerBlobAuditingPolicy() /// /// Gets or sets specifies the identifier key of the auditing storage - /// account. If state is Enabled and storageEndpoint is specified, - /// storageAccountAccessKey is required. + /// account. + /// If state is Enabled and storageEndpoint is specified, not + /// specifying the storageAccountAccessKey will use SQL server + /// system-assigned managed identity to access the storage. + /// Prerequisites for using managed identity authentication: + /// 1. Assign SQL Server a system-assigned managed identity in Azure + /// Active Directory (AAD). + /// 2. Grant SQL Server identity access to the storage account by + /// adding 'Storage Blob Data Contributor' RBAC role to the server + /// identity. + /// For more information, see [Auditing to storage using Managed + /// Identity + /// authentication](https://go.microsoft.com/fwlink/?linkid=2114355) /// [JsonProperty(PropertyName = "properties.storageAccountAccessKey")] public string StorageAccountAccessKey { get; set; } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ImportExistingDatabaseDefinition.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ImportExistingDatabaseDefinition.cs new file mode 100644 index 000000000000..3cca5ca109c9 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ImportExistingDatabaseDefinition.cs @@ -0,0 +1,137 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Linq; + + /// + /// Contains the information necessary to perform import operation for + /// existing database. + /// + public partial class ImportExistingDatabaseDefinition + { + /// + /// Initializes a new instance of the ImportExistingDatabaseDefinition + /// class. + /// + public ImportExistingDatabaseDefinition() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ImportExistingDatabaseDefinition + /// class. + /// + /// Storage key type. Possible values + /// include: 'SharedAccessKey', 'StorageAccessKey' + /// Storage key. + /// Storage Uri. + /// Administrator login name. + /// Administrator login + /// password. + /// Authentication type. + /// Optional resource information to + /// enable network isolation for request. + public ImportExistingDatabaseDefinition(string storageKeyType, string storageKey, string storageUri, string administratorLogin, string administratorLoginPassword, string authenticationType = default(string), NetworkIsolationSettings networkIsolation = default(NetworkIsolationSettings)) + { + StorageKeyType = storageKeyType; + StorageKey = storageKey; + StorageUri = storageUri; + AdministratorLogin = administratorLogin; + AdministratorLoginPassword = administratorLoginPassword; + AuthenticationType = authenticationType; + NetworkIsolation = networkIsolation; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets storage key type. Possible values include: + /// 'SharedAccessKey', 'StorageAccessKey' + /// + [JsonProperty(PropertyName = "storageKeyType")] + public string StorageKeyType { get; set; } + + /// + /// Gets or sets storage key. + /// + [JsonProperty(PropertyName = "storageKey")] + public string StorageKey { get; set; } + + /// + /// Gets or sets storage Uri. + /// + [JsonProperty(PropertyName = "storageUri")] + public string StorageUri { get; set; } + + /// + /// Gets or sets administrator login name. + /// + [JsonProperty(PropertyName = "administratorLogin")] + public string AdministratorLogin { get; set; } + + /// + /// Gets or sets administrator login password. + /// + [JsonProperty(PropertyName = "administratorLoginPassword")] + public string AdministratorLoginPassword { get; set; } + + /// + /// Gets or sets authentication type. + /// + [JsonProperty(PropertyName = "authenticationType")] + public string AuthenticationType { get; set; } + + /// + /// Gets or sets optional resource information to enable network + /// isolation for request. + /// + [JsonProperty(PropertyName = "networkIsolation")] + public NetworkIsolationSettings NetworkIsolation { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (StorageKeyType == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "StorageKeyType"); + } + if (StorageKey == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "StorageKey"); + } + if (StorageUri == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "StorageUri"); + } + if (AdministratorLogin == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "AdministratorLogin"); + } + if (AdministratorLoginPassword == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "AdministratorLoginPassword"); + } + } + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ImportExportOperationResult.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ImportExportOperationResult.cs new file mode 100644 index 000000000000..548a1664d3b2 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ImportExportOperationResult.cs @@ -0,0 +1,135 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// An ImportExport operation result resource. + /// + [Rest.Serialization.JsonTransformation] + public partial class ImportExportOperationResult : ProxyResource + { + /// + /// Initializes a new instance of the ImportExportOperationResult + /// class. + /// + public ImportExportOperationResult() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ImportExportOperationResult + /// class. + /// + /// Resource ID. + /// Resource name. + /// Resource type. + /// Request Id. + /// Request type. + /// Queued time. + /// Last modified time. + /// Blob Uri. + /// Server name. + /// Database name. + /// Operation status. + /// Error message. + /// Gets the status of private + /// endpoints associated with this request. + public ImportExportOperationResult(string id = default(string), string name = default(string), string type = default(string), System.Guid? requestId = default(System.Guid?), string requestType = default(string), string queuedTime = default(string), string lastModifiedTime = default(string), string blobUri = default(string), string serverName = default(string), string databaseName = default(string), string status = default(string), string errorMessage = default(string), IList privateEndpointConnections = default(IList)) + : base(id, name, type) + { + RequestId = requestId; + RequestType = requestType; + QueuedTime = queuedTime; + LastModifiedTime = lastModifiedTime; + BlobUri = blobUri; + ServerName = serverName; + DatabaseName = databaseName; + Status = status; + ErrorMessage = errorMessage; + PrivateEndpointConnections = privateEndpointConnections; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets request Id. + /// + [JsonProperty(PropertyName = "properties.requestId")] + public System.Guid? RequestId { get; private set; } + + /// + /// Gets request type. + /// + [JsonProperty(PropertyName = "properties.requestType")] + public string RequestType { get; private set; } + + /// + /// Gets queued time. + /// + [JsonProperty(PropertyName = "properties.queuedTime")] + public string QueuedTime { get; private set; } + + /// + /// Gets last modified time. + /// + [JsonProperty(PropertyName = "properties.lastModifiedTime")] + public string LastModifiedTime { get; private set; } + + /// + /// Gets blob Uri. + /// + [JsonProperty(PropertyName = "properties.blobUri")] + public string BlobUri { get; private set; } + + /// + /// Gets server name. + /// + [JsonProperty(PropertyName = "properties.serverName")] + public string ServerName { get; private set; } + + /// + /// Gets database name. + /// + [JsonProperty(PropertyName = "properties.databaseName")] + public string DatabaseName { get; private set; } + + /// + /// Gets operation status. + /// + [JsonProperty(PropertyName = "properties.status")] + public string Status { get; private set; } + + /// + /// Gets error message. + /// + [JsonProperty(PropertyName = "properties.errorMessage")] + public string ErrorMessage { get; private set; } + + /// + /// Gets the status of private endpoints associated with this request. + /// + [JsonProperty(PropertyName = "properties.privateEndpointConnections")] + public IList PrivateEndpointConnections { get; private set; } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ImportNewDatabaseDefinition.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ImportNewDatabaseDefinition.cs new file mode 100644 index 000000000000..db630e00fd92 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ImportNewDatabaseDefinition.cs @@ -0,0 +1,171 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Linq; + + /// + /// Contains the information necessary to perform import operation for new + /// database. + /// + public partial class ImportNewDatabaseDefinition + { + /// + /// Initializes a new instance of the ImportNewDatabaseDefinition + /// class. + /// + public ImportNewDatabaseDefinition() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ImportNewDatabaseDefinition + /// class. + /// + /// Storage key type. Possible values + /// include: 'SharedAccessKey', 'StorageAccessKey' + /// Storage key. + /// Storage Uri. + /// Administrator login name. + /// Administrator login + /// password. + /// Name of the import database. + /// Edition of the import database. + /// Service level objective name of + /// the import database. + /// Max size in bytes for the import + /// database. + /// Authentication type. + /// Optional resource information to + /// enable network isolation for request. + public ImportNewDatabaseDefinition(string storageKeyType, string storageKey, string storageUri, string administratorLogin, string administratorLoginPassword, string databaseName = default(string), string edition = default(string), string serviceObjectiveName = default(string), string maxSizeBytes = default(string), string authenticationType = default(string), NetworkIsolationSettings networkIsolation = default(NetworkIsolationSettings)) + { + DatabaseName = databaseName; + Edition = edition; + ServiceObjectiveName = serviceObjectiveName; + MaxSizeBytes = maxSizeBytes; + StorageKeyType = storageKeyType; + StorageKey = storageKey; + StorageUri = storageUri; + AdministratorLogin = administratorLogin; + AdministratorLoginPassword = administratorLoginPassword; + AuthenticationType = authenticationType; + NetworkIsolation = networkIsolation; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets name of the import database. + /// + [JsonProperty(PropertyName = "databaseName")] + public string DatabaseName { get; set; } + + /// + /// Gets or sets edition of the import database. + /// + [JsonProperty(PropertyName = "edition")] + public string Edition { get; set; } + + /// + /// Gets or sets service level objective name of the import database. + /// + [JsonProperty(PropertyName = "serviceObjectiveName")] + public string ServiceObjectiveName { get; set; } + + /// + /// Gets or sets max size in bytes for the import database. + /// + [JsonProperty(PropertyName = "maxSizeBytes")] + public string MaxSizeBytes { get; set; } + + /// + /// Gets or sets storage key type. Possible values include: + /// 'SharedAccessKey', 'StorageAccessKey' + /// + [JsonProperty(PropertyName = "storageKeyType")] + public string StorageKeyType { get; set; } + + /// + /// Gets or sets storage key. + /// + [JsonProperty(PropertyName = "storageKey")] + public string StorageKey { get; set; } + + /// + /// Gets or sets storage Uri. + /// + [JsonProperty(PropertyName = "storageUri")] + public string StorageUri { get; set; } + + /// + /// Gets or sets administrator login name. + /// + [JsonProperty(PropertyName = "administratorLogin")] + public string AdministratorLogin { get; set; } + + /// + /// Gets or sets administrator login password. + /// + [JsonProperty(PropertyName = "administratorLoginPassword")] + public string AdministratorLoginPassword { get; set; } + + /// + /// Gets or sets authentication type. + /// + [JsonProperty(PropertyName = "authenticationType")] + public string AuthenticationType { get; set; } + + /// + /// Gets or sets optional resource information to enable network + /// isolation for request. + /// + [JsonProperty(PropertyName = "networkIsolation")] + public NetworkIsolationSettings NetworkIsolation { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (StorageKeyType == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "StorageKeyType"); + } + if (StorageKey == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "StorageKey"); + } + if (StorageUri == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "StorageUri"); + } + if (AdministratorLogin == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "AdministratorLogin"); + } + if (AdministratorLoginPassword == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "AdministratorLoginPassword"); + } + } + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstancePoolEditionCapability.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstancePoolEditionCapability.cs new file mode 100644 index 000000000000..01ed3b9fb65a --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstancePoolEditionCapability.cs @@ -0,0 +1,82 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// The instance pool capability + /// + public partial class InstancePoolEditionCapability + { + /// + /// Initializes a new instance of the InstancePoolEditionCapability + /// class. + /// + public InstancePoolEditionCapability() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the InstancePoolEditionCapability + /// class. + /// + /// The instance pool version name. + /// The supported families. + /// The status of the capability. Possible values + /// include: 'Visible', 'Available', 'Default', 'Disabled' + /// The reason for the capability not being + /// available. + public InstancePoolEditionCapability(string name = default(string), IList supportedFamilies = default(IList), CapabilityStatus? status = default(CapabilityStatus?), string reason = default(string)) + { + Name = name; + SupportedFamilies = supportedFamilies; + Status = status; + Reason = reason; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets the instance pool version name. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; private set; } + + /// + /// Gets the supported families. + /// + [JsonProperty(PropertyName = "supportedFamilies")] + public IList SupportedFamilies { get; private set; } + + /// + /// Gets the status of the capability. Possible values include: + /// 'Visible', 'Available', 'Default', 'Disabled' + /// + [JsonProperty(PropertyName = "status")] + public CapabilityStatus? Status { get; private set; } + + /// + /// Gets or sets the reason for the capability not being available. + /// + [JsonProperty(PropertyName = "reason")] + public string Reason { get; set; } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstancePoolFamilyCapability.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstancePoolFamilyCapability.cs new file mode 100644 index 000000000000..ecfc3e5e09c7 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstancePoolFamilyCapability.cs @@ -0,0 +1,92 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// The instance pool family capability. + /// + public partial class InstancePoolFamilyCapability + { + /// + /// Initializes a new instance of the InstancePoolFamilyCapability + /// class. + /// + public InstancePoolFamilyCapability() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the InstancePoolFamilyCapability + /// class. + /// + /// Family name. + /// List of supported license + /// types. + /// List of supported virtual cores + /// values. + /// The status of the capability. Possible values + /// include: 'Visible', 'Available', 'Default', 'Disabled' + /// The reason for the capability not being + /// available. + public InstancePoolFamilyCapability(string name = default(string), IList supportedLicenseTypes = default(IList), IList supportedVcoresValues = default(IList), CapabilityStatus? status = default(CapabilityStatus?), string reason = default(string)) + { + Name = name; + SupportedLicenseTypes = supportedLicenseTypes; + SupportedVcoresValues = supportedVcoresValues; + Status = status; + Reason = reason; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets family name. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; private set; } + + /// + /// Gets list of supported license types. + /// + [JsonProperty(PropertyName = "supportedLicenseTypes")] + public IList SupportedLicenseTypes { get; private set; } + + /// + /// Gets list of supported virtual cores values. + /// + [JsonProperty(PropertyName = "supportedVcoresValues")] + public IList SupportedVcoresValues { get; private set; } + + /// + /// Gets the status of the capability. Possible values include: + /// 'Visible', 'Available', 'Default', 'Disabled' + /// + [JsonProperty(PropertyName = "status")] + public CapabilityStatus? Status { get; private set; } + + /// + /// Gets or sets the reason for the capability not being available. + /// + [JsonProperty(PropertyName = "reason")] + public string Reason { get; set; } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstancePoolVcoresCapability.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstancePoolVcoresCapability.cs new file mode 100644 index 000000000000..6d5c653c1846 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/InstancePoolVcoresCapability.cs @@ -0,0 +1,88 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// The managed instance virtual cores capability. + /// + public partial class InstancePoolVcoresCapability + { + /// + /// Initializes a new instance of the InstancePoolVcoresCapability + /// class. + /// + public InstancePoolVcoresCapability() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the InstancePoolVcoresCapability + /// class. + /// + /// The virtual cores identifier. + /// The virtual cores value. + /// Storage limit. + /// The status of the capability. Possible values + /// include: 'Visible', 'Available', 'Default', 'Disabled' + /// The reason for the capability not being + /// available. + public InstancePoolVcoresCapability(string name = default(string), int? value = default(int?), MaxSizeCapability storageLimit = default(MaxSizeCapability), CapabilityStatus? status = default(CapabilityStatus?), string reason = default(string)) + { + Name = name; + Value = value; + StorageLimit = storageLimit; + Status = status; + Reason = reason; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets the virtual cores identifier. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; private set; } + + /// + /// Gets the virtual cores value. + /// + [JsonProperty(PropertyName = "value")] + public int? Value { get; private set; } + + /// + /// Gets storage limit. + /// + [JsonProperty(PropertyName = "storageLimit")] + public MaxSizeCapability StorageLimit { get; private set; } + + /// + /// Gets the status of the capability. Possible values include: + /// 'Visible', 'Available', 'Default', 'Disabled' + /// + [JsonProperty(PropertyName = "status")] + public CapabilityStatus? Status { get; private set; } + + /// + /// Gets or sets the reason for the capability not being available. + /// + [JsonProperty(PropertyName = "reason")] + public string Reason { get; set; } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstance.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstance.cs index 39e3bb0b60a5..52cd6203274a 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstance.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstance.cs @@ -105,6 +105,8 @@ public ManagedInstance() /// Europe Standard Time". /// The Id of the instance pool this /// managed server belongs to. + /// Specifies maintenance + /// configuration id to apply to this managed instance. /// Minimal TLS version. Allowed /// values: 'None', '1.0', '1.1', '1.2' /// The storage account type used to @@ -136,6 +138,7 @@ public ManagedInstance() ProxyOverride = proxyOverride; TimezoneId = timezoneId; InstancePoolId = instancePoolId; + MaintenanceConfigurationId = maintenanceConfigurationId; MinimalTlsVersion = minimalTlsVersion; StorageAccountType = storageAccountType; CustomInit(); @@ -306,6 +309,13 @@ public ManagedInstance() [JsonProperty(PropertyName = "properties.instancePoolId")] public string InstancePoolId { get; set; } + /// + /// Gets or sets specifies maintenance configuration id to apply to + /// this managed instance. + /// + [JsonProperty(PropertyName = "properties.maintenanceConfigurationId")] + public string MaintenanceConfigurationId { get; set; } + /// /// Gets or sets minimal TLS version. Allowed values: 'None', '1.0', /// '1.1', '1.2' diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceFamilyCapability.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceFamilyCapability.cs index 0e2270ab9283..df268f844004 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceFamilyCapability.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceFamilyCapability.cs @@ -39,20 +39,16 @@ public ManagedInstanceFamilyCapability() /// types. /// List of supported virtual cores /// values. - /// Included size. - /// Storage size ranges. /// The status of the capability. Possible values /// include: 'Visible', 'Available', 'Default', 'Disabled' /// The reason for the capability not being /// available. - public ManagedInstanceFamilyCapability(string name = default(string), string sku = default(string), IList supportedLicenseTypes = default(IList), IList supportedVcoresValues = default(IList), MaxSizeCapability includedMaxSize = default(MaxSizeCapability), IList supportedStorageSizes = default(IList), CapabilityStatus? status = default(CapabilityStatus?), string reason = default(string)) + public ManagedInstanceFamilyCapability(string name = default(string), string sku = default(string), IList supportedLicenseTypes = default(IList), IList supportedVcoresValues = default(IList), CapabilityStatus? status = default(CapabilityStatus?), string reason = default(string)) { Name = name; Sku = sku; SupportedLicenseTypes = supportedLicenseTypes; SupportedVcoresValues = supportedVcoresValues; - IncludedMaxSize = includedMaxSize; - SupportedStorageSizes = supportedStorageSizes; Status = status; Reason = reason; CustomInit(); @@ -87,18 +83,6 @@ public ManagedInstanceFamilyCapability() [JsonProperty(PropertyName = "supportedVcoresValues")] public IList SupportedVcoresValues { get; private set; } - /// - /// Gets included size. - /// - [JsonProperty(PropertyName = "includedMaxSize")] - public MaxSizeCapability IncludedMaxSize { get; private set; } - - /// - /// Gets storage size ranges. - /// - [JsonProperty(PropertyName = "supportedStorageSizes")] - public IList SupportedStorageSizes { get; private set; } - /// /// Gets the status of the capability. Possible values include: /// 'Visible', 'Available', 'Default', 'Disabled' diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstancePrivateLinkServiceConnectionStateProperty.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstancePrivateLinkServiceConnectionStateProperty.cs new file mode 100644 index 000000000000..19079afb92e3 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstancePrivateLinkServiceConnectionStateProperty.cs @@ -0,0 +1,87 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Linq; + + public partial class ManagedInstancePrivateLinkServiceConnectionStateProperty + { + /// + /// Initializes a new instance of the + /// ManagedInstancePrivateLinkServiceConnectionStateProperty class. + /// + public ManagedInstancePrivateLinkServiceConnectionStateProperty() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// ManagedInstancePrivateLinkServiceConnectionStateProperty class. + /// + /// The private link service connection + /// status. + /// The private link service connection + /// description. + /// The private link service connection + /// description. + public ManagedInstancePrivateLinkServiceConnectionStateProperty(string status, string description, string actionsRequired = default(string)) + { + Status = status; + Description = description; + ActionsRequired = actionsRequired; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the private link service connection status. + /// + [JsonProperty(PropertyName = "status")] + public string Status { get; set; } + + /// + /// Gets or sets the private link service connection description. + /// + [JsonProperty(PropertyName = "description")] + public string Description { get; set; } + + /// + /// Gets the private link service connection description. + /// + [JsonProperty(PropertyName = "actionsRequired")] + public string ActionsRequired { get; private set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Status == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Status"); + } + if (Description == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Description"); + } + } + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceUpdate.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceUpdate.cs index c7a69145d33a..ee021f2b815c 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceUpdate.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceUpdate.cs @@ -97,6 +97,8 @@ public ManagedInstanceUpdate() /// Europe Standard Time". /// The Id of the instance pool this /// managed server belongs to. + /// Specifies maintenance + /// configuration id to apply to this managed instance. /// Minimal TLS version. Allowed /// values: 'None', '1.0', '1.1', '1.2' /// The storage account type used to @@ -127,6 +129,7 @@ public ManagedInstanceUpdate() ProxyOverride = proxyOverride; TimezoneId = timezoneId; InstancePoolId = instancePoolId; + MaintenanceConfigurationId = maintenanceConfigurationId; MinimalTlsVersion = minimalTlsVersion; StorageAccountType = storageAccountType; Tags = tags; @@ -290,6 +293,13 @@ public ManagedInstanceUpdate() [JsonProperty(PropertyName = "properties.instancePoolId")] public string InstancePoolId { get; set; } + /// + /// Gets or sets specifies maintenance configuration id to apply to + /// this managed instance. + /// + [JsonProperty(PropertyName = "properties.maintenanceConfigurationId")] + public string MaintenanceConfigurationId { get; set; } + /// /// Gets or sets minimal TLS version. Allowed values: 'None', '1.0', /// '1.1', '1.2' diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceVcoresCapability.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceVcoresCapability.cs index 5d8c8e6adbfb..c252dd6a583a 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceVcoresCapability.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceVcoresCapability.cs @@ -11,6 +11,8 @@ namespace Microsoft.Azure.Management.Sql.Models { using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; using System.Linq; /// @@ -33,14 +35,24 @@ public ManagedInstanceVcoresCapability() /// /// The virtual cores identifier. /// The virtual cores value. + /// Included size. + /// Storage size ranges. + /// True if this service objective + /// is supported for managed instances in an instance pool. + /// True if this service objective is + /// supported for standalone managed instances. /// The status of the capability. Possible values /// include: 'Visible', 'Available', 'Default', 'Disabled' /// The reason for the capability not being /// available. - public ManagedInstanceVcoresCapability(string name = default(string), int? value = default(int?), CapabilityStatus? status = default(CapabilityStatus?), string reason = default(string)) + public ManagedInstanceVcoresCapability(string name = default(string), int? value = default(int?), MaxSizeCapability includedMaxSize = default(MaxSizeCapability), IList supportedStorageSizes = default(IList), bool? instancePoolSupported = default(bool?), bool? standaloneSupported = default(bool?), CapabilityStatus? status = default(CapabilityStatus?), string reason = default(string)) { Name = name; Value = value; + IncludedMaxSize = includedMaxSize; + SupportedStorageSizes = supportedStorageSizes; + InstancePoolSupported = instancePoolSupported; + StandaloneSupported = standaloneSupported; Status = status; Reason = reason; CustomInit(); @@ -63,6 +75,32 @@ public ManagedInstanceVcoresCapability() [JsonProperty(PropertyName = "value")] public int? Value { get; private set; } + /// + /// Gets included size. + /// + [JsonProperty(PropertyName = "includedMaxSize")] + public MaxSizeCapability IncludedMaxSize { get; private set; } + + /// + /// Gets storage size ranges. + /// + [JsonProperty(PropertyName = "supportedStorageSizes")] + public IList SupportedStorageSizes { get; private set; } + + /// + /// Gets true if this service objective is supported for managed + /// instances in an instance pool. + /// + [JsonProperty(PropertyName = "instancePoolSupported")] + public bool? InstancePoolSupported { get; private set; } + + /// + /// Gets true if this service objective is supported for standalone + /// managed instances. + /// + [JsonProperty(PropertyName = "standaloneSupported")] + public bool? StandaloneSupported { get; private set; } + /// /// Gets the status of the capability. Possible values include: /// 'Visible', 'Available', 'Default', 'Disabled' diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceVersionCapability.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceVersionCapability.cs index e715d86d3e63..2278b208d4c5 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceVersionCapability.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceVersionCapability.cs @@ -36,14 +36,17 @@ public ManagedInstanceVersionCapability() /// The server version name. /// The list of supported managed /// instance editions. + /// The list of supported + /// instance pool editions. /// The status of the capability. Possible values /// include: 'Visible', 'Available', 'Default', 'Disabled' /// The reason for the capability not being /// available. - public ManagedInstanceVersionCapability(string name = default(string), IList supportedEditions = default(IList), CapabilityStatus? status = default(CapabilityStatus?), string reason = default(string)) + public ManagedInstanceVersionCapability(string name = default(string), IList supportedEditions = default(IList), IList supportedInstancePoolEditions = default(IList), CapabilityStatus? status = default(CapabilityStatus?), string reason = default(string)) { Name = name; SupportedEditions = supportedEditions; + SupportedInstancePoolEditions = supportedInstancePoolEditions; Status = status; Reason = reason; CustomInit(); @@ -66,6 +69,12 @@ public ManagedInstanceVersionCapability() [JsonProperty(PropertyName = "supportedEditions")] public IList SupportedEditions { get; private set; } + /// + /// Gets the list of supported instance pool editions. + /// + [JsonProperty(PropertyName = "supportedInstancePoolEditions")] + public IList SupportedInstancePoolEditions { get; private set; } + /// /// Gets the status of the capability. Possible values include: /// 'Visible', 'Available', 'Default', 'Disabled' diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceVulnerabilityAssessment.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceVulnerabilityAssessment.cs index aec229e8d1eb..7c46e6d77625 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceVulnerabilityAssessment.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ManagedInstanceVulnerabilityAssessment.cs @@ -41,8 +41,8 @@ public ManagedInstanceVulnerabilityAssessment() /// Resource name. /// Resource type. /// A shared access signature (SAS - /// Key) that has write access to the blob container specified in - /// 'storageContainerPath' parameter. If 'storageAccountAccessKey' + /// Key) that has read and write access to the blob container specified + /// in 'storageContainerPath' parameter. If 'storageAccountAccessKey' /// isn't specified, StorageContainerSasKey is required. /// Specifies the identifier key /// of the storage account for vulnerability assessment scan results. @@ -72,10 +72,10 @@ public ManagedInstanceVulnerabilityAssessment() public string StorageContainerPath { get; set; } /// - /// Gets or sets a shared access signature (SAS Key) that has write - /// access to the blob container specified in 'storageContainerPath' - /// parameter. If 'storageAccountAccessKey' isn't specified, - /// StorageContainerSasKey is required. + /// Gets or sets a shared access signature (SAS Key) that has read and + /// write access to the blob container specified in + /// 'storageContainerPath' parameter. If 'storageAccountAccessKey' + /// isn't specified, StorageContainerSasKey is required. /// [JsonProperty(PropertyName = "properties.storageContainerSasKey")] public string StorageContainerSasKey { get; set; } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/MinCapacityCapability.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/MinCapacityCapability.cs new file mode 100644 index 000000000000..b713250cad8e --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/MinCapacityCapability.cs @@ -0,0 +1,70 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// The min capacity capability + /// + public partial class MinCapacityCapability + { + /// + /// Initializes a new instance of the MinCapacityCapability class. + /// + public MinCapacityCapability() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the MinCapacityCapability class. + /// + /// Min capacity value + /// The status of the capability. Possible values + /// include: 'Visible', 'Available', 'Default', 'Disabled' + /// The reason for the capability not being + /// available. + public MinCapacityCapability(double? value = default(double?), CapabilityStatus? status = default(CapabilityStatus?), string reason = default(string)) + { + Value = value; + Status = status; + Reason = reason; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets min capacity value + /// + [JsonProperty(PropertyName = "value")] + public double? Value { get; private set; } + + /// + /// Gets the status of the capability. Possible values include: + /// 'Visible', 'Available', 'Default', 'Disabled' + /// + [JsonProperty(PropertyName = "status")] + public CapabilityStatus? Status { get; private set; } + + /// + /// Gets or sets the reason for the capability not being available. + /// + [JsonProperty(PropertyName = "reason")] + public string Reason { get; set; } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/NetworkIsolationSettings.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/NetworkIsolationSettings.cs new file mode 100644 index 000000000000..b83f3b2b33fa --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/NetworkIsolationSettings.cs @@ -0,0 +1,72 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Contains the ARM resources for which to create private endpoint + /// connection. + /// + public partial class NetworkIsolationSettings + { + /// + /// Initializes a new instance of the NetworkIsolationSettings class. + /// + public NetworkIsolationSettings() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the NetworkIsolationSettings class. + /// + /// The resource id for the + /// storage account used to store BACPAC file. If set, private endpoint + /// connection will be created for the storage account. Must match + /// storage account used for StorageUri parameter. + /// The resource id for the SQL + /// server which is the target of this request. If set, private + /// endpoint connection will be created for the SQL server. Must match + /// server which is target of the operation. + public NetworkIsolationSettings(string storageAccountResourceId = default(string), string sqlServerResourceId = default(string)) + { + StorageAccountResourceId = storageAccountResourceId; + SqlServerResourceId = sqlServerResourceId; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the resource id for the storage account used to store + /// BACPAC file. If set, private endpoint connection will be created + /// for the storage account. Must match storage account used for + /// StorageUri parameter. + /// + [JsonProperty(PropertyName = "storageAccountResourceId")] + public string StorageAccountResourceId { get; set; } + + /// + /// Gets or sets the resource id for the SQL server which is the target + /// of this request. If set, private endpoint connection will be + /// created for the SQL server. Must match server which is target of + /// the operation. + /// + [JsonProperty(PropertyName = "sqlServerResourceId")] + public string SqlServerResourceId { get; set; } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PauseDelayTimeUnit.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PauseDelayTimeUnit.cs new file mode 100644 index 000000000000..3f1dbe1e042c --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PauseDelayTimeUnit.cs @@ -0,0 +1,21 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + + /// + /// Defines values for PauseDelayTimeUnit. + /// + public static class PauseDelayTimeUnit + { + public const string Minutes = "Minutes"; + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateEndpointConnectionRequestStatus.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateEndpointConnectionRequestStatus.cs new file mode 100644 index 000000000000..e65d5eece7a2 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/PrivateEndpointConnectionRequestStatus.cs @@ -0,0 +1,72 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Contains the private endpoint connection requests status. + /// + public partial class PrivateEndpointConnectionRequestStatus + { + /// + /// Initializes a new instance of the + /// PrivateEndpointConnectionRequestStatus class. + /// + public PrivateEndpointConnectionRequestStatus() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// PrivateEndpointConnectionRequestStatus class. + /// + /// Resource id for which the + /// private endpoint is created. + /// The connection name for + /// the private endpoint. + /// Status of this private endpoint + /// connection. + public PrivateEndpointConnectionRequestStatus(string privateLinkServiceId = default(string), string privateEndpointConnectionName = default(string), string status = default(string)) + { + PrivateLinkServiceId = privateLinkServiceId; + PrivateEndpointConnectionName = privateEndpointConnectionName; + Status = status; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets resource id for which the private endpoint is created. + /// + [JsonProperty(PropertyName = "privateLinkServiceId")] + public string PrivateLinkServiceId { get; private set; } + + /// + /// Gets the connection name for the private endpoint. + /// + [JsonProperty(PropertyName = "privateEndpointConnectionName")] + public string PrivateEndpointConnectionName { get; private set; } + + /// + /// Gets status of this private endpoint connection. + /// + [JsonProperty(PropertyName = "status")] + public string Status { get; private set; } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReadScaleCapability.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReadScaleCapability.cs new file mode 100644 index 000000000000..1055b0b9c412 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ReadScaleCapability.cs @@ -0,0 +1,71 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// The read scale capability. + /// + public partial class ReadScaleCapability + { + /// + /// Initializes a new instance of the ReadScaleCapability class. + /// + public ReadScaleCapability() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ReadScaleCapability class. + /// + /// The maximum number of read scale + /// replicas. + /// The status of the capability. Possible values + /// include: 'Visible', 'Available', 'Default', 'Disabled' + /// The reason for the capability not being + /// available. + public ReadScaleCapability(int? maxNumberOfReplicas = default(int?), CapabilityStatus? status = default(CapabilityStatus?), string reason = default(string)) + { + MaxNumberOfReplicas = maxNumberOfReplicas; + Status = status; + Reason = reason; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets the maximum number of read scale replicas. + /// + [JsonProperty(PropertyName = "maxNumberOfReplicas")] + public int? MaxNumberOfReplicas { get; private set; } + + /// + /// Gets the status of the capability. Possible values include: + /// 'Visible', 'Available', 'Default', 'Disabled' + /// + [JsonProperty(PropertyName = "status")] + public CapabilityStatus? Status { get; private set; } + + /// + /// Gets or sets the reason for the capability not being available. + /// + [JsonProperty(PropertyName = "reason")] + public string Reason { get; set; } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServerBlobAuditingPolicy.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServerBlobAuditingPolicy.cs index c7a9ac26f54a..ff252b229b69 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServerBlobAuditingPolicy.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServerBlobAuditingPolicy.cs @@ -45,9 +45,19 @@ public ServerBlobAuditingPolicy() /// Enabled, storageEndpoint or isAzureMonitorTargetEnabled is /// required. /// Specifies the identifier key - /// of the auditing storage account. If state is Enabled and - /// storageEndpoint is specified, storageAccountAccessKey is - /// required. + /// of the auditing storage account. + /// If state is Enabled and storageEndpoint is specified, not + /// specifying the storageAccountAccessKey will use SQL server + /// system-assigned managed identity to access the storage. + /// Prerequisites for using managed identity authentication: + /// 1. Assign SQL Server a system-assigned managed identity in Azure + /// Active Directory (AAD). + /// 2. Grant SQL Server identity access to the storage account by + /// adding 'Storage Blob Data Contributor' RBAC role to the server + /// identity. + /// For more information, see [Auditing to storage using Managed + /// Identity + /// authentication](https://go.microsoft.com/fwlink/?linkid=2114355) /// Specifies the number of days to keep in /// the audit logs in the storage account. /// Specifies the Actions-Groups @@ -192,8 +202,19 @@ public ServerBlobAuditingPolicy() /// /// Gets or sets specifies the identifier key of the auditing storage - /// account. If state is Enabled and storageEndpoint is specified, - /// storageAccountAccessKey is required. + /// account. + /// If state is Enabled and storageEndpoint is specified, not + /// specifying the storageAccountAccessKey will use SQL server + /// system-assigned managed identity to access the storage. + /// Prerequisites for using managed identity authentication: + /// 1. Assign SQL Server a system-assigned managed identity in Azure + /// Active Directory (AAD). + /// 2. Grant SQL Server identity access to the storage account by + /// adding 'Storage Blob Data Contributor' RBAC role to the server + /// identity. + /// For more information, see [Auditing to storage using Managed + /// Identity + /// authentication](https://go.microsoft.com/fwlink/?linkid=2114355) /// [JsonProperty(PropertyName = "properties.storageAccountAccessKey")] public string StorageAccountAccessKey { get; set; } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServerVulnerabilityAssessment.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServerVulnerabilityAssessment.cs index a66171057791..0fe8baa64ded 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServerVulnerabilityAssessment.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServerVulnerabilityAssessment.cs @@ -41,8 +41,8 @@ public ServerVulnerabilityAssessment() /// Resource name. /// Resource type. /// A shared access signature (SAS - /// Key) that has write access to the blob container specified in - /// 'storageContainerPath' parameter. If 'storageAccountAccessKey' + /// Key) that has read and write access to the blob container specified + /// in 'storageContainerPath' parameter. If 'storageAccountAccessKey' /// isn't specified, StorageContainerSasKey is required. /// Specifies the identifier key /// of the storage account for vulnerability assessment scan results. @@ -72,10 +72,10 @@ public ServerVulnerabilityAssessment() public string StorageContainerPath { get; set; } /// - /// Gets or sets a shared access signature (SAS Key) that has write - /// access to the blob container specified in 'storageContainerPath' - /// parameter. If 'storageAccountAccessKey' isn't specified, - /// StorageContainerSasKey is required. + /// Gets or sets a shared access signature (SAS Key) that has read and + /// write access to the blob container specified in + /// 'storageContainerPath' parameter. If 'storageAccountAccessKey' + /// isn't specified, StorageContainerSasKey is required. /// [JsonProperty(PropertyName = "properties.storageContainerSasKey")] public string StorageContainerSasKey { get; set; } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServiceObjectiveCapability.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServiceObjectiveCapability.cs index 57a002937dfe..b6a9fcc01c28 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServiceObjectiveCapability.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ServiceObjectiveCapability.cs @@ -40,11 +40,18 @@ public ServiceObjectiveCapability() /// List of supported license /// types. /// The included (free) max size. + /// Whether or not zone redundancy is + /// supported for the service objective. + /// Supported time range for auto + /// pause delay + /// List of supported min + /// capacities + /// The compute model /// The status of the capability. Possible values /// include: 'Visible', 'Available', 'Default', 'Disabled' /// The reason for the capability not being /// available. - public ServiceObjectiveCapability(System.Guid? id = default(System.Guid?), string name = default(string), IList supportedMaxSizes = default(IList), PerformanceLevelCapability performanceLevel = default(PerformanceLevelCapability), Sku sku = default(Sku), IList supportedLicenseTypes = default(IList), MaxSizeCapability includedMaxSize = default(MaxSizeCapability), CapabilityStatus? status = default(CapabilityStatus?), string reason = default(string)) + public ServiceObjectiveCapability(System.Guid? id = default(System.Guid?), string name = default(string), IList supportedMaxSizes = default(IList), PerformanceLevelCapability performanceLevel = default(PerformanceLevelCapability), Sku sku = default(Sku), IList supportedLicenseTypes = default(IList), MaxSizeCapability includedMaxSize = default(MaxSizeCapability), bool? zoneRedundant = default(bool?), AutoPauseDelayTimeRange supportedAutoPauseDelay = default(AutoPauseDelayTimeRange), IList supportedMinCapacities = default(IList), string computeModel = default(string), CapabilityStatus? status = default(CapabilityStatus?), string reason = default(string)) { Id = id; Name = name; @@ -53,6 +60,10 @@ public ServiceObjectiveCapability() Sku = sku; SupportedLicenseTypes = supportedLicenseTypes; IncludedMaxSize = includedMaxSize; + ZoneRedundant = zoneRedundant; + SupportedAutoPauseDelay = supportedAutoPauseDelay; + SupportedMinCapacities = supportedMinCapacities; + ComputeModel = computeModel; Status = status; Reason = reason; CustomInit(); @@ -105,6 +116,31 @@ public ServiceObjectiveCapability() [JsonProperty(PropertyName = "includedMaxSize")] public MaxSizeCapability IncludedMaxSize { get; private set; } + /// + /// Gets whether or not zone redundancy is supported for the service + /// objective. + /// + [JsonProperty(PropertyName = "zoneRedundant")] + public bool? ZoneRedundant { get; private set; } + + /// + /// Gets supported time range for auto pause delay + /// + [JsonProperty(PropertyName = "supportedAutoPauseDelay")] + public AutoPauseDelayTimeRange SupportedAutoPauseDelay { get; private set; } + + /// + /// Gets list of supported min capacities + /// + [JsonProperty(PropertyName = "supportedMinCapacities")] + public IList SupportedMinCapacities { get; private set; } + + /// + /// Gets the compute model + /// + [JsonProperty(PropertyName = "computeModel")] + public string ComputeModel { get; private set; } + /// /// Gets the status of the capability. Possible values include: /// 'Visible', 'Available', 'Default', 'Disabled' diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/UnlinkParameters.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/UnlinkParameters.cs new file mode 100644 index 000000000000..773e905009a0 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/UnlinkParameters.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Represents the parameters for Unlink Replication Link request. + /// + public partial class UnlinkParameters + { + /// + /// Initializes a new instance of the UnlinkParameters class. + /// + public UnlinkParameters() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the UnlinkParameters class. + /// + /// Determines whether link will be + /// terminated in a forced or a friendly way. + public UnlinkParameters(bool? forcedTermination = default(bool?)) + { + ForcedTermination = forcedTermination; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets determines whether link will be terminated in a forced + /// or a friendly way. + /// + [JsonProperty(PropertyName = "forcedTermination")] + public bool? ForcedTermination { get; set; } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/WorkloadClassifier.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/WorkloadClassifier.cs new file mode 100644 index 000000000000..c8c86d0bbbb3 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/WorkloadClassifier.cs @@ -0,0 +1,115 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Linq; + + /// + /// Workload classifier operations for a data warehouse + /// + [Rest.Serialization.JsonTransformation] + public partial class WorkloadClassifier : ProxyResource + { + /// + /// Initializes a new instance of the WorkloadClassifier class. + /// + public WorkloadClassifier() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the WorkloadClassifier class. + /// + /// The workload classifier member + /// name. + /// Resource ID. + /// Resource name. + /// Resource type. + /// The workload classifier label. + /// The workload classifier context. + /// The workload classifier start time for + /// classification. + /// The workload classifier end time for + /// classification. + /// The workload classifier + /// importance. + public WorkloadClassifier(string memberName, string id = default(string), string name = default(string), string type = default(string), string label = default(string), string context = default(string), string startTime = default(string), string endTime = default(string), string importance = default(string)) + : base(id, name, type) + { + MemberName = memberName; + Label = label; + Context = context; + StartTime = startTime; + EndTime = endTime; + Importance = importance; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the workload classifier member name. + /// + [JsonProperty(PropertyName = "properties.memberName")] + public string MemberName { get; set; } + + /// + /// Gets or sets the workload classifier label. + /// + [JsonProperty(PropertyName = "properties.label")] + public string Label { get; set; } + + /// + /// Gets or sets the workload classifier context. + /// + [JsonProperty(PropertyName = "properties.context")] + public string Context { get; set; } + + /// + /// Gets or sets the workload classifier start time for classification. + /// + [JsonProperty(PropertyName = "properties.startTime")] + public string StartTime { get; set; } + + /// + /// Gets or sets the workload classifier end time for classification. + /// + [JsonProperty(PropertyName = "properties.endTime")] + public string EndTime { get; set; } + + /// + /// Gets or sets the workload classifier importance. + /// + [JsonProperty(PropertyName = "properties.importance")] + public string Importance { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (MemberName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "MemberName"); + } + } + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/WorkloadGroup.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/WorkloadGroup.cs new file mode 100644 index 000000000000..feac7eea8cc5 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/WorkloadGroup.cs @@ -0,0 +1,114 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Linq; + + /// + /// Workload group operations for a data warehouse + /// + [Rest.Serialization.JsonTransformation] + public partial class WorkloadGroup : ProxyResource + { + /// + /// Initializes a new instance of the WorkloadGroup class. + /// + public WorkloadGroup() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the WorkloadGroup class. + /// + /// The workload group minimum + /// percentage resource. + /// The workload group cap percentage + /// resource. + /// The workload group + /// request minimum grant percentage. + /// Resource ID. + /// Resource name. + /// Resource type. + /// The workload group + /// request maximum grant percentage. + /// The workload group importance + /// level. + /// The workload group query + /// execution timeout. + public WorkloadGroup(int minResourcePercent, int maxResourcePercent, double minResourcePercentPerRequest, string id = default(string), string name = default(string), string type = default(string), double? maxResourcePercentPerRequest = default(double?), string importance = default(string), int? queryExecutionTimeout = default(int?)) + : base(id, name, type) + { + MinResourcePercent = minResourcePercent; + MaxResourcePercent = maxResourcePercent; + MinResourcePercentPerRequest = minResourcePercentPerRequest; + MaxResourcePercentPerRequest = maxResourcePercentPerRequest; + Importance = importance; + QueryExecutionTimeout = queryExecutionTimeout; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the workload group minimum percentage resource. + /// + [JsonProperty(PropertyName = "properties.minResourcePercent")] + public int MinResourcePercent { get; set; } + + /// + /// Gets or sets the workload group cap percentage resource. + /// + [JsonProperty(PropertyName = "properties.maxResourcePercent")] + public int MaxResourcePercent { get; set; } + + /// + /// Gets or sets the workload group request minimum grant percentage. + /// + [JsonProperty(PropertyName = "properties.minResourcePercentPerRequest")] + public double MinResourcePercentPerRequest { get; set; } + + /// + /// Gets or sets the workload group request maximum grant percentage. + /// + [JsonProperty(PropertyName = "properties.maxResourcePercentPerRequest")] + public double? MaxResourcePercentPerRequest { get; set; } + + /// + /// Gets or sets the workload group importance level. + /// + [JsonProperty(PropertyName = "properties.importance")] + public string Importance { get; set; } + + /// + /// Gets or sets the workload group query execution timeout. + /// + [JsonProperty(PropertyName = "properties.queryExecutionTimeout")] + public int? QueryExecutionTimeout { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + //Nothing to validate + } + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ReplicationLinksOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ReplicationLinksOperations.cs index 3c745fd9c417..7861ec699f79 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ReplicationLinksOperations.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ReplicationLinksOperations.cs @@ -515,6 +515,38 @@ internal ReplicationLinksOperations(SqlManagementClient client) return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); } + /// + /// Deletes a database replication link in forced or friendly way. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database that has the replication link to be failed over. + /// + /// + /// The ID of the replication link to be failed over. + /// + /// + /// The required parameters for unlinking replication link. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task UnlinkWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string linkId, UnlinkParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginUnlinkWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, linkId, parameters, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + /// /// Lists a database's replication links. /// @@ -1105,5 +1137,211 @@ internal ReplicationLinksOperations(SqlManagementClient client) return _result; } + /// + /// Deletes a database replication link in forced or friendly way. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database that has the replication link to be failed over. + /// + /// + /// The ID of the replication link to be failed over. + /// + /// + /// The required parameters for unlinking replication link. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task BeginUnlinkWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string linkId, UnlinkParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (serverName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "serverName"); + } + if (databaseName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "databaseName"); + } + if (linkId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "linkId"); + } + if (parameters == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); + } + string apiVersion = "2014-04-01"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("serverName", serverName); + tracingParameters.Add("databaseName", databaseName); + tracingParameters.Add("linkId", linkId); + tracingParameters.Add("parameters", parameters); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginUnlink", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/replicationLinks/{linkId}/unlink").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); + _url = _url.Replace("{databaseName}", System.Uri.EscapeDataString(databaseName)); + _url = _url.Replace("{linkId}", System.Uri.EscapeDataString(linkId)); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(parameters != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 202 && (int)_statusCode != 204) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ReplicationLinksOperationsExtensions.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ReplicationLinksOperationsExtensions.cs index 87eab086f901..345f961efc83 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ReplicationLinksOperationsExtensions.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ReplicationLinksOperationsExtensions.cs @@ -234,6 +234,63 @@ public static void FailoverAllowDataLoss(this IReplicationLinksOperations operat (await operations.FailoverAllowDataLossWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, linkId, null, cancellationToken).ConfigureAwait(false)).Dispose(); } + /// + /// Deletes a database replication link in forced or friendly way. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database that has the replication link to be failed over. + /// + /// + /// The ID of the replication link to be failed over. + /// + /// + /// The required parameters for unlinking replication link. + /// + public static void Unlink(this IReplicationLinksOperations operations, string resourceGroupName, string serverName, string databaseName, string linkId, UnlinkParameters parameters) + { + operations.UnlinkAsync(resourceGroupName, serverName, databaseName, linkId, parameters).GetAwaiter().GetResult(); + } + + /// + /// Deletes a database replication link in forced or friendly way. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database that has the replication link to be failed over. + /// + /// + /// The ID of the replication link to be failed over. + /// + /// + /// The required parameters for unlinking replication link. + /// + /// + /// The cancellation token. + /// + public static async Task UnlinkAsync(this IReplicationLinksOperations operations, string resourceGroupName, string serverName, string databaseName, string linkId, UnlinkParameters parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.UnlinkWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, linkId, parameters, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + /// /// Lists a database's replication links. /// @@ -388,5 +445,62 @@ public static void BeginFailoverAllowDataLoss(this IReplicationLinksOperations o (await operations.BeginFailoverAllowDataLossWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, linkId, null, cancellationToken).ConfigureAwait(false)).Dispose(); } + /// + /// Deletes a database replication link in forced or friendly way. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database that has the replication link to be failed over. + /// + /// + /// The ID of the replication link to be failed over. + /// + /// + /// The required parameters for unlinking replication link. + /// + public static void BeginUnlink(this IReplicationLinksOperations operations, string resourceGroupName, string serverName, string databaseName, string linkId, UnlinkParameters parameters) + { + operations.BeginUnlinkAsync(resourceGroupName, serverName, databaseName, linkId, parameters).GetAwaiter().GetResult(); + } + + /// + /// Deletes a database replication link in forced or friendly way. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database that has the replication link to be failed over. + /// + /// + /// The ID of the replication link to be failed over. + /// + /// + /// The required parameters for unlinking replication link. + /// + /// + /// The cancellation token. + /// + public static async Task BeginUnlinkAsync(this IReplicationLinksOperations operations, string resourceGroupName, string serverName, string databaseName, string linkId, UnlinkParameters parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.BeginUnlinkWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, linkId, parameters, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/SdkInfo_SqlManagementClient.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/SdkInfo_SqlManagementClient.cs index 8e9b95d7666d..ec16afe5f47c 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/SdkInfo_SqlManagementClient.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/SdkInfo_SqlManagementClient.cs @@ -20,8 +20,8 @@ public static IEnumerable> ApiInfo_SqlManagementCl return new Tuple[] { new Tuple("Sql", "BackupLongTermRetentionPolicies", "2017-03-01-preview"), - new Tuple("Sql", "BackupShortTermRetentionPolicies", "2017-10-01-preview"), - new Tuple("Sql", "Capabilities", "2017-10-01-preview"), + new Tuple("Sql", "BackupShortTermRetentionPolicies", "2020-02-02-preview"), + new Tuple("Sql", "Capabilities", "2018-06-01-preview"), new Tuple("Sql", "DataMaskingPolicies", "2014-04-01"), new Tuple("Sql", "DataMaskingRules", "2014-04-01"), new Tuple("Sql", "DatabaseAutomaticTuning", "2015-05-01-preview"), @@ -33,8 +33,8 @@ public static IEnumerable> ApiInfo_SqlManagementCl new Tuple("Sql", "DatabaseVulnerabilityAssessmentScans", "2017-10-01-preview"), new Tuple("Sql", "DatabaseVulnerabilityAssessments", "2017-03-01-preview"), new Tuple("Sql", "Databases", "2014-04-01"), - new Tuple("Sql", "Databases", "2017-10-01-preview"), - new Tuple("Sql", "Databases", "2018-06-01-preview"), + new Tuple("Sql", "Databases", "2019-06-01-preview"), + new Tuple("Sql", "Databases", "2020-02-02-preview"), new Tuple("Sql", "ElasticPoolActivities", "2014-04-01"), new Tuple("Sql", "ElasticPoolDatabaseActivities", "2014-04-01"), new Tuple("Sql", "ElasticPoolOperations", "2017-10-01-preview"), @@ -47,6 +47,7 @@ public static IEnumerable> ApiInfo_SqlManagementCl new Tuple("Sql", "FailoverGroups", "2015-05-01-preview"), new Tuple("Sql", "FirewallRules", "2014-04-01"), new Tuple("Sql", "GeoBackupPolicies", "2014-04-01"), + new Tuple("Sql", "ImportExport", "2020-02-02-preview"), new Tuple("Sql", "InstanceFailoverGroups", "2017-10-01-preview"), new Tuple("Sql", "InstancePools", "2018-06-01-preview"), new Tuple("Sql", "JobAgents", "2017-03-01-preview"), @@ -61,7 +62,7 @@ public static IEnumerable> ApiInfo_SqlManagementCl new Tuple("Sql", "LongTermRetentionBackups", "2017-03-01-preview"), new Tuple("Sql", "LongTermRetentionManagedInstanceBackups", "2018-06-01-preview"), new Tuple("Sql", "ManagedBackupShortTermRetentionPolicies", "2017-03-01-preview"), - new Tuple("Sql", "ManagedDatabaseRestoreDetails", "2019-06-01-preview"), + new Tuple("Sql", "ManagedDatabaseRestoreDetails", "2020-02-02-preview"), new Tuple("Sql", "ManagedDatabaseSecurityAlertPolicies", "2017-03-01-preview"), new Tuple("Sql", "ManagedDatabaseSensitivityLabels", "2018-06-01-preview"), new Tuple("Sql", "ManagedDatabaseVulnerabilityAssessmentRuleBaselines", "2017-10-01-preview"), @@ -69,10 +70,11 @@ public static IEnumerable> ApiInfo_SqlManagementCl new Tuple("Sql", "ManagedDatabaseVulnerabilityAssessments", "2017-10-01-preview"), new Tuple("Sql", "ManagedDatabases", "2020-02-02-preview"), new Tuple("Sql", "ManagedInstanceAdministrators", "2017-03-01-preview"), + new Tuple("Sql", "ManagedInstanceAzureADOnlyAuthentications", "2020-02-02-preview"), new Tuple("Sql", "ManagedInstanceEncryptionProtectors", "2017-10-01-preview"), new Tuple("Sql", "ManagedInstanceKeys", "2017-10-01-preview"), - new Tuple("Sql", "ManagedInstanceOperations", "2019-06-01-preview"), new Tuple("Sql", "ManagedInstanceLongTermRetentionPolicies", "2018-06-01-preview"), + new Tuple("Sql", "ManagedInstanceOperations", "2019-06-01-preview"), new Tuple("Sql", "ManagedInstanceTdeCertificates", "2017-10-01-preview"), new Tuple("Sql", "ManagedInstanceVulnerabilityAssessments", "2018-06-01-preview"), new Tuple("Sql", "ManagedInstances", "2019-06-01-preview"), @@ -91,7 +93,8 @@ public static IEnumerable> ApiInfo_SqlManagementCl new Tuple("Sql", "RestorePoints", "2017-03-01-preview"), new Tuple("Sql", "SensitivityLabels", "2017-03-01-preview"), new Tuple("Sql", "ServerAutomaticTuning", "2017-03-01-preview"), - new Tuple("Sql", "ServerAzureADAdministrators", "2014-04-01"), + new Tuple("Sql", "ServerAzureADAdministrators", "2019-06-01-preview"), + new Tuple("Sql", "ServerAzureADOnlyAuthentications", "2020-02-02-preview"), new Tuple("Sql", "ServerBlobAuditingPolicies", "2017-03-01-preview"), new Tuple("Sql", "ServerCommunicationLinks", "2014-04-01"), new Tuple("Sql", "ServerConnectionPolicies", "2014-04-01"), @@ -101,32 +104,23 @@ public static IEnumerable> ApiInfo_SqlManagementCl new Tuple("Sql", "ServerUsages", "2014-04-01"), new Tuple("Sql", "ServerVulnerabilityAssessments", "2018-06-01-preview"), new Tuple("Sql", "Servers", "2019-06-01-preview"), - new Tuple("Sql", "Servers", "2015-05-01-preview"), + new Tuple("Sql", "Servers", "2020-02-02-preview"), new Tuple("Sql", "ServiceObjectives", "2014-04-01"), new Tuple("Sql", "ServiceTierAdvisors", "2014-04-01"), new Tuple("Sql", "SubscriptionUsages", "2015-05-01-preview"), new Tuple("Sql", "SyncAgents", "2015-05-01-preview"), - new Tuple("Sql", "SyncGroups", "2015-05-01-preview"), - new Tuple("Sql", "SyncMembers", "2015-05-01-preview"), + new Tuple("Sql", "SyncGroups", "2019-06-01-preview"), + new Tuple("Sql", "SyncMembers", "2019-06-01-preview"), new Tuple("Sql", "TdeCertificates", "2017-10-01-preview"), new Tuple("Sql", "TransparentDataEncryptionActivities", "2014-04-01"), new Tuple("Sql", "TransparentDataEncryptions", "2014-04-01"), new Tuple("Sql", "Usages", "2018-06-01-preview"), new Tuple("Sql", "VirtualClusters", "2015-05-01-preview"), new Tuple("Sql", "VirtualNetworkRules", "2015-05-01-preview"), + new Tuple("Sql", "WorkloadClassifiers", "2019-06-01-preview"), + new Tuple("Sql", "WorkloadGroups", "2019-06-01-preview"), }.AsEnumerable(); } } - // BEGIN: Code Generation Metadata Section - public static readonly String AutoRestVersion = "v2"; - public static readonly String AutoRestBootStrapperVersion = "autorest@2.0.4413"; - public static readonly String AutoRestCmdExecuted = "cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/sql/resource-manager/readme.md --csharp --version=v2 --reflect-api-versions --csharp-sdks-folder=."; - public static readonly String GithubForkName = "Azure"; - public static readonly String GithubBranchName = "master"; - public static readonly String GithubCommidId = "615259b6d33d3029de2d6e403ffe0c12776da1d4"; - public static readonly String CodeGenerationErrors = ""; - public static readonly String GithubRepoName = "azure-rest-api-specs"; - // END: Code Generation Metadata Section - } + } } - diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ServersOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ServersOperations.cs index b3040eac702b..6fb27c3a7ea6 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ServersOperations.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ServersOperations.cs @@ -876,6 +876,32 @@ internal ServersOperations(SqlManagementClient client) return _result; } + /// + /// Imports a bacpac into a new database. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The database import request parameters. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> ImportDatabaseWithHttpMessagesAsync(string resourceGroupName, string serverName, ImportNewDatabaseDefinition parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginImportDatabaseWithHttpMessagesAsync(resourceGroupName, serverName, parameters, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + /// /// Creates or updates a server. /// @@ -1490,6 +1516,219 @@ internal ServersOperations(SqlManagementClient client) return _result; } + /// + /// Imports a bacpac into a new database. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The database import request parameters. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> BeginImportDatabaseWithHttpMessagesAsync(string resourceGroupName, string serverName, ImportNewDatabaseDefinition parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (serverName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "serverName"); + } + if (parameters == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); + } + if (parameters != null) + { + parameters.Validate(); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + string apiVersion = "2020-02-02-preview"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("serverName", serverName); + tracingParameters.Add("parameters", parameters); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginImportDatabase", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/import").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(parameters != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 202) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + /// /// Gets a list of servers in a resource groups. /// diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ServersOperationsExtensions.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ServersOperationsExtensions.cs index 92d5362a701a..89784f56684a 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ServersOperationsExtensions.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ServersOperationsExtensions.cs @@ -296,6 +296,54 @@ public static CheckNameAvailabilityResponse CheckNameAvailability(this IServersO } } + /// + /// Imports a bacpac into a new database. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The database import request parameters. + /// + public static ImportExportOperationResult ImportDatabase(this IServersOperations operations, string resourceGroupName, string serverName, ImportNewDatabaseDefinition parameters) + { + return operations.ImportDatabaseAsync(resourceGroupName, serverName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Imports a bacpac into a new database. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The database import request parameters. + /// + /// + /// The cancellation token. + /// + public static async Task ImportDatabaseAsync(this IServersOperations operations, string resourceGroupName, string serverName, ImportNewDatabaseDefinition parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ImportDatabaseWithHttpMessagesAsync(resourceGroupName, serverName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + /// /// Creates or updates a server. /// @@ -431,6 +479,54 @@ public static Server BeginUpdate(this IServersOperations operations, string reso } } + /// + /// Imports a bacpac into a new database. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The database import request parameters. + /// + public static ImportExportOperationResult BeginImportDatabase(this IServersOperations operations, string resourceGroupName, string serverName, ImportNewDatabaseDefinition parameters) + { + return operations.BeginImportDatabaseAsync(resourceGroupName, serverName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Imports a bacpac into a new database. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The database import request parameters. + /// + /// + /// The cancellation token. + /// + public static async Task BeginImportDatabaseAsync(this IServersOperations operations, string resourceGroupName, string serverName, ImportNewDatabaseDefinition parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginImportDatabaseWithHttpMessagesAsync(resourceGroupName, serverName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + /// /// Gets a list of servers in a resource groups. /// diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/SqlManagementClient.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/SqlManagementClient.cs index 4c0f249b7cf1..722f55eb1e1a 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/SqlManagementClient.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/SqlManagementClient.cs @@ -55,19 +55,20 @@ public partial class SqlManagementClient : ServiceClient, I public string SubscriptionId { get; set; } /// - /// Gets or sets the preferred language for the response. + /// The preferred language for the response. /// public string AcceptLanguage { get; set; } /// - /// Gets or sets the retry timeout in seconds for Long Running Operations. - /// Default value is 30. + /// The retry timeout in seconds for Long Running Operations. Default value is + /// 30. /// public int? LongRunningOperationRetryTimeout { get; set; } /// - /// When set to true a unique x-ms-client-request-id value is generated and - /// included in each request. Default is true. + /// Whether a unique x-ms-client-request-id should be generated. When set to + /// true a unique x-ms-client-request-id value is generated and included in + /// each request. Default is true. /// public bool? GenerateClientRequestId { get; set; } @@ -396,11 +397,6 @@ public partial class SqlManagementClient : ServiceClient, I /// public virtual IInstanceFailoverGroupsOperations InstanceFailoverGroups { get; private set; } - /// - /// Gets the IBackupShortTermRetentionPoliciesOperations. - /// - public virtual IBackupShortTermRetentionPoliciesOperations BackupShortTermRetentionPolicies { get; private set; } - /// /// Gets the ITdeCertificatesOperations. /// @@ -451,11 +447,6 @@ public partial class SqlManagementClient : ServiceClient, I /// public virtual IUsagesOperations Usages { get; private set; } - /// - /// Gets the IManagedInstancesOperations. - /// - public virtual IManagedInstancesOperations ManagedInstances { get; private set; } - /// /// Gets the IPrivateEndpointConnectionsOperations. /// @@ -486,6 +477,16 @@ public partial class SqlManagementClient : ServiceClient, I /// public virtual IManagedInstanceLongTermRetentionPoliciesOperations ManagedInstanceLongTermRetentionPolicies { get; private set; } + /// + /// Gets the IWorkloadGroupsOperations. + /// + public virtual IWorkloadGroupsOperations WorkloadGroups { get; private set; } + + /// + /// Gets the IWorkloadClassifiersOperations. + /// + public virtual IWorkloadClassifiersOperations WorkloadClassifiers { get; private set; } + /// /// Gets the IManagedInstanceOperations. /// @@ -506,6 +507,16 @@ public partial class SqlManagementClient : ServiceClient, I /// public virtual ISyncMembersOperations SyncMembers { get; private set; } + /// + /// Gets the IManagedInstancesOperations. + /// + public virtual IManagedInstancesOperations ManagedInstances { get; private set; } + + /// + /// Gets the IBackupShortTermRetentionPoliciesOperations. + /// + public virtual IBackupShortTermRetentionPoliciesOperations BackupShortTermRetentionPolicies { get; private set; } + /// /// Gets the IManagedDatabaseRestoreDetailsOperations. /// @@ -521,6 +532,11 @@ public partial class SqlManagementClient : ServiceClient, I /// public virtual IServerAzureADOnlyAuthenticationsOperations ServerAzureADOnlyAuthentications { get; private set; } + /// + /// Gets the IImportExportOperations. + /// + public virtual IImportExportOperations ImportExport { get; private set; } + /// /// Gets the IManagedInstanceAzureADOnlyAuthenticationsOperations. /// @@ -792,7 +808,6 @@ private void Initialize() ManagedDatabaseVulnerabilityAssessmentScans = new ManagedDatabaseVulnerabilityAssessmentScansOperations(this); ManagedDatabaseVulnerabilityAssessments = new ManagedDatabaseVulnerabilityAssessmentsOperations(this); InstanceFailoverGroups = new InstanceFailoverGroupsOperations(this); - BackupShortTermRetentionPolicies = new BackupShortTermRetentionPoliciesOperations(this); TdeCertificates = new TdeCertificatesOperations(this); ManagedInstanceTdeCertificates = new ManagedInstanceTdeCertificatesOperations(this); ManagedInstanceKeys = new ManagedInstanceKeysOperations(this); @@ -803,20 +818,24 @@ private void Initialize() ManagedDatabaseSensitivityLabels = new ManagedDatabaseSensitivityLabelsOperations(this); InstancePools = new InstancePoolsOperations(this); Usages = new UsagesOperations(this); - ManagedInstances = new ManagedInstancesOperations(this); PrivateEndpointConnections = new PrivateEndpointConnectionsOperations(this); PrivateLinkResources = new PrivateLinkResourcesOperations(this); Servers = new ServersOperations(this); Capabilities = new CapabilitiesOperations(this); LongTermRetentionManagedInstanceBackups = new LongTermRetentionManagedInstanceBackupsOperations(this); ManagedInstanceLongTermRetentionPolicies = new ManagedInstanceLongTermRetentionPoliciesOperations(this); + WorkloadGroups = new WorkloadGroupsOperations(this); + WorkloadClassifiers = new WorkloadClassifiersOperations(this); ManagedInstanceOperations = new ManagedInstanceOperations(this); ServerAzureADAdministrators = new ServerAzureADAdministratorsOperations(this); SyncGroups = new SyncGroupsOperations(this); SyncMembers = new SyncMembersOperations(this); + ManagedInstances = new ManagedInstancesOperations(this); + BackupShortTermRetentionPolicies = new BackupShortTermRetentionPoliciesOperations(this); ManagedDatabaseRestoreDetails = new ManagedDatabaseRestoreDetailsOperations(this); ManagedDatabases = new ManagedDatabasesOperations(this); ServerAzureADOnlyAuthentications = new ServerAzureADOnlyAuthenticationsOperations(this); + ImportExport = new ImportExportOperations(this); ManagedInstanceAzureADOnlyAuthentications = new ManagedInstanceAzureADOnlyAuthenticationsOperations(this); BaseUri = new System.Uri("https://management.azure.com"); AcceptLanguage = "en-US"; @@ -853,4 +872,4 @@ private void Initialize() DeserializationSettings.Converters.Add(new CloudErrorJsonConverter()); } } -} \ No newline at end of file +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/SyncGroupsOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/SyncGroupsOperations.cs index 9271bf23ee14..71d69dcc0a8f 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/SyncGroupsOperations.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/SyncGroupsOperations.cs @@ -87,7 +87,7 @@ internal SyncGroupsOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2015-05-01-preview"; + string apiVersion = "2019-06-01-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -323,7 +323,7 @@ internal SyncGroupsOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2015-05-01-preview"; + string apiVersion = "2019-06-01-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -561,7 +561,7 @@ internal SyncGroupsOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2015-05-01-preview"; + string apiVersion = "2019-06-01-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -791,7 +791,7 @@ internal SyncGroupsOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2015-05-01-preview"; + string apiVersion = "2019-06-01-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -983,7 +983,7 @@ internal SyncGroupsOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2015-05-01-preview"; + string apiVersion = "2019-06-01-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1178,7 +1178,7 @@ internal SyncGroupsOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2015-05-01-preview"; + string apiVersion = "2019-06-01-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1477,7 +1477,7 @@ internal SyncGroupsOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2015-05-01-preview"; + string apiVersion = "2019-06-01-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1685,7 +1685,7 @@ internal SyncGroupsOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2015-05-01-preview"; + string apiVersion = "2019-06-01-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1887,7 +1887,7 @@ internal SyncGroupsOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2015-05-01-preview"; + string apiVersion = "2019-06-01-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2122,7 +2122,7 @@ internal SyncGroupsOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2015-05-01-preview"; + string apiVersion = "2019-06-01-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2324,7 +2324,7 @@ internal SyncGroupsOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2015-05-01-preview"; + string apiVersion = "2019-06-01-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/SyncMembersOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/SyncMembersOperations.cs index 570159ca7802..0b4acf9c3534 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/SyncMembersOperations.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/SyncMembersOperations.cs @@ -116,7 +116,7 @@ internal SyncMembersOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2015-05-01-preview"; + string apiVersion = "2019-06-01-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -433,7 +433,7 @@ internal SyncMembersOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2015-05-01-preview"; + string apiVersion = "2019-06-01-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -653,7 +653,7 @@ internal SyncMembersOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2015-05-01-preview"; + string apiVersion = "2019-06-01-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -914,7 +914,7 @@ internal SyncMembersOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2015-05-01-preview"; + string apiVersion = "2019-06-01-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1158,7 +1158,7 @@ internal SyncMembersOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2015-05-01-preview"; + string apiVersion = "2019-06-01-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1369,7 +1369,7 @@ internal SyncMembersOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2015-05-01-preview"; + string apiVersion = "2019-06-01-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1595,7 +1595,7 @@ internal SyncMembersOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2015-05-01-preview"; + string apiVersion = "2019-06-01-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/WorkloadClassifiersOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/WorkloadClassifiersOperations.cs new file mode 100644 index 000000000000..3aca3cda1e20 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/WorkloadClassifiersOperations.cs @@ -0,0 +1,1188 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + using System.Net; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + + /// + /// WorkloadClassifiersOperations operations. + /// + internal partial class WorkloadClassifiersOperations : IServiceOperations, IWorkloadClassifiersOperations + { + /// + /// Initializes a new instance of the WorkloadClassifiersOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal WorkloadClassifiersOperations(SqlManagementClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the SqlManagementClient + /// + public SqlManagementClient Client { get; private set; } + + /// + /// Gets a workload classifier + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database. + /// + /// + /// The name of the workload group from which to receive the classifier from. + /// + /// + /// The name of the workload classifier. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string workloadGroupName, string workloadClassifierName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (serverName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "serverName"); + } + if (databaseName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "databaseName"); + } + if (workloadGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "workloadGroupName"); + } + if (workloadClassifierName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "workloadClassifierName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + string apiVersion = "2019-06-01-preview"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("serverName", serverName); + tracingParameters.Add("databaseName", databaseName); + tracingParameters.Add("workloadGroupName", workloadGroupName); + tracingParameters.Add("workloadClassifierName", workloadClassifierName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/workloadGroups/{workloadGroupName}/workloadClassifiers/{workloadClassifierName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); + _url = _url.Replace("{databaseName}", System.Uri.EscapeDataString(databaseName)); + _url = _url.Replace("{workloadGroupName}", System.Uri.EscapeDataString(workloadGroupName)); + _url = _url.Replace("{workloadClassifierName}", System.Uri.EscapeDataString(workloadClassifierName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Creates or updates a workload classifier. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database. + /// + /// + /// The name of the workload group from which to receive the classifier from. + /// + /// + /// The name of the workload classifier to create/update. + /// + /// + /// The properties of the workload classifier. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string workloadGroupName, string workloadClassifierName, WorkloadClassifier parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send Request + AzureOperationResponse _response = await BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, workloadGroupName, workloadClassifierName, parameters, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Deletes a workload classifier. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database. + /// + /// + /// The name of the workload group from which to receive the classifier from. + /// + /// + /// The name of the workload classifier to delete. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task DeleteWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string workloadGroupName, string workloadClassifierName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, workloadGroupName, workloadClassifierName, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Gets the list of workload classifiers for a workload group + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database. + /// + /// + /// The name of the workload group from which to receive the classifiers from. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListByWorkloadGroupWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string workloadGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (serverName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "serverName"); + } + if (databaseName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "databaseName"); + } + if (workloadGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "workloadGroupName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + string apiVersion = "2019-06-01-preview"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("serverName", serverName); + tracingParameters.Add("databaseName", databaseName); + tracingParameters.Add("workloadGroupName", workloadGroupName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListByWorkloadGroup", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/workloadGroups/{workloadGroupName}/workloadClassifiers").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); + _url = _url.Replace("{databaseName}", System.Uri.EscapeDataString(databaseName)); + _url = _url.Replace("{workloadGroupName}", System.Uri.EscapeDataString(workloadGroupName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Creates or updates a workload classifier. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database. + /// + /// + /// The name of the workload group from which to receive the classifier from. + /// + /// + /// The name of the workload classifier to create/update. + /// + /// + /// The properties of the workload classifier. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string workloadGroupName, string workloadClassifierName, WorkloadClassifier parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (serverName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "serverName"); + } + if (databaseName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "databaseName"); + } + if (workloadGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "workloadGroupName"); + } + if (workloadClassifierName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "workloadClassifierName"); + } + if (parameters == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); + } + if (parameters != null) + { + parameters.Validate(); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + string apiVersion = "2019-06-01-preview"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("serverName", serverName); + tracingParameters.Add("databaseName", databaseName); + tracingParameters.Add("workloadGroupName", workloadGroupName); + tracingParameters.Add("workloadClassifierName", workloadClassifierName); + tracingParameters.Add("parameters", parameters); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginCreateOrUpdate", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/workloadGroups/{workloadGroupName}/workloadClassifiers/{workloadClassifierName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); + _url = _url.Replace("{databaseName}", System.Uri.EscapeDataString(databaseName)); + _url = _url.Replace("{workloadGroupName}", System.Uri.EscapeDataString(workloadGroupName)); + _url = _url.Replace("{workloadClassifierName}", System.Uri.EscapeDataString(workloadClassifierName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("PUT"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(parameters != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + // Deserialize Response + if ((int)_statusCode == 201) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Deletes a workload classifier. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database. + /// + /// + /// The name of the workload group from which to receive the classifier from. + /// + /// + /// The name of the workload classifier to delete. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string workloadGroupName, string workloadClassifierName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (serverName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "serverName"); + } + if (databaseName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "databaseName"); + } + if (workloadGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "workloadGroupName"); + } + if (workloadClassifierName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "workloadClassifierName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + string apiVersion = "2019-06-01-preview"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("serverName", serverName); + tracingParameters.Add("databaseName", databaseName); + tracingParameters.Add("workloadGroupName", workloadGroupName); + tracingParameters.Add("workloadClassifierName", workloadClassifierName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginDelete", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/workloadGroups/{workloadGroupName}/workloadClassifiers/{workloadClassifierName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); + _url = _url.Replace("{databaseName}", System.Uri.EscapeDataString(databaseName)); + _url = _url.Replace("{workloadGroupName}", System.Uri.EscapeDataString(workloadGroupName)); + _url = _url.Replace("{workloadClassifierName}", System.Uri.EscapeDataString(workloadClassifierName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("DELETE"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 202 && (int)_statusCode != 204) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Gets the list of workload classifiers for a workload group + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListByWorkloadGroupNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (nextPageLink == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("nextPageLink", nextPageLink); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListByWorkloadGroupNext", tracingParameters); + } + // Construct URL + string _url = "{nextLink}"; + _url = _url.Replace("{nextLink}", nextPageLink); + List _queryParameters = new List(); + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/WorkloadClassifiersOperationsExtensions.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/WorkloadClassifiersOperationsExtensions.cs new file mode 100644 index 000000000000..c8cc02707fd7 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/WorkloadClassifiersOperationsExtensions.cs @@ -0,0 +1,419 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for WorkloadClassifiersOperations. + /// + public static partial class WorkloadClassifiersOperationsExtensions + { + /// + /// Gets a workload classifier + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database. + /// + /// + /// The name of the workload group from which to receive the classifier from. + /// + /// + /// The name of the workload classifier. + /// + public static WorkloadClassifier Get(this IWorkloadClassifiersOperations operations, string resourceGroupName, string serverName, string databaseName, string workloadGroupName, string workloadClassifierName) + { + return operations.GetAsync(resourceGroupName, serverName, databaseName, workloadGroupName, workloadClassifierName).GetAwaiter().GetResult(); + } + + /// + /// Gets a workload classifier + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database. + /// + /// + /// The name of the workload group from which to receive the classifier from. + /// + /// + /// The name of the workload classifier. + /// + /// + /// The cancellation token. + /// + public static async Task GetAsync(this IWorkloadClassifiersOperations operations, string resourceGroupName, string serverName, string databaseName, string workloadGroupName, string workloadClassifierName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, workloadGroupName, workloadClassifierName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Creates or updates a workload classifier. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database. + /// + /// + /// The name of the workload group from which to receive the classifier from. + /// + /// + /// The name of the workload classifier to create/update. + /// + /// + /// The properties of the workload classifier. + /// + public static WorkloadClassifier CreateOrUpdate(this IWorkloadClassifiersOperations operations, string resourceGroupName, string serverName, string databaseName, string workloadGroupName, string workloadClassifierName, WorkloadClassifier parameters) + { + return operations.CreateOrUpdateAsync(resourceGroupName, serverName, databaseName, workloadGroupName, workloadClassifierName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Creates or updates a workload classifier. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database. + /// + /// + /// The name of the workload group from which to receive the classifier from. + /// + /// + /// The name of the workload classifier to create/update. + /// + /// + /// The properties of the workload classifier. + /// + /// + /// The cancellation token. + /// + public static async Task CreateOrUpdateAsync(this IWorkloadClassifiersOperations operations, string resourceGroupName, string serverName, string databaseName, string workloadGroupName, string workloadClassifierName, WorkloadClassifier parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, workloadGroupName, workloadClassifierName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Deletes a workload classifier. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database. + /// + /// + /// The name of the workload group from which to receive the classifier from. + /// + /// + /// The name of the workload classifier to delete. + /// + public static void Delete(this IWorkloadClassifiersOperations operations, string resourceGroupName, string serverName, string databaseName, string workloadGroupName, string workloadClassifierName) + { + operations.DeleteAsync(resourceGroupName, serverName, databaseName, workloadGroupName, workloadClassifierName).GetAwaiter().GetResult(); + } + + /// + /// Deletes a workload classifier. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database. + /// + /// + /// The name of the workload group from which to receive the classifier from. + /// + /// + /// The name of the workload classifier to delete. + /// + /// + /// The cancellation token. + /// + public static async Task DeleteAsync(this IWorkloadClassifiersOperations operations, string resourceGroupName, string serverName, string databaseName, string workloadGroupName, string workloadClassifierName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, workloadGroupName, workloadClassifierName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Gets the list of workload classifiers for a workload group + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database. + /// + /// + /// The name of the workload group from which to receive the classifiers from. + /// + public static IPage ListByWorkloadGroup(this IWorkloadClassifiersOperations operations, string resourceGroupName, string serverName, string databaseName, string workloadGroupName) + { + return operations.ListByWorkloadGroupAsync(resourceGroupName, serverName, databaseName, workloadGroupName).GetAwaiter().GetResult(); + } + + /// + /// Gets the list of workload classifiers for a workload group + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database. + /// + /// + /// The name of the workload group from which to receive the classifiers from. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByWorkloadGroupAsync(this IWorkloadClassifiersOperations operations, string resourceGroupName, string serverName, string databaseName, string workloadGroupName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByWorkloadGroupWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, workloadGroupName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Creates or updates a workload classifier. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database. + /// + /// + /// The name of the workload group from which to receive the classifier from. + /// + /// + /// The name of the workload classifier to create/update. + /// + /// + /// The properties of the workload classifier. + /// + public static WorkloadClassifier BeginCreateOrUpdate(this IWorkloadClassifiersOperations operations, string resourceGroupName, string serverName, string databaseName, string workloadGroupName, string workloadClassifierName, WorkloadClassifier parameters) + { + return operations.BeginCreateOrUpdateAsync(resourceGroupName, serverName, databaseName, workloadGroupName, workloadClassifierName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Creates or updates a workload classifier. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database. + /// + /// + /// The name of the workload group from which to receive the classifier from. + /// + /// + /// The name of the workload classifier to create/update. + /// + /// + /// The properties of the workload classifier. + /// + /// + /// The cancellation token. + /// + public static async Task BeginCreateOrUpdateAsync(this IWorkloadClassifiersOperations operations, string resourceGroupName, string serverName, string databaseName, string workloadGroupName, string workloadClassifierName, WorkloadClassifier parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, workloadGroupName, workloadClassifierName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Deletes a workload classifier. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database. + /// + /// + /// The name of the workload group from which to receive the classifier from. + /// + /// + /// The name of the workload classifier to delete. + /// + public static void BeginDelete(this IWorkloadClassifiersOperations operations, string resourceGroupName, string serverName, string databaseName, string workloadGroupName, string workloadClassifierName) + { + operations.BeginDeleteAsync(resourceGroupName, serverName, databaseName, workloadGroupName, workloadClassifierName).GetAwaiter().GetResult(); + } + + /// + /// Deletes a workload classifier. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database. + /// + /// + /// The name of the workload group from which to receive the classifier from. + /// + /// + /// The name of the workload classifier to delete. + /// + /// + /// The cancellation token. + /// + public static async Task BeginDeleteAsync(this IWorkloadClassifiersOperations operations, string resourceGroupName, string serverName, string databaseName, string workloadGroupName, string workloadClassifierName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, workloadGroupName, workloadClassifierName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Gets the list of workload classifiers for a workload group + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListByWorkloadGroupNext(this IWorkloadClassifiersOperations operations, string nextPageLink) + { + return operations.ListByWorkloadGroupNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Gets the list of workload classifiers for a workload group + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByWorkloadGroupNextAsync(this IWorkloadClassifiersOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByWorkloadGroupNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/WorkloadGroupsOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/WorkloadGroupsOperations.cs new file mode 100644 index 000000000000..186476f74931 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/WorkloadGroupsOperations.cs @@ -0,0 +1,1146 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + using System.Net; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + + /// + /// WorkloadGroupsOperations operations. + /// + internal partial class WorkloadGroupsOperations : IServiceOperations, IWorkloadGroupsOperations + { + /// + /// Initializes a new instance of the WorkloadGroupsOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal WorkloadGroupsOperations(SqlManagementClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the SqlManagementClient + /// + public SqlManagementClient Client { get; private set; } + + /// + /// Gets a workload group + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database. + /// + /// + /// The name of the workload group. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string workloadGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (serverName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "serverName"); + } + if (databaseName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "databaseName"); + } + if (workloadGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "workloadGroupName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + string apiVersion = "2019-06-01-preview"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("serverName", serverName); + tracingParameters.Add("databaseName", databaseName); + tracingParameters.Add("workloadGroupName", workloadGroupName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/workloadGroups/{workloadGroupName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); + _url = _url.Replace("{databaseName}", System.Uri.EscapeDataString(databaseName)); + _url = _url.Replace("{workloadGroupName}", System.Uri.EscapeDataString(workloadGroupName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Creates or updates a workload group. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database. + /// + /// + /// The name of the workload group. + /// + /// + /// The requested workload group state. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string workloadGroupName, WorkloadGroup parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send Request + AzureOperationResponse _response = await BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, workloadGroupName, parameters, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Deletes a workload group. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database. + /// + /// + /// The name of the workload group to delete. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task DeleteWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string workloadGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, workloadGroupName, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Gets the list of workload groups + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListByDatabaseWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (serverName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "serverName"); + } + if (databaseName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "databaseName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + string apiVersion = "2019-06-01-preview"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("serverName", serverName); + tracingParameters.Add("databaseName", databaseName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListByDatabase", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/workloadGroups").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); + _url = _url.Replace("{databaseName}", System.Uri.EscapeDataString(databaseName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Creates or updates a workload group. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database. + /// + /// + /// The name of the workload group. + /// + /// + /// The requested workload group state. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string workloadGroupName, WorkloadGroup parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (serverName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "serverName"); + } + if (databaseName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "databaseName"); + } + if (workloadGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "workloadGroupName"); + } + if (parameters == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); + } + if (parameters != null) + { + parameters.Validate(); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + string apiVersion = "2019-06-01-preview"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("serverName", serverName); + tracingParameters.Add("databaseName", databaseName); + tracingParameters.Add("workloadGroupName", workloadGroupName); + tracingParameters.Add("parameters", parameters); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginCreateOrUpdate", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/workloadGroups/{workloadGroupName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); + _url = _url.Replace("{databaseName}", System.Uri.EscapeDataString(databaseName)); + _url = _url.Replace("{workloadGroupName}", System.Uri.EscapeDataString(workloadGroupName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("PUT"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(parameters != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + // Deserialize Response + if ((int)_statusCode == 201) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Deletes a workload group. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database. + /// + /// + /// The name of the workload group to delete. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string workloadGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (serverName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "serverName"); + } + if (databaseName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "databaseName"); + } + if (workloadGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "workloadGroupName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + string apiVersion = "2019-06-01-preview"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("serverName", serverName); + tracingParameters.Add("databaseName", databaseName); + tracingParameters.Add("workloadGroupName", workloadGroupName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginDelete", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/workloadGroups/{workloadGroupName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); + _url = _url.Replace("{databaseName}", System.Uri.EscapeDataString(databaseName)); + _url = _url.Replace("{workloadGroupName}", System.Uri.EscapeDataString(workloadGroupName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("DELETE"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 202 && (int)_statusCode != 204) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Gets the list of workload groups + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListByDatabaseNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (nextPageLink == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("nextPageLink", nextPageLink); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListByDatabaseNext", tracingParameters); + } + // Construct URL + string _url = "{nextLink}"; + _url = _url.Replace("{nextLink}", nextPageLink); + List _queryParameters = new List(); + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/WorkloadGroupsOperationsExtensions.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/WorkloadGroupsOperationsExtensions.cs new file mode 100644 index 000000000000..0d86adccc315 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/WorkloadGroupsOperationsExtensions.cs @@ -0,0 +1,383 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for WorkloadGroupsOperations. + /// + public static partial class WorkloadGroupsOperationsExtensions + { + /// + /// Gets a workload group + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database. + /// + /// + /// The name of the workload group. + /// + public static WorkloadGroup Get(this IWorkloadGroupsOperations operations, string resourceGroupName, string serverName, string databaseName, string workloadGroupName) + { + return operations.GetAsync(resourceGroupName, serverName, databaseName, workloadGroupName).GetAwaiter().GetResult(); + } + + /// + /// Gets a workload group + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database. + /// + /// + /// The name of the workload group. + /// + /// + /// The cancellation token. + /// + public static async Task GetAsync(this IWorkloadGroupsOperations operations, string resourceGroupName, string serverName, string databaseName, string workloadGroupName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, workloadGroupName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Creates or updates a workload group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database. + /// + /// + /// The name of the workload group. + /// + /// + /// The requested workload group state. + /// + public static WorkloadGroup CreateOrUpdate(this IWorkloadGroupsOperations operations, string resourceGroupName, string serverName, string databaseName, string workloadGroupName, WorkloadGroup parameters) + { + return operations.CreateOrUpdateAsync(resourceGroupName, serverName, databaseName, workloadGroupName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Creates or updates a workload group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database. + /// + /// + /// The name of the workload group. + /// + /// + /// The requested workload group state. + /// + /// + /// The cancellation token. + /// + public static async Task CreateOrUpdateAsync(this IWorkloadGroupsOperations operations, string resourceGroupName, string serverName, string databaseName, string workloadGroupName, WorkloadGroup parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, workloadGroupName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Deletes a workload group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database. + /// + /// + /// The name of the workload group to delete. + /// + public static void Delete(this IWorkloadGroupsOperations operations, string resourceGroupName, string serverName, string databaseName, string workloadGroupName) + { + operations.DeleteAsync(resourceGroupName, serverName, databaseName, workloadGroupName).GetAwaiter().GetResult(); + } + + /// + /// Deletes a workload group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database. + /// + /// + /// The name of the workload group to delete. + /// + /// + /// The cancellation token. + /// + public static async Task DeleteAsync(this IWorkloadGroupsOperations operations, string resourceGroupName, string serverName, string databaseName, string workloadGroupName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, workloadGroupName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Gets the list of workload groups + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database. + /// + public static IPage ListByDatabase(this IWorkloadGroupsOperations operations, string resourceGroupName, string serverName, string databaseName) + { + return operations.ListByDatabaseAsync(resourceGroupName, serverName, databaseName).GetAwaiter().GetResult(); + } + + /// + /// Gets the list of workload groups + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByDatabaseAsync(this IWorkloadGroupsOperations operations, string resourceGroupName, string serverName, string databaseName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByDatabaseWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Creates or updates a workload group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database. + /// + /// + /// The name of the workload group. + /// + /// + /// The requested workload group state. + /// + public static WorkloadGroup BeginCreateOrUpdate(this IWorkloadGroupsOperations operations, string resourceGroupName, string serverName, string databaseName, string workloadGroupName, WorkloadGroup parameters) + { + return operations.BeginCreateOrUpdateAsync(resourceGroupName, serverName, databaseName, workloadGroupName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Creates or updates a workload group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database. + /// + /// + /// The name of the workload group. + /// + /// + /// The requested workload group state. + /// + /// + /// The cancellation token. + /// + public static async Task BeginCreateOrUpdateAsync(this IWorkloadGroupsOperations operations, string resourceGroupName, string serverName, string databaseName, string workloadGroupName, WorkloadGroup parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, workloadGroupName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Deletes a workload group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database. + /// + /// + /// The name of the workload group to delete. + /// + public static void BeginDelete(this IWorkloadGroupsOperations operations, string resourceGroupName, string serverName, string databaseName, string workloadGroupName) + { + operations.BeginDeleteAsync(resourceGroupName, serverName, databaseName, workloadGroupName).GetAwaiter().GetResult(); + } + + /// + /// Deletes a workload group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database. + /// + /// + /// The name of the workload group to delete. + /// + /// + /// The cancellation token. + /// + public static async Task BeginDeleteAsync(this IWorkloadGroupsOperations operations, string resourceGroupName, string serverName, string databaseName, string workloadGroupName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, workloadGroupName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Gets the list of workload groups + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListByDatabaseNext(this IWorkloadGroupsOperations operations, string nextPageLink) + { + return operations.ListByDatabaseNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Gets the list of workload groups + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByDatabaseNextAsync(this IWorkloadGroupsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByDatabaseNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/tests/ImportExportScenarioTests.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/tests/ImportExportScenarioTests.cs index 381692dc2ada..b0fb72cb6607 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/tests/ImportExportScenarioTests.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/tests/ImportExportScenarioTests.cs @@ -92,7 +92,7 @@ public void TestImportExport(bool preexistingDatabase, string testName) AdministratorLoginPassword = password, AuthenticationType = AuthenticationType.SQL.ToString(), StorageKey = storageContainerInfo.StorageAccountKey, - StorageKeyType = StorageKeyType.StorageAccessKey, + StorageKeyType = StorageKeyType.StorageAccessKey.ToString(), StorageUri = exportBacpacLink }); @@ -106,7 +106,7 @@ public void TestImportExport(bool preexistingDatabase, string testName) AdministratorLoginPassword = password, AuthenticationType = AuthenticationType.SQL.ToString(), StorageKey = storageContainerInfo.StorageAccountKey, - StorageKeyType = StorageKeyType.StorageAccessKey, + StorageKeyType = StorageKeyType.StorageAccessKey.ToString(), StorageUri = exportBacpacLink }); } @@ -118,7 +118,7 @@ public void TestImportExport(bool preexistingDatabase, string testName) AdministratorLoginPassword = password, AuthenticationType = AuthenticationType.SQL.ToString(), StorageKey = storageContainerInfo.StorageAccountKey, - StorageKeyType = StorageKeyType.StorageAccessKey, + StorageKeyType = StorageKeyType.StorageAccessKey.ToString(), StorageUri = exportBacpacLink, DatabaseName = dbName2, Edition = SqlTestConstants.DefaultDatabaseEdition, From 7a6447d1b9a4d6d9c819245fba6f6fa7a5a83043 Mon Sep 17 00:00:00 2001 From: Brandon Greenwood Date: Fri, 4 Sep 2020 18:08:26 -0700 Subject: [PATCH 16/19] Update Generated after deleting old Generated folder --- .../mgmtmetadata/sql_resource-manager.txt | 2 +- .../Generated/Models/AuthenticationType.cs | 60 ------ .../src/Generated/Models/DatabaseEdition.cs | 34 ---- .../src/Generated/Models/ExportRequest.cs | 126 ------------- .../Generated/Models/ImportExportResponse.cs | 126 ------------- .../Models/ImportExtensionRequest.cs | 158 ---------------- .../src/Generated/Models/ImportRequest.cs | 174 ------------------ .../src/Generated/Models/StorageKeyType.cs | 44 +---- .../tests/DatabaseCrudScenarioTests.cs | 4 +- .../tests/ElasticPoolCrudScenarioTests.cs | 2 +- .../tests/ImportExportScenarioTests.cs | 6 +- .../tests/SqlTestConstants.cs | 2 +- 12 files changed, 11 insertions(+), 727 deletions(-) delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/AuthenticationType.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseEdition.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ExportRequest.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ImportExportResponse.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ImportExtensionRequest.cs delete mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ImportRequest.cs diff --git a/eng/mgmt/mgmtmetadata/sql_resource-manager.txt b/eng/mgmt/mgmtmetadata/sql_resource-manager.txt index 553d959cad24..8416637aa5a0 100644 --- a/eng/mgmt/mgmtmetadata/sql_resource-manager.txt +++ b/eng/mgmt/mgmtmetadata/sql_resource-manager.txt @@ -4,7 +4,7 @@ Commencing code generation Generating CSharp code Executing AutoRest command cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/sql/resource-manager/readme.md --csharp --version=v2 --reflect-api-versions --csharp-sdks-folder=. -2020-09-05 00:33:07 UTC +2020-09-05 01:00:06 UTC Azure-rest-api-specs repository information GitHub fork: Azure Branch: master diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/AuthenticationType.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/AuthenticationType.cs deleted file mode 100644 index 1735cc6cadf7..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/AuthenticationType.cs +++ /dev/null @@ -1,60 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Newtonsoft.Json; - using Newtonsoft.Json.Converters; - using System.Runtime; - using System.Runtime.Serialization; - - /// - /// Defines values for AuthenticationType. - /// - [JsonConverter(typeof(StringEnumConverter))] - public enum AuthenticationType - { - [EnumMember(Value = "SQL")] - SQL, - [EnumMember(Value = "ADPassword")] - ADPassword - } - internal static class AuthenticationTypeEnumExtension - { - internal static string ToSerializedValue(this AuthenticationType? value) - { - return value == null ? null : ((AuthenticationType)value).ToSerializedValue(); - } - - internal static string ToSerializedValue(this AuthenticationType value) - { - switch( value ) - { - case AuthenticationType.SQL: - return "SQL"; - case AuthenticationType.ADPassword: - return "ADPassword"; - } - return null; - } - - internal static AuthenticationType? ParseAuthenticationType(this string value) - { - switch( value ) - { - case "SQL": - return AuthenticationType.SQL; - case "ADPassword": - return AuthenticationType.ADPassword; - } - return null; - } - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseEdition.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseEdition.cs deleted file mode 100644 index 61860575afdd..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseEdition.cs +++ /dev/null @@ -1,34 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - - /// - /// Defines values for DatabaseEdition. - /// - public static class DatabaseEdition - { - public const string Web = "Web"; - public const string Business = "Business"; - public const string Basic = "Basic"; - public const string Standard = "Standard"; - public const string Premium = "Premium"; - public const string PremiumRS = "PremiumRS"; - public const string Free = "Free"; - public const string Stretch = "Stretch"; - public const string DataWarehouse = "DataWarehouse"; - public const string System = "System"; - public const string System2 = "System2"; - public const string GeneralPurpose = "GeneralPurpose"; - public const string BusinessCritical = "BusinessCritical"; - public const string Hyperscale = "Hyperscale"; - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ExportRequest.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ExportRequest.cs deleted file mode 100644 index 24d7c5b4fd6b..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ExportRequest.cs +++ /dev/null @@ -1,126 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Linq; - - /// - /// Export database parameters. - /// - public partial class ExportRequest - { - /// - /// Initializes a new instance of the ExportRequest class. - /// - public ExportRequest() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the ExportRequest class. - /// - /// The type of the storage key to use. - /// Possible values include: 'StorageAccessKey', - /// 'SharedAccessKey' - /// The storage key to use. If storage key - /// type is SharedAccessKey, it must be preceded with a "?." - /// The storage uri to use. - /// The name of the SQL - /// administrator. - /// The password of the SQL - /// administrator. - /// The authentication type. Possible - /// values include: 'SQL', 'ADPassword' - public ExportRequest(StorageKeyType storageKeyType, string storageKey, string storageUri, string administratorLogin, string administratorLoginPassword, AuthenticationType? authenticationType = default(AuthenticationType?)) - { - StorageKeyType = storageKeyType; - StorageKey = storageKey; - StorageUri = storageUri; - AdministratorLogin = administratorLogin; - AdministratorLoginPassword = administratorLoginPassword; - AuthenticationType = authenticationType; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the type of the storage key to use. Possible values - /// include: 'StorageAccessKey', 'SharedAccessKey' - /// - [JsonProperty(PropertyName = "storageKeyType")] - public StorageKeyType StorageKeyType { get; set; } - - /// - /// Gets or sets the storage key to use. If storage key type is - /// SharedAccessKey, it must be preceded with a "?." - /// - [JsonProperty(PropertyName = "storageKey")] - public string StorageKey { get; set; } - - /// - /// Gets or sets the storage uri to use. - /// - [JsonProperty(PropertyName = "storageUri")] - public string StorageUri { get; set; } - - /// - /// Gets or sets the name of the SQL administrator. - /// - [JsonProperty(PropertyName = "administratorLogin")] - public string AdministratorLogin { get; set; } - - /// - /// Gets or sets the password of the SQL administrator. - /// - [JsonProperty(PropertyName = "administratorLoginPassword")] - public string AdministratorLoginPassword { get; set; } - - /// - /// Gets or sets the authentication type. Possible values include: - /// 'SQL', 'ADPassword' - /// - [JsonProperty(PropertyName = "authenticationType")] - public AuthenticationType? AuthenticationType { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (StorageKey == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "StorageKey"); - } - if (StorageUri == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "StorageUri"); - } - if (AdministratorLogin == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "AdministratorLogin"); - } - if (AdministratorLoginPassword == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "AdministratorLoginPassword"); - } - } - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ImportExportResponse.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ImportExportResponse.cs deleted file mode 100644 index d0c551fe42ea..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ImportExportResponse.cs +++ /dev/null @@ -1,126 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Linq; - - /// - /// Response for Import/Export Get operation. - /// - [Rest.Serialization.JsonTransformation] - public partial class ImportExportResponse : ProxyResource - { - /// - /// Initializes a new instance of the ImportExportResponse class. - /// - public ImportExportResponse() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the ImportExportResponse class. - /// - /// Resource ID. - /// Resource name. - /// Resource type. - /// The request type of the - /// operation. - /// The request type of the operation. - /// The name of the server. - /// The name of the database. - /// The status message returned from the - /// server. - /// The operation status last modified - /// time. - /// The operation queued time. - /// The blob uri. - /// The error message returned from the - /// server. - public ImportExportResponse(string id = default(string), string name = default(string), string type = default(string), string requestType = default(string), System.Guid? requestId = default(System.Guid?), string serverName = default(string), string databaseName = default(string), string status = default(string), string lastModifiedTime = default(string), string queuedTime = default(string), string blobUri = default(string), string errorMessage = default(string)) - : base(id, name, type) - { - RequestType = requestType; - RequestId = requestId; - ServerName = serverName; - DatabaseName = databaseName; - Status = status; - LastModifiedTime = lastModifiedTime; - QueuedTime = queuedTime; - BlobUri = blobUri; - ErrorMessage = errorMessage; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets the request type of the operation. - /// - [JsonProperty(PropertyName = "properties.requestType")] - public string RequestType { get; private set; } - - /// - /// Gets the request type of the operation. - /// - [JsonProperty(PropertyName = "properties.requestId")] - public System.Guid? RequestId { get; private set; } - - /// - /// Gets the name of the server. - /// - [JsonProperty(PropertyName = "properties.serverName")] - public string ServerName { get; private set; } - - /// - /// Gets the name of the database. - /// - [JsonProperty(PropertyName = "properties.databaseName")] - public string DatabaseName { get; private set; } - - /// - /// Gets the status message returned from the server. - /// - [JsonProperty(PropertyName = "properties.status")] - public string Status { get; private set; } - - /// - /// Gets the operation status last modified time. - /// - [JsonProperty(PropertyName = "properties.lastModifiedTime")] - public string LastModifiedTime { get; private set; } - - /// - /// Gets the operation queued time. - /// - [JsonProperty(PropertyName = "properties.queuedTime")] - public string QueuedTime { get; private set; } - - /// - /// Gets the blob uri. - /// - [JsonProperty(PropertyName = "properties.blobUri")] - public string BlobUri { get; private set; } - - /// - /// Gets the error message returned from the server. - /// - [JsonProperty(PropertyName = "properties.errorMessage")] - public string ErrorMessage { get; private set; } - - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ImportExtensionRequest.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ImportExtensionRequest.cs deleted file mode 100644 index 7718b700a6b7..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ImportExtensionRequest.cs +++ /dev/null @@ -1,158 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Linq; - - /// - /// Import database parameters. - /// - [Rest.Serialization.JsonTransformation] - public partial class ImportExtensionRequest - { - /// - /// Initializes a new instance of the ImportExtensionRequest class. - /// - public ImportExtensionRequest() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the ImportExtensionRequest class. - /// - /// The type of the storage key to use. - /// Possible values include: 'StorageAccessKey', - /// 'SharedAccessKey' - /// The storage key to use. If storage key - /// type is SharedAccessKey, it must be preceded with a "?." - /// The storage uri to use. - /// The name of the SQL - /// administrator. - /// The password of the SQL - /// administrator. - /// The name of the extension. - /// The type of the extension. - /// The authentication type. Possible - /// values include: 'SQL', 'ADPassword' - public ImportExtensionRequest(StorageKeyType storageKeyType, string storageKey, string storageUri, string administratorLogin, string administratorLoginPassword, string name = default(string), string type = default(string), AuthenticationType? authenticationType = default(AuthenticationType?)) - { - Name = name; - Type = type; - StorageKeyType = storageKeyType; - StorageKey = storageKey; - StorageUri = storageUri; - AdministratorLogin = administratorLogin; - AdministratorLoginPassword = administratorLoginPassword; - AuthenticationType = authenticationType; - CustomInit(); - } - /// - /// Static constructor for ImportExtensionRequest class. - /// - static ImportExtensionRequest() - { - OperationMode = "Import"; - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the name of the extension. - /// - [JsonProperty(PropertyName = "name")] - public string Name { get; set; } - - /// - /// Gets or sets the type of the extension. - /// - [JsonProperty(PropertyName = "type")] - public string Type { get; set; } - - /// - /// Gets or sets the type of the storage key to use. Possible values - /// include: 'StorageAccessKey', 'SharedAccessKey' - /// - [JsonProperty(PropertyName = "properties.storageKeyType")] - public StorageKeyType StorageKeyType { get; set; } - - /// - /// Gets or sets the storage key to use. If storage key type is - /// SharedAccessKey, it must be preceded with a "?." - /// - [JsonProperty(PropertyName = "properties.storageKey")] - public string StorageKey { get; set; } - - /// - /// Gets or sets the storage uri to use. - /// - [JsonProperty(PropertyName = "properties.storageUri")] - public string StorageUri { get; set; } - - /// - /// Gets or sets the name of the SQL administrator. - /// - [JsonProperty(PropertyName = "properties.administratorLogin")] - public string AdministratorLogin { get; set; } - - /// - /// Gets or sets the password of the SQL administrator. - /// - [JsonProperty(PropertyName = "properties.administratorLoginPassword")] - public string AdministratorLoginPassword { get; set; } - - /// - /// Gets or sets the authentication type. Possible values include: - /// 'SQL', 'ADPassword' - /// - [JsonProperty(PropertyName = "properties.authenticationType")] - public AuthenticationType? AuthenticationType { get; set; } - - /// - /// The type of import operation being performed. This is always - /// Import. - /// - [JsonProperty(PropertyName = "properties.operationMode")] - public static string OperationMode { get; private set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (StorageKey == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "StorageKey"); - } - if (StorageUri == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "StorageUri"); - } - if (AdministratorLogin == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "AdministratorLogin"); - } - if (AdministratorLoginPassword == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "AdministratorLoginPassword"); - } - } - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ImportRequest.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ImportRequest.cs deleted file mode 100644 index c33dde0409a7..000000000000 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ImportRequest.cs +++ /dev/null @@ -1,174 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Sql.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Linq; - - /// - /// Import database parameters. - /// - public partial class ImportRequest : ExportRequest - { - /// - /// Initializes a new instance of the ImportRequest class. - /// - public ImportRequest() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the ImportRequest class. - /// - /// The type of the storage key to use. - /// Possible values include: 'StorageAccessKey', - /// 'SharedAccessKey' - /// The storage key to use. If storage key - /// type is SharedAccessKey, it must be preceded with a "?." - /// The storage uri to use. - /// The name of the SQL - /// administrator. - /// The password of the SQL - /// administrator. - /// The name of the database to - /// import. - /// The edition for the database being created. - /// - /// The list of SKUs may vary by region and support offer. To determine - /// the SKUs (including the SKU name, tier/edition, family, and - /// capacity) that are available to your subscription in an Azure - /// region, use the `Capabilities_ListByLocation` REST API or one of - /// the following commands: - /// - /// ```azurecli - /// az sql db list-editions -l <location> -o table - /// ```` - /// - /// ```powershell - /// Get-AzSqlServerServiceObjective -Location <location> - /// ```` - /// . Possible values include: 'Web', 'Business', 'Basic', 'Standard', - /// 'Premium', 'PremiumRS', 'Free', 'Stretch', 'DataWarehouse', - /// 'System', 'System2', 'GeneralPurpose', 'BusinessCritical', - /// 'Hyperscale' - /// The name of the service - /// objective to assign to the database. Possible values include: - /// 'System', 'System0', 'System1', 'System2', 'System3', 'System4', - /// 'System2L', 'System3L', 'System4L', 'Free', 'Basic', 'S0', 'S1', - /// 'S2', 'S3', 'S4', 'S6', 'S7', 'S9', 'S12', 'P1', 'P2', 'P3', 'P4', - /// 'P6', 'P11', 'P15', 'PRS1', 'PRS2', 'PRS4', 'PRS6', 'DW100', - /// 'DW200', 'DW300', 'DW400', 'DW500', 'DW600', 'DW1000', 'DW1200', - /// 'DW1000c', 'DW1500', 'DW1500c', 'DW2000', 'DW2000c', 'DW3000', - /// 'DW2500c', 'DW3000c', 'DW6000', 'DW5000c', 'DW6000c', 'DW7500c', - /// 'DW10000c', 'DW15000c', 'DW30000c', 'DS100', 'DS200', 'DS300', - /// 'DS400', 'DS500', 'DS600', 'DS1000', 'DS1200', 'DS1500', 'DS2000', - /// 'ElasticPool' - /// The maximum size for the newly imported - /// database. - /// The authentication type. Possible - /// values include: 'SQL', 'ADPassword' - public ImportRequest(StorageKeyType storageKeyType, string storageKey, string storageUri, string administratorLogin, string administratorLoginPassword, string databaseName, string edition, string serviceObjectiveName, string maxSizeBytes, AuthenticationType? authenticationType = default(AuthenticationType?)) - : base(storageKeyType, storageKey, storageUri, administratorLogin, administratorLoginPassword, authenticationType) - { - DatabaseName = databaseName; - Edition = edition; - ServiceObjectiveName = serviceObjectiveName; - MaxSizeBytes = maxSizeBytes; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the name of the database to import. - /// - [JsonProperty(PropertyName = "databaseName")] - public string DatabaseName { get; set; } - - /// - /// Gets or sets the edition for the database being created. - /// - /// The list of SKUs may vary by region and support offer. To determine - /// the SKUs (including the SKU name, tier/edition, family, and - /// capacity) that are available to your subscription in an Azure - /// region, use the `Capabilities_ListByLocation` REST API or one of - /// the following commands: - /// - /// ```azurecli - /// az sql db list-editions -l &lt;location&gt; -o table - /// ```` - /// - /// ```powershell - /// Get-AzSqlServerServiceObjective -Location &lt;location&gt; - /// ```` - /// . Possible values include: 'Web', 'Business', 'Basic', 'Standard', - /// 'Premium', 'PremiumRS', 'Free', 'Stretch', 'DataWarehouse', - /// 'System', 'System2', 'GeneralPurpose', 'BusinessCritical', - /// 'Hyperscale' - /// - [JsonProperty(PropertyName = "edition")] - public string Edition { get; set; } - - /// - /// Gets or sets the name of the service objective to assign to the - /// database. Possible values include: 'System', 'System0', 'System1', - /// 'System2', 'System3', 'System4', 'System2L', 'System3L', - /// 'System4L', 'Free', 'Basic', 'S0', 'S1', 'S2', 'S3', 'S4', 'S6', - /// 'S7', 'S9', 'S12', 'P1', 'P2', 'P3', 'P4', 'P6', 'P11', 'P15', - /// 'PRS1', 'PRS2', 'PRS4', 'PRS6', 'DW100', 'DW200', 'DW300', 'DW400', - /// 'DW500', 'DW600', 'DW1000', 'DW1200', 'DW1000c', 'DW1500', - /// 'DW1500c', 'DW2000', 'DW2000c', 'DW3000', 'DW2500c', 'DW3000c', - /// 'DW6000', 'DW5000c', 'DW6000c', 'DW7500c', 'DW10000c', 'DW15000c', - /// 'DW30000c', 'DS100', 'DS200', 'DS300', 'DS400', 'DS500', 'DS600', - /// 'DS1000', 'DS1200', 'DS1500', 'DS2000', 'ElasticPool' - /// - [JsonProperty(PropertyName = "serviceObjectiveName")] - public string ServiceObjectiveName { get; set; } - - /// - /// Gets or sets the maximum size for the newly imported database. - /// - [JsonProperty(PropertyName = "maxSizeBytes")] - public string MaxSizeBytes { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public override void Validate() - { - base.Validate(); - if (DatabaseName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "DatabaseName"); - } - if (Edition == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Edition"); - } - if (ServiceObjectiveName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "ServiceObjectiveName"); - } - if (MaxSizeBytes == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "MaxSizeBytes"); - } - } - } -} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/StorageKeyType.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/StorageKeyType.cs index b1e639658412..ccbd48d44a48 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/StorageKeyType.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/StorageKeyType.cs @@ -10,51 +10,13 @@ namespace Microsoft.Azure.Management.Sql.Models { - using Newtonsoft.Json; - using Newtonsoft.Json.Converters; - using System.Runtime; - using System.Runtime.Serialization; /// /// Defines values for StorageKeyType. /// - [JsonConverter(typeof(StringEnumConverter))] - public enum StorageKeyType + public static class StorageKeyType { - [EnumMember(Value = "StorageAccessKey")] - StorageAccessKey, - [EnumMember(Value = "SharedAccessKey")] - SharedAccessKey - } - internal static class StorageKeyTypeEnumExtension - { - internal static string ToSerializedValue(this StorageKeyType? value) - { - return value == null ? null : ((StorageKeyType)value).ToSerializedValue(); - } - - internal static string ToSerializedValue(this StorageKeyType value) - { - switch( value ) - { - case StorageKeyType.StorageAccessKey: - return "StorageAccessKey"; - case StorageKeyType.SharedAccessKey: - return "SharedAccessKey"; - } - return null; - } - - internal static StorageKeyType? ParseStorageKeyType(this string value) - { - switch( value ) - { - case "StorageAccessKey": - return StorageKeyType.StorageAccessKey; - case "SharedAccessKey": - return StorageKeyType.SharedAccessKey; - } - return null; - } + public const string SharedAccessKey = "SharedAccessKey"; + public const string StorageAccessKey = "StorageAccessKey"; } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/tests/DatabaseCrudScenarioTests.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/tests/DatabaseCrudScenarioTests.cs index 590829ea34bb..c7e82fa46d30 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/tests/DatabaseCrudScenarioTests.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/tests/DatabaseCrudScenarioTests.cs @@ -106,7 +106,7 @@ public void TestCreateDropDatabase() var db7Input = new Database() { Location = server.Location, - Sku = new Microsoft.Azure.Management.Sql.Models.Sku("HS_Gen5_4", DatabaseEdition.Hyperscale), + Sku = new Microsoft.Azure.Management.Sql.Models.Sku("HS_Gen5_4", "Hyperscale"), ReadReplicaCount = 4, }; var db7 = sqlClient.Databases.CreateOrUpdate(resourceGroup.Name, server.Name, dbName, db7Input); @@ -252,7 +252,7 @@ private void TestUpdateDatabase( // Upgrade Edition + SLO Name // dynamic updateEditionAndSloInput = createModelFunc(); - updateEditionAndSloInput.Sku = new Microsoft.Azure.Management.Sql.Models.Sku(ServiceObjectiveName.S0, DatabaseEdition.Standard); + updateEditionAndSloInput.Sku = new Microsoft.Azure.Management.Sql.Models.Sku(ServiceObjectiveName.S0, "Standard"); var db2 = updateFunc(resourceGroup.Name, server.Name, dbName, updateEditionAndSloInput); SqlManagementTestUtilities.ValidateDatabase(updateEditionAndSloInput, db2, dbName); diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/tests/ElasticPoolCrudScenarioTests.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/tests/ElasticPoolCrudScenarioTests.cs index 3ccc1d675e57..228ac38df2b3 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/tests/ElasticPoolCrudScenarioTests.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/tests/ElasticPoolCrudScenarioTests.cs @@ -169,7 +169,7 @@ public async Task TestCancelUpdateElasticPoolOperation() // Make sure the elastic pool is not updated due to cancel operation var epGetResponse = sqlClient.ElasticPools.Get(resourceGroup.Name, server.Name, epName); Assert.Equal(125, epGetResponse.Dtu); - Assert.Equal(DatabaseEdition.Premium, epGetResponse.Edition); + Assert.Equal("Premium", epGetResponse.Edition); } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/tests/ImportExportScenarioTests.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/tests/ImportExportScenarioTests.cs index b0fb72cb6607..435aa93970b6 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/tests/ImportExportScenarioTests.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/tests/ImportExportScenarioTests.cs @@ -90,7 +90,7 @@ public void TestImportExport(bool preexistingDatabase, string testName) { AdministratorLogin = login, AdministratorLoginPassword = password, - AuthenticationType = AuthenticationType.SQL.ToString(), + AuthenticationType = "SQL", StorageKey = storageContainerInfo.StorageAccountKey, StorageKeyType = StorageKeyType.StorageAccessKey.ToString(), StorageUri = exportBacpacLink @@ -104,7 +104,7 @@ public void TestImportExport(bool preexistingDatabase, string testName) { AdministratorLogin = login, AdministratorLoginPassword = password, - AuthenticationType = AuthenticationType.SQL.ToString(), + AuthenticationType = "SQL", StorageKey = storageContainerInfo.StorageAccountKey, StorageKeyType = StorageKeyType.StorageAccessKey.ToString(), StorageUri = exportBacpacLink @@ -116,7 +116,7 @@ public void TestImportExport(bool preexistingDatabase, string testName) { AdministratorLogin = login, AdministratorLoginPassword = password, - AuthenticationType = AuthenticationType.SQL.ToString(), + AuthenticationType = "SQL", StorageKey = storageContainerInfo.StorageAccountKey, StorageKeyType = StorageKeyType.StorageAccessKey.ToString(), StorageUri = exportBacpacLink, diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/tests/SqlTestConstants.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/tests/SqlTestConstants.cs index 60dd3ffc0e6d..79a5df3cec64 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/tests/SqlTestConstants.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/tests/SqlTestConstants.cs @@ -11,7 +11,7 @@ public static class SqlTestConstants public const string DefaultCollation = "SQL_Latin1_General_CP1_CI_AS"; // Default database edition - public static readonly string DefaultDatabaseEdition = DatabaseEdition.Basic; + public static readonly string DefaultDatabaseEdition = "Basic"; // Default elastic pool edition public static readonly string DefaultElasticPoolEdition = ElasticPoolEdition.Basic; From ddeb18e8ca3eedc26fcadeb45c037010060a195c Mon Sep 17 00:00:00 2001 From: Brandon Greenwood Date: Sun, 6 Sep 2020 18:04:39 -0700 Subject: [PATCH 17/19] Adding coverage for new IE scenarios --- .../tests/ImportExportScenarioTests.cs | 80 +- ...portExistingDatabase_NetworkIsolation.json | 4873 +++++++++++++++++ ...estImportNewDatabase_NetworkIsolation.json | 4255 ++++++++++++++ 3 files changed, 9193 insertions(+), 15 deletions(-) create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/tests/SessionRecords/ImportExportScenarioTests/TestImportExistingDatabase_NetworkIsolation.json create mode 100644 sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/tests/SessionRecords/ImportExportScenarioTests/TestImportNewDatabase_NetworkIsolation.json diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/tests/ImportExportScenarioTests.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/tests/ImportExportScenarioTests.cs index 435aa93970b6..145f0dd30966 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/tests/ImportExportScenarioTests.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/tests/ImportExportScenarioTests.cs @@ -24,16 +24,28 @@ public class ImportExportScenarioTests [Fact] public void TestImportExistingDatabase() { - TestImportExport(true, "TestImportExistingDatabase"); + TestImportExport(true, "TestImportExistingDatabase", false); } [Fact] public void TestImportNewDatabase() { - TestImportExport(false, "TestImportNewDatabase"); + TestImportExport(false, "TestImportNewDatabase", false); } - public void TestImportExport(bool preexistingDatabase, string testName) + [Fact] + public void TestImportExistingDatabase_NetworkIsolation() + { + TestImportExport(true, "TestImportExistingDatabase_NetworkIsolation", true); + } + + [Fact] + public void TestImportNewDatabase_NetworkIsolation() + { + TestImportExport(false, "TestImportNewDatabase_NetworkIsolation", true); + } + + public void TestImportExport(bool preexistingDatabase, string testName, bool useNetworkIsolation) { using (SqlManagementTestContext context = new SqlManagementTestContext(this, testName)) { @@ -41,14 +53,16 @@ public void TestImportExport(bool preexistingDatabase, string testName) Server server = context.CreateServer(resourceGroup); SqlManagementClient sqlClient = context.GetClient(); + string storageAccountName = SqlManagementTestUtilities.GenerateName(prefix: "sqlcrudtest"); + // Begin creating storage account and container - Task storageContainerTask = CreateStorageContainer(context, resourceGroup); + Task storageContainerTask = CreateStorageContainer(context, resourceGroup, storageAccountName); string login = SqlManagementTestUtilities.DefaultLogin; string password = SqlManagementTestUtilities.DefaultPassword; string dbName = SqlManagementTestUtilities.GenerateName(); string dbName2 = SqlManagementTestUtilities.GenerateName(); - string storageAccountName = SqlManagementTestUtilities.GenerateName("sqlcrudstorage"); + Dictionary tags = new Dictionary() { { "tagKey1", "TagValue1" } @@ -85,8 +99,10 @@ public void TestImportExport(bool preexistingDatabase, string testName) "{0}/{1}.bacpac", storageContainerInfo.StorageContainerUri, dbName); - // Export database to bacpac - sqlClient.Databases.Export(resourceGroup.Name, server.Name, dbName, new ExportDatabaseDefinition() + string sqlServerResourceId = $"/subscriptions/{sqlClient.SubscriptionId}/resourceGroups/{resourceGroup.Name}/providers/Microsoft.Sql/servers/{server.Name}"; + string storageAccountResourceId = $"/subscriptions/{sqlClient.SubscriptionId}/resourcegroups/{resourceGroup.Name}/providers/Microsoft.Storage/storageAccounts/{storageAccountName}"; + + var exportDatabaseDefinition = new ExportDatabaseDefinition() { AdministratorLogin = login, AdministratorLoginPassword = password, @@ -94,13 +110,24 @@ public void TestImportExport(bool preexistingDatabase, string testName) StorageKey = storageContainerInfo.StorageAccountKey, StorageKeyType = StorageKeyType.StorageAccessKey.ToString(), StorageUri = exportBacpacLink - }); + }; + + if (useNetworkIsolation) + { + exportDatabaseDefinition.NetworkIsolation = new NetworkIsolationSettings() + { + SqlServerResourceId = sqlServerResourceId, + StorageAccountResourceId = storageAccountResourceId + }; + } + + // Export database to bacpac + sqlClient.Databases.Export(resourceGroup.Name, server.Name, dbName, exportDatabaseDefinition); // Import bacpac to new/existing database if (preexistingDatabase) { - // Import bacpac to existing database - sqlClient.ImportExport.Import(resourceGroup.Name, server.Name, dbName2, new ImportExistingDatabaseDefinition() + var importDatabaseDefinition = new ImportExistingDatabaseDefinition() { AdministratorLogin = login, AdministratorLoginPassword = password, @@ -108,11 +135,23 @@ public void TestImportExport(bool preexistingDatabase, string testName) StorageKey = storageContainerInfo.StorageAccountKey, StorageKeyType = StorageKeyType.StorageAccessKey.ToString(), StorageUri = exportBacpacLink - }); + }; + + if (useNetworkIsolation) + { + importDatabaseDefinition.NetworkIsolation = new NetworkIsolationSettings() + { + SqlServerResourceId = sqlServerResourceId, + StorageAccountResourceId = storageAccountResourceId + }; + } + + // Import bacpac to existing database + sqlClient.ImportExport.Import(resourceGroup.Name, server.Name, dbName2, importDatabaseDefinition); } else { - sqlClient.Servers.ImportDatabase(resourceGroup.Name, server.Name, new ImportNewDatabaseDefinition() + var importDatabaseDefinition = new ImportNewDatabaseDefinition() { AdministratorLogin = login, AdministratorLoginPassword = password, @@ -124,7 +163,18 @@ public void TestImportExport(bool preexistingDatabase, string testName) Edition = SqlTestConstants.DefaultDatabaseEdition, ServiceObjectiveName = ServiceObjectiveName.Basic, MaxSizeBytes = (2 * 1024L * 1024L * 1024L).ToString(), - }); + }; + + if (useNetworkIsolation) + { + importDatabaseDefinition.NetworkIsolation = new NetworkIsolationSettings() + { + SqlServerResourceId = sqlServerResourceId, + StorageAccountResourceId = storageAccountResourceId + }; + } + + sqlClient.Servers.ImportDatabase(resourceGroup.Name, server.Name, importDatabaseDefinition); } } } @@ -135,12 +185,12 @@ private struct StorageContainerInfo public Uri StorageContainerUri; } - private async Task CreateStorageContainer(SqlManagementTestContext context, ResourceGroup resourceGroup) + private async Task CreateStorageContainer(SqlManagementTestContext context, ResourceGroup resourceGroup, string storageAccountName) { StorageManagementClient storageClient = context.GetClient(); StorageAccount storageAccount = await storageClient.StorageAccounts.CreateAsync( resourceGroup.Name, - accountName: SqlManagementTestUtilities.GenerateName(prefix: "sqlcrudtest"), // '-' is not allowed + accountName: storageAccountName, // '-' is not allowed parameters: new StorageAccountCreateParameters( new Microsoft.Azure.Management.Storage.Models.Sku(SkuName.StandardLRS, SkuTier.Standard), Kind.BlobStorage, diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/tests/SessionRecords/ImportExportScenarioTests/TestImportExistingDatabase_NetworkIsolation.json b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/tests/SessionRecords/ImportExportScenarioTests/TestImportExistingDatabase_NetworkIsolation.json new file mode 100644 index 000000000000..937d0773e46a --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/tests/SessionRecords/ImportExportScenarioTests/TestImportExistingDatabase_NetworkIsolation.json @@ -0,0 +1,4873 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourcegroups/sqlcrudtest-8442?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTg0NDI/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"West Central US\",\r\n \"tags\": {\r\n \"sqlcrudtest-8442\": \"2020-09-07 00:29:38Z\"\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "9ccfa48e-6758-4ab5-8c9e-8e9cebf487ad" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "104" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:29:40 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-request-id": [ + "122af567-78f0-4f82-b2c2-4f120b649a9f" + ], + "x-ms-correlation-request-id": [ + "122af567-78f0-4f82-b2c2-4f120b649a9f" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T002940Z:122af567-78f0-4f82-b2c2-4f120b649a9f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "243" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-8442\",\r\n \"name\": \"sqlcrudtest-8442\",\r\n \"location\": \"westcentralus\",\r\n \"tags\": {\r\n \"sqlcrudtest-8442\": \"2020-09-07 00:29:38Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-8442/providers/Microsoft.Sql/servers/sqlcrudtest-2662?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg0NDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0yNjYyP2FwaS12ZXJzaW9uPTIwMTktMDYtMDEtcHJldmlldw==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"administratorLogin\": \"dummylogin\",\r\n \"administratorLoginPassword\": \"Un53cuRE!\",\r\n \"version\": \"12.0\"\r\n },\r\n \"location\": \"West Central US\",\r\n \"tags\": {}\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "ae078c9b-7e41-41c3-87d0-e9323ae2e5ef" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "189" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:29:42 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-8442/providers/Microsoft.Sql/locations/westcentralus/serverOperationResults/78fac0b7-7960-4ddc-b236-e5f7788c5cfb?api-version=2019-06-01-preview" + ], + "Retry-After": [ + "1" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-8442/providers/Microsoft.Sql/locations/westcentralus/serverAzureAsyncOperation/78fac0b7-7960-4ddc-b236-e5f7788c5cfb?api-version=2019-06-01-preview" + ], + "x-ms-request-id": [ + "78fac0b7-7960-4ddc-b236-e5f7788c5cfb" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1191" + ], + "x-ms-correlation-request-id": [ + "48831053-30a5-4e28-adad-cb612503fc04" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T002942Z:48831053-30a5-4e28-adad-cb612503fc04" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "73" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"UpsertLogicalServer\",\r\n \"startTime\": \"2020-09-07T00:29:42.48Z\"\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-8442/providers/Microsoft.Sql/locations/westcentralus/serverAzureAsyncOperation/78fac0b7-7960-4ddc-b236-e5f7788c5cfb?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg0NDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi83OGZhYzBiNy03OTYwLTRkZGMtYjIzNi1lNWY3Nzg4YzVjZmI/YXBpLXZlcnNpb249MjAxOS0wNi0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:29:43 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "1" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "df3cfd9a-9ca0-47ca-abe8-253e5e100aa2" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11947" + ], + "x-ms-correlation-request-id": [ + "aa17813b-495d-4e4b-8a68-2276d5eaaf63" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T002943Z:aa17813b-495d-4e4b-8a68-2276d5eaaf63" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"78fac0b7-7960-4ddc-b236-e5f7788c5cfb\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T00:29:42.48Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-8442/providers/Microsoft.Sql/locations/westcentralus/serverAzureAsyncOperation/78fac0b7-7960-4ddc-b236-e5f7788c5cfb?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg0NDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi83OGZhYzBiNy03OTYwLTRkZGMtYjIzNi1lNWY3Nzg4YzVjZmI/YXBpLXZlcnNpb249MjAxOS0wNi0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:29:44 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "1" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "30808eec-1480-4f63-96b6-e8199fca7802" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11946" + ], + "x-ms-correlation-request-id": [ + "7054ede1-c982-4f0a-9fc9-9020010d7c3a" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T002944Z:7054ede1-c982-4f0a-9fc9-9020010d7c3a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"78fac0b7-7960-4ddc-b236-e5f7788c5cfb\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T00:29:42.48Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-8442/providers/Microsoft.Sql/locations/westcentralus/serverAzureAsyncOperation/78fac0b7-7960-4ddc-b236-e5f7788c5cfb?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg0NDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi83OGZhYzBiNy03OTYwLTRkZGMtYjIzNi1lNWY3Nzg4YzVjZmI/YXBpLXZlcnNpb249MjAxOS0wNi0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:29:45 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "1" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "ddb4bb35-ebaa-4441-a4b5-517546661d33" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11945" + ], + "x-ms-correlation-request-id": [ + "1f8c3a6c-8b19-4455-9c50-c501f7ceedc7" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T002946Z:1f8c3a6c-8b19-4455-9c50-c501f7ceedc7" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"78fac0b7-7960-4ddc-b236-e5f7788c5cfb\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T00:29:42.48Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-8442/providers/Microsoft.Sql/locations/westcentralus/serverAzureAsyncOperation/78fac0b7-7960-4ddc-b236-e5f7788c5cfb?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg0NDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi83OGZhYzBiNy03OTYwLTRkZGMtYjIzNi1lNWY3Nzg4YzVjZmI/YXBpLXZlcnNpb249MjAxOS0wNi0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:29:46 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "1" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "f3ed5b9b-f816-4aa4-82e1-5b1e4fc0dd97" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11944" + ], + "x-ms-correlation-request-id": [ + "7039e142-2c3a-4be0-9931-581c83600f5e" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T002947Z:7039e142-2c3a-4be0-9931-581c83600f5e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"78fac0b7-7960-4ddc-b236-e5f7788c5cfb\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T00:29:42.48Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-8442/providers/Microsoft.Sql/locations/westcentralus/serverAzureAsyncOperation/78fac0b7-7960-4ddc-b236-e5f7788c5cfb?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg0NDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi83OGZhYzBiNy03OTYwLTRkZGMtYjIzNi1lNWY3Nzg4YzVjZmI/YXBpLXZlcnNpb249MjAxOS0wNi0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:29:47 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "20" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "f4923da0-2457-40ba-9305-6b481ccebb80" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11943" + ], + "x-ms-correlation-request-id": [ + "b4621cba-5bf5-492b-a927-68c93d4a693f" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T002948Z:b4621cba-5bf5-492b-a927-68c93d4a693f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"78fac0b7-7960-4ddc-b236-e5f7788c5cfb\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T00:29:42.48Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-8442/providers/Microsoft.Sql/locations/westcentralus/serverAzureAsyncOperation/78fac0b7-7960-4ddc-b236-e5f7788c5cfb?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg0NDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi83OGZhYzBiNy03OTYwLTRkZGMtYjIzNi1lNWY3Nzg4YzVjZmI/YXBpLXZlcnNpb249MjAxOS0wNi0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:30:07 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "20" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "a9bfad2a-cae7-4244-9101-6b8b3057d401" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11942" + ], + "x-ms-correlation-request-id": [ + "2ca209c0-4170-48ca-a7d8-9874dd1ba680" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T003008Z:2ca209c0-4170-48ca-a7d8-9874dd1ba680" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"78fac0b7-7960-4ddc-b236-e5f7788c5cfb\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T00:29:42.48Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-8442/providers/Microsoft.Sql/locations/westcentralus/serverAzureAsyncOperation/78fac0b7-7960-4ddc-b236-e5f7788c5cfb?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg0NDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi83OGZhYzBiNy03OTYwLTRkZGMtYjIzNi1lNWY3Nzg4YzVjZmI/YXBpLXZlcnNpb249MjAxOS0wNi0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:30:28 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "de5d31a9-ccf7-47c8-937f-76eb73cd79de" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11941" + ], + "x-ms-correlation-request-id": [ + "4110c94a-632c-46bd-aa8b-fac25bcc5846" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T003028Z:4110c94a-632c-46bd-aa8b-fac25bcc5846" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "106" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"78fac0b7-7960-4ddc-b236-e5f7788c5cfb\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2020-09-07T00:29:42.48Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-8442/providers/Microsoft.Sql/servers/sqlcrudtest-2662?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg0NDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0yNjYyP2FwaS12ZXJzaW9uPTIwMTktMDYtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:30:28 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "d55c0414-212a-425a-984b-bc1977f0fd1c" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11940" + ], + "x-ms-correlation-request-id": [ + "6e7e2b64-b2a6-4d18-b995-464a271254cb" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T003028Z:6e7e2b64-b2a6-4d18-b995-464a271254cb" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "463" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"kind\": \"v12.0\",\r\n \"properties\": {\r\n \"administratorLogin\": \"dummylogin\",\r\n \"version\": \"12.0\",\r\n \"state\": \"Ready\",\r\n \"fullyQualifiedDomainName\": \"sqlcrudtest-2662.database.windows.net\",\r\n \"privateEndpointConnections\": [],\r\n \"publicNetworkAccess\": \"Enabled\"\r\n },\r\n \"location\": \"westcentralus\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-8442/providers/Microsoft.Sql/servers/sqlcrudtest-2662\",\r\n \"name\": \"sqlcrudtest-2662\",\r\n \"type\": \"Microsoft.Sql/servers\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-8442/providers/Microsoft.Sql/servers/sqlcrudtest-2662/firewallRules/sqlcrudtest-3093?api-version=2014-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg0NDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0yNjYyL2ZpcmV3YWxsUnVsZXMvc3FsY3J1ZHRlc3QtMzA5Mz9hcGktdmVyc2lvbj0yMDE0LTA0LTAx", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"startIpAddress\": \"0.0.0.0\",\r\n \"endIpAddress\": \"255.255.255.255\"\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "5856d4f1-048a-4ad0-8824-869c7fd8ee2b" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "101" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:30:29 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "eeccf953-4fcb-4c61-9e8a-0df1e762514d" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Preference-Applied": [ + "return-content" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1189" + ], + "x-ms-correlation-request-id": [ + "0168e8bb-52a2-412c-8127-b3f3913318f9" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T003029Z:0168e8bb-52a2-412c-8127-b3f3913318f9" + ], + "Content-Length": [ + "362" + ], + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-8442/providers/Microsoft.Sql/servers/sqlcrudtest-2662/firewallRules/sqlcrudtest-3093\",\r\n \"name\": \"sqlcrudtest-3093\",\r\n \"type\": \"Microsoft.Sql/servers/firewallRules\",\r\n \"location\": \"West Central US\",\r\n \"kind\": \"v12.0\",\r\n \"properties\": {\r\n \"startIpAddress\": \"0.0.0.0\",\r\n \"endIpAddress\": \"255.255.255.255\"\r\n }\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-8442/providers/Microsoft.Sql/servers/sqlcrudtest-2662/databases/sqlcrudtest-6320?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg0NDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0yNjYyL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC02MzIwP2FwaS12ZXJzaW9uPTIwMTktMDYtMDEtcHJldmlldw==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"westcentralus\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "b1422dbd-7fae-4d14-b9c2-3da57861182c" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "35" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:30:30 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-8442/providers/Microsoft.Sql/locations/westcentralus/databaseOperationResults/3279946b-1da7-48bb-b2f0-231027ec8ff8?api-version=2019-06-01-preview" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-8442/providers/Microsoft.Sql/locations/westcentralus/databaseAzureAsyncOperation/3279946b-1da7-48bb-b2f0-231027ec8ff8?api-version=2019-06-01-preview" + ], + "x-ms-request-id": [ + "3279946b-1da7-48bb-b2f0-231027ec8ff8" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1188" + ], + "x-ms-correlation-request-id": [ + "11e1726c-89f9-4e6d-9c1e-f82d3d8fc5ec" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T003030Z:11e1726c-89f9-4e6d-9c1e-f82d3d8fc5ec" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "76" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2020-09-07T00:30:30.057Z\"\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-8442/providers/Microsoft.Storage/storageAccounts/sqlcrudtest8121?api-version=2017-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg0NDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9zcWxjcnVkdGVzdDgxMjE/YXBpLXZlcnNpb249MjAxNy0wNi0wMQ==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\"\r\n },\r\n \"kind\": \"BlobStorage\",\r\n \"location\": \"westcentralus\",\r\n \"properties\": {\r\n \"accessTier\": \"Cool\"\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "9732f2e8-8f5a-43f3-9453-eff2f80a6aad" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Storage.StorageManagementClient/6.5.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "158" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:30:30 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Storage/locations/westcentralus/asyncoperations/822b8f32-8676-4232-8dd0-d539f7526dbd?monitor=true&api-version=2017-06-01" + ], + "Retry-After": [ + "17" + ], + "Server": [ + "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "822b8f32-8676-4232-8dd0-d539f7526dbd" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1188" + ], + "x-ms-correlation-request-id": [ + "284e73c6-15e2-40ed-9a4a-7d4b2dbb75ac" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T003030Z:284e73c6-15e2-40ed-9a4a-7d4b2dbb75ac" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "0" + ], + "Content-Type": [ + "text/plain; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-8442/providers/Microsoft.Sql/locations/westcentralus/databaseAzureAsyncOperation/3279946b-1da7-48bb-b2f0-231027ec8ff8?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg0NDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzMyNzk5NDZiLTFkYTctNDhiYi1iMmYwLTIzMTAyN2VjOGZmOD9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:30:44 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "8ce76bdc-b3aa-49c7-80e1-e913a22f3b96" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11939" + ], + "x-ms-correlation-request-id": [ + "40d55f3a-4caa-4e0b-823b-e6bdb07bea63" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T003045Z:40d55f3a-4caa-4e0b-823b-e6bdb07bea63" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"3279946b-1da7-48bb-b2f0-231027ec8ff8\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T00:30:30.057Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-8442/providers/Microsoft.Sql/locations/westcentralus/databaseAzureAsyncOperation/3279946b-1da7-48bb-b2f0-231027ec8ff8?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg0NDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzMyNzk5NDZiLTFkYTctNDhiYi1iMmYwLTIzMTAyN2VjOGZmOD9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:30:59 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "2fe16295-2bc5-47d7-9888-8621e2cba56b" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11937" + ], + "x-ms-correlation-request-id": [ + "1b6e516d-25e6-4cf0-ba6f-9bfaa099ba0b" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T003100Z:1b6e516d-25e6-4cf0-ba6f-9bfaa099ba0b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"3279946b-1da7-48bb-b2f0-231027ec8ff8\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T00:30:30.057Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-8442/providers/Microsoft.Sql/locations/westcentralus/databaseAzureAsyncOperation/3279946b-1da7-48bb-b2f0-231027ec8ff8?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg0NDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzMyNzk5NDZiLTFkYTctNDhiYi1iMmYwLTIzMTAyN2VjOGZmOD9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:31:14 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "13c24a28-aa24-4a8b-92b0-9c29a7f407e2" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11936" + ], + "x-ms-correlation-request-id": [ + "5a3529f0-f640-468b-bb80-7b5c65bd1227" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T003115Z:5a3529f0-f640-468b-bb80-7b5c65bd1227" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"3279946b-1da7-48bb-b2f0-231027ec8ff8\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2020-09-07T00:30:30.057Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Storage/locations/westcentralus/asyncoperations/822b8f32-8676-4232-8dd0-d539f7526dbd?monitor=true&api-version=2017-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZS9sb2NhdGlvbnMvd2VzdGNlbnRyYWx1cy9hc3luY29wZXJhdGlvbnMvODIyYjhmMzItODY3Ni00MjMyLThkZDAtZDUzOWY3NTI2ZGJkP21vbml0b3I9dHJ1ZSZhcGktdmVyc2lvbj0yMDE3LTA2LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Storage.StorageManagementClient/6.5.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:30:46 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "77f73e07-cd34-4482-ae37-545b0556830a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11938" + ], + "x-ms-correlation-request-id": [ + "6b6703f2-2a45-427e-8ad7-650703e8d32c" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T003047Z:6b6703f2-2a45-427e-8ad7-650703e8d32c" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "980" + ], + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"kind\": \"BlobStorage\",\r\n \"id\": \"/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-8442/providers/Microsoft.Storage/storageAccounts/sqlcrudtest8121\",\r\n \"name\": \"sqlcrudtest8121\",\r\n \"type\": \"Microsoft.Storage/storageAccounts\",\r\n \"location\": \"westcentralus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"networkAcls\": {\r\n \"bypass\": \"AzureServices\",\r\n \"virtualNetworkRules\": [],\r\n \"ipRules\": [],\r\n \"defaultAction\": \"Allow\"\r\n },\r\n \"supportsHttpsTrafficOnly\": false,\r\n \"encryption\": {\r\n \"services\": {\r\n \"file\": {\r\n \"enabled\": true,\r\n \"lastEnabledTime\": \"2020-09-07T00:30:29.6871846Z\"\r\n },\r\n \"blob\": {\r\n \"enabled\": true,\r\n \"lastEnabledTime\": \"2020-09-07T00:30:29.6871846Z\"\r\n }\r\n },\r\n \"keySource\": \"Microsoft.Storage\"\r\n },\r\n \"accessTier\": \"Cool\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"creationTime\": \"2020-09-07T00:30:29.640334Z\",\r\n \"primaryEndpoints\": {\r\n \"blob\": \"https://sqlcrudtest8121.blob.core.windows.net/\",\r\n \"table\": \"https://sqlcrudtest8121.table.core.windows.net/\"\r\n },\r\n \"primaryLocation\": \"westcentralus\",\r\n \"statusOfPrimary\": \"available\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-8442/providers/Microsoft.Storage/storageAccounts/sqlcrudtest8121/listKeys?api-version=2017-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg0NDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9zcWxjcnVkdGVzdDgxMjEvbGlzdEtleXM/YXBpLXZlcnNpb249MjAxNy0wNi0wMQ==", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "2ca8a1a5-8a95-44c9-91bb-cc4058a03c60" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Storage.StorageManagementClient/6.5.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:30:46 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "8e38a67d-64a6-410d-aac7-34703ad83835" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ + "11997" + ], + "x-ms-correlation-request-id": [ + "1e4ed03f-48b4-48bd-83f7-b54a8e4d2912" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T003047Z:1e4ed03f-48b4-48bd-83f7-b54a8e4d2912" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "288" + ], + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"keys\": [\r\n {\r\n \"keyName\": \"key1\",\r\n \"value\": \"o85ddqivD3PybP6k+GQ8CLzjgOeGCMT33ZjoXKPqbg26BxArWmbkD0vm9QA+G/GyOlKc0Zh3l+OaPyoUy9ZZAQ==\",\r\n \"permissions\": \"FULL\"\r\n },\r\n {\r\n \"keyName\": \"key2\",\r\n \"value\": \"Q8ybku9nuf/F6Qu0lWJhT0dRlOBUeTNwvc+A7JTyM66EWgtT8/KLGiL3tRt1V9P6LnTqkBchsfg7NIoJDudH3Q==\",\r\n \"permissions\": \"FULL\"\r\n }\r\n ]\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-8442/providers/Microsoft.Sql/servers/sqlcrudtest-2662/databases/sqlcrudtest-6320?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg0NDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0yNjYyL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC02MzIwP2FwaS12ZXJzaW9uPTIwMTktMDYtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:31:14 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "30a6e4a9-ea26-479c-bb30-d71115168aa8" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11935" + ], + "x-ms-correlation-request-id": [ + "5d39cda9-9f0c-49be-bcc5-700645614396" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T003115Z:5d39cda9-9f0c-49be-bcc5-700645614396" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "1023" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"GP_Gen5\",\r\n \"tier\": \"GeneralPurpose\",\r\n \"family\": \"Gen5\",\r\n \"capacity\": 2\r\n },\r\n \"kind\": \"v12.0,user,vcore\",\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": 34359738368,\r\n \"status\": \"Online\",\r\n \"databaseId\": \"cbef6d77-c842-4bdd-ab2c-bd2408e1c4d1\",\r\n \"creationDate\": \"2020-09-07T00:31:05.12Z\",\r\n \"currentServiceObjectiveName\": \"GP_Gen5_2\",\r\n \"requestedServiceObjectiveName\": \"GP_Gen5_2\",\r\n \"defaultSecondaryLocation\": \"westus2\",\r\n \"catalogCollation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"zoneRedundant\": false,\r\n \"licenseType\": \"LicenseIncluded\",\r\n \"maxLogSizeBytes\": 10307502080,\r\n \"earliestRestoreDate\": \"2020-09-07T01:01:05.12Z\",\r\n \"readScale\": \"Disabled\",\r\n \"readReplicaCount\": 0,\r\n \"currentSku\": {\r\n \"name\": \"GP_Gen5\",\r\n \"tier\": \"GeneralPurpose\",\r\n \"family\": \"Gen5\",\r\n \"capacity\": 2\r\n },\r\n \"storageAccountType\": \"GRS\"\r\n },\r\n \"location\": \"westcentralus\",\r\n \"id\": \"/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-8442/providers/Microsoft.Sql/servers/sqlcrudtest-2662/databases/sqlcrudtest-6320\",\r\n \"name\": \"sqlcrudtest-6320\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-8442/providers/Microsoft.Sql/servers/sqlcrudtest-2662/databases/sqlcrudtest-6055?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg0NDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0yNjYyL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC02MDU1P2FwaS12ZXJzaW9uPTIwMTktMDYtMDEtcHJldmlldw==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"westcentralus\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "53ebc746-5620-45d1-aa4d-96d8295b2a3d" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "35" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:31:15 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-8442/providers/Microsoft.Sql/locations/westcentralus/databaseOperationResults/f5b881ed-264f-4e11-a6c9-dcfdbbee9f8e?api-version=2019-06-01-preview" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-8442/providers/Microsoft.Sql/locations/westcentralus/databaseAzureAsyncOperation/f5b881ed-264f-4e11-a6c9-dcfdbbee9f8e?api-version=2019-06-01-preview" + ], + "x-ms-request-id": [ + "f5b881ed-264f-4e11-a6c9-dcfdbbee9f8e" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1187" + ], + "x-ms-correlation-request-id": [ + "9fb81b27-cc35-4095-8cb0-1d80e1fe39d0" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T003116Z:9fb81b27-cc35-4095-8cb0-1d80e1fe39d0" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "76" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2020-09-07T00:31:16.417Z\"\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-8442/providers/Microsoft.Sql/locations/westcentralus/databaseAzureAsyncOperation/f5b881ed-264f-4e11-a6c9-dcfdbbee9f8e?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg0NDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2Y1Yjg4MWVkLTI2NGYtNGUxMS1hNmM5LWRjZmRiYmVlOWY4ZT9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:31:31 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "ff1fc9b4-6d10-4a3e-af08-44cb28e65285" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11934" + ], + "x-ms-correlation-request-id": [ + "943d8961-344f-4d4e-901e-63053798b74e" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T003131Z:943d8961-344f-4d4e-901e-63053798b74e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"f5b881ed-264f-4e11-a6c9-dcfdbbee9f8e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T00:31:16.417Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-8442/providers/Microsoft.Sql/locations/westcentralus/databaseAzureAsyncOperation/f5b881ed-264f-4e11-a6c9-dcfdbbee9f8e?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg0NDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2Y1Yjg4MWVkLTI2NGYtNGUxMS1hNmM5LWRjZmRiYmVlOWY4ZT9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:31:46 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "53ffd58f-c341-4898-b82d-44bc5f386413" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11933" + ], + "x-ms-correlation-request-id": [ + "d15f4625-6f20-4258-9be3-afcfb5423d30" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T003146Z:d15f4625-6f20-4258-9be3-afcfb5423d30" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"f5b881ed-264f-4e11-a6c9-dcfdbbee9f8e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T00:31:16.417Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-8442/providers/Microsoft.Sql/locations/westcentralus/databaseAzureAsyncOperation/f5b881ed-264f-4e11-a6c9-dcfdbbee9f8e?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg0NDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2Y1Yjg4MWVkLTI2NGYtNGUxMS1hNmM5LWRjZmRiYmVlOWY4ZT9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:32:01 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "837e668d-3031-465e-8211-8e2e9ff22045" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11932" + ], + "x-ms-correlation-request-id": [ + "7f004ff8-5b80-49bb-9364-290d78a7f9e2" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T003201Z:7f004ff8-5b80-49bb-9364-290d78a7f9e2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"f5b881ed-264f-4e11-a6c9-dcfdbbee9f8e\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2020-09-07T00:31:16.417Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-8442/providers/Microsoft.Sql/servers/sqlcrudtest-2662/databases/sqlcrudtest-6055?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg0NDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0yNjYyL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC02MDU1P2FwaS12ZXJzaW9uPTIwMTktMDYtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:32:01 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "1a8d873e-1352-4981-b36b-75211a6cf306" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11931" + ], + "x-ms-correlation-request-id": [ + "3b8de10d-6503-45a0-9ec9-b881b0c78150" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T003202Z:3b8de10d-6503-45a0-9ec9-b881b0c78150" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "1021" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"GP_Gen5\",\r\n \"tier\": \"GeneralPurpose\",\r\n \"family\": \"Gen5\",\r\n \"capacity\": 2\r\n },\r\n \"kind\": \"v12.0,user,vcore\",\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": 34359738368,\r\n \"status\": \"Online\",\r\n \"databaseId\": \"948d0b4e-ec1f-4a7f-aa0f-ebed31b9dae3\",\r\n \"creationDate\": \"2020-09-07T00:31:51.4Z\",\r\n \"currentServiceObjectiveName\": \"GP_Gen5_2\",\r\n \"requestedServiceObjectiveName\": \"GP_Gen5_2\",\r\n \"defaultSecondaryLocation\": \"westus2\",\r\n \"catalogCollation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"zoneRedundant\": false,\r\n \"licenseType\": \"LicenseIncluded\",\r\n \"maxLogSizeBytes\": 10307502080,\r\n \"earliestRestoreDate\": \"2020-09-07T01:01:51.4Z\",\r\n \"readScale\": \"Disabled\",\r\n \"readReplicaCount\": 0,\r\n \"currentSku\": {\r\n \"name\": \"GP_Gen5\",\r\n \"tier\": \"GeneralPurpose\",\r\n \"family\": \"Gen5\",\r\n \"capacity\": 2\r\n },\r\n \"storageAccountType\": \"GRS\"\r\n },\r\n \"location\": \"westcentralus\",\r\n \"id\": \"/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-8442/providers/Microsoft.Sql/servers/sqlcrudtest-2662/databases/sqlcrudtest-6055\",\r\n \"name\": \"sqlcrudtest-6055\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-8442/providers/Microsoft.Sql/servers/sqlcrudtest-2662/databases/sqlcrudtest-6055?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg0NDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0yNjYyL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC02MDU1P2FwaS12ZXJzaW9uPTIwMTktMDYtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "45f6dbc9-1d04-4573-9870-603de464ed06" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:32:02 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "01ca833a-3847-4a01-b4d4-d5a7032f2ef6" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11930" + ], + "x-ms-correlation-request-id": [ + "fd48bf39-fc8d-4786-967e-74e6a43d0878" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T003202Z:fd48bf39-fc8d-4786-967e-74e6a43d0878" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "1021" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"GP_Gen5\",\r\n \"tier\": \"GeneralPurpose\",\r\n \"family\": \"Gen5\",\r\n \"capacity\": 2\r\n },\r\n \"kind\": \"v12.0,user,vcore\",\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": 34359738368,\r\n \"status\": \"Online\",\r\n \"databaseId\": \"948d0b4e-ec1f-4a7f-aa0f-ebed31b9dae3\",\r\n \"creationDate\": \"2020-09-07T00:31:51.4Z\",\r\n \"currentServiceObjectiveName\": \"GP_Gen5_2\",\r\n \"requestedServiceObjectiveName\": \"GP_Gen5_2\",\r\n \"defaultSecondaryLocation\": \"westus2\",\r\n \"catalogCollation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"zoneRedundant\": false,\r\n \"licenseType\": \"LicenseIncluded\",\r\n \"maxLogSizeBytes\": 10307502080,\r\n \"earliestRestoreDate\": \"2020-09-07T01:01:51.4Z\",\r\n \"readScale\": \"Disabled\",\r\n \"readReplicaCount\": 0,\r\n \"currentSku\": {\r\n \"name\": \"GP_Gen5\",\r\n \"tier\": \"GeneralPurpose\",\r\n \"family\": \"Gen5\",\r\n \"capacity\": 2\r\n },\r\n \"storageAccountType\": \"GRS\"\r\n },\r\n \"location\": \"westcentralus\",\r\n \"id\": \"/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-8442/providers/Microsoft.Sql/servers/sqlcrudtest-2662/databases/sqlcrudtest-6055\",\r\n \"name\": \"sqlcrudtest-6055\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-8442/providers/Microsoft.Sql/servers/sqlcrudtest-2662/databases/sqlcrudtest-6320/export?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg0NDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0yNjYyL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC02MzIwL2V4cG9ydD9hcGktdmVyc2lvbj0yMDIwLTAyLTAyLXByZXZpZXc=", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"storageKeyType\": \"StorageAccessKey\",\r\n \"storageKey\": \"o85ddqivD3PybP6k+GQ8CLzjgOeGCMT33ZjoXKPqbg26BxArWmbkD0vm9QA+G/GyOlKc0Zh3l+OaPyoUy9ZZAQ==\",\r\n \"storageUri\": \"https://sqlcrudtest8121.blob.core.windows.net/container/sqlcrudtest-6320.bacpac\",\r\n \"administratorLogin\": \"dummylogin\",\r\n \"administratorLoginPassword\": \"Un53cuRE!\",\r\n \"authenticationType\": \"SQL\",\r\n \"networkIsolation\": {\r\n \"storageAccountResourceId\": \"/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourcegroups/sqlcrudtest-8442/providers/Microsoft.Storage/storageAccounts/sqlcrudtest8121\",\r\n \"sqlServerResourceId\": \"/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-8442/providers/Microsoft.Sql/servers/sqlcrudtest-2662\"\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "a06a873c-14ab-4848-a832-e9e100b31da3" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "744" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:32:03 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportOperationResults/a2d6257d-0980-44d2-8f47-8866c3f5db8a-sqlcrudtest-2662?api-version=2020-02-02-preview" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/a2d6257d-0980-44d2-8f47-8866c3f5db8a-sqlcrudtest-2662?api-version=2020-02-02-preview" + ], + "x-ms-request-id": [ + "d18eb12e-14c8-4d14-805c-c67410f6e791" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-correlation-request-id": [ + "3cf0759f-ab74-4f0c-83a4-7699aff9ac95" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T003203Z:3cf0759f-ab74-4f0c-83a4-7699aff9ac95" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "65" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"Export\",\r\n \"startTime\": \"2020-09-07T00:32:03.5092004Z\"\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/a2d6257d-0980-44d2-8f47-8866c3f5db8a-sqlcrudtest-2662?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vYTJkNjI1N2QtMDk4MC00NGQyLThmNDctODg2NmMzZjVkYjhhLXNxbGNydWR0ZXN0LTI2NjI/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:32:18 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "ac0da7ae-8865-4ea0-b153-cb3ffb7474eb" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11929" + ], + "x-ms-correlation-request-id": [ + "df0b16ff-c12d-41df-a895-0dee2e85f8cf" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T003218Z:df0b16ff-c12d-41df-a895-0dee2e85f8cf" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "104" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"a2d6257d-0980-44d2-8f47-8866c3f5db8a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T00:32:02Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/a2d6257d-0980-44d2-8f47-8866c3f5db8a-sqlcrudtest-2662?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vYTJkNjI1N2QtMDk4MC00NGQyLThmNDctODg2NmMzZjVkYjhhLXNxbGNydWR0ZXN0LTI2NjI/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:32:34 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "d3143219-4c8c-462d-830a-9186344b8fec" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11928" + ], + "x-ms-correlation-request-id": [ + "debd5e63-d581-410a-9fa4-3b147fa0b093" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T003234Z:debd5e63-d581-410a-9fa4-3b147fa0b093" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "104" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"a2d6257d-0980-44d2-8f47-8866c3f5db8a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T00:32:02Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/a2d6257d-0980-44d2-8f47-8866c3f5db8a-sqlcrudtest-2662?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vYTJkNjI1N2QtMDk4MC00NGQyLThmNDctODg2NmMzZjVkYjhhLXNxbGNydWR0ZXN0LTI2NjI/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:32:48 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "7a0dc535-8b5c-4fd4-b8e4-7b0ab7a08aaa" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11927" + ], + "x-ms-correlation-request-id": [ + "2f86f99c-0bc6-40b0-b82e-de5a6fa09f60" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T003249Z:2f86f99c-0bc6-40b0-b82e-de5a6fa09f60" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "104" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"a2d6257d-0980-44d2-8f47-8866c3f5db8a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T00:32:02Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/a2d6257d-0980-44d2-8f47-8866c3f5db8a-sqlcrudtest-2662?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vYTJkNjI1N2QtMDk4MC00NGQyLThmNDctODg2NmMzZjVkYjhhLXNxbGNydWR0ZXN0LTI2NjI/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:33:04 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "1349568d-27ec-48e1-bd1f-d4dd7fa051c8" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11926" + ], + "x-ms-correlation-request-id": [ + "ebc83184-a769-4a90-97b3-f1b2872ffac9" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T003304Z:ebc83184-a769-4a90-97b3-f1b2872ffac9" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "104" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"a2d6257d-0980-44d2-8f47-8866c3f5db8a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T00:33:02Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/a2d6257d-0980-44d2-8f47-8866c3f5db8a-sqlcrudtest-2662?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vYTJkNjI1N2QtMDk4MC00NGQyLThmNDctODg2NmMzZjVkYjhhLXNxbGNydWR0ZXN0LTI2NjI/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:33:19 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "40ed52fb-5e95-4337-90ec-cfc348aba1f8" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11925" + ], + "x-ms-correlation-request-id": [ + "38b3feac-233f-4120-8171-f0bb24673417" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T003319Z:38b3feac-233f-4120-8171-f0bb24673417" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "104" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"a2d6257d-0980-44d2-8f47-8866c3f5db8a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T00:33:02Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/a2d6257d-0980-44d2-8f47-8866c3f5db8a-sqlcrudtest-2662?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vYTJkNjI1N2QtMDk4MC00NGQyLThmNDctODg2NmMzZjVkYjhhLXNxbGNydWR0ZXN0LTI2NjI/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:33:34 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "708b89c0-03f0-4d4c-8ba2-b54bf440654d" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11924" + ], + "x-ms-correlation-request-id": [ + "00ee0d53-4bc2-4d70-b410-4bc3e1480077" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T003334Z:00ee0d53-4bc2-4d70-b410-4bc3e1480077" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "104" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"a2d6257d-0980-44d2-8f47-8866c3f5db8a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T00:33:02Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/a2d6257d-0980-44d2-8f47-8866c3f5db8a-sqlcrudtest-2662?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vYTJkNjI1N2QtMDk4MC00NGQyLThmNDctODg2NmMzZjVkYjhhLXNxbGNydWR0ZXN0LTI2NjI/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:33:49 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "17bcf614-da0e-4ff5-8ced-cd544d275196" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11923" + ], + "x-ms-correlation-request-id": [ + "05e72721-1633-4f14-b54b-67170ea91c1c" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T003349Z:05e72721-1633-4f14-b54b-67170ea91c1c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "104" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"a2d6257d-0980-44d2-8f47-8866c3f5db8a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T00:33:02Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/a2d6257d-0980-44d2-8f47-8866c3f5db8a-sqlcrudtest-2662?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vYTJkNjI1N2QtMDk4MC00NGQyLThmNDctODg2NmMzZjVkYjhhLXNxbGNydWR0ZXN0LTI2NjI/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:34:04 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "8aa4b4c8-cf84-4d4d-8d23-e036da2d2a50" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11922" + ], + "x-ms-correlation-request-id": [ + "e17b7d3b-9c81-4ed5-9b5f-30253014b648" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T003405Z:e17b7d3b-9c81-4ed5-9b5f-30253014b648" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "104" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"a2d6257d-0980-44d2-8f47-8866c3f5db8a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T00:34:02Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/a2d6257d-0980-44d2-8f47-8866c3f5db8a-sqlcrudtest-2662?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vYTJkNjI1N2QtMDk4MC00NGQyLThmNDctODg2NmMzZjVkYjhhLXNxbGNydWR0ZXN0LTI2NjI/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:34:19 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "3d9847b6-3f8b-4cc2-8709-29f1ad122165" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11921" + ], + "x-ms-correlation-request-id": [ + "d6bc81f7-bdb1-44c7-94c9-de1d84632f6a" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T003420Z:d6bc81f7-bdb1-44c7-94c9-de1d84632f6a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "104" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"a2d6257d-0980-44d2-8f47-8866c3f5db8a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T00:34:02Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/a2d6257d-0980-44d2-8f47-8866c3f5db8a-sqlcrudtest-2662?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vYTJkNjI1N2QtMDk4MC00NGQyLThmNDctODg2NmMzZjVkYjhhLXNxbGNydWR0ZXN0LTI2NjI/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:34:35 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "9e56a43d-f7c4-449a-a331-a1f3c866b05a" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11920" + ], + "x-ms-correlation-request-id": [ + "31ecbacf-6f3c-413c-aba1-2614b8776f8d" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T003435Z:31ecbacf-6f3c-413c-aba1-2614b8776f8d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "104" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"a2d6257d-0980-44d2-8f47-8866c3f5db8a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T00:34:02Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/a2d6257d-0980-44d2-8f47-8866c3f5db8a-sqlcrudtest-2662?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vYTJkNjI1N2QtMDk4MC00NGQyLThmNDctODg2NmMzZjVkYjhhLXNxbGNydWR0ZXN0LTI2NjI/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:34:49 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "0292f98f-b791-4709-b64a-91be4c60d5e1" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11919" + ], + "x-ms-correlation-request-id": [ + "9d35fbf3-51dd-43a5-b530-9a11a2c9b7e3" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T003450Z:9d35fbf3-51dd-43a5-b530-9a11a2c9b7e3" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "104" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"a2d6257d-0980-44d2-8f47-8866c3f5db8a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T00:34:02Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/a2d6257d-0980-44d2-8f47-8866c3f5db8a-sqlcrudtest-2662?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vYTJkNjI1N2QtMDk4MC00NGQyLThmNDctODg2NmMzZjVkYjhhLXNxbGNydWR0ZXN0LTI2NjI/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:35:05 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "79d27891-fdd1-4584-9198-266d1bdbfa30" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11918" + ], + "x-ms-correlation-request-id": [ + "fa32ba30-e2c0-4627-8726-825cb3fcda86" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T003505Z:fa32ba30-e2c0-4627-8726-825cb3fcda86" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "104" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"a2d6257d-0980-44d2-8f47-8866c3f5db8a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T00:35:02Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/a2d6257d-0980-44d2-8f47-8866c3f5db8a-sqlcrudtest-2662?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vYTJkNjI1N2QtMDk4MC00NGQyLThmNDctODg2NmMzZjVkYjhhLXNxbGNydWR0ZXN0LTI2NjI/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:35:20 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "84ff289a-a03c-4a38-95dd-85b6d76c421c" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11917" + ], + "x-ms-correlation-request-id": [ + "83355413-35d5-4947-bf5d-50b22a2d09d4" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T003520Z:83355413-35d5-4947-bf5d-50b22a2d09d4" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "104" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"a2d6257d-0980-44d2-8f47-8866c3f5db8a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T00:35:02Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/a2d6257d-0980-44d2-8f47-8866c3f5db8a-sqlcrudtest-2662?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vYTJkNjI1N2QtMDk4MC00NGQyLThmNDctODg2NmMzZjVkYjhhLXNxbGNydWR0ZXN0LTI2NjI/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:35:36 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "f562676c-55c9-470d-9575-294f14cca624" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11916" + ], + "x-ms-correlation-request-id": [ + "17f0ccd2-26f8-4f0d-b741-9f362be78dc6" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T003536Z:17f0ccd2-26f8-4f0d-b741-9f362be78dc6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "104" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"a2d6257d-0980-44d2-8f47-8866c3f5db8a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T00:35:02Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/a2d6257d-0980-44d2-8f47-8866c3f5db8a-sqlcrudtest-2662?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vYTJkNjI1N2QtMDk4MC00NGQyLThmNDctODg2NmMzZjVkYjhhLXNxbGNydWR0ZXN0LTI2NjI/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:35:51 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "e89a3216-b5db-4a10-99d0-ab935443700d" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11915" + ], + "x-ms-correlation-request-id": [ + "6afd11d1-b5f7-4850-86b9-75d1c4f1c203" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T003551Z:6afd11d1-b5f7-4850-86b9-75d1c4f1c203" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "104" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"a2d6257d-0980-44d2-8f47-8866c3f5db8a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T00:35:02Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/a2d6257d-0980-44d2-8f47-8866c3f5db8a-sqlcrudtest-2662?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vYTJkNjI1N2QtMDk4MC00NGQyLThmNDctODg2NmMzZjVkYjhhLXNxbGNydWR0ZXN0LTI2NjI/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:36:06 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "3e3eb601-4e13-44db-a5da-a17ac7d5fde4" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11914" + ], + "x-ms-correlation-request-id": [ + "b0e67dae-34dc-4ffa-bb26-13eaec7c7b9e" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T003606Z:b0e67dae-34dc-4ffa-bb26-13eaec7c7b9e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "104" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"a2d6257d-0980-44d2-8f47-8866c3f5db8a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T00:36:02Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/a2d6257d-0980-44d2-8f47-8866c3f5db8a-sqlcrudtest-2662?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vYTJkNjI1N2QtMDk4MC00NGQyLThmNDctODg2NmMzZjVkYjhhLXNxbGNydWR0ZXN0LTI2NjI/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:36:20 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "4f1dfff2-fa47-459b-b8cd-52d6715e8b76" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11913" + ], + "x-ms-correlation-request-id": [ + "56ff8f01-aa0d-43e7-b687-0256fcbfb937" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T003621Z:56ff8f01-aa0d-43e7-b687-0256fcbfb937" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "104" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"a2d6257d-0980-44d2-8f47-8866c3f5db8a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T00:36:02Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/a2d6257d-0980-44d2-8f47-8866c3f5db8a-sqlcrudtest-2662?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vYTJkNjI1N2QtMDk4MC00NGQyLThmNDctODg2NmMzZjVkYjhhLXNxbGNydWR0ZXN0LTI2NjI/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:36:36 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "b237bb5f-b476-4eb8-9b24-ec7257b4a7f4" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11912" + ], + "x-ms-correlation-request-id": [ + "2fd23a05-0e7e-4a47-bc90-26680f4b3859" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T003636Z:2fd23a05-0e7e-4a47-bc90-26680f4b3859" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "104" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"a2d6257d-0980-44d2-8f47-8866c3f5db8a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T00:36:02Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/a2d6257d-0980-44d2-8f47-8866c3f5db8a-sqlcrudtest-2662?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vYTJkNjI1N2QtMDk4MC00NGQyLThmNDctODg2NmMzZjVkYjhhLXNxbGNydWR0ZXN0LTI2NjI/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:36:51 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "0e35dd50-d988-4e39-89f6-4227d8c57d4c" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11911" + ], + "x-ms-correlation-request-id": [ + "f1a9a651-403b-4932-ac5e-f0ef78a2d6f0" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T003651Z:f1a9a651-403b-4932-ac5e-f0ef78a2d6f0" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "104" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"a2d6257d-0980-44d2-8f47-8866c3f5db8a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T00:36:02Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/a2d6257d-0980-44d2-8f47-8866c3f5db8a-sqlcrudtest-2662?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vYTJkNjI1N2QtMDk4MC00NGQyLThmNDctODg2NmMzZjVkYjhhLXNxbGNydWR0ZXN0LTI2NjI/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:37:06 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "d99ca0b6-d95a-4548-bb0b-685580506f49" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11910" + ], + "x-ms-correlation-request-id": [ + "89e6843f-c30a-4561-bfbb-abd022c65485" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T003706Z:89e6843f-c30a-4561-bfbb-abd022c65485" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "104" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"a2d6257d-0980-44d2-8f47-8866c3f5db8a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T00:37:02Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/a2d6257d-0980-44d2-8f47-8866c3f5db8a-sqlcrudtest-2662?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vYTJkNjI1N2QtMDk4MC00NGQyLThmNDctODg2NmMzZjVkYjhhLXNxbGNydWR0ZXN0LTI2NjI/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:37:22 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "9c553578-e9c2-4a68-9018-4f8e922f1711" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11909" + ], + "x-ms-correlation-request-id": [ + "218b1379-cbbf-44e3-9676-4fdd1d251726" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T003722Z:218b1379-cbbf-44e3-9676-4fdd1d251726" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "104" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"a2d6257d-0980-44d2-8f47-8866c3f5db8a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T00:37:02Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/a2d6257d-0980-44d2-8f47-8866c3f5db8a-sqlcrudtest-2662?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vYTJkNjI1N2QtMDk4MC00NGQyLThmNDctODg2NmMzZjVkYjhhLXNxbGNydWR0ZXN0LTI2NjI/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:37:36 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "f97edd1e-bf15-45a2-b61d-d8200458aa83" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11908" + ], + "x-ms-correlation-request-id": [ + "17dd5167-242f-454d-865b-4688c9177ead" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T003737Z:17dd5167-242f-454d-865b-4688c9177ead" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "104" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"a2d6257d-0980-44d2-8f47-8866c3f5db8a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T00:37:02Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/a2d6257d-0980-44d2-8f47-8866c3f5db8a-sqlcrudtest-2662?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vYTJkNjI1N2QtMDk4MC00NGQyLThmNDctODg2NmMzZjVkYjhhLXNxbGNydWR0ZXN0LTI2NjI/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:37:51 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "45bdeab5-3e31-46d9-9de0-6bc4dce13392" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11907" + ], + "x-ms-correlation-request-id": [ + "c7a45b5e-6a88-49b3-a1d9-5c2003926284" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T003752Z:c7a45b5e-6a88-49b3-a1d9-5c2003926284" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "104" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"a2d6257d-0980-44d2-8f47-8866c3f5db8a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T00:37:02Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/a2d6257d-0980-44d2-8f47-8866c3f5db8a-sqlcrudtest-2662?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vYTJkNjI1N2QtMDk4MC00NGQyLThmNDctODg2NmMzZjVkYjhhLXNxbGNydWR0ZXN0LTI2NjI/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:38:07 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "6ae01adf-b147-4c4e-8033-e4889907a259" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11906" + ], + "x-ms-correlation-request-id": [ + "7595af20-41b3-4ce1-9a1e-825f6da338c6" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T003807Z:7595af20-41b3-4ce1-9a1e-825f6da338c6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "104" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"a2d6257d-0980-44d2-8f47-8866c3f5db8a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T00:38:03Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/a2d6257d-0980-44d2-8f47-8866c3f5db8a-sqlcrudtest-2662?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vYTJkNjI1N2QtMDk4MC00NGQyLThmNDctODg2NmMzZjVkYjhhLXNxbGNydWR0ZXN0LTI2NjI/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:38:22 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "ff3308f2-7b19-42ba-8105-087f8a6f29ed" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11905" + ], + "x-ms-correlation-request-id": [ + "9732fc63-96df-4f5a-bd45-9e56916c9a3a" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T003822Z:9732fc63-96df-4f5a-bd45-9e56916c9a3a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "103" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"a2d6257d-0980-44d2-8f47-8866c3f5db8a\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2020-09-07T00:38:09Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportOperationResults/a2d6257d-0980-44d2-8f47-8866c3f5db8a-sqlcrudtest-2662?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydE9wZXJhdGlvblJlc3VsdHMvYTJkNjI1N2QtMDk4MC00NGQyLThmNDctODg2NmMzZjVkYjhhLXNxbGNydWR0ZXN0LTI2NjI/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:38:22 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "e807de07-994b-42ae-bc7c-7f28d37ab945" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11904" + ], + "x-ms-correlation-request-id": [ + "88742319-b87f-4fb5-8453-d8e022f4af46" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T003823Z:88742319-b87f-4fb5-8453-d8e022f4af46" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "547" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"requestId\": \"a2d6257d-0980-44d2-8f47-8866c3f5db8a\",\r\n \"requestType\": \"ExportDatabase\",\r\n \"queuedTime\": \"9/7/2020 12:32:02 AM\",\r\n \"lastModifiedTime\": \"9/7/2020 12:38:09 AM\",\r\n \"blobUri\": \"https://sqlcrudtest8121.blob.core.windows.net/container/sqlcrudtest-6320.bacpac\",\r\n \"serverName\": \"sqlcrudtest-2662\",\r\n \"databaseName\": \"sqlcrudtest-6320\",\r\n \"status\": \"Completed\",\r\n \"privateEndpointConnections\": []\r\n },\r\n \"id\": \"a2d6257d-0980-44d2-8f47-8866c3f5db8a\",\r\n \"name\": \"a2d6257d-0980-44d2-8f47-8866c3f5db8a\",\r\n \"type\": \"Microsoft.Sql/servers/databases/importExportOperationResults\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-8442/providers/Microsoft.Sql/servers/sqlcrudtest-2662/databases/sqlcrudtest-6055/import?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg0NDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0yNjYyL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC02MDU1L2ltcG9ydD9hcGktdmVyc2lvbj0yMDIwLTAyLTAyLXByZXZpZXc=", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"storageKeyType\": \"StorageAccessKey\",\r\n \"storageKey\": \"o85ddqivD3PybP6k+GQ8CLzjgOeGCMT33ZjoXKPqbg26BxArWmbkD0vm9QA+G/GyOlKc0Zh3l+OaPyoUy9ZZAQ==\",\r\n \"storageUri\": \"https://sqlcrudtest8121.blob.core.windows.net/container/sqlcrudtest-6320.bacpac\",\r\n \"administratorLogin\": \"dummylogin\",\r\n \"administratorLoginPassword\": \"Un53cuRE!\",\r\n \"authenticationType\": \"SQL\",\r\n \"networkIsolation\": {\r\n \"storageAccountResourceId\": \"/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourcegroups/sqlcrudtest-8442/providers/Microsoft.Storage/storageAccounts/sqlcrudtest8121\",\r\n \"sqlServerResourceId\": \"/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-8442/providers/Microsoft.Sql/servers/sqlcrudtest-2662\"\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "a13e4ba9-7f2f-4193-8ab7-c20e477e80c0" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "744" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:38:24 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportOperationResults/8e70a762-9543-461e-8c7b-ba974669e247-sqlcrudtest-2662?api-version=2020-02-02-preview" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/8e70a762-9543-461e-8c7b-ba974669e247-sqlcrudtest-2662?api-version=2020-02-02-preview" + ], + "x-ms-request-id": [ + "c0bb4d58-7450-49c3-bd10-ed4a55e6f164" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1197" + ], + "x-ms-correlation-request-id": [ + "0f0f45c1-0ba1-4938-8751-9741f1ca2df3" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T003824Z:0f0f45c1-0ba1-4938-8751-9741f1ca2df3" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "64" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"Import\",\r\n \"startTime\": \"2020-09-07T00:38:24.444665Z\"\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/8e70a762-9543-461e-8c7b-ba974669e247-sqlcrudtest-2662?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vOGU3MGE3NjItOTU0My00NjFlLThjN2ItYmE5NzQ2NjllMjQ3LXNxbGNydWR0ZXN0LTI2NjI/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:38:39 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "8ec1e82c-696c-4549-bfd0-dad01f791f80" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11903" + ], + "x-ms-correlation-request-id": [ + "17f1a1fc-bb0a-4ab0-a2a7-cc23ae9d5a04" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T003839Z:17f1a1fc-bb0a-4ab0-a2a7-cc23ae9d5a04" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "104" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"8e70a762-9543-461e-8c7b-ba974669e247\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T00:38:23Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/8e70a762-9543-461e-8c7b-ba974669e247-sqlcrudtest-2662?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vOGU3MGE3NjItOTU0My00NjFlLThjN2ItYmE5NzQ2NjllMjQ3LXNxbGNydWR0ZXN0LTI2NjI/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:38:54 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "d9caf023-4330-4b89-b244-1168fd7e20ac" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11902" + ], + "x-ms-correlation-request-id": [ + "309fc9f4-a221-4a85-a309-b1ec26aca9bd" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T003854Z:309fc9f4-a221-4a85-a309-b1ec26aca9bd" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "104" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"8e70a762-9543-461e-8c7b-ba974669e247\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T00:38:23Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/8e70a762-9543-461e-8c7b-ba974669e247-sqlcrudtest-2662?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vOGU3MGE3NjItOTU0My00NjFlLThjN2ItYmE5NzQ2NjllMjQ3LXNxbGNydWR0ZXN0LTI2NjI/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:39:09 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "45abf6f0-f2c1-426b-ae0b-26dd703a6921" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11901" + ], + "x-ms-correlation-request-id": [ + "780ca88c-904e-40d0-b4ed-9b486fd7b31e" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T003909Z:780ca88c-904e-40d0-b4ed-9b486fd7b31e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "104" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"8e70a762-9543-461e-8c7b-ba974669e247\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T00:38:23Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/8e70a762-9543-461e-8c7b-ba974669e247-sqlcrudtest-2662?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vOGU3MGE3NjItOTU0My00NjFlLThjN2ItYmE5NzQ2NjllMjQ3LXNxbGNydWR0ZXN0LTI2NjI/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:39:24 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "598fcded-3cdd-4691-90cc-f78c307d4f96" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11900" + ], + "x-ms-correlation-request-id": [ + "b4ef784c-58a2-4104-9b16-be84f13e3712" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T003925Z:b4ef784c-58a2-4104-9b16-be84f13e3712" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "104" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"8e70a762-9543-461e-8c7b-ba974669e247\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T00:39:23Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/8e70a762-9543-461e-8c7b-ba974669e247-sqlcrudtest-2662?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vOGU3MGE3NjItOTU0My00NjFlLThjN2ItYmE5NzQ2NjllMjQ3LXNxbGNydWR0ZXN0LTI2NjI/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:39:39 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "f36b72d1-b429-45f9-9101-b5621deb1f7d" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11899" + ], + "x-ms-correlation-request-id": [ + "17e3b189-4111-4eb5-8a44-fc3e5857a47e" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T003940Z:17e3b189-4111-4eb5-8a44-fc3e5857a47e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "104" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"8e70a762-9543-461e-8c7b-ba974669e247\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T00:39:23Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/8e70a762-9543-461e-8c7b-ba974669e247-sqlcrudtest-2662?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vOGU3MGE3NjItOTU0My00NjFlLThjN2ItYmE5NzQ2NjllMjQ3LXNxbGNydWR0ZXN0LTI2NjI/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:39:55 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "85141d0e-691a-4b24-8b2a-f873920cf8d7" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11898" + ], + "x-ms-correlation-request-id": [ + "e60b1d0e-637e-475a-9c55-84c20fc71dd5" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T003955Z:e60b1d0e-637e-475a-9c55-84c20fc71dd5" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "104" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"8e70a762-9543-461e-8c7b-ba974669e247\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T00:39:23Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/8e70a762-9543-461e-8c7b-ba974669e247-sqlcrudtest-2662?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vOGU3MGE3NjItOTU0My00NjFlLThjN2ItYmE5NzQ2NjllMjQ3LXNxbGNydWR0ZXN0LTI2NjI/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:40:10 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "a97d09ed-b0ee-4736-8f40-ce590eaa3da7" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11897" + ], + "x-ms-correlation-request-id": [ + "24981533-eb5e-44b4-a023-5d8da2a3880f" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T004010Z:24981533-eb5e-44b4-a023-5d8da2a3880f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "104" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"8e70a762-9543-461e-8c7b-ba974669e247\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T00:39:23Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/8e70a762-9543-461e-8c7b-ba974669e247-sqlcrudtest-2662?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vOGU3MGE3NjItOTU0My00NjFlLThjN2ItYmE5NzQ2NjllMjQ3LXNxbGNydWR0ZXN0LTI2NjI/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:40:25 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "7dad0b13-336a-4cd0-b4e1-afffcb7894ca" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11896" + ], + "x-ms-correlation-request-id": [ + "0e3402f3-b8d5-41ba-9800-9016483d063c" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T004025Z:0e3402f3-b8d5-41ba-9800-9016483d063c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "104" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"8e70a762-9543-461e-8c7b-ba974669e247\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T00:40:23Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/8e70a762-9543-461e-8c7b-ba974669e247-sqlcrudtest-2662?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vOGU3MGE3NjItOTU0My00NjFlLThjN2ItYmE5NzQ2NjllMjQ3LXNxbGNydWR0ZXN0LTI2NjI/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:40:40 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "b65bf13f-4d37-4dee-820a-339ae6c92266" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11895" + ], + "x-ms-correlation-request-id": [ + "3352c39a-0e86-4168-8736-a853e169d9c2" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T004041Z:3352c39a-0e86-4168-8736-a853e169d9c2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "104" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"8e70a762-9543-461e-8c7b-ba974669e247\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T00:40:23Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/8e70a762-9543-461e-8c7b-ba974669e247-sqlcrudtest-2662?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vOGU3MGE3NjItOTU0My00NjFlLThjN2ItYmE5NzQ2NjllMjQ3LXNxbGNydWR0ZXN0LTI2NjI/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:40:55 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "35ec8e32-4ce1-49a6-8bfa-3a6e85476747" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11894" + ], + "x-ms-correlation-request-id": [ + "f48e6d7e-0397-4b71-94f5-7fd9e9f2dd77" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T004056Z:f48e6d7e-0397-4b71-94f5-7fd9e9f2dd77" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "104" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"8e70a762-9543-461e-8c7b-ba974669e247\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T00:40:23Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/8e70a762-9543-461e-8c7b-ba974669e247-sqlcrudtest-2662?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vOGU3MGE3NjItOTU0My00NjFlLThjN2ItYmE5NzQ2NjllMjQ3LXNxbGNydWR0ZXN0LTI2NjI/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:41:11 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "5e68ea2f-2d93-450a-9d1f-b262c1c51ca7" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11893" + ], + "x-ms-correlation-request-id": [ + "c351dc74-acd0-4762-b43c-2589a97806d9" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T004111Z:c351dc74-acd0-4762-b43c-2589a97806d9" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "104" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"8e70a762-9543-461e-8c7b-ba974669e247\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T00:40:23Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/8e70a762-9543-461e-8c7b-ba974669e247-sqlcrudtest-2662?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vOGU3MGE3NjItOTU0My00NjFlLThjN2ItYmE5NzQ2NjllMjQ3LXNxbGNydWR0ZXN0LTI2NjI/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:41:26 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "3858deb9-3a4c-41af-9f9f-cde820ba1cc1" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11892" + ], + "x-ms-correlation-request-id": [ + "c1cbb570-dd0d-45ed-8921-cb0fcd20594c" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T004126Z:c1cbb570-dd0d-45ed-8921-cb0fcd20594c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "104" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"8e70a762-9543-461e-8c7b-ba974669e247\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T00:41:23Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/8e70a762-9543-461e-8c7b-ba974669e247-sqlcrudtest-2662?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vOGU3MGE3NjItOTU0My00NjFlLThjN2ItYmE5NzQ2NjllMjQ3LXNxbGNydWR0ZXN0LTI2NjI/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:41:41 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "af84ad2f-85c8-4773-a7b8-9900cfd68efb" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11891" + ], + "x-ms-correlation-request-id": [ + "fe2cbe7f-373f-4621-a8e9-f078bee61686" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T004141Z:fe2cbe7f-373f-4621-a8e9-f078bee61686" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "104" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"8e70a762-9543-461e-8c7b-ba974669e247\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T00:41:23Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/8e70a762-9543-461e-8c7b-ba974669e247-sqlcrudtest-2662?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vOGU3MGE3NjItOTU0My00NjFlLThjN2ItYmE5NzQ2NjllMjQ3LXNxbGNydWR0ZXN0LTI2NjI/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:41:56 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "5c644b03-b5f8-498d-b689-b3a4134d2f13" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11890" + ], + "x-ms-correlation-request-id": [ + "5dd38428-9f53-450a-b886-0233fccefa65" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T004157Z:5dd38428-9f53-450a-b886-0233fccefa65" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "104" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"8e70a762-9543-461e-8c7b-ba974669e247\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T00:41:23Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/8e70a762-9543-461e-8c7b-ba974669e247-sqlcrudtest-2662?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vOGU3MGE3NjItOTU0My00NjFlLThjN2ItYmE5NzQ2NjllMjQ3LXNxbGNydWR0ZXN0LTI2NjI/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:42:12 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "93690584-2483-4f55-a74f-605846f3e7ed" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11889" + ], + "x-ms-correlation-request-id": [ + "53c54c75-8c0d-44c7-87ef-2d0b2b512669" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T004212Z:53c54c75-8c0d-44c7-87ef-2d0b2b512669" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "104" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"8e70a762-9543-461e-8c7b-ba974669e247\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T00:41:23Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/8e70a762-9543-461e-8c7b-ba974669e247-sqlcrudtest-2662?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vOGU3MGE3NjItOTU0My00NjFlLThjN2ItYmE5NzQ2NjllMjQ3LXNxbGNydWR0ZXN0LTI2NjI/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:42:27 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "cd6ca37b-b782-4835-aaee-5c9d6e51d39a" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11888" + ], + "x-ms-correlation-request-id": [ + "bef900b4-d35e-4093-98a8-93d63cb17872" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T004227Z:bef900b4-d35e-4093-98a8-93d63cb17872" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "104" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"8e70a762-9543-461e-8c7b-ba974669e247\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T00:42:23Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/8e70a762-9543-461e-8c7b-ba974669e247-sqlcrudtest-2662?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vOGU3MGE3NjItOTU0My00NjFlLThjN2ItYmE5NzQ2NjllMjQ3LXNxbGNydWR0ZXN0LTI2NjI/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:42:42 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "12f872c4-2202-4104-9c24-fb18f1da7597" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11887" + ], + "x-ms-correlation-request-id": [ + "efd993c9-e687-4cbe-a034-fc7ced39d935" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T004242Z:efd993c9-e687-4cbe-a034-fc7ced39d935" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "104" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"8e70a762-9543-461e-8c7b-ba974669e247\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T00:42:23Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/8e70a762-9543-461e-8c7b-ba974669e247-sqlcrudtest-2662?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vOGU3MGE3NjItOTU0My00NjFlLThjN2ItYmE5NzQ2NjllMjQ3LXNxbGNydWR0ZXN0LTI2NjI/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:42:57 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "53fef295-29da-409b-99dc-6a70bd11774b" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11886" + ], + "x-ms-correlation-request-id": [ + "513fead8-ae8d-4857-a906-2d01efae9caf" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T004257Z:513fead8-ae8d-4857-a906-2d01efae9caf" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "104" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"8e70a762-9543-461e-8c7b-ba974669e247\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T00:42:23Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/8e70a762-9543-461e-8c7b-ba974669e247-sqlcrudtest-2662?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vOGU3MGE3NjItOTU0My00NjFlLThjN2ItYmE5NzQ2NjllMjQ3LXNxbGNydWR0ZXN0LTI2NjI/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:43:12 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "086dad36-3e4f-4edf-99aa-ed57a0adc16e" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11885" + ], + "x-ms-correlation-request-id": [ + "78e5eb1d-b8eb-4c8b-b16a-c70eefaebeb9" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T004312Z:78e5eb1d-b8eb-4c8b-b16a-c70eefaebeb9" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "104" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"8e70a762-9543-461e-8c7b-ba974669e247\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T00:42:23Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/8e70a762-9543-461e-8c7b-ba974669e247-sqlcrudtest-2662?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vOGU3MGE3NjItOTU0My00NjFlLThjN2ItYmE5NzQ2NjllMjQ3LXNxbGNydWR0ZXN0LTI2NjI/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:43:27 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "fdf24b22-6916-4b2e-9232-10563381d30c" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11884" + ], + "x-ms-correlation-request-id": [ + "4199b69b-ff98-4ad2-a68a-1ab925e6f1ad" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T004328Z:4199b69b-ff98-4ad2-a68a-1ab925e6f1ad" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "104" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"8e70a762-9543-461e-8c7b-ba974669e247\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T00:43:23Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/8e70a762-9543-461e-8c7b-ba974669e247-sqlcrudtest-2662?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vOGU3MGE3NjItOTU0My00NjFlLThjN2ItYmE5NzQ2NjllMjQ3LXNxbGNydWR0ZXN0LTI2NjI/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:43:42 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "bd8cbca2-931e-4277-bbc9-3ab0633de069" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11883" + ], + "x-ms-correlation-request-id": [ + "f13d7602-026a-4a29-b123-6612f5c7d992" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T004343Z:f13d7602-026a-4a29-b123-6612f5c7d992" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "104" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"8e70a762-9543-461e-8c7b-ba974669e247\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T00:43:23Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/8e70a762-9543-461e-8c7b-ba974669e247-sqlcrudtest-2662?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vOGU3MGE3NjItOTU0My00NjFlLThjN2ItYmE5NzQ2NjllMjQ3LXNxbGNydWR0ZXN0LTI2NjI/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:43:57 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "9046f591-528e-4220-ac57-02b69b915ef6" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11882" + ], + "x-ms-correlation-request-id": [ + "3744876b-f4c8-4ad4-8204-fb93d87a67d2" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T004358Z:3744876b-f4c8-4ad4-8204-fb93d87a67d2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "104" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"8e70a762-9543-461e-8c7b-ba974669e247\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T00:43:23Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/8e70a762-9543-461e-8c7b-ba974669e247-sqlcrudtest-2662?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vOGU3MGE3NjItOTU0My00NjFlLThjN2ItYmE5NzQ2NjllMjQ3LXNxbGNydWR0ZXN0LTI2NjI/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:44:12 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "5d8c91b0-c5c7-4fc7-a550-772752a1bded" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11881" + ], + "x-ms-correlation-request-id": [ + "0d972298-5dfe-4769-9ea3-18ef6c7ba7c0" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T004413Z:0d972298-5dfe-4769-9ea3-18ef6c7ba7c0" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "104" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"8e70a762-9543-461e-8c7b-ba974669e247\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T00:43:23Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/8e70a762-9543-461e-8c7b-ba974669e247-sqlcrudtest-2662?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vOGU3MGE3NjItOTU0My00NjFlLThjN2ItYmE5NzQ2NjllMjQ3LXNxbGNydWR0ZXN0LTI2NjI/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:44:28 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "252fdc18-aed7-4871-9ca8-4a9a97172163" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11880" + ], + "x-ms-correlation-request-id": [ + "5b8fa441-4d7e-49b7-9115-47934d71d7f3" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T004428Z:5b8fa441-4d7e-49b7-9115-47934d71d7f3" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "103" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"8e70a762-9543-461e-8c7b-ba974669e247\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2020-09-07T00:44:20Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportOperationResults/8e70a762-9543-461e-8c7b-ba974669e247-sqlcrudtest-2662?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydE9wZXJhdGlvblJlc3VsdHMvOGU3MGE3NjItOTU0My00NjFlLThjN2ItYmE5NzQ2NjllMjQ3LXNxbGNydWR0ZXN0LTI2NjI/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:44:28 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "a3355b76-b844-4c75-b033-d88deed5a834" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11879" + ], + "x-ms-correlation-request-id": [ + "c3c4ed26-9b3a-46df-a818-5c1be550aae0" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T004429Z:c3c4ed26-9b3a-46df-a818-5c1be550aae0" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "557" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"requestId\": \"8e70a762-9543-461e-8c7b-ba974669e247\",\r\n \"requestType\": \"ImportToExistingDatabase\",\r\n \"queuedTime\": \"9/7/2020 12:38:23 AM\",\r\n \"lastModifiedTime\": \"9/7/2020 12:44:20 AM\",\r\n \"blobUri\": \"https://sqlcrudtest8121.blob.core.windows.net/container/sqlcrudtest-6320.bacpac\",\r\n \"serverName\": \"sqlcrudtest-2662\",\r\n \"databaseName\": \"sqlcrudtest-6055\",\r\n \"status\": \"Completed\",\r\n \"privateEndpointConnections\": []\r\n },\r\n \"id\": \"8e70a762-9543-461e-8c7b-ba974669e247\",\r\n \"name\": \"8e70a762-9543-461e-8c7b-ba974669e247\",\r\n \"type\": \"Microsoft.Sql/servers/databases/importExportOperationResults\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourcegroups/sqlcrudtest-8442?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTg0NDI/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "9fe8adeb-ebba-4827-aac4-d9f05106d1f6" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:44:29 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDg0NDItV0VTVENFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoid2VzdGNlbnRyYWx1cyJ9?api-version=2017-05-10" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14997" + ], + "x-ms-request-id": [ + "be93c72d-834b-41ef-9e02-23f51e25915b" + ], + "x-ms-correlation-request-id": [ + "be93c72d-834b-41ef-9e02-23f51e25915b" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T004430Z:be93c72d-834b-41ef-9e02-23f51e25915b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + } + ], + "Names": { + "CreateResourceGroup": [ + "sqlcrudtest-8442" + ], + "CreateServer": [ + "sqlcrudtest-2662" + ], + "TestImportExport": [ + "sqlcrudtest8121", + "sqlcrudtest-6320", + "sqlcrudtest-6055", + "sqlcrudtest-3093" + ] + }, + "Variables": { + "SubscriptionId": "b75889fa-6661-44e0-a844-cd96ec938991", + "DefaultLocation": "West Central US" + } +} \ No newline at end of file diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/tests/SessionRecords/ImportExportScenarioTests/TestImportNewDatabase_NetworkIsolation.json b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/tests/SessionRecords/ImportExportScenarioTests/TestImportNewDatabase_NetworkIsolation.json new file mode 100644 index 000000000000..839c4fa7426a --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/tests/SessionRecords/ImportExportScenarioTests/TestImportNewDatabase_NetworkIsolation.json @@ -0,0 +1,4255 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourcegroups/sqlcrudtest-4169?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTQxNjk/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"West Central US\",\r\n \"tags\": {\r\n \"sqlcrudtest-4169\": \"2020-09-07 00:45:45Z\"\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "78511151-c4ef-43ce-b816-d0fec84f25a8" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "104" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:45:47 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "021805ff-b8bf-4ad9-94da-ba780a3a49e1" + ], + "x-ms-correlation-request-id": [ + "021805ff-b8bf-4ad9-94da-ba780a3a49e1" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T004547Z:021805ff-b8bf-4ad9-94da-ba780a3a49e1" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "243" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-4169\",\r\n \"name\": \"sqlcrudtest-4169\",\r\n \"location\": \"westcentralus\",\r\n \"tags\": {\r\n \"sqlcrudtest-4169\": \"2020-09-07 00:45:45Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-4169/providers/Microsoft.Sql/servers/sqlcrudtest-3582?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTQxNjkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zNTgyP2FwaS12ZXJzaW9uPTIwMTktMDYtMDEtcHJldmlldw==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"administratorLogin\": \"dummylogin\",\r\n \"administratorLoginPassword\": \"Un53cuRE!\",\r\n \"version\": \"12.0\"\r\n },\r\n \"location\": \"West Central US\",\r\n \"tags\": {}\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "8234f9e5-f26c-4453-b85f-1e76c07f1378" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "189" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:45:49 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-4169/providers/Microsoft.Sql/locations/westcentralus/serverOperationResults/8f3ab1a3-2ec5-4107-b661-5f17f1102f73?api-version=2019-06-01-preview" + ], + "Retry-After": [ + "1" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-4169/providers/Microsoft.Sql/locations/westcentralus/serverAzureAsyncOperation/8f3ab1a3-2ec5-4107-b661-5f17f1102f73?api-version=2019-06-01-preview" + ], + "x-ms-request-id": [ + "8f3ab1a3-2ec5-4107-b661-5f17f1102f73" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-correlation-request-id": [ + "e5af039f-d20b-4eb4-a7ce-03cafd807ed0" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T004550Z:e5af039f-d20b-4eb4-a7ce-03cafd807ed0" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "73" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"UpsertLogicalServer\",\r\n \"startTime\": \"2020-09-07T00:45:50.26Z\"\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-4169/providers/Microsoft.Sql/locations/westcentralus/serverAzureAsyncOperation/8f3ab1a3-2ec5-4107-b661-5f17f1102f73?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTQxNjkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi84ZjNhYjFhMy0yZWM1LTQxMDctYjY2MS01ZjE3ZjExMDJmNzM/YXBpLXZlcnNpb249MjAxOS0wNi0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:45:51 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "1" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "f98ed61b-1c68-41ab-ac2f-5f564495b3c1" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11999" + ], + "x-ms-correlation-request-id": [ + "9c40b4d7-c997-4c2e-a9dc-982cd75ba37b" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T004551Z:9c40b4d7-c997-4c2e-a9dc-982cd75ba37b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"8f3ab1a3-2ec5-4107-b661-5f17f1102f73\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T00:45:50.26Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-4169/providers/Microsoft.Sql/locations/westcentralus/serverAzureAsyncOperation/8f3ab1a3-2ec5-4107-b661-5f17f1102f73?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTQxNjkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi84ZjNhYjFhMy0yZWM1LTQxMDctYjY2MS01ZjE3ZjExMDJmNzM/YXBpLXZlcnNpb249MjAxOS0wNi0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:45:52 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "1" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "6f5fc0df-1f88-495b-94ef-1367df91d891" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11998" + ], + "x-ms-correlation-request-id": [ + "4ebcf78b-8edf-490a-81bd-e02a2e62ca73" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T004552Z:4ebcf78b-8edf-490a-81bd-e02a2e62ca73" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"8f3ab1a3-2ec5-4107-b661-5f17f1102f73\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T00:45:50.26Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-4169/providers/Microsoft.Sql/locations/westcentralus/serverAzureAsyncOperation/8f3ab1a3-2ec5-4107-b661-5f17f1102f73?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTQxNjkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi84ZjNhYjFhMy0yZWM1LTQxMDctYjY2MS01ZjE3ZjExMDJmNzM/YXBpLXZlcnNpb249MjAxOS0wNi0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:45:53 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "1" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "285cf151-38f6-4319-a811-86b13990d6bf" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11997" + ], + "x-ms-correlation-request-id": [ + "94559bc9-3a14-4297-8926-1ba9def376e4" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T004553Z:94559bc9-3a14-4297-8926-1ba9def376e4" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"8f3ab1a3-2ec5-4107-b661-5f17f1102f73\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T00:45:50.26Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-4169/providers/Microsoft.Sql/locations/westcentralus/serverAzureAsyncOperation/8f3ab1a3-2ec5-4107-b661-5f17f1102f73?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTQxNjkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi84ZjNhYjFhMy0yZWM1LTQxMDctYjY2MS01ZjE3ZjExMDJmNzM/YXBpLXZlcnNpb249MjAxOS0wNi0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:45:54 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "1" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "cf2e8e14-b508-4d46-93f7-466431490efb" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11996" + ], + "x-ms-correlation-request-id": [ + "692f4a5e-e295-4439-b8e0-f8e34f7dd9a7" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T004554Z:692f4a5e-e295-4439-b8e0-f8e34f7dd9a7" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"8f3ab1a3-2ec5-4107-b661-5f17f1102f73\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T00:45:50.26Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-4169/providers/Microsoft.Sql/locations/westcentralus/serverAzureAsyncOperation/8f3ab1a3-2ec5-4107-b661-5f17f1102f73?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTQxNjkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi84ZjNhYjFhMy0yZWM1LTQxMDctYjY2MS01ZjE3ZjExMDJmNzM/YXBpLXZlcnNpb249MjAxOS0wNi0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:45:56 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "20" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "80b4eb43-6283-4f82-8c91-d6c44fb14278" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11995" + ], + "x-ms-correlation-request-id": [ + "7bc8ca8f-b1c7-4e1a-bf8a-dfaf536b70f4" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T004556Z:7bc8ca8f-b1c7-4e1a-bf8a-dfaf536b70f4" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"8f3ab1a3-2ec5-4107-b661-5f17f1102f73\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T00:45:50.26Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-4169/providers/Microsoft.Sql/locations/westcentralus/serverAzureAsyncOperation/8f3ab1a3-2ec5-4107-b661-5f17f1102f73?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTQxNjkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi84ZjNhYjFhMy0yZWM1LTQxMDctYjY2MS01ZjE3ZjExMDJmNzM/YXBpLXZlcnNpb249MjAxOS0wNi0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:46:15 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "20" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "5839659c-48ae-428b-9953-d674d0f548bf" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11994" + ], + "x-ms-correlation-request-id": [ + "d464a3fc-6793-4b59-8575-80e84787fd50" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T004616Z:d464a3fc-6793-4b59-8575-80e84787fd50" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"8f3ab1a3-2ec5-4107-b661-5f17f1102f73\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T00:45:50.26Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-4169/providers/Microsoft.Sql/locations/westcentralus/serverAzureAsyncOperation/8f3ab1a3-2ec5-4107-b661-5f17f1102f73?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTQxNjkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi84ZjNhYjFhMy0yZWM1LTQxMDctYjY2MS01ZjE3ZjExMDJmNzM/YXBpLXZlcnNpb249MjAxOS0wNi0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:46:35 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "86ba8334-ba0f-4602-b429-203adc4e8dac" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11993" + ], + "x-ms-correlation-request-id": [ + "f6f6e352-34c6-4c65-919b-96949bcf8a5a" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T004636Z:f6f6e352-34c6-4c65-919b-96949bcf8a5a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "106" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"8f3ab1a3-2ec5-4107-b661-5f17f1102f73\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2020-09-07T00:45:50.26Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-4169/providers/Microsoft.Sql/servers/sqlcrudtest-3582?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTQxNjkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zNTgyP2FwaS12ZXJzaW9uPTIwMTktMDYtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:46:35 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "2ccc717c-11e6-45b2-8869-d96c5e077e50" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11992" + ], + "x-ms-correlation-request-id": [ + "bf9f3fe4-5622-438a-93d4-6af699e6807b" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T004636Z:bf9f3fe4-5622-438a-93d4-6af699e6807b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "463" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"kind\": \"v12.0\",\r\n \"properties\": {\r\n \"administratorLogin\": \"dummylogin\",\r\n \"version\": \"12.0\",\r\n \"state\": \"Ready\",\r\n \"fullyQualifiedDomainName\": \"sqlcrudtest-3582.database.windows.net\",\r\n \"privateEndpointConnections\": [],\r\n \"publicNetworkAccess\": \"Enabled\"\r\n },\r\n \"location\": \"westcentralus\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-4169/providers/Microsoft.Sql/servers/sqlcrudtest-3582\",\r\n \"name\": \"sqlcrudtest-3582\",\r\n \"type\": \"Microsoft.Sql/servers\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-4169/providers/Microsoft.Sql/servers/sqlcrudtest-3582/firewallRules/sqlcrudtest-7031?api-version=2014-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTQxNjkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zNTgyL2ZpcmV3YWxsUnVsZXMvc3FsY3J1ZHRlc3QtNzAzMT9hcGktdmVyc2lvbj0yMDE0LTA0LTAx", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"startIpAddress\": \"0.0.0.0\",\r\n \"endIpAddress\": \"255.255.255.255\"\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "805a4bbd-4801-4653-868b-0d1b896d621c" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "101" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:46:36 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "dbe302a1-4bd1-46ee-a5b4-4ee004607cb5" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Preference-Applied": [ + "return-content" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1196" + ], + "x-ms-correlation-request-id": [ + "922537a4-c140-4992-8325-9a113c8e03e1" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T004637Z:922537a4-c140-4992-8325-9a113c8e03e1" + ], + "Content-Length": [ + "362" + ], + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-4169/providers/Microsoft.Sql/servers/sqlcrudtest-3582/firewallRules/sqlcrudtest-7031\",\r\n \"name\": \"sqlcrudtest-7031\",\r\n \"type\": \"Microsoft.Sql/servers/firewallRules\",\r\n \"location\": \"West Central US\",\r\n \"kind\": \"v12.0\",\r\n \"properties\": {\r\n \"startIpAddress\": \"0.0.0.0\",\r\n \"endIpAddress\": \"255.255.255.255\"\r\n }\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-4169/providers/Microsoft.Sql/servers/sqlcrudtest-3582/databases/sqlcrudtest-4745?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTQxNjkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zNTgyL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC00NzQ1P2FwaS12ZXJzaW9uPTIwMTktMDYtMDEtcHJldmlldw==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"westcentralus\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "e76e8464-12da-413f-a0b4-03187d89763c" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "35" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:46:37 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-4169/providers/Microsoft.Sql/locations/westcentralus/databaseOperationResults/15782179-1749-45d3-808c-10eb4cabbfe2?api-version=2019-06-01-preview" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-4169/providers/Microsoft.Sql/locations/westcentralus/databaseAzureAsyncOperation/15782179-1749-45d3-808c-10eb4cabbfe2?api-version=2019-06-01-preview" + ], + "x-ms-request-id": [ + "15782179-1749-45d3-808c-10eb4cabbfe2" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1195" + ], + "x-ms-correlation-request-id": [ + "07555cb6-4525-4fcf-b53f-f191498abb77" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T004637Z:07555cb6-4525-4fcf-b53f-f191498abb77" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "76" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2020-09-07T00:46:37.773Z\"\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-4169/providers/Microsoft.Storage/storageAccounts/sqlcrudtest1656?api-version=2017-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTQxNjkvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9zcWxjcnVkdGVzdDE2NTY/YXBpLXZlcnNpb249MjAxNy0wNi0wMQ==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\"\r\n },\r\n \"kind\": \"BlobStorage\",\r\n \"location\": \"westcentralus\",\r\n \"properties\": {\r\n \"accessTier\": \"Cool\"\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "76175e13-208c-4630-87e4-5cc888940365" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Storage.StorageManagementClient/6.5.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "158" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:46:37 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Storage/locations/westcentralus/asyncoperations/fbd24878-70d6-4652-8b78-086e022bf0e0?monitor=true&api-version=2017-06-01" + ], + "Retry-After": [ + "17" + ], + "Server": [ + "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "fbd24878-70d6-4652-8b78-086e022bf0e0" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1195" + ], + "x-ms-correlation-request-id": [ + "ba7c3043-7404-481e-8c64-1424a45df78d" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T004638Z:ba7c3043-7404-481e-8c64-1424a45df78d" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "0" + ], + "Content-Type": [ + "text/plain; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-4169/providers/Microsoft.Sql/locations/westcentralus/databaseAzureAsyncOperation/15782179-1749-45d3-808c-10eb4cabbfe2?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTQxNjkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzE1NzgyMTc5LTE3NDktNDVkMy04MDhjLTEwZWI0Y2FiYmZlMj9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:46:52 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "a01eed01-6b2f-48f5-a419-952f6e716f82" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11991" + ], + "x-ms-correlation-request-id": [ + "7b508448-f5a6-4273-b04e-0c30b0246d88" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T004653Z:7b508448-f5a6-4273-b04e-0c30b0246d88" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"15782179-1749-45d3-808c-10eb4cabbfe2\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T00:46:37.773Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-4169/providers/Microsoft.Sql/locations/westcentralus/databaseAzureAsyncOperation/15782179-1749-45d3-808c-10eb4cabbfe2?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTQxNjkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzE1NzgyMTc5LTE3NDktNDVkMy04MDhjLTEwZWI0Y2FiYmZlMj9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:47:08 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "6ec80db6-3e3f-473a-a33e-746f1121c931" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11989" + ], + "x-ms-correlation-request-id": [ + "e0b98d07-c2e9-4771-b243-6b0ae5c56325" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T004708Z:e0b98d07-c2e9-4771-b243-6b0ae5c56325" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"15782179-1749-45d3-808c-10eb4cabbfe2\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T00:46:37.773Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-4169/providers/Microsoft.Sql/locations/westcentralus/databaseAzureAsyncOperation/15782179-1749-45d3-808c-10eb4cabbfe2?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTQxNjkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzE1NzgyMTc5LTE3NDktNDVkMy04MDhjLTEwZWI0Y2FiYmZlMj9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:47:22 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "17e90049-a564-4abf-bc05-f9ef87c849bb" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11988" + ], + "x-ms-correlation-request-id": [ + "35052b8d-17a6-4839-baff-eca61d3cf64f" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T004723Z:35052b8d-17a6-4839-baff-eca61d3cf64f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"15782179-1749-45d3-808c-10eb4cabbfe2\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2020-09-07T00:46:37.773Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Storage/locations/westcentralus/asyncoperations/fbd24878-70d6-4652-8b78-086e022bf0e0?monitor=true&api-version=2017-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZS9sb2NhdGlvbnMvd2VzdGNlbnRyYWx1cy9hc3luY29wZXJhdGlvbnMvZmJkMjQ4NzgtNzBkNi00NjUyLThiNzgtMDg2ZTAyMmJmMGUwP21vbml0b3I9dHJ1ZSZhcGktdmVyc2lvbj0yMDE3LTA2LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Storage.StorageManagementClient/6.5.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:46:55 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "2853662f-724b-4323-be12-7562ba0e005e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11990" + ], + "x-ms-correlation-request-id": [ + "9589b66e-4c43-4f5d-82f2-e521a5bdb76f" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T004655Z:9589b66e-4c43-4f5d-82f2-e521a5bdb76f" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "980" + ], + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"kind\": \"BlobStorage\",\r\n \"id\": \"/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-4169/providers/Microsoft.Storage/storageAccounts/sqlcrudtest1656\",\r\n \"name\": \"sqlcrudtest1656\",\r\n \"type\": \"Microsoft.Storage/storageAccounts\",\r\n \"location\": \"westcentralus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"networkAcls\": {\r\n \"bypass\": \"AzureServices\",\r\n \"virtualNetworkRules\": [],\r\n \"ipRules\": [],\r\n \"defaultAction\": \"Allow\"\r\n },\r\n \"supportsHttpsTrafficOnly\": false,\r\n \"encryption\": {\r\n \"services\": {\r\n \"file\": {\r\n \"enabled\": true,\r\n \"lastEnabledTime\": \"2020-09-07T00:46:37.5809522Z\"\r\n },\r\n \"blob\": {\r\n \"enabled\": true,\r\n \"lastEnabledTime\": \"2020-09-07T00:46:37.5809522Z\"\r\n }\r\n },\r\n \"keySource\": \"Microsoft.Storage\"\r\n },\r\n \"accessTier\": \"Cool\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"creationTime\": \"2020-09-07T00:46:37.5184947Z\",\r\n \"primaryEndpoints\": {\r\n \"blob\": \"https://sqlcrudtest1656.blob.core.windows.net/\",\r\n \"table\": \"https://sqlcrudtest1656.table.core.windows.net/\"\r\n },\r\n \"primaryLocation\": \"westcentralus\",\r\n \"statusOfPrimary\": \"available\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-4169/providers/Microsoft.Storage/storageAccounts/sqlcrudtest1656/listKeys?api-version=2017-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTQxNjkvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9zcWxjcnVkdGVzdDE2NTYvbGlzdEtleXM/YXBpLXZlcnNpb249MjAxNy0wNi0wMQ==", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "7ce28ff6-e050-43e5-91c4-5df0182c24f7" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Storage.StorageManagementClient/6.5.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:46:55 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "94f4dd93-fe47-4f56-8a56-5d9f0f1892b5" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ + "11999" + ], + "x-ms-correlation-request-id": [ + "6d603242-8dbe-4b89-bcf6-0f15001abb19" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T004655Z:6d603242-8dbe-4b89-bcf6-0f15001abb19" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "288" + ], + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"keys\": [\r\n {\r\n \"keyName\": \"key1\",\r\n \"value\": \"a6SCAMhZzhyyISD8zlbLjdWmIp5zCW3+XB5M2tBUdGgLW3o3xVL02+VksTqxv5BQw61Qnd7YqHoShuDKfZHkuQ==\",\r\n \"permissions\": \"FULL\"\r\n },\r\n {\r\n \"keyName\": \"key2\",\r\n \"value\": \"OW8n/cwcvk/n2yFUhlk2XOoSSV0xgaQ/G83UYZ4haXl9l1p/kQVTAbE53EnutI1y9vvwDewp9hePyQFAaPFVeA==\",\r\n \"permissions\": \"FULL\"\r\n }\r\n ]\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-4169/providers/Microsoft.Sql/servers/sqlcrudtest-3582/databases/sqlcrudtest-4745?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTQxNjkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zNTgyL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC00NzQ1P2FwaS12ZXJzaW9uPTIwMTktMDYtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:47:23 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "8caabb8f-a303-4b1a-a565-0234ebfdbe2c" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11987" + ], + "x-ms-correlation-request-id": [ + "0dd9c603-c77e-4a55-8c16-53b7dc7f3e19" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T004723Z:0dd9c603-c77e-4a55-8c16-53b7dc7f3e19" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "1025" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"GP_Gen5\",\r\n \"tier\": \"GeneralPurpose\",\r\n \"family\": \"Gen5\",\r\n \"capacity\": 2\r\n },\r\n \"kind\": \"v12.0,user,vcore\",\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": 34359738368,\r\n \"status\": \"Online\",\r\n \"databaseId\": \"5617d47b-ff98-43f1-af45-293399b533a8\",\r\n \"creationDate\": \"2020-09-07T00:47:15.133Z\",\r\n \"currentServiceObjectiveName\": \"GP_Gen5_2\",\r\n \"requestedServiceObjectiveName\": \"GP_Gen5_2\",\r\n \"defaultSecondaryLocation\": \"westus2\",\r\n \"catalogCollation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"zoneRedundant\": false,\r\n \"licenseType\": \"LicenseIncluded\",\r\n \"maxLogSizeBytes\": 10307502080,\r\n \"earliestRestoreDate\": \"2020-09-07T01:17:15.133Z\",\r\n \"readScale\": \"Disabled\",\r\n \"readReplicaCount\": 0,\r\n \"currentSku\": {\r\n \"name\": \"GP_Gen5\",\r\n \"tier\": \"GeneralPurpose\",\r\n \"family\": \"Gen5\",\r\n \"capacity\": 2\r\n },\r\n \"storageAccountType\": \"GRS\"\r\n },\r\n \"location\": \"westcentralus\",\r\n \"id\": \"/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-4169/providers/Microsoft.Sql/servers/sqlcrudtest-3582/databases/sqlcrudtest-4745\",\r\n \"name\": \"sqlcrudtest-4745\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-4169/providers/Microsoft.Sql/servers/sqlcrudtest-3582/databases/sqlcrudtest-4745/export?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTQxNjkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zNTgyL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC00NzQ1L2V4cG9ydD9hcGktdmVyc2lvbj0yMDIwLTAyLTAyLXByZXZpZXc=", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"storageKeyType\": \"StorageAccessKey\",\r\n \"storageKey\": \"a6SCAMhZzhyyISD8zlbLjdWmIp5zCW3+XB5M2tBUdGgLW3o3xVL02+VksTqxv5BQw61Qnd7YqHoShuDKfZHkuQ==\",\r\n \"storageUri\": \"https://sqlcrudtest1656.blob.core.windows.net/container/sqlcrudtest-4745.bacpac\",\r\n \"administratorLogin\": \"dummylogin\",\r\n \"administratorLoginPassword\": \"Un53cuRE!\",\r\n \"authenticationType\": \"SQL\",\r\n \"networkIsolation\": {\r\n \"storageAccountResourceId\": \"/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourcegroups/sqlcrudtest-4169/providers/Microsoft.Storage/storageAccounts/sqlcrudtest1656\",\r\n \"sqlServerResourceId\": \"/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-4169/providers/Microsoft.Sql/servers/sqlcrudtest-3582\"\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "4da87cee-f3bb-4d84-ad69-ab3295533376" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "744" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:47:24 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportOperationResults/453988ac-de14-4880-8081-6f3137acae22-sqlcrudtest-3582?api-version=2020-02-02-preview" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/453988ac-de14-4880-8081-6f3137acae22-sqlcrudtest-3582?api-version=2020-02-02-preview" + ], + "x-ms-request-id": [ + "40045301-be44-4db6-a28c-863dc3779cd2" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-correlation-request-id": [ + "119d4568-18c5-4b08-96f2-f3d85f98b0a9" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T004724Z:119d4568-18c5-4b08-96f2-f3d85f98b0a9" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "65" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"Export\",\r\n \"startTime\": \"2020-09-07T00:47:24.8683605Z\"\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/453988ac-de14-4880-8081-6f3137acae22-sqlcrudtest-3582?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vNDUzOTg4YWMtZGUxNC00ODgwLTgwODEtNmYzMTM3YWNhZTIyLXNxbGNydWR0ZXN0LTM1ODI/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:47:39 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "9d9e9b25-206d-4946-bdc4-e69ce12aea1d" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11986" + ], + "x-ms-correlation-request-id": [ + "564e4bd8-fff8-42c4-81f5-44ccc3b794fd" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T004740Z:564e4bd8-fff8-42c4-81f5-44ccc3b794fd" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "104" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"453988ac-de14-4880-8081-6f3137acae22\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T00:47:24Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/453988ac-de14-4880-8081-6f3137acae22-sqlcrudtest-3582?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vNDUzOTg4YWMtZGUxNC00ODgwLTgwODEtNmYzMTM3YWNhZTIyLXNxbGNydWR0ZXN0LTM1ODI/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:47:54 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "502c5542-4653-4480-95bb-ddf38f76f917" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11985" + ], + "x-ms-correlation-request-id": [ + "882a56cc-a840-415e-895d-5191672a15a6" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T004755Z:882a56cc-a840-415e-895d-5191672a15a6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "104" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"453988ac-de14-4880-8081-6f3137acae22\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T00:47:24Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/453988ac-de14-4880-8081-6f3137acae22-sqlcrudtest-3582?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vNDUzOTg4YWMtZGUxNC00ODgwLTgwODEtNmYzMTM3YWNhZTIyLXNxbGNydWR0ZXN0LTM1ODI/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:48:10 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "68ddca2d-399d-42bb-9a28-5d4e129b01bc" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11984" + ], + "x-ms-correlation-request-id": [ + "bbda9030-5c3a-4bbb-9b80-9fed149da4e4" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T004810Z:bbda9030-5c3a-4bbb-9b80-9fed149da4e4" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "104" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"453988ac-de14-4880-8081-6f3137acae22\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T00:47:24Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/453988ac-de14-4880-8081-6f3137acae22-sqlcrudtest-3582?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vNDUzOTg4YWMtZGUxNC00ODgwLTgwODEtNmYzMTM3YWNhZTIyLXNxbGNydWR0ZXN0LTM1ODI/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:48:24 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "dd7162b7-5d3a-4754-97a0-8c5c70fa4f31" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11983" + ], + "x-ms-correlation-request-id": [ + "a8960c59-6e6c-42ed-92a0-86b01cb0769e" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T004825Z:a8960c59-6e6c-42ed-92a0-86b01cb0769e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "104" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"453988ac-de14-4880-8081-6f3137acae22\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T00:48:24Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/453988ac-de14-4880-8081-6f3137acae22-sqlcrudtest-3582?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vNDUzOTg4YWMtZGUxNC00ODgwLTgwODEtNmYzMTM3YWNhZTIyLXNxbGNydWR0ZXN0LTM1ODI/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:48:40 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "fbfad2df-07dc-4fe8-a758-0ad8ea036de6" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11982" + ], + "x-ms-correlation-request-id": [ + "c02a8d4a-a1a3-4def-b655-f65b405e7a5c" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T004840Z:c02a8d4a-a1a3-4def-b655-f65b405e7a5c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "104" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"453988ac-de14-4880-8081-6f3137acae22\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T00:48:24Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/453988ac-de14-4880-8081-6f3137acae22-sqlcrudtest-3582?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vNDUzOTg4YWMtZGUxNC00ODgwLTgwODEtNmYzMTM3YWNhZTIyLXNxbGNydWR0ZXN0LTM1ODI/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:48:55 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "9f8024bf-1dbe-447f-be9a-619e08b56b7b" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11981" + ], + "x-ms-correlation-request-id": [ + "f3778eb7-c483-4757-a4bf-2ac0d18966b6" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T004856Z:f3778eb7-c483-4757-a4bf-2ac0d18966b6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "104" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"453988ac-de14-4880-8081-6f3137acae22\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T00:48:24Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/453988ac-de14-4880-8081-6f3137acae22-sqlcrudtest-3582?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vNDUzOTg4YWMtZGUxNC00ODgwLTgwODEtNmYzMTM3YWNhZTIyLXNxbGNydWR0ZXN0LTM1ODI/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:49:10 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "6c3d2688-ef85-42ae-9fd5-192f4c4261e1" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11980" + ], + "x-ms-correlation-request-id": [ + "9006df94-746e-4aad-913f-c908ec7fd69c" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T004911Z:9006df94-746e-4aad-913f-c908ec7fd69c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "104" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"453988ac-de14-4880-8081-6f3137acae22\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T00:48:24Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/453988ac-de14-4880-8081-6f3137acae22-sqlcrudtest-3582?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vNDUzOTg4YWMtZGUxNC00ODgwLTgwODEtNmYzMTM3YWNhZTIyLXNxbGNydWR0ZXN0LTM1ODI/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:49:25 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "8012efce-b224-417a-9521-7e96b728d96a" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11979" + ], + "x-ms-correlation-request-id": [ + "eab8f1e5-3625-495d-9737-d5c8aeef4eeb" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T004926Z:eab8f1e5-3625-495d-9737-d5c8aeef4eeb" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "104" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"453988ac-de14-4880-8081-6f3137acae22\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T00:49:24Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/453988ac-de14-4880-8081-6f3137acae22-sqlcrudtest-3582?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vNDUzOTg4YWMtZGUxNC00ODgwLTgwODEtNmYzMTM3YWNhZTIyLXNxbGNydWR0ZXN0LTM1ODI/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:49:40 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "8cb71c14-40e6-404e-9f0e-dd719811ee04" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11978" + ], + "x-ms-correlation-request-id": [ + "b9203b24-4164-48b8-a76c-095dcf6de1ae" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T004941Z:b9203b24-4164-48b8-a76c-095dcf6de1ae" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "104" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"453988ac-de14-4880-8081-6f3137acae22\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T00:49:24Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/453988ac-de14-4880-8081-6f3137acae22-sqlcrudtest-3582?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vNDUzOTg4YWMtZGUxNC00ODgwLTgwODEtNmYzMTM3YWNhZTIyLXNxbGNydWR0ZXN0LTM1ODI/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:49:55 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "d8c13297-5234-4515-9bd0-43590600ad39" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11977" + ], + "x-ms-correlation-request-id": [ + "4b8a3cf7-44d7-480b-9bbc-ca6668569caa" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T004956Z:4b8a3cf7-44d7-480b-9bbc-ca6668569caa" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "104" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"453988ac-de14-4880-8081-6f3137acae22\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T00:49:24Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/453988ac-de14-4880-8081-6f3137acae22-sqlcrudtest-3582?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vNDUzOTg4YWMtZGUxNC00ODgwLTgwODEtNmYzMTM3YWNhZTIyLXNxbGNydWR0ZXN0LTM1ODI/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:50:11 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "bcc6a8f6-acb8-4a40-9ed5-0bea84944f74" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11976" + ], + "x-ms-correlation-request-id": [ + "345b4ef3-e7af-4952-8c0e-6ab8d0634114" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T005011Z:345b4ef3-e7af-4952-8c0e-6ab8d0634114" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "104" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"453988ac-de14-4880-8081-6f3137acae22\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T00:49:24Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/453988ac-de14-4880-8081-6f3137acae22-sqlcrudtest-3582?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vNDUzOTg4YWMtZGUxNC00ODgwLTgwODEtNmYzMTM3YWNhZTIyLXNxbGNydWR0ZXN0LTM1ODI/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:50:26 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "80e8a76a-088d-43c3-b59c-81b00483ccc9" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11975" + ], + "x-ms-correlation-request-id": [ + "e9eafeef-2ae7-4876-9a83-d13ee6305ee0" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T005027Z:e9eafeef-2ae7-4876-9a83-d13ee6305ee0" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "104" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"453988ac-de14-4880-8081-6f3137acae22\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T00:50:24Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/453988ac-de14-4880-8081-6f3137acae22-sqlcrudtest-3582?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vNDUzOTg4YWMtZGUxNC00ODgwLTgwODEtNmYzMTM3YWNhZTIyLXNxbGNydWR0ZXN0LTM1ODI/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:50:42 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "8bf6a96e-0290-40da-bf02-ff993695fb5f" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11974" + ], + "x-ms-correlation-request-id": [ + "8e66d3d7-dd60-466d-a28a-14e3830dfe29" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T005042Z:8e66d3d7-dd60-466d-a28a-14e3830dfe29" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "104" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"453988ac-de14-4880-8081-6f3137acae22\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T00:50:24Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/453988ac-de14-4880-8081-6f3137acae22-sqlcrudtest-3582?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vNDUzOTg4YWMtZGUxNC00ODgwLTgwODEtNmYzMTM3YWNhZTIyLXNxbGNydWR0ZXN0LTM1ODI/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:50:57 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "d62bb117-28e1-4d9e-b579-fd2be4fe0daf" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11973" + ], + "x-ms-correlation-request-id": [ + "f30c1320-ee4e-42f1-8c95-e5986d122481" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T005057Z:f30c1320-ee4e-42f1-8c95-e5986d122481" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "104" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"453988ac-de14-4880-8081-6f3137acae22\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T00:50:24Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/453988ac-de14-4880-8081-6f3137acae22-sqlcrudtest-3582?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vNDUzOTg4YWMtZGUxNC00ODgwLTgwODEtNmYzMTM3YWNhZTIyLXNxbGNydWR0ZXN0LTM1ODI/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:51:12 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "07084d21-9e5d-4620-a99b-d72686e0bce0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11972" + ], + "x-ms-correlation-request-id": [ + "56ec22db-1be5-4666-a06a-bc949f6c8814" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T005112Z:56ec22db-1be5-4666-a06a-bc949f6c8814" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "104" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"453988ac-de14-4880-8081-6f3137acae22\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T00:50:24Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/453988ac-de14-4880-8081-6f3137acae22-sqlcrudtest-3582?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vNDUzOTg4YWMtZGUxNC00ODgwLTgwODEtNmYzMTM3YWNhZTIyLXNxbGNydWR0ZXN0LTM1ODI/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:51:27 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "e2fab974-88b7-46d5-8679-686a12d69f8c" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11971" + ], + "x-ms-correlation-request-id": [ + "a4ec2abb-360f-43c1-8c77-a22f78bb2b49" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T005127Z:a4ec2abb-360f-43c1-8c77-a22f78bb2b49" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "104" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"453988ac-de14-4880-8081-6f3137acae22\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T00:51:24Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/453988ac-de14-4880-8081-6f3137acae22-sqlcrudtest-3582?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vNDUzOTg4YWMtZGUxNC00ODgwLTgwODEtNmYzMTM3YWNhZTIyLXNxbGNydWR0ZXN0LTM1ODI/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:51:42 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "bcfe163a-5dac-4e03-ada9-b375879e332b" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11970" + ], + "x-ms-correlation-request-id": [ + "9f4b1f9b-9312-48a3-87e6-78a0d16ffd97" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T005143Z:9f4b1f9b-9312-48a3-87e6-78a0d16ffd97" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "104" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"453988ac-de14-4880-8081-6f3137acae22\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T00:51:24Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/453988ac-de14-4880-8081-6f3137acae22-sqlcrudtest-3582?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vNDUzOTg4YWMtZGUxNC00ODgwLTgwODEtNmYzMTM3YWNhZTIyLXNxbGNydWR0ZXN0LTM1ODI/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:51:57 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "f54dd26b-cf58-46ad-b309-121a9a464377" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11969" + ], + "x-ms-correlation-request-id": [ + "4be97e61-0b22-4b41-b6c6-a2a0c1437b98" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T005158Z:4be97e61-0b22-4b41-b6c6-a2a0c1437b98" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "104" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"453988ac-de14-4880-8081-6f3137acae22\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T00:51:24Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/453988ac-de14-4880-8081-6f3137acae22-sqlcrudtest-3582?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vNDUzOTg4YWMtZGUxNC00ODgwLTgwODEtNmYzMTM3YWNhZTIyLXNxbGNydWR0ZXN0LTM1ODI/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:52:12 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "2c923af2-0142-4381-ae9d-2fdff8cdace8" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11968" + ], + "x-ms-correlation-request-id": [ + "33c8c35a-368f-40e1-b390-107521c82b31" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T005213Z:33c8c35a-368f-40e1-b390-107521c82b31" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "103" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"453988ac-de14-4880-8081-6f3137acae22\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2020-09-07T00:52:12Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportOperationResults/453988ac-de14-4880-8081-6f3137acae22-sqlcrudtest-3582?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydE9wZXJhdGlvblJlc3VsdHMvNDUzOTg4YWMtZGUxNC00ODgwLTgwODEtNmYzMTM3YWNhZTIyLXNxbGNydWR0ZXN0LTM1ODI/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:52:12 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "d363d541-955d-495d-abc1-7cda3e5901ee" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11967" + ], + "x-ms-correlation-request-id": [ + "03439044-d0b9-41af-b673-6d6257e7453e" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T005213Z:03439044-d0b9-41af-b673-6d6257e7453e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "547" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"requestId\": \"453988ac-de14-4880-8081-6f3137acae22\",\r\n \"requestType\": \"ExportDatabase\",\r\n \"queuedTime\": \"9/7/2020 12:47:23 AM\",\r\n \"lastModifiedTime\": \"9/7/2020 12:52:12 AM\",\r\n \"blobUri\": \"https://sqlcrudtest1656.blob.core.windows.net/container/sqlcrudtest-4745.bacpac\",\r\n \"serverName\": \"sqlcrudtest-3582\",\r\n \"databaseName\": \"sqlcrudtest-4745\",\r\n \"status\": \"Completed\",\r\n \"privateEndpointConnections\": []\r\n },\r\n \"id\": \"453988ac-de14-4880-8081-6f3137acae22\",\r\n \"name\": \"453988ac-de14-4880-8081-6f3137acae22\",\r\n \"type\": \"Microsoft.Sql/servers/databases/importExportOperationResults\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-4169/providers/Microsoft.Sql/servers/sqlcrudtest-3582/import?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTQxNjkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zNTgyL2ltcG9ydD9hcGktdmVyc2lvbj0yMDIwLTAyLTAyLXByZXZpZXc=", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"databaseName\": \"sqlcrudtest-572\",\r\n \"edition\": \"Basic\",\r\n \"serviceObjectiveName\": \"Basic\",\r\n \"maxSizeBytes\": \"2147483648\",\r\n \"storageKeyType\": \"StorageAccessKey\",\r\n \"storageKey\": \"a6SCAMhZzhyyISD8zlbLjdWmIp5zCW3+XB5M2tBUdGgLW3o3xVL02+VksTqxv5BQw61Qnd7YqHoShuDKfZHkuQ==\",\r\n \"storageUri\": \"https://sqlcrudtest1656.blob.core.windows.net/container/sqlcrudtest-4745.bacpac\",\r\n \"administratorLogin\": \"dummylogin\",\r\n \"administratorLoginPassword\": \"Un53cuRE!\",\r\n \"authenticationType\": \"SQL\",\r\n \"networkIsolation\": {\r\n \"storageAccountResourceId\": \"/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourcegroups/sqlcrudtest-4169/providers/Microsoft.Storage/storageAccounts/sqlcrudtest1656\",\r\n \"sqlServerResourceId\": \"/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-4169/providers/Microsoft.Sql/servers/sqlcrudtest-3582\"\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "38e29541-b1f9-4f1c-8e7c-5c8a836853cb" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "874" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:52:14 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportOperationResults/bbc93fb2-2334-4380-b368-38ae6f28fb44-sqlcrudtest-3582?api-version=2020-02-02-preview" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/bbc93fb2-2334-4380-b368-38ae6f28fb44-sqlcrudtest-3582?api-version=2020-02-02-preview" + ], + "x-ms-request-id": [ + "d4763906-7689-4768-bb1b-2f64b9db99e6" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-correlation-request-id": [ + "4d17d66c-f980-4edf-b832-a438d1edbb55" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T005215Z:4d17d66c-f980-4edf-b832-a438d1edbb55" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "65" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"Import\",\r\n \"startTime\": \"2020-09-07T00:52:14.9993308Z\"\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/bbc93fb2-2334-4380-b368-38ae6f28fb44-sqlcrudtest-3582?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vYmJjOTNmYjItMjMzNC00MzgwLWIzNjgtMzhhZTZmMjhmYjQ0LXNxbGNydWR0ZXN0LTM1ODI/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:52:29 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "a05ae278-2876-426c-a3c9-260e39d1eb83" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11966" + ], + "x-ms-correlation-request-id": [ + "f5e41e32-9ba3-472f-b001-5397763033e1" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T005230Z:f5e41e32-9ba3-472f-b001-5397763033e1" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "104" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"bbc93fb2-2334-4380-b368-38ae6f28fb44\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T00:52:14Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/bbc93fb2-2334-4380-b368-38ae6f28fb44-sqlcrudtest-3582?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vYmJjOTNmYjItMjMzNC00MzgwLWIzNjgtMzhhZTZmMjhmYjQ0LXNxbGNydWR0ZXN0LTM1ODI/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:52:44 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "88bdfe0d-869c-4d04-9adf-502fbc735545" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11965" + ], + "x-ms-correlation-request-id": [ + "3812eb47-2336-46e2-8b14-0bc68d96b783" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T005245Z:3812eb47-2336-46e2-8b14-0bc68d96b783" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "104" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"bbc93fb2-2334-4380-b368-38ae6f28fb44\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T00:52:14Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/bbc93fb2-2334-4380-b368-38ae6f28fb44-sqlcrudtest-3582?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vYmJjOTNmYjItMjMzNC00MzgwLWIzNjgtMzhhZTZmMjhmYjQ0LXNxbGNydWR0ZXN0LTM1ODI/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:53:00 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "de4ae339-3e72-45a5-8925-3a211b7dc293" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11964" + ], + "x-ms-correlation-request-id": [ + "437b0892-3308-40eb-9235-74ddefa957ca" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T005300Z:437b0892-3308-40eb-9235-74ddefa957ca" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "104" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"bbc93fb2-2334-4380-b368-38ae6f28fb44\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T00:52:14Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/bbc93fb2-2334-4380-b368-38ae6f28fb44-sqlcrudtest-3582?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vYmJjOTNmYjItMjMzNC00MzgwLWIzNjgtMzhhZTZmMjhmYjQ0LXNxbGNydWR0ZXN0LTM1ODI/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:53:15 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "ce3f62a4-ea5d-4513-acc4-9735186982f1" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11963" + ], + "x-ms-correlation-request-id": [ + "c38cdd45-0dcf-45f0-ab86-684f6bc1f36b" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T005315Z:c38cdd45-0dcf-45f0-ab86-684f6bc1f36b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "104" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"bbc93fb2-2334-4380-b368-38ae6f28fb44\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T00:53:14Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/bbc93fb2-2334-4380-b368-38ae6f28fb44-sqlcrudtest-3582?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vYmJjOTNmYjItMjMzNC00MzgwLWIzNjgtMzhhZTZmMjhmYjQ0LXNxbGNydWR0ZXN0LTM1ODI/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:53:30 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "37a168b9-ed8b-4378-8473-2af24144ff78" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11962" + ], + "x-ms-correlation-request-id": [ + "07c8a6d0-f757-45b0-9bd5-ac5795e7e97d" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T005330Z:07c8a6d0-f757-45b0-9bd5-ac5795e7e97d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "104" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"bbc93fb2-2334-4380-b368-38ae6f28fb44\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T00:53:14Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/bbc93fb2-2334-4380-b368-38ae6f28fb44-sqlcrudtest-3582?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vYmJjOTNmYjItMjMzNC00MzgwLWIzNjgtMzhhZTZmMjhmYjQ0LXNxbGNydWR0ZXN0LTM1ODI/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:53:45 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "55ffb889-93c9-4154-ae55-929f79de1523" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11961" + ], + "x-ms-correlation-request-id": [ + "ab9cb929-eae4-458d-a0d1-fb738ac4c312" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T005346Z:ab9cb929-eae4-458d-a0d1-fb738ac4c312" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "104" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"bbc93fb2-2334-4380-b368-38ae6f28fb44\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T00:53:14Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/bbc93fb2-2334-4380-b368-38ae6f28fb44-sqlcrudtest-3582?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vYmJjOTNmYjItMjMzNC00MzgwLWIzNjgtMzhhZTZmMjhmYjQ0LXNxbGNydWR0ZXN0LTM1ODI/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:54:00 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "f8c86642-d694-422e-aace-1461c8a0d156" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11960" + ], + "x-ms-correlation-request-id": [ + "7e42f901-78f5-46cc-80e6-d05ddd420273" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T005401Z:7e42f901-78f5-46cc-80e6-d05ddd420273" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "104" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"bbc93fb2-2334-4380-b368-38ae6f28fb44\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T00:53:14Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/bbc93fb2-2334-4380-b368-38ae6f28fb44-sqlcrudtest-3582?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vYmJjOTNmYjItMjMzNC00MzgwLWIzNjgtMzhhZTZmMjhmYjQ0LXNxbGNydWR0ZXN0LTM1ODI/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:54:15 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "8081a6c4-3784-4f0c-ade4-7f70ba8bd682" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11959" + ], + "x-ms-correlation-request-id": [ + "e135bdfb-852d-4093-b7ff-d7c8ecb5d328" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T005416Z:e135bdfb-852d-4093-b7ff-d7c8ecb5d328" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "104" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"bbc93fb2-2334-4380-b368-38ae6f28fb44\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T00:54:14Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/bbc93fb2-2334-4380-b368-38ae6f28fb44-sqlcrudtest-3582?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vYmJjOTNmYjItMjMzNC00MzgwLWIzNjgtMzhhZTZmMjhmYjQ0LXNxbGNydWR0ZXN0LTM1ODI/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:54:30 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "f1f88f7b-0e31-42e3-a053-8447962de9d7" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11958" + ], + "x-ms-correlation-request-id": [ + "69c36b85-c54a-4f06-b3d2-9428d77c068f" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T005431Z:69c36b85-c54a-4f06-b3d2-9428d77c068f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "104" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"bbc93fb2-2334-4380-b368-38ae6f28fb44\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T00:54:14Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/bbc93fb2-2334-4380-b368-38ae6f28fb44-sqlcrudtest-3582?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vYmJjOTNmYjItMjMzNC00MzgwLWIzNjgtMzhhZTZmMjhmYjQ0LXNxbGNydWR0ZXN0LTM1ODI/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:54:46 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "48ea008b-9897-46f8-802d-16da76984a7c" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11957" + ], + "x-ms-correlation-request-id": [ + "2466306e-05a0-44dd-a25d-440c23760e3a" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T005446Z:2466306e-05a0-44dd-a25d-440c23760e3a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "104" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"bbc93fb2-2334-4380-b368-38ae6f28fb44\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T00:54:14Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/bbc93fb2-2334-4380-b368-38ae6f28fb44-sqlcrudtest-3582?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vYmJjOTNmYjItMjMzNC00MzgwLWIzNjgtMzhhZTZmMjhmYjQ0LXNxbGNydWR0ZXN0LTM1ODI/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:55:01 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "aba0bf70-bd49-4cbf-977e-cfdf5a151ad9" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11956" + ], + "x-ms-correlation-request-id": [ + "ca6446c6-04f7-4de1-b16d-69cf0cae85aa" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T005501Z:ca6446c6-04f7-4de1-b16d-69cf0cae85aa" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "104" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"bbc93fb2-2334-4380-b368-38ae6f28fb44\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T00:54:14Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/bbc93fb2-2334-4380-b368-38ae6f28fb44-sqlcrudtest-3582?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vYmJjOTNmYjItMjMzNC00MzgwLWIzNjgtMzhhZTZmMjhmYjQ0LXNxbGNydWR0ZXN0LTM1ODI/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:55:16 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "813234fa-e6f2-47f6-b4f3-285b71f089e2" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11955" + ], + "x-ms-correlation-request-id": [ + "43320190-5413-401e-a5cf-3588b4759917" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T005517Z:43320190-5413-401e-a5cf-3588b4759917" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "104" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"bbc93fb2-2334-4380-b368-38ae6f28fb44\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T00:55:14Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/bbc93fb2-2334-4380-b368-38ae6f28fb44-sqlcrudtest-3582?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vYmJjOTNmYjItMjMzNC00MzgwLWIzNjgtMzhhZTZmMjhmYjQ0LXNxbGNydWR0ZXN0LTM1ODI/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:55:31 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "bc6f0dda-c42d-4987-80c5-d59dc11c839f" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11954" + ], + "x-ms-correlation-request-id": [ + "b6160175-d631-4ecf-a532-56c1bae8303a" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T005532Z:b6160175-d631-4ecf-a532-56c1bae8303a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "104" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"bbc93fb2-2334-4380-b368-38ae6f28fb44\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T00:55:14Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/bbc93fb2-2334-4380-b368-38ae6f28fb44-sqlcrudtest-3582?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vYmJjOTNmYjItMjMzNC00MzgwLWIzNjgtMzhhZTZmMjhmYjQ0LXNxbGNydWR0ZXN0LTM1ODI/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:55:46 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "b9ccd908-9dc3-4fc2-9e87-fbd472f7e1d2" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11953" + ], + "x-ms-correlation-request-id": [ + "dfaf67ac-a9b2-4e50-a59d-d40093706282" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T005547Z:dfaf67ac-a9b2-4e50-a59d-d40093706282" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "104" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"bbc93fb2-2334-4380-b368-38ae6f28fb44\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T00:55:14Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/bbc93fb2-2334-4380-b368-38ae6f28fb44-sqlcrudtest-3582?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vYmJjOTNmYjItMjMzNC00MzgwLWIzNjgtMzhhZTZmMjhmYjQ0LXNxbGNydWR0ZXN0LTM1ODI/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:56:02 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "68d6ec4c-0aea-4cb9-9ae7-2a6b2cfc4d8d" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11952" + ], + "x-ms-correlation-request-id": [ + "3f68097c-9b2a-4899-8ca0-b876dd3c2f82" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T005602Z:3f68097c-9b2a-4899-8ca0-b876dd3c2f82" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "104" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"bbc93fb2-2334-4380-b368-38ae6f28fb44\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T00:55:14Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/bbc93fb2-2334-4380-b368-38ae6f28fb44-sqlcrudtest-3582?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vYmJjOTNmYjItMjMzNC00MzgwLWIzNjgtMzhhZTZmMjhmYjQ0LXNxbGNydWR0ZXN0LTM1ODI/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:56:16 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "76eeb30e-ab91-4b0a-a476-e4c57ffd38a7" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11951" + ], + "x-ms-correlation-request-id": [ + "022ce7f9-a409-41a9-aa0d-dcfea6111d85" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T005617Z:022ce7f9-a409-41a9-aa0d-dcfea6111d85" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "104" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"bbc93fb2-2334-4380-b368-38ae6f28fb44\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T00:56:14Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/bbc93fb2-2334-4380-b368-38ae6f28fb44-sqlcrudtest-3582?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vYmJjOTNmYjItMjMzNC00MzgwLWIzNjgtMzhhZTZmMjhmYjQ0LXNxbGNydWR0ZXN0LTM1ODI/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:56:32 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "65f74b9f-b34e-4d97-a590-750b4630743c" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11950" + ], + "x-ms-correlation-request-id": [ + "cf46eff6-d749-4303-8534-97b319e7ee36" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T005633Z:cf46eff6-d749-4303-8534-97b319e7ee36" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "104" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"bbc93fb2-2334-4380-b368-38ae6f28fb44\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T00:56:14Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/bbc93fb2-2334-4380-b368-38ae6f28fb44-sqlcrudtest-3582?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vYmJjOTNmYjItMjMzNC00MzgwLWIzNjgtMzhhZTZmMjhmYjQ0LXNxbGNydWR0ZXN0LTM1ODI/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:56:48 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "31918456-fea7-4168-ab07-a9173c8842c5" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11949" + ], + "x-ms-correlation-request-id": [ + "1ef9ecfc-10df-47f1-a4d9-ea3eb1373393" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T005648Z:1ef9ecfc-10df-47f1-a4d9-ea3eb1373393" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "104" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"bbc93fb2-2334-4380-b368-38ae6f28fb44\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T00:56:14Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/bbc93fb2-2334-4380-b368-38ae6f28fb44-sqlcrudtest-3582?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vYmJjOTNmYjItMjMzNC00MzgwLWIzNjgtMzhhZTZmMjhmYjQ0LXNxbGNydWR0ZXN0LTM1ODI/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:57:03 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "2ab2a238-314a-4483-96e5-8357beeb5f3d" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11948" + ], + "x-ms-correlation-request-id": [ + "0e071f24-9559-419e-b4ea-ee69148da9f5" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T005703Z:0e071f24-9559-419e-b4ea-ee69148da9f5" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "104" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"bbc93fb2-2334-4380-b368-38ae6f28fb44\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T00:56:14Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/bbc93fb2-2334-4380-b368-38ae6f28fb44-sqlcrudtest-3582?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vYmJjOTNmYjItMjMzNC00MzgwLWIzNjgtMzhhZTZmMjhmYjQ0LXNxbGNydWR0ZXN0LTM1ODI/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:57:17 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "787dd4eb-82cc-4acf-bf8d-62a7a7319e47" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11947" + ], + "x-ms-correlation-request-id": [ + "61683e54-5078-4b8b-999f-7e17b2b2c7c5" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T005718Z:61683e54-5078-4b8b-999f-7e17b2b2c7c5" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "104" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"bbc93fb2-2334-4380-b368-38ae6f28fb44\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T00:57:14Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/bbc93fb2-2334-4380-b368-38ae6f28fb44-sqlcrudtest-3582?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vYmJjOTNmYjItMjMzNC00MzgwLWIzNjgtMzhhZTZmMjhmYjQ0LXNxbGNydWR0ZXN0LTM1ODI/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:57:33 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "40b9ba64-3771-45be-9820-1449fb7ab8a1" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11946" + ], + "x-ms-correlation-request-id": [ + "84b13ea4-5268-4ff2-a72f-a6047988150b" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T005733Z:84b13ea4-5268-4ff2-a72f-a6047988150b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "104" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"bbc93fb2-2334-4380-b368-38ae6f28fb44\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T00:57:14Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/bbc93fb2-2334-4380-b368-38ae6f28fb44-sqlcrudtest-3582?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vYmJjOTNmYjItMjMzNC00MzgwLWIzNjgtMzhhZTZmMjhmYjQ0LXNxbGNydWR0ZXN0LTM1ODI/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:57:48 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "bea62e05-d065-49a9-bb24-06e42c741d69" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11945" + ], + "x-ms-correlation-request-id": [ + "d7e2bd0a-8a97-43d9-b65a-34ad133c4958" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T005749Z:d7e2bd0a-8a97-43d9-b65a-34ad133c4958" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "104" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"bbc93fb2-2334-4380-b368-38ae6f28fb44\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T00:57:14Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/bbc93fb2-2334-4380-b368-38ae6f28fb44-sqlcrudtest-3582?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vYmJjOTNmYjItMjMzNC00MzgwLWIzNjgtMzhhZTZmMjhmYjQ0LXNxbGNydWR0ZXN0LTM1ODI/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:58:04 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "aa88afc6-ff06-4544-a7f9-d4b00dd7a990" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11944" + ], + "x-ms-correlation-request-id": [ + "88b11234-6ed1-4655-921f-f1716626307f" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T005804Z:88b11234-6ed1-4655-921f-f1716626307f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "104" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"bbc93fb2-2334-4380-b368-38ae6f28fb44\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T00:57:14Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/bbc93fb2-2334-4380-b368-38ae6f28fb44-sqlcrudtest-3582?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vYmJjOTNmYjItMjMzNC00MzgwLWIzNjgtMzhhZTZmMjhmYjQ0LXNxbGNydWR0ZXN0LTM1ODI/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:58:19 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "21e7dda1-2325-4798-bf4e-4208061955f0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11943" + ], + "x-ms-correlation-request-id": [ + "75bbe0f2-78c2-49c1-9f69-f6dba5bc6faf" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T005819Z:75bbe0f2-78c2-49c1-9f69-f6dba5bc6faf" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "104" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"bbc93fb2-2334-4380-b368-38ae6f28fb44\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T00:58:14Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/bbc93fb2-2334-4380-b368-38ae6f28fb44-sqlcrudtest-3582?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vYmJjOTNmYjItMjMzNC00MzgwLWIzNjgtMzhhZTZmMjhmYjQ0LXNxbGNydWR0ZXN0LTM1ODI/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:58:34 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "7d795803-4805-4ce2-b484-80c982b703af" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11942" + ], + "x-ms-correlation-request-id": [ + "77fd15bb-c0e0-4267-9e9e-4c7b7f5dc5a6" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T005834Z:77fd15bb-c0e0-4267-9e9e-4c7b7f5dc5a6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "104" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"bbc93fb2-2334-4380-b368-38ae6f28fb44\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T00:58:14Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/bbc93fb2-2334-4380-b368-38ae6f28fb44-sqlcrudtest-3582?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vYmJjOTNmYjItMjMzNC00MzgwLWIzNjgtMzhhZTZmMjhmYjQ0LXNxbGNydWR0ZXN0LTM1ODI/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:58:49 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "7aa081da-974e-4b3c-b460-1d39f7117330" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11941" + ], + "x-ms-correlation-request-id": [ + "319e1cf0-3b6e-499d-a1ac-43f7b1c57f75" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T005849Z:319e1cf0-3b6e-499d-a1ac-43f7b1c57f75" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "103" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"bbc93fb2-2334-4380-b368-38ae6f28fb44\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2020-09-07T00:58:34Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportOperationResults/bbc93fb2-2334-4380-b368-38ae6f28fb44-sqlcrudtest-3582?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydE9wZXJhdGlvblJlc3VsdHMvYmJjOTNmYjItMjMzNC00MzgwLWIzNjgtMzhhZTZmMjhmYjQ0LXNxbGNydWR0ZXN0LTM1ODI/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:58:49 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "05426ec6-b6ac-4563-b2a1-821d51ee1c67" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11940" + ], + "x-ms-correlation-request-id": [ + "b57422e3-9caf-4f54-bdb7-2ef4a3797879" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T005849Z:b57422e3-9caf-4f54-bdb7-2ef4a3797879" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "551" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"requestId\": \"bbc93fb2-2334-4380-b368-38ae6f28fb44\",\r\n \"requestType\": \"ImportToNewDatabase\",\r\n \"queuedTime\": \"9/7/2020 12:52:13 AM\",\r\n \"lastModifiedTime\": \"9/7/2020 12:58:34 AM\",\r\n \"blobUri\": \"https://sqlcrudtest1656.blob.core.windows.net/container/sqlcrudtest-4745.bacpac\",\r\n \"serverName\": \"sqlcrudtest-3582\",\r\n \"databaseName\": \"sqlcrudtest-572\",\r\n \"status\": \"Completed\",\r\n \"privateEndpointConnections\": []\r\n },\r\n \"id\": \"bbc93fb2-2334-4380-b368-38ae6f28fb44\",\r\n \"name\": \"bbc93fb2-2334-4380-b368-38ae6f28fb44\",\r\n \"type\": \"Microsoft.Sql/servers/databases/importExportOperationResults\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourcegroups/sqlcrudtest-4169?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTQxNjk/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "27826ae5-3e40-487c-982c-c08b6b0866e5" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 00:58:50 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDQxNjktV0VTVENFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoid2VzdGNlbnRyYWx1cyJ9?api-version=2017-05-10" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" + ], + "x-ms-request-id": [ + "5229b344-c11f-4432-b859-6c776cda64b3" + ], + "x-ms-correlation-request-id": [ + "5229b344-c11f-4432-b859-6c776cda64b3" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T005851Z:5229b344-c11f-4432-b859-6c776cda64b3" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + } + ], + "Names": { + "CreateResourceGroup": [ + "sqlcrudtest-4169" + ], + "CreateServer": [ + "sqlcrudtest-3582" + ], + "TestImportExport": [ + "sqlcrudtest1656", + "sqlcrudtest-4745", + "sqlcrudtest-572", + "sqlcrudtest-7031" + ] + }, + "Variables": { + "SubscriptionId": "b75889fa-6661-44e0-a844-cd96ec938991", + "DefaultLocation": "West Central US" + } +} \ No newline at end of file From 5eaff3b1ffc3aa8cfbd97ea73bb4415e2d234103 Mon Sep 17 00:00:00 2001 From: Brandon Greenwood Date: Sun, 6 Sep 2020 18:11:01 -0700 Subject: [PATCH 18/19] Update SDK version and release notes --- .../src/Microsoft.Azure.Management.Sql.csproj | 5 +++-- .../src/Properties/AssemblyInfo.cs | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Microsoft.Azure.Management.Sql.csproj b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Microsoft.Azure.Management.Sql.csproj index 77e2df0014bd..8759adf04087 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Microsoft.Azure.Management.Sql.csproj +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Microsoft.Azure.Management.Sql.csproj @@ -7,12 +7,13 @@ Microsoft.Azure.Management.Sql Azure SQL Management SDK library Microsoft.Azure.Management.Sql - 1.44.1-preview + 1.44.2-preview Microsoft Azure SQL Management;SQL;SQL Management; diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Properties/AssemblyInfo.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Properties/AssemblyInfo.cs index 230a677b310f..88ef1b013d6c 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Properties/AssemblyInfo.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Properties/AssemblyInfo.cs @@ -22,5 +22,5 @@ [assembly: AssemblyTitle("Microsoft Azure SQL Management Library")] [assembly: AssemblyDescription("Provides management functionality for Microsoft Azure SQL.")] [assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.44.1.0")] +[assembly: AssemblyFileVersion("1.44.2.0")] From 89b2e7bbcfb7ca451d15a7b97716dc726426313f Mon Sep 17 00:00:00 2001 From: Brandon Greenwood Date: Sun, 6 Sep 2020 20:09:48 -0700 Subject: [PATCH 19/19] Re-record existing IE tests after changing test resource name pattern --- .../TestImportExistingDatabase.json | 885 +++++++++-------- .../TestImportNewDatabase.json | 897 +++++++++--------- 2 files changed, 918 insertions(+), 864 deletions(-) diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/tests/SessionRecords/ImportExportScenarioTests/TestImportExistingDatabase.json b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/tests/SessionRecords/ImportExportScenarioTests/TestImportExistingDatabase.json index ab66e3924f3e..7310dec2ba31 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/tests/SessionRecords/ImportExportScenarioTests/TestImportExistingDatabase.json +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/tests/SessionRecords/ImportExportScenarioTests/TestImportExistingDatabase.json @@ -1,13 +1,13 @@ { "Entries": [ { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourcegroups/sqlcrudtest-7317?api-version=2017-05-10", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTczMTc/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourcegroups/sqlcrudtest-9985?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTk5ODU/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"location\": \"West Central US\",\r\n \"tags\": {\r\n \"sqlcrudtest-7317\": \"2020-09-03 19:47:14Z\"\r\n }\r\n}", + "RequestBody": "{\r\n \"location\": \"West Central US\",\r\n \"tags\": {\r\n \"sqlcrudtest-9985\": \"2020-09-07 02:54:00Z\"\r\n }\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "85c9997b-b877-419c-bfbe-19477b5a9ae3" + "267ba0e5-e071-4a73-9076-37f1aa02b24e" ], "accept-language": [ "en-US" @@ -30,22 +30,22 @@ "no-cache" ], "Date": [ - "Thu, 03 Sep 2020 19:47:22 GMT" + "Mon, 07 Sep 2020 02:54:02 GMT" ], "Pragma": [ "no-cache" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1195" + "1199" ], "x-ms-request-id": [ - "fd37114f-b4ec-4e5e-a56d-338b9791bdf5" + "4613b0f7-a791-4be1-b020-985cdcd93c4f" ], "x-ms-correlation-request-id": [ - "fd37114f-b4ec-4e5e-a56d-338b9791bdf5" + "4613b0f7-a791-4be1-b020-985cdcd93c4f" ], "x-ms-routing-request-id": [ - "BRAZILUS:20200903T194722Z:fd37114f-b4ec-4e5e-a56d-338b9791bdf5" + "BRAZILUS:20200907T025402Z:4613b0f7-a791-4be1-b020-985cdcd93c4f" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -63,17 +63,17 @@ "-1" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317\",\r\n \"name\": \"sqlcrudtest-7317\",\r\n \"location\": \"westcentralus\",\r\n \"tags\": {\r\n \"sqlcrudtest-7317\": \"2020-09-03 19:47:14Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-9985\",\r\n \"name\": \"sqlcrudtest-9985\",\r\n \"location\": \"westcentralus\",\r\n \"tags\": {\r\n \"sqlcrudtest-9985\": \"2020-09-07 02:54:00Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", "StatusCode": 201 }, { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Sql/servers/sqlcrudtest-8696?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczMTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC04Njk2P2FwaS12ZXJzaW9uPTIwMTktMDYtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-9985/providers/Microsoft.Sql/servers/sqlcrudtest-6358?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTk5ODUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC02MzU4P2FwaS12ZXJzaW9uPTIwMTktMDYtMDEtcHJldmlldw==", "RequestMethod": "PUT", "RequestBody": "{\r\n \"properties\": {\r\n \"administratorLogin\": \"dummylogin\",\r\n \"administratorLoginPassword\": \"Un53cuRE!\",\r\n \"version\": \"12.0\"\r\n },\r\n \"location\": \"West Central US\",\r\n \"tags\": {}\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "ff5f86e5-acf2-4312-b1fd-8ce70dfac9a4" + "bdf8ff50-4cee-4f9e-8e54-68d1d9b45231" ], "accept-language": [ "en-US" @@ -82,7 +82,7 @@ "FxVersion/4.6.26614.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.2.0" ], "Content-Type": [ "application/json; charset=utf-8" @@ -96,13 +96,13 @@ "no-cache" ], "Date": [ - "Thu, 03 Sep 2020 19:47:31 GMT" + "Mon, 07 Sep 2020 02:54:05 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Sql/locations/westcentralus/serverOperationResults/d3b266f9-ad6a-47d4-afd8-42d291ea8adc?api-version=2019-06-01-preview" + "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-9985/providers/Microsoft.Sql/locations/westcentralus/serverOperationResults/cca990c5-dc3d-4db8-9320-d050fd9c91e8?api-version=2019-06-01-preview" ], "Retry-After": [ "1" @@ -111,19 +111,19 @@ "Microsoft-HTTPAPI/2.0" ], "Azure-AsyncOperation": [ - "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Sql/locations/westcentralus/serverAzureAsyncOperation/d3b266f9-ad6a-47d4-afd8-42d291ea8adc?api-version=2019-06-01-preview" + "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-9985/providers/Microsoft.Sql/locations/westcentralus/serverAzureAsyncOperation/cca990c5-dc3d-4db8-9320-d050fd9c91e8?api-version=2019-06-01-preview" ], "x-ms-request-id": [ - "d3b266f9-ad6a-47d4-afd8-42d291ea8adc" + "cca990c5-dc3d-4db8-9320-d050fd9c91e8" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1193" + "1199" ], "x-ms-correlation-request-id": [ - "82aef4af-ffe9-45e3-8c8d-c61a7ac9d3e9" + "01ed790b-348e-4caf-9cd1-ada1c71250c0" ], "x-ms-routing-request-id": [ - "BRAZILUS:20200903T194731Z:82aef4af-ffe9-45e3-8c8d-c61a7ac9d3e9" + "BRAZILUS:20200907T025406Z:01ed790b-348e-4caf-9cd1-ada1c71250c0" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -141,12 +141,12 @@ "-1" ] }, - "ResponseBody": "{\r\n \"operation\": \"UpsertLogicalServer\",\r\n \"startTime\": \"2020-09-03T19:47:31.32Z\"\r\n}", + "ResponseBody": "{\r\n \"operation\": \"UpsertLogicalServer\",\r\n \"startTime\": \"2020-09-07T02:54:05.83Z\"\r\n}", "StatusCode": 202 }, { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Sql/locations/westcentralus/serverAzureAsyncOperation/d3b266f9-ad6a-47d4-afd8-42d291ea8adc?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczMTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9kM2IyNjZmOS1hZDZhLTQ3ZDQtYWZkOC00MmQyOTFlYThhZGM/YXBpLXZlcnNpb249MjAxOS0wNi0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-9985/providers/Microsoft.Sql/locations/westcentralus/serverAzureAsyncOperation/cca990c5-dc3d-4db8-9320-d050fd9c91e8?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTk5ODUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9jY2E5OTBjNS1kYzNkLTRkYjgtOTMyMC1kMDUwZmQ5YzkxZTg/YXBpLXZlcnNpb249MjAxOS0wNi0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -154,7 +154,7 @@ "FxVersion/4.6.26614.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.2.0" ] }, "ResponseHeaders": { @@ -162,7 +162,7 @@ "no-cache" ], "Date": [ - "Thu, 03 Sep 2020 19:47:32 GMT" + "Mon, 07 Sep 2020 02:54:06 GMT" ], "Pragma": [ "no-cache" @@ -174,16 +174,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "99529140-904a-4709-a3da-b74bf7eb5805" + "34d6a692-bee6-4b8b-a8b8-28e97948c28d" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11981" + "11999" ], "x-ms-correlation-request-id": [ - "5c2d5be8-a62e-44b4-8820-d603adf1fb6c" + "158bd627-75b9-4f7a-af4b-ff2709271de6" ], "x-ms-routing-request-id": [ - "BRAZILUS:20200903T194732Z:5c2d5be8-a62e-44b4-8820-d603adf1fb6c" + "BRAZILUS:20200907T025407Z:158bd627-75b9-4f7a-af4b-ff2709271de6" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -201,12 +201,12 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"d3b266f9-ad6a-47d4-afd8-42d291ea8adc\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T19:47:31.32Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"cca990c5-dc3d-4db8-9320-d050fd9c91e8\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T02:54:05.83Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Sql/locations/westcentralus/serverAzureAsyncOperation/d3b266f9-ad6a-47d4-afd8-42d291ea8adc?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczMTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9kM2IyNjZmOS1hZDZhLTQ3ZDQtYWZkOC00MmQyOTFlYThhZGM/YXBpLXZlcnNpb249MjAxOS0wNi0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-9985/providers/Microsoft.Sql/locations/westcentralus/serverAzureAsyncOperation/cca990c5-dc3d-4db8-9320-d050fd9c91e8?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTk5ODUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9jY2E5OTBjNS1kYzNkLTRkYjgtOTMyMC1kMDUwZmQ5YzkxZTg/YXBpLXZlcnNpb249MjAxOS0wNi0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -214,7 +214,7 @@ "FxVersion/4.6.26614.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.2.0" ] }, "ResponseHeaders": { @@ -222,7 +222,7 @@ "no-cache" ], "Date": [ - "Thu, 03 Sep 2020 19:47:33 GMT" + "Mon, 07 Sep 2020 02:54:07 GMT" ], "Pragma": [ "no-cache" @@ -234,16 +234,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "5cfc2c71-a682-4d56-bf62-3a54919f0ef0" + "424a1a0d-9814-418b-951c-2abb53362517" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11980" + "11998" ], "x-ms-correlation-request-id": [ - "1a4c85fe-8c79-4fce-b17e-10073e67d046" + "f1a220ed-dde5-4059-a06d-7d2ffaa533e5" ], "x-ms-routing-request-id": [ - "BRAZILUS:20200903T194733Z:1a4c85fe-8c79-4fce-b17e-10073e67d046" + "BRAZILUS:20200907T025408Z:f1a220ed-dde5-4059-a06d-7d2ffaa533e5" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -261,12 +261,12 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"d3b266f9-ad6a-47d4-afd8-42d291ea8adc\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T19:47:31.32Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"cca990c5-dc3d-4db8-9320-d050fd9c91e8\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T02:54:05.83Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Sql/locations/westcentralus/serverAzureAsyncOperation/d3b266f9-ad6a-47d4-afd8-42d291ea8adc?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczMTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9kM2IyNjZmOS1hZDZhLTQ3ZDQtYWZkOC00MmQyOTFlYThhZGM/YXBpLXZlcnNpb249MjAxOS0wNi0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-9985/providers/Microsoft.Sql/locations/westcentralus/serverAzureAsyncOperation/cca990c5-dc3d-4db8-9320-d050fd9c91e8?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTk5ODUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9jY2E5OTBjNS1kYzNkLTRkYjgtOTMyMC1kMDUwZmQ5YzkxZTg/YXBpLXZlcnNpb249MjAxOS0wNi0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -274,7 +274,7 @@ "FxVersion/4.6.26614.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.2.0" ] }, "ResponseHeaders": { @@ -282,7 +282,7 @@ "no-cache" ], "Date": [ - "Thu, 03 Sep 2020 19:47:34 GMT" + "Mon, 07 Sep 2020 02:54:08 GMT" ], "Pragma": [ "no-cache" @@ -294,16 +294,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "cade43cc-6fad-463c-b4f5-a6f63f6ee3c1" + "61bdbbd6-1ba0-490e-8e89-dd16434657e0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11979" + "11997" ], "x-ms-correlation-request-id": [ - "36b352ed-8bd8-4634-bb23-b725795144fd" + "3206c711-de16-4bad-b1ee-7df967becc78" ], "x-ms-routing-request-id": [ - "BRAZILUS:20200903T194734Z:36b352ed-8bd8-4634-bb23-b725795144fd" + "BRAZILUS:20200907T025409Z:3206c711-de16-4bad-b1ee-7df967becc78" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -321,12 +321,12 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"d3b266f9-ad6a-47d4-afd8-42d291ea8adc\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T19:47:31.32Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"cca990c5-dc3d-4db8-9320-d050fd9c91e8\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T02:54:05.83Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Sql/locations/westcentralus/serverAzureAsyncOperation/d3b266f9-ad6a-47d4-afd8-42d291ea8adc?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczMTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9kM2IyNjZmOS1hZDZhLTQ3ZDQtYWZkOC00MmQyOTFlYThhZGM/YXBpLXZlcnNpb249MjAxOS0wNi0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-9985/providers/Microsoft.Sql/locations/westcentralus/serverAzureAsyncOperation/cca990c5-dc3d-4db8-9320-d050fd9c91e8?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTk5ODUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9jY2E5OTBjNS1kYzNkLTRkYjgtOTMyMC1kMDUwZmQ5YzkxZTg/YXBpLXZlcnNpb249MjAxOS0wNi0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -334,7 +334,7 @@ "FxVersion/4.6.26614.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.2.0" ] }, "ResponseHeaders": { @@ -342,7 +342,7 @@ "no-cache" ], "Date": [ - "Thu, 03 Sep 2020 19:47:36 GMT" + "Mon, 07 Sep 2020 02:54:09 GMT" ], "Pragma": [ "no-cache" @@ -354,16 +354,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "532f7bb8-18dc-43be-936f-7d49ab209f8d" + "5f37fbea-b719-4390-8920-6a1cfd7741d5" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11978" + "11996" ], "x-ms-correlation-request-id": [ - "18368dc8-f720-4d2f-aa9f-9d4db9d1dcee" + "0e1cc0ad-8afd-434d-878a-e6d383af8f36" ], "x-ms-routing-request-id": [ - "BRAZILUS:20200903T194736Z:18368dc8-f720-4d2f-aa9f-9d4db9d1dcee" + "BRAZILUS:20200907T025410Z:0e1cc0ad-8afd-434d-878a-e6d383af8f36" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -381,12 +381,12 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"d3b266f9-ad6a-47d4-afd8-42d291ea8adc\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T19:47:31.32Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"cca990c5-dc3d-4db8-9320-d050fd9c91e8\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T02:54:05.83Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Sql/locations/westcentralus/serverAzureAsyncOperation/d3b266f9-ad6a-47d4-afd8-42d291ea8adc?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczMTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9kM2IyNjZmOS1hZDZhLTQ3ZDQtYWZkOC00MmQyOTFlYThhZGM/YXBpLXZlcnNpb249MjAxOS0wNi0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-9985/providers/Microsoft.Sql/locations/westcentralus/serverAzureAsyncOperation/cca990c5-dc3d-4db8-9320-d050fd9c91e8?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTk5ODUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9jY2E5OTBjNS1kYzNkLTRkYjgtOTMyMC1kMDUwZmQ5YzkxZTg/YXBpLXZlcnNpb249MjAxOS0wNi0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -394,7 +394,7 @@ "FxVersion/4.6.26614.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.2.0" ] }, "ResponseHeaders": { @@ -402,7 +402,7 @@ "no-cache" ], "Date": [ - "Thu, 03 Sep 2020 19:47:37 GMT" + "Mon, 07 Sep 2020 02:54:10 GMT" ], "Pragma": [ "no-cache" @@ -414,16 +414,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "59cba294-d5f3-41a7-a5b2-c6774d55b035" + "fd04bab1-95b8-4e7b-89fe-3e0bbd8984d9" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11977" + "11995" ], "x-ms-correlation-request-id": [ - "6dd20abf-b72e-4575-8104-2c50fd30296c" + "97ac6e54-8c5b-4fb0-9714-705cfb3149d1" ], "x-ms-routing-request-id": [ - "BRAZILUS:20200903T194737Z:6dd20abf-b72e-4575-8104-2c50fd30296c" + "BRAZILUS:20200907T025411Z:97ac6e54-8c5b-4fb0-9714-705cfb3149d1" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -441,12 +441,12 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"d3b266f9-ad6a-47d4-afd8-42d291ea8adc\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T19:47:31.32Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"cca990c5-dc3d-4db8-9320-d050fd9c91e8\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T02:54:05.83Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Sql/locations/westcentralus/serverAzureAsyncOperation/d3b266f9-ad6a-47d4-afd8-42d291ea8adc?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczMTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9kM2IyNjZmOS1hZDZhLTQ3ZDQtYWZkOC00MmQyOTFlYThhZGM/YXBpLXZlcnNpb249MjAxOS0wNi0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-9985/providers/Microsoft.Sql/locations/westcentralus/serverAzureAsyncOperation/cca990c5-dc3d-4db8-9320-d050fd9c91e8?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTk5ODUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9jY2E5OTBjNS1kYzNkLTRkYjgtOTMyMC1kMDUwZmQ5YzkxZTg/YXBpLXZlcnNpb249MjAxOS0wNi0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -454,7 +454,7 @@ "FxVersion/4.6.26614.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.2.0" ] }, "ResponseHeaders": { @@ -462,7 +462,7 @@ "no-cache" ], "Date": [ - "Thu, 03 Sep 2020 19:47:56 GMT" + "Mon, 07 Sep 2020 02:54:31 GMT" ], "Pragma": [ "no-cache" @@ -474,16 +474,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "aaa26fad-fda1-44d9-9c63-2c037f7e967a" + "82bf4909-a7fa-4891-b942-dfd5d2f6550b" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11976" + "11994" ], "x-ms-correlation-request-id": [ - "2b0cda4b-cb45-4586-b51f-d30ef28f17d6" + "addd585a-6b5c-45b0-8d7f-fbb1d75332c2" ], "x-ms-routing-request-id": [ - "BRAZILUS:20200903T194757Z:2b0cda4b-cb45-4586-b51f-d30ef28f17d6" + "BRAZILUS:20200907T025431Z:addd585a-6b5c-45b0-8d7f-fbb1d75332c2" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -501,12 +501,12 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"d3b266f9-ad6a-47d4-afd8-42d291ea8adc\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T19:47:31.32Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"cca990c5-dc3d-4db8-9320-d050fd9c91e8\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T02:54:05.83Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Sql/locations/westcentralus/serverAzureAsyncOperation/d3b266f9-ad6a-47d4-afd8-42d291ea8adc?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczMTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9kM2IyNjZmOS1hZDZhLTQ3ZDQtYWZkOC00MmQyOTFlYThhZGM/YXBpLXZlcnNpb249MjAxOS0wNi0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-9985/providers/Microsoft.Sql/locations/westcentralus/serverAzureAsyncOperation/cca990c5-dc3d-4db8-9320-d050fd9c91e8?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTk5ODUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9jY2E5OTBjNS1kYzNkLTRkYjgtOTMyMC1kMDUwZmQ5YzkxZTg/YXBpLXZlcnNpb249MjAxOS0wNi0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -514,7 +514,7 @@ "FxVersion/4.6.26614.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.2.0" ] }, "ResponseHeaders": { @@ -522,7 +522,7 @@ "no-cache" ], "Date": [ - "Thu, 03 Sep 2020 19:48:17 GMT" + "Mon, 07 Sep 2020 02:54:51 GMT" ], "Pragma": [ "no-cache" @@ -534,16 +534,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "275604e6-5e7b-4051-8c0c-9b13793de976" + "1f24fecb-d35d-4753-a827-c4ab8c6c9d5c" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11975" + "11993" ], "x-ms-correlation-request-id": [ - "d408d72b-4339-4b71-82c9-381b79e1436a" + "9c6499f5-d2eb-4a19-9384-6a22cc7265cb" ], "x-ms-routing-request-id": [ - "BRAZILUS:20200903T194817Z:d408d72b-4339-4b71-82c9-381b79e1436a" + "BRAZILUS:20200907T025451Z:9c6499f5-d2eb-4a19-9384-6a22cc7265cb" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -561,12 +561,12 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"d3b266f9-ad6a-47d4-afd8-42d291ea8adc\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2020-09-03T19:47:31.32Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"cca990c5-dc3d-4db8-9320-d050fd9c91e8\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2020-09-07T02:54:05.83Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Sql/servers/sqlcrudtest-8696?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczMTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC04Njk2P2FwaS12ZXJzaW9uPTIwMTktMDYtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-9985/providers/Microsoft.Sql/servers/sqlcrudtest-6358?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTk5ODUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC02MzU4P2FwaS12ZXJzaW9uPTIwMTktMDYtMDEtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -574,7 +574,7 @@ "FxVersion/4.6.26614.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.2.0" ] }, "ResponseHeaders": { @@ -582,7 +582,7 @@ "no-cache" ], "Date": [ - "Thu, 03 Sep 2020 19:48:17 GMT" + "Mon, 07 Sep 2020 02:54:51 GMT" ], "Pragma": [ "no-cache" @@ -591,16 +591,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "b0316944-205b-437b-9cbe-af24e018a9ca" + "283de758-4f00-4001-9f7c-fba334e6f0c2" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11974" + "11992" ], "x-ms-correlation-request-id": [ - "6778cbaf-5947-4457-aef6-6d66aae67083" + "55ff674e-c996-486a-ac95-d8e6dce5302b" ], "x-ms-routing-request-id": [ - "BRAZILUS:20200903T194817Z:6778cbaf-5947-4457-aef6-6d66aae67083" + "BRAZILUS:20200907T025451Z:55ff674e-c996-486a-ac95-d8e6dce5302b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -618,17 +618,17 @@ "-1" ] }, - "ResponseBody": "{\r\n \"kind\": \"v12.0\",\r\n \"properties\": {\r\n \"administratorLogin\": \"dummylogin\",\r\n \"version\": \"12.0\",\r\n \"state\": \"Ready\",\r\n \"fullyQualifiedDomainName\": \"sqlcrudtest-8696.database.windows.net\",\r\n \"privateEndpointConnections\": [],\r\n \"publicNetworkAccess\": \"Enabled\"\r\n },\r\n \"location\": \"westcentralus\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Sql/servers/sqlcrudtest-8696\",\r\n \"name\": \"sqlcrudtest-8696\",\r\n \"type\": \"Microsoft.Sql/servers\"\r\n}", + "ResponseBody": "{\r\n \"kind\": \"v12.0\",\r\n \"properties\": {\r\n \"administratorLogin\": \"dummylogin\",\r\n \"version\": \"12.0\",\r\n \"state\": \"Ready\",\r\n \"fullyQualifiedDomainName\": \"sqlcrudtest-6358.database.windows.net\",\r\n \"privateEndpointConnections\": [],\r\n \"publicNetworkAccess\": \"Enabled\"\r\n },\r\n \"location\": \"westcentralus\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-9985/providers/Microsoft.Sql/servers/sqlcrudtest-6358\",\r\n \"name\": \"sqlcrudtest-6358\",\r\n \"type\": \"Microsoft.Sql/servers\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Sql/servers/sqlcrudtest-8696/firewallRules/sqlcrudtest-9835?api-version=2014-04-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczMTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC04Njk2L2ZpcmV3YWxsUnVsZXMvc3FsY3J1ZHRlc3QtOTgzNT9hcGktdmVyc2lvbj0yMDE0LTA0LTAx", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-9985/providers/Microsoft.Sql/servers/sqlcrudtest-6358/firewallRules/sqlcrudtest-5354?api-version=2014-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTk5ODUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC02MzU4L2ZpcmV3YWxsUnVsZXMvc3FsY3J1ZHRlc3QtNTM1ND9hcGktdmVyc2lvbj0yMDE0LTA0LTAx", "RequestMethod": "PUT", "RequestBody": "{\r\n \"properties\": {\r\n \"startIpAddress\": \"0.0.0.0\",\r\n \"endIpAddress\": \"255.255.255.255\"\r\n }\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "fd5ac752-afb7-4a8e-baf9-fc5978f8d05f" + "f9b38bde-7f6c-4272-b057-12707ec042f6" ], "accept-language": [ "en-US" @@ -637,7 +637,7 @@ "FxVersion/4.6.26614.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.2.0" ], "Content-Type": [ "application/json; charset=utf-8" @@ -651,13 +651,13 @@ "no-store, no-cache" ], "Date": [ - "Thu, 03 Sep 2020 19:48:18 GMT" + "Mon, 07 Sep 2020 02:54:52 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "105f6b91-ba8b-4819-87be-38322b324110" + "21ede17c-d759-4edf-8809-948fc7d3c01d" ], "X-Content-Type-Options": [ "nosniff" @@ -672,13 +672,13 @@ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1191" + "1198" ], "x-ms-correlation-request-id": [ - "8fbea0c0-6130-4a2f-be80-b72e8d2c1c22" + "e7452b1d-d849-4a9f-baae-8dae005ec42a" ], "x-ms-routing-request-id": [ - "BRAZILUS:20200903T194818Z:8fbea0c0-6130-4a2f-be80-b72e8d2c1c22" + "BRAZILUS:20200907T025452Z:e7452b1d-d849-4a9f-baae-8dae005ec42a" ], "Content-Length": [ "362" @@ -687,17 +687,17 @@ "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Sql/servers/sqlcrudtest-8696/firewallRules/sqlcrudtest-9835\",\r\n \"name\": \"sqlcrudtest-9835\",\r\n \"type\": \"Microsoft.Sql/servers/firewallRules\",\r\n \"location\": \"West Central US\",\r\n \"kind\": \"v12.0\",\r\n \"properties\": {\r\n \"startIpAddress\": \"0.0.0.0\",\r\n \"endIpAddress\": \"255.255.255.255\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-9985/providers/Microsoft.Sql/servers/sqlcrudtest-6358/firewallRules/sqlcrudtest-5354\",\r\n \"name\": \"sqlcrudtest-5354\",\r\n \"type\": \"Microsoft.Sql/servers/firewallRules\",\r\n \"location\": \"West Central US\",\r\n \"kind\": \"v12.0\",\r\n \"properties\": {\r\n \"startIpAddress\": \"0.0.0.0\",\r\n \"endIpAddress\": \"255.255.255.255\"\r\n }\r\n}", "StatusCode": 201 }, { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Storage/storageAccounts/sqlcrudtest8107?api-version=2017-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczMTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9zcWxjcnVkdGVzdDgxMDc/YXBpLXZlcnNpb249MjAxNy0wNi0wMQ==", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-9985/providers/Microsoft.Sql/servers/sqlcrudtest-6358/databases/sqlcrudtest-2890?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTk5ODUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC02MzU4L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC0yODkwP2FwaS12ZXJzaW9uPTIwMTktMDYtMDEtcHJldmlldw==", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\"\r\n },\r\n \"kind\": \"BlobStorage\",\r\n \"location\": \"westcentralus\",\r\n \"properties\": {\r\n \"accessTier\": \"Cool\"\r\n }\r\n}", + "RequestBody": "{\r\n \"location\": \"westcentralus\"\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "5025ef45-a537-498b-9cd9-7bb91adca563" + "bd9a0202-9437-4b30-a366-ad032e7346b8" ], "accept-language": [ "en-US" @@ -706,13 +706,13 @@ "FxVersion/4.6.26614.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Storage.StorageManagementClient/6.5.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.2.0" ], "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "158" + "35" ] }, "ResponseHeaders": { @@ -720,59 +720,62 @@ "no-cache" ], "Date": [ - "Thu, 03 Sep 2020 19:48:18 GMT" + "Mon, 07 Sep 2020 02:54:53 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Storage/locations/westcentralus/asyncoperations/14a0d35c-cda7-440b-bb20-6e0f130237ff?monitor=true&api-version=2017-06-01" + "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-9985/providers/Microsoft.Sql/locations/westcentralus/databaseOperationResults/cd7c3b7f-14b8-479c-83e3-92bc9a856547?api-version=2019-06-01-preview" ], "Retry-After": [ - "17" + "15" ], "Server": [ - "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" + "Microsoft-HTTPAPI/2.0" ], - "x-ms-request-id": [ - "14a0d35c-cda7-440b-bb20-6e0f130237ff" + "Azure-AsyncOperation": [ + "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-9985/providers/Microsoft.Sql/locations/westcentralus/databaseAzureAsyncOperation/cd7c3b7f-14b8-479c-83e3-92bc9a856547?api-version=2019-06-01-preview" ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" + "x-ms-request-id": [ + "cd7c3b7f-14b8-479c-83e3-92bc9a856547" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1190" + "1197" ], "x-ms-correlation-request-id": [ - "c9b7419c-2a3a-4e29-9991-2a0690a0159e" + "fe707f40-5263-43a8-92cd-6f46b93b75ff" ], "x-ms-routing-request-id": [ - "BRAZILUS:20200903T194819Z:c9b7419c-2a3a-4e29-9991-2a0690a0159e" + "BRAZILUS:20200907T025453Z:fe707f40-5263-43a8-92cd-6f46b93b75ff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], "Content-Length": [ - "0" + "76" ], "Content-Type": [ - "text/plain; charset=utf-8" + "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "ResponseBody": "", + "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2020-09-07T02:54:53.593Z\"\r\n}", "StatusCode": 202 }, { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Sql/servers/sqlcrudtest-8696/databases/sqlcrudtest-6275?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczMTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC04Njk2L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC02Mjc1P2FwaS12ZXJzaW9uPTIwMTktMDYtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-9985/providers/Microsoft.Storage/storageAccounts/sqlcrudtest3703?api-version=2017-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTk5ODUvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9zcWxjcnVkdGVzdDM3MDM/YXBpLXZlcnNpb249MjAxNy0wNi0wMQ==", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"location\": \"westcentralus\"\r\n}", + "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\"\r\n },\r\n \"kind\": \"BlobStorage\",\r\n \"location\": \"westcentralus\",\r\n \"properties\": {\r\n \"accessTier\": \"Cool\"\r\n }\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "8f29be30-b246-4969-91f6-4168d42878a6" + "380b35d8-6860-4ec3-be11-3d994f91b9f7" ], "accept-language": [ "en-US" @@ -781,13 +784,13 @@ "FxVersion/4.6.26614.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + "Microsoft.Azure.Management.Storage.StorageManagementClient/6.5.0.0" ], "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "35" + "158" ] }, "ResponseHeaders": { @@ -795,57 +798,54 @@ "no-cache" ], "Date": [ - "Thu, 03 Sep 2020 19:48:19 GMT" + "Mon, 07 Sep 2020 02:54:54 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Sql/locations/westcentralus/databaseOperationResults/3ea7ce3e-0523-40fd-8b9e-5e0e41acfb5f?api-version=2019-06-01-preview" + "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Storage/locations/westcentralus/asyncoperations/5ccabbb4-fc00-4c94-a746-8b9b9cbe8790?monitor=true&api-version=2017-06-01" ], "Retry-After": [ - "15" + "17" ], "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "Azure-AsyncOperation": [ - "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Sql/locations/westcentralus/databaseAzureAsyncOperation/3ea7ce3e-0523-40fd-8b9e-5e0e41acfb5f?api-version=2019-06-01-preview" + "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "3ea7ce3e-0523-40fd-8b9e-5e0e41acfb5f" + "5ccabbb4-fc00-4c94-a746-8b9b9cbe8790" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1190" + "1197" ], "x-ms-correlation-request-id": [ - "ab847a7d-faa0-4b84-8ddb-edb844b0c355" + "43b54151-4028-4f56-9e43-eb6565103010" ], "x-ms-routing-request-id": [ - "BRAZILUS:20200903T194819Z:ab847a7d-faa0-4b84-8ddb-edb844b0c355" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" + "BRAZILUS:20200907T025454Z:43b54151-4028-4f56-9e43-eb6565103010" ], "X-Content-Type-Options": [ "nosniff" ], "Content-Length": [ - "76" + "0" ], "Content-Type": [ - "application/json; charset=utf-8" + "text/plain; charset=utf-8" ], "Expires": [ "-1" ] }, - "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2020-09-03T19:48:19.303Z\"\r\n}", + "ResponseBody": "", "StatusCode": 202 }, { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Sql/locations/westcentralus/databaseAzureAsyncOperation/3ea7ce3e-0523-40fd-8b9e-5e0e41acfb5f?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczMTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzNlYTdjZTNlLTA1MjMtNDBmZC04YjllLTVlMGU0MWFjZmI1Zj9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-9985/providers/Microsoft.Sql/locations/westcentralus/databaseAzureAsyncOperation/cd7c3b7f-14b8-479c-83e3-92bc9a856547?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTk5ODUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2NkN2MzYjdmLTE0YjgtNDc5Yy04M2UzLTkyYmM5YTg1NjU0Nz9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -853,7 +853,7 @@ "FxVersion/4.6.26614.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.2.0" ] }, "ResponseHeaders": { @@ -861,7 +861,7 @@ "no-cache" ], "Date": [ - "Thu, 03 Sep 2020 19:48:33 GMT" + "Mon, 07 Sep 2020 02:55:08 GMT" ], "Pragma": [ "no-cache" @@ -873,16 +873,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "af69403f-491c-4358-a869-e066573e1912" + "72f30357-e60d-4422-a88f-c003ef63c665" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11973" + "11991" ], "x-ms-correlation-request-id": [ - "3ab16e18-e1f5-4eaf-87c7-d68c27d1482f" + "af677d8c-51ff-48ca-abe0-cea813a4f09d" ], "x-ms-routing-request-id": [ - "BRAZILUS:20200903T194834Z:3ab16e18-e1f5-4eaf-87c7-d68c27d1482f" + "BRAZILUS:20200907T025508Z:af677d8c-51ff-48ca-abe0-cea813a4f09d" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -900,12 +900,12 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"3ea7ce3e-0523-40fd-8b9e-5e0e41acfb5f\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T19:48:19.303Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"cd7c3b7f-14b8-479c-83e3-92bc9a856547\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T02:54:53.593Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Sql/locations/westcentralus/databaseAzureAsyncOperation/3ea7ce3e-0523-40fd-8b9e-5e0e41acfb5f?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczMTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzNlYTdjZTNlLTA1MjMtNDBmZC04YjllLTVlMGU0MWFjZmI1Zj9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-9985/providers/Microsoft.Sql/locations/westcentralus/databaseAzureAsyncOperation/cd7c3b7f-14b8-479c-83e3-92bc9a856547?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTk5ODUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2NkN2MzYjdmLTE0YjgtNDc5Yy04M2UzLTkyYmM5YTg1NjU0Nz9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -913,7 +913,7 @@ "FxVersion/4.6.26614.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.2.0" ] }, "ResponseHeaders": { @@ -921,7 +921,7 @@ "no-cache" ], "Date": [ - "Thu, 03 Sep 2020 19:48:48 GMT" + "Mon, 07 Sep 2020 02:55:23 GMT" ], "Pragma": [ "no-cache" @@ -933,16 +933,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "46f4f51e-5bc9-4878-8ee3-860ae09eb15b" + "6fb1bf7c-36ed-4df3-8390-ba4311703dba" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11971" + "11990" ], "x-ms-correlation-request-id": [ - "5e3f6ca0-d2ef-4c0f-9d89-9ed306ed0b08" + "3765fd29-0ca3-400c-950d-268ef515668b" ], "x-ms-routing-request-id": [ - "BRAZILUS:20200903T194849Z:5e3f6ca0-d2ef-4c0f-9d89-9ed306ed0b08" + "BRAZILUS:20200907T025524Z:3765fd29-0ca3-400c-950d-268ef515668b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -960,12 +960,12 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"3ea7ce3e-0523-40fd-8b9e-5e0e41acfb5f\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T19:48:19.303Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"cd7c3b7f-14b8-479c-83e3-92bc9a856547\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T02:54:53.593Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Sql/locations/westcentralus/databaseAzureAsyncOperation/3ea7ce3e-0523-40fd-8b9e-5e0e41acfb5f?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczMTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzNlYTdjZTNlLTA1MjMtNDBmZC04YjllLTVlMGU0MWFjZmI1Zj9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-9985/providers/Microsoft.Sql/locations/westcentralus/databaseAzureAsyncOperation/cd7c3b7f-14b8-479c-83e3-92bc9a856547?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTk5ODUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2NkN2MzYjdmLTE0YjgtNDc5Yy04M2UzLTkyYmM5YTg1NjU0Nz9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -973,7 +973,7 @@ "FxVersion/4.6.26614.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.2.0" ] }, "ResponseHeaders": { @@ -981,7 +981,7 @@ "no-cache" ], "Date": [ - "Thu, 03 Sep 2020 19:49:04 GMT" + "Mon, 07 Sep 2020 02:55:38 GMT" ], "Pragma": [ "no-cache" @@ -993,16 +993,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "56fb74bb-a8b1-4a02-b88e-6a461c9e0a62" + "ccee79a8-e4c2-4b21-9735-67b35fd3c373" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11970" + "11989" ], "x-ms-correlation-request-id": [ - "8db46b44-6a84-49bb-9934-1c0038f8cd5d" + "9e301300-a1a6-44b1-a4f4-b077d7ab7099" ], "x-ms-routing-request-id": [ - "BRAZILUS:20200903T194904Z:8db46b44-6a84-49bb-9934-1c0038f8cd5d" + "BRAZILUS:20200907T025539Z:9e301300-a1a6-44b1-a4f4-b077d7ab7099" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1020,12 +1020,12 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"3ea7ce3e-0523-40fd-8b9e-5e0e41acfb5f\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2020-09-03T19:48:19.303Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"cd7c3b7f-14b8-479c-83e3-92bc9a856547\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2020-09-07T02:54:53.593Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Storage/locations/westcentralus/asyncoperations/14a0d35c-cda7-440b-bb20-6e0f130237ff?monitor=true&api-version=2017-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZS9sb2NhdGlvbnMvd2VzdGNlbnRyYWx1cy9hc3luY29wZXJhdGlvbnMvMTRhMGQzNWMtY2RhNy00NDBiLWJiMjAtNmUwZjEzMDIzN2ZmP21vbml0b3I9dHJ1ZSZhcGktdmVyc2lvbj0yMDE3LTA2LTAx", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Storage/locations/westcentralus/asyncoperations/5ccabbb4-fc00-4c94-a746-8b9b9cbe8790?monitor=true&api-version=2017-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZS9sb2NhdGlvbnMvd2VzdGNlbnRyYWx1cy9hc3luY29wZXJhdGlvbnMvNWNjYWJiYjQtZmMwMC00Yzk0LWE3NDYtOGI5YjljYmU4NzkwP21vbml0b3I9dHJ1ZSZhcGktdmVyc2lvbj0yMDE3LTA2LTAx", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -1041,7 +1041,7 @@ "no-cache" ], "Date": [ - "Thu, 03 Sep 2020 19:48:36 GMT" + "Mon, 07 Sep 2020 02:55:11 GMT" ], "Pragma": [ "no-cache" @@ -1050,19 +1050,19 @@ "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "29240870-9f87-41d6-96f4-740d63b4e96e" + "d0abbbc7-086f-4306-a6ae-25f462dd8c87" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11972" + "11997" ], "x-ms-correlation-request-id": [ - "4871f842-ec5e-4320-83ed-825314087f35" + "48bdb8c3-235f-472e-95d5-4cf0aea201dd" ], "x-ms-routing-request-id": [ - "BRAZILUS:20200903T194836Z:4871f842-ec5e-4320-83ed-825314087f35" + "BRAZILUS:20200907T025511Z:48bdb8c3-235f-472e-95d5-4cf0aea201dd" ], "X-Content-Type-Options": [ "nosniff" @@ -1077,17 +1077,17 @@ "-1" ] }, - "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"kind\": \"BlobStorage\",\r\n \"id\": \"/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Storage/storageAccounts/sqlcrudtest8107\",\r\n \"name\": \"sqlcrudtest8107\",\r\n \"type\": \"Microsoft.Storage/storageAccounts\",\r\n \"location\": \"westcentralus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"networkAcls\": {\r\n \"bypass\": \"AzureServices\",\r\n \"virtualNetworkRules\": [],\r\n \"ipRules\": [],\r\n \"defaultAction\": \"Allow\"\r\n },\r\n \"supportsHttpsTrafficOnly\": false,\r\n \"encryption\": {\r\n \"services\": {\r\n \"file\": {\r\n \"enabled\": true,\r\n \"lastEnabledTime\": \"2020-09-03T19:48:18.5571988Z\"\r\n },\r\n \"blob\": {\r\n \"enabled\": true,\r\n \"lastEnabledTime\": \"2020-09-03T19:48:18.5571988Z\"\r\n }\r\n },\r\n \"keySource\": \"Microsoft.Storage\"\r\n },\r\n \"accessTier\": \"Cool\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"creationTime\": \"2020-09-03T19:48:18.4946934Z\",\r\n \"primaryEndpoints\": {\r\n \"blob\": \"https://sqlcrudtest8107.blob.core.windows.net/\",\r\n \"table\": \"https://sqlcrudtest8107.table.core.windows.net/\"\r\n },\r\n \"primaryLocation\": \"westcentralus\",\r\n \"statusOfPrimary\": \"available\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"kind\": \"BlobStorage\",\r\n \"id\": \"/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-9985/providers/Microsoft.Storage/storageAccounts/sqlcrudtest3703\",\r\n \"name\": \"sqlcrudtest3703\",\r\n \"type\": \"Microsoft.Storage/storageAccounts\",\r\n \"location\": \"westcentralus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"networkAcls\": {\r\n \"bypass\": \"AzureServices\",\r\n \"virtualNetworkRules\": [],\r\n \"ipRules\": [],\r\n \"defaultAction\": \"Allow\"\r\n },\r\n \"supportsHttpsTrafficOnly\": false,\r\n \"encryption\": {\r\n \"services\": {\r\n \"file\": {\r\n \"enabled\": true,\r\n \"lastEnabledTime\": \"2020-09-07T02:54:54.013066Z\"\r\n },\r\n \"blob\": {\r\n \"enabled\": true,\r\n \"lastEnabledTime\": \"2020-09-07T02:54:54.013066Z\"\r\n }\r\n },\r\n \"keySource\": \"Microsoft.Storage\"\r\n },\r\n \"accessTier\": \"Cool\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"creationTime\": \"2020-09-07T02:54:53.9506247Z\",\r\n \"primaryEndpoints\": {\r\n \"blob\": \"https://sqlcrudtest3703.blob.core.windows.net/\",\r\n \"table\": \"https://sqlcrudtest3703.table.core.windows.net/\"\r\n },\r\n \"primaryLocation\": \"westcentralus\",\r\n \"statusOfPrimary\": \"available\"\r\n }\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Storage/storageAccounts/sqlcrudtest8107/listKeys?api-version=2017-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczMTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9zcWxjcnVkdGVzdDgxMDcvbGlzdEtleXM/YXBpLXZlcnNpb249MjAxNy0wNi0wMQ==", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-9985/providers/Microsoft.Storage/storageAccounts/sqlcrudtest3703/listKeys?api-version=2017-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTk5ODUvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9zcWxjcnVkdGVzdDM3MDMvbGlzdEtleXM/YXBpLXZlcnNpb249MjAxNy0wNi0wMQ==", "RequestMethod": "POST", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "25ef7341-6c35-4612-a855-185ea641b4be" + "d98accc3-bdbc-4f87-aa74-4c5873f2975c" ], "accept-language": [ "en-US" @@ -1104,7 +1104,7 @@ "no-cache" ], "Date": [ - "Thu, 03 Sep 2020 19:48:36 GMT" + "Mon, 07 Sep 2020 02:55:11 GMT" ], "Pragma": [ "no-cache" @@ -1113,7 +1113,7 @@ "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "d0e6518a-7ed3-45c9-8518-c57e4061e2b0" + "06f57070-9d62-49e8-ba52-e39f9460f315" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1122,10 +1122,10 @@ "11999" ], "x-ms-correlation-request-id": [ - "0b0be66c-e3ea-4783-8380-06c9dba3dbcb" + "3e72e677-becf-4a36-a66b-adb53874441a" ], "x-ms-routing-request-id": [ - "BRAZILUS:20200903T194836Z:0b0be66c-e3ea-4783-8380-06c9dba3dbcb" + "BRAZILUS:20200907T025511Z:3e72e677-becf-4a36-a66b-adb53874441a" ], "X-Content-Type-Options": [ "nosniff" @@ -1140,12 +1140,12 @@ "-1" ] }, - "ResponseBody": "{\r\n \"keys\": [\r\n {\r\n \"keyName\": \"key1\",\r\n \"value\": \"ZPMelgVaCQ+kNB1JHAO/hRWbaXRfH9/zUy6IHjXanuKhY/EcPWiz1TVp2s/9kAB1hJUN8x2A5QWtEvvxeUv6Lg==\",\r\n \"permissions\": \"FULL\"\r\n },\r\n {\r\n \"keyName\": \"key2\",\r\n \"value\": \"pEuRmQswFlf4DFnqsKX7UL/brob5QtmWleumJyYw0+dtiCtqxGThTnxhkfzat512kd4M/CpexFxwczoU24k9Sg==\",\r\n \"permissions\": \"FULL\"\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"keys\": [\r\n {\r\n \"keyName\": \"key1\",\r\n \"value\": \"1NQiYLbzy++Zkx8qbX9UFibnpx6WvbR2e5z04j9dJFOwijIbks6tGYLweP2KKDapaXevi6OnJXk0DkKzvOKY1w==\",\r\n \"permissions\": \"FULL\"\r\n },\r\n {\r\n \"keyName\": \"key2\",\r\n \"value\": \"Lmlp8FlO/uHjMGhz7K4/YMP0v/tn8Qwzy/MkJmiXoR546ul8a0sRsWxI3ZBbyr7GPYiEwxwTZFQNAZ9wi1PF9Q==\",\r\n \"permissions\": \"FULL\"\r\n }\r\n ]\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Sql/servers/sqlcrudtest-8696/databases/sqlcrudtest-6275?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczMTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC04Njk2L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC02Mjc1P2FwaS12ZXJzaW9uPTIwMTktMDYtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-9985/providers/Microsoft.Sql/servers/sqlcrudtest-6358/databases/sqlcrudtest-2890?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTk5ODUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC02MzU4L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC0yODkwP2FwaS12ZXJzaW9uPTIwMTktMDYtMDEtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -1153,7 +1153,7 @@ "FxVersion/4.6.26614.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.2.0" ] }, "ResponseHeaders": { @@ -1161,7 +1161,7 @@ "no-cache" ], "Date": [ - "Thu, 03 Sep 2020 19:49:04 GMT" + "Mon, 07 Sep 2020 02:55:38 GMT" ], "Pragma": [ "no-cache" @@ -1170,16 +1170,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "9c8fb028-0d78-42c0-954c-8c7a32aa0865" + "47ad0822-3ab5-4ef3-8c79-23b585fa8e1d" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11969" + "11988" ], "x-ms-correlation-request-id": [ - "f34ec010-c4cd-4374-9d24-85e24f312d5e" + "0346ab1e-320a-44ac-8b63-752e8516eeb4" ], "x-ms-routing-request-id": [ - "BRAZILUS:20200903T194904Z:f34ec010-c4cd-4374-9d24-85e24f312d5e" + "BRAZILUS:20200907T025539Z:0346ab1e-320a-44ac-8b63-752e8516eeb4" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1188,7 +1188,7 @@ "nosniff" ], "Content-Length": [ - "1023" + "1025" ], "Content-Type": [ "application/json; charset=utf-8" @@ -1197,17 +1197,17 @@ "-1" ] }, - "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"GP_Gen5\",\r\n \"tier\": \"GeneralPurpose\",\r\n \"family\": \"Gen5\",\r\n \"capacity\": 2\r\n },\r\n \"kind\": \"v12.0,user,vcore\",\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": 34359738368,\r\n \"status\": \"Online\",\r\n \"databaseId\": \"2abecd08-7474-4ef4-8500-0a079748f038\",\r\n \"creationDate\": \"2020-09-03T19:48:54.46Z\",\r\n \"currentServiceObjectiveName\": \"GP_Gen5_2\",\r\n \"requestedServiceObjectiveName\": \"GP_Gen5_2\",\r\n \"defaultSecondaryLocation\": \"westus2\",\r\n \"catalogCollation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"zoneRedundant\": false,\r\n \"licenseType\": \"LicenseIncluded\",\r\n \"maxLogSizeBytes\": 10307502080,\r\n \"earliestRestoreDate\": \"2020-09-03T20:18:54.46Z\",\r\n \"readScale\": \"Disabled\",\r\n \"readReplicaCount\": 0,\r\n \"currentSku\": {\r\n \"name\": \"GP_Gen5\",\r\n \"tier\": \"GeneralPurpose\",\r\n \"family\": \"Gen5\",\r\n \"capacity\": 2\r\n },\r\n \"storageAccountType\": \"GRS\"\r\n },\r\n \"location\": \"westcentralus\",\r\n \"id\": \"/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Sql/servers/sqlcrudtest-8696/databases/sqlcrudtest-6275\",\r\n \"name\": \"sqlcrudtest-6275\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"GP_Gen5\",\r\n \"tier\": \"GeneralPurpose\",\r\n \"family\": \"Gen5\",\r\n \"capacity\": 2\r\n },\r\n \"kind\": \"v12.0,user,vcore\",\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": 34359738368,\r\n \"status\": \"Online\",\r\n \"databaseId\": \"b548e829-9aa6-47f3-9bef-70f9104f625b\",\r\n \"creationDate\": \"2020-09-07T02:55:28.437Z\",\r\n \"currentServiceObjectiveName\": \"GP_Gen5_2\",\r\n \"requestedServiceObjectiveName\": \"GP_Gen5_2\",\r\n \"defaultSecondaryLocation\": \"westus2\",\r\n \"catalogCollation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"zoneRedundant\": false,\r\n \"licenseType\": \"LicenseIncluded\",\r\n \"maxLogSizeBytes\": 10307502080,\r\n \"earliestRestoreDate\": \"2020-09-07T03:25:28.437Z\",\r\n \"readScale\": \"Disabled\",\r\n \"readReplicaCount\": 0,\r\n \"currentSku\": {\r\n \"name\": \"GP_Gen5\",\r\n \"tier\": \"GeneralPurpose\",\r\n \"family\": \"Gen5\",\r\n \"capacity\": 2\r\n },\r\n \"storageAccountType\": \"GRS\"\r\n },\r\n \"location\": \"westcentralus\",\r\n \"id\": \"/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-9985/providers/Microsoft.Sql/servers/sqlcrudtest-6358/databases/sqlcrudtest-2890\",\r\n \"name\": \"sqlcrudtest-2890\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Sql/servers/sqlcrudtest-8696/databases/sqlcrudtest-9440?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczMTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC04Njk2L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC05NDQwP2FwaS12ZXJzaW9uPTIwMTktMDYtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-9985/providers/Microsoft.Sql/servers/sqlcrudtest-6358/databases/sqlcrudtest-1088?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTk5ODUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC02MzU4L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC0xMDg4P2FwaS12ZXJzaW9uPTIwMTktMDYtMDEtcHJldmlldw==", "RequestMethod": "PUT", "RequestBody": "{\r\n \"location\": \"westcentralus\"\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "5ba658c1-7b60-40f0-ba6b-50ed6254bbbc" + "d3d42431-07f2-4de5-b270-5c3e1ff955f8" ], "accept-language": [ "en-US" @@ -1216,7 +1216,7 @@ "FxVersion/4.6.26614.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.2.0" ], "Content-Type": [ "application/json; charset=utf-8" @@ -1230,13 +1230,13 @@ "no-cache" ], "Date": [ - "Thu, 03 Sep 2020 19:49:05 GMT" + "Mon, 07 Sep 2020 02:55:39 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Sql/locations/westcentralus/databaseOperationResults/6dfb69ba-8c9c-41f8-bab2-dcce1801fdad?api-version=2019-06-01-preview" + "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-9985/providers/Microsoft.Sql/locations/westcentralus/databaseOperationResults/242543b5-89fe-4c47-9287-38cdd718399b?api-version=2019-06-01-preview" ], "Retry-After": [ "15" @@ -1245,19 +1245,19 @@ "Microsoft-HTTPAPI/2.0" ], "Azure-AsyncOperation": [ - "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Sql/locations/westcentralus/databaseAzureAsyncOperation/6dfb69ba-8c9c-41f8-bab2-dcce1801fdad?api-version=2019-06-01-preview" + "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-9985/providers/Microsoft.Sql/locations/westcentralus/databaseAzureAsyncOperation/242543b5-89fe-4c47-9287-38cdd718399b?api-version=2019-06-01-preview" ], "x-ms-request-id": [ - "6dfb69ba-8c9c-41f8-bab2-dcce1801fdad" + "242543b5-89fe-4c47-9287-38cdd718399b" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1189" + "1196" ], "x-ms-correlation-request-id": [ - "e062c977-2915-4c50-bd7c-861d3395c07a" + "11290998-6c64-45fb-9fa3-08c3e7e99780" ], "x-ms-routing-request-id": [ - "BRAZILUS:20200903T194906Z:e062c977-2915-4c50-bd7c-861d3395c07a" + "BRAZILUS:20200907T025540Z:11290998-6c64-45fb-9fa3-08c3e7e99780" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1266,7 +1266,7 @@ "nosniff" ], "Content-Length": [ - "75" + "76" ], "Content-Type": [ "application/json; charset=utf-8" @@ -1275,12 +1275,12 @@ "-1" ] }, - "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2020-09-03T19:49:06.24Z\"\r\n}", + "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2020-09-07T02:55:39.953Z\"\r\n}", "StatusCode": 202 }, { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Sql/locations/westcentralus/databaseAzureAsyncOperation/6dfb69ba-8c9c-41f8-bab2-dcce1801fdad?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczMTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzZkZmI2OWJhLThjOWMtNDFmOC1iYWIyLWRjY2UxODAxZmRhZD9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-9985/providers/Microsoft.Sql/locations/westcentralus/databaseAzureAsyncOperation/242543b5-89fe-4c47-9287-38cdd718399b?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTk5ODUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzI0MjU0M2I1LTg5ZmUtNGM0Ny05Mjg3LTM4Y2RkNzE4Mzk5Yj9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -1288,7 +1288,7 @@ "FxVersion/4.6.26614.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.2.0" ] }, "ResponseHeaders": { @@ -1296,7 +1296,7 @@ "no-cache" ], "Date": [ - "Thu, 03 Sep 2020 19:49:21 GMT" + "Mon, 07 Sep 2020 02:55:54 GMT" ], "Pragma": [ "no-cache" @@ -1308,16 +1308,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "f18561f5-6841-420c-896d-c0fda2051fc7" + "41115f73-54bb-4e50-8921-998d6d624fd0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11968" + "11987" ], "x-ms-correlation-request-id": [ - "4d36c6fe-4206-4421-b438-e0a172b0c9a1" + "9f6b9da9-875b-4c0a-8d23-fd8eea33a44e" ], "x-ms-routing-request-id": [ - "BRAZILUS:20200903T194921Z:4d36c6fe-4206-4421-b438-e0a172b0c9a1" + "BRAZILUS:20200907T025555Z:9f6b9da9-875b-4c0a-8d23-fd8eea33a44e" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1326,7 +1326,7 @@ "nosniff" ], "Content-Length": [ - "107" + "108" ], "Content-Type": [ "application/json; charset=utf-8" @@ -1335,12 +1335,12 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"6dfb69ba-8c9c-41f8-bab2-dcce1801fdad\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T19:49:06.24Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"242543b5-89fe-4c47-9287-38cdd718399b\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T02:55:39.953Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Sql/locations/westcentralus/databaseAzureAsyncOperation/6dfb69ba-8c9c-41f8-bab2-dcce1801fdad?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczMTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzZkZmI2OWJhLThjOWMtNDFmOC1iYWIyLWRjY2UxODAxZmRhZD9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-9985/providers/Microsoft.Sql/locations/westcentralus/databaseAzureAsyncOperation/242543b5-89fe-4c47-9287-38cdd718399b?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTk5ODUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzI0MjU0M2I1LTg5ZmUtNGM0Ny05Mjg3LTM4Y2RkNzE4Mzk5Yj9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -1348,7 +1348,7 @@ "FxVersion/4.6.26614.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.2.0" ] }, "ResponseHeaders": { @@ -1356,7 +1356,7 @@ "no-cache" ], "Date": [ - "Thu, 03 Sep 2020 19:49:36 GMT" + "Mon, 07 Sep 2020 02:56:10 GMT" ], "Pragma": [ "no-cache" @@ -1368,16 +1368,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "64227361-95d3-4e0f-a422-57e5b5ea7a54" + "ffbf2e89-c862-42b4-b1cd-5d9da6ee59b7" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11967" + "11986" ], "x-ms-correlation-request-id": [ - "d67ab929-c461-4ccb-b35a-3739ebd7880f" + "5abbf0d5-5fb6-47fe-b690-5aa3cac08dd8" ], "x-ms-routing-request-id": [ - "BRAZILUS:20200903T194936Z:d67ab929-c461-4ccb-b35a-3739ebd7880f" + "BRAZILUS:20200907T025610Z:5abbf0d5-5fb6-47fe-b690-5aa3cac08dd8" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1386,7 +1386,7 @@ "nosniff" ], "Content-Length": [ - "107" + "108" ], "Content-Type": [ "application/json; charset=utf-8" @@ -1395,12 +1395,12 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"6dfb69ba-8c9c-41f8-bab2-dcce1801fdad\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T19:49:06.24Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"242543b5-89fe-4c47-9287-38cdd718399b\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T02:55:39.953Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Sql/locations/westcentralus/databaseAzureAsyncOperation/6dfb69ba-8c9c-41f8-bab2-dcce1801fdad?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczMTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzZkZmI2OWJhLThjOWMtNDFmOC1iYWIyLWRjY2UxODAxZmRhZD9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-9985/providers/Microsoft.Sql/locations/westcentralus/databaseAzureAsyncOperation/242543b5-89fe-4c47-9287-38cdd718399b?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTk5ODUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzI0MjU0M2I1LTg5ZmUtNGM0Ny05Mjg3LTM4Y2RkNzE4Mzk5Yj9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -1408,7 +1408,7 @@ "FxVersion/4.6.26614.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.2.0" ] }, "ResponseHeaders": { @@ -1416,7 +1416,7 @@ "no-cache" ], "Date": [ - "Thu, 03 Sep 2020 19:49:50 GMT" + "Mon, 07 Sep 2020 02:56:25 GMT" ], "Pragma": [ "no-cache" @@ -1428,16 +1428,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "c48a243d-cde8-44dc-9b9e-ff822ae10bc7" + "d90c85d2-6a87-4a24-85f9-1c10c47bf50e" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11966" + "11985" ], "x-ms-correlation-request-id": [ - "ee6a445a-36fc-4c12-90bd-0f69fbd94328" + "72424f53-03a9-4cd2-bd78-3ddfd950f030" ], "x-ms-routing-request-id": [ - "BRAZILUS:20200903T194951Z:ee6a445a-36fc-4c12-90bd-0f69fbd94328" + "BRAZILUS:20200907T025625Z:72424f53-03a9-4cd2-bd78-3ddfd950f030" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1446,7 +1446,7 @@ "nosniff" ], "Content-Length": [ - "106" + "107" ], "Content-Type": [ "application/json; charset=utf-8" @@ -1455,12 +1455,12 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"6dfb69ba-8c9c-41f8-bab2-dcce1801fdad\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2020-09-03T19:49:06.24Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"242543b5-89fe-4c47-9287-38cdd718399b\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2020-09-07T02:55:39.953Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Sql/servers/sqlcrudtest-8696/databases/sqlcrudtest-9440?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczMTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC04Njk2L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC05NDQwP2FwaS12ZXJzaW9uPTIwMTktMDYtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-9985/providers/Microsoft.Sql/servers/sqlcrudtest-6358/databases/sqlcrudtest-1088?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTk5ODUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC02MzU4L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC0xMDg4P2FwaS12ZXJzaW9uPTIwMTktMDYtMDEtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -1468,7 +1468,7 @@ "FxVersion/4.6.26614.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.2.0" ] }, "ResponseHeaders": { @@ -1476,7 +1476,7 @@ "no-cache" ], "Date": [ - "Thu, 03 Sep 2020 19:49:50 GMT" + "Mon, 07 Sep 2020 02:56:25 GMT" ], "Pragma": [ "no-cache" @@ -1485,16 +1485,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "0fc64241-0db1-474e-96e6-2a4ddb026a77" + "48e97c52-3802-4689-a8fb-4b8fdc534f7d" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11965" + "11984" ], "x-ms-correlation-request-id": [ - "d8935d7d-4564-42a6-b7e3-2e19c9fa7234" + "33776949-c436-42cd-b584-5e74494cb272" ], "x-ms-routing-request-id": [ - "BRAZILUS:20200903T194951Z:d8935d7d-4564-42a6-b7e3-2e19c9fa7234" + "BRAZILUS:20200907T025625Z:33776949-c436-42cd-b584-5e74494cb272" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1512,17 +1512,17 @@ "-1" ] }, - "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"GP_Gen5\",\r\n \"tier\": \"GeneralPurpose\",\r\n \"family\": \"Gen5\",\r\n \"capacity\": 2\r\n },\r\n \"kind\": \"v12.0,user,vcore\",\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": 34359738368,\r\n \"status\": \"Online\",\r\n \"databaseId\": \"db7590f9-8677-41ab-8667-87589338a140\",\r\n \"creationDate\": \"2020-09-03T19:49:38.82Z\",\r\n \"currentServiceObjectiveName\": \"GP_Gen5_2\",\r\n \"requestedServiceObjectiveName\": \"GP_Gen5_2\",\r\n \"defaultSecondaryLocation\": \"westus2\",\r\n \"catalogCollation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"zoneRedundant\": false,\r\n \"licenseType\": \"LicenseIncluded\",\r\n \"maxLogSizeBytes\": 10307502080,\r\n \"earliestRestoreDate\": \"2020-09-03T20:19:38.82Z\",\r\n \"readScale\": \"Disabled\",\r\n \"readReplicaCount\": 0,\r\n \"currentSku\": {\r\n \"name\": \"GP_Gen5\",\r\n \"tier\": \"GeneralPurpose\",\r\n \"family\": \"Gen5\",\r\n \"capacity\": 2\r\n },\r\n \"storageAccountType\": \"GRS\"\r\n },\r\n \"location\": \"westcentralus\",\r\n \"id\": \"/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Sql/servers/sqlcrudtest-8696/databases/sqlcrudtest-9440\",\r\n \"name\": \"sqlcrudtest-9440\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"GP_Gen5\",\r\n \"tier\": \"GeneralPurpose\",\r\n \"family\": \"Gen5\",\r\n \"capacity\": 2\r\n },\r\n \"kind\": \"v12.0,user,vcore\",\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": 34359738368,\r\n \"status\": \"Online\",\r\n \"databaseId\": \"eb8cefb5-ba37-4183-b8c3-9686babc7084\",\r\n \"creationDate\": \"2020-09-07T02:56:14.72Z\",\r\n \"currentServiceObjectiveName\": \"GP_Gen5_2\",\r\n \"requestedServiceObjectiveName\": \"GP_Gen5_2\",\r\n \"defaultSecondaryLocation\": \"westus2\",\r\n \"catalogCollation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"zoneRedundant\": false,\r\n \"licenseType\": \"LicenseIncluded\",\r\n \"maxLogSizeBytes\": 10307502080,\r\n \"earliestRestoreDate\": \"2020-09-07T03:26:14.72Z\",\r\n \"readScale\": \"Disabled\",\r\n \"readReplicaCount\": 0,\r\n \"currentSku\": {\r\n \"name\": \"GP_Gen5\",\r\n \"tier\": \"GeneralPurpose\",\r\n \"family\": \"Gen5\",\r\n \"capacity\": 2\r\n },\r\n \"storageAccountType\": \"GRS\"\r\n },\r\n \"location\": \"westcentralus\",\r\n \"id\": \"/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-9985/providers/Microsoft.Sql/servers/sqlcrudtest-6358/databases/sqlcrudtest-1088\",\r\n \"name\": \"sqlcrudtest-1088\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Sql/servers/sqlcrudtest-8696/databases/sqlcrudtest-9440?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczMTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC04Njk2L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC05NDQwP2FwaS12ZXJzaW9uPTIwMTktMDYtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-9985/providers/Microsoft.Sql/servers/sqlcrudtest-6358/databases/sqlcrudtest-1088?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTk5ODUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC02MzU4L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC0xMDg4P2FwaS12ZXJzaW9uPTIwMTktMDYtMDEtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "46497a8a-c830-4595-aca8-bca9766bac15" + "c8b15d84-167a-4f58-9a9d-458bce1d8ca4" ], "accept-language": [ "en-US" @@ -1531,7 +1531,7 @@ "FxVersion/4.6.26614.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.2.0" ] }, "ResponseHeaders": { @@ -1539,7 +1539,7 @@ "no-cache" ], "Date": [ - "Thu, 03 Sep 2020 19:49:51 GMT" + "Mon, 07 Sep 2020 02:56:25 GMT" ], "Pragma": [ "no-cache" @@ -1548,16 +1548,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "13af7c98-7f25-47be-bd0c-18d724207af9" + "a8704d1b-fee2-48d4-8639-a7f398203da8" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11964" + "11983" ], "x-ms-correlation-request-id": [ - "af17d5e6-3fe6-45f5-9d9c-dad88e6a5e11" + "638b6e4a-f2fc-48bb-932e-f972eaf499bf" ], "x-ms-routing-request-id": [ - "BRAZILUS:20200903T194951Z:af17d5e6-3fe6-45f5-9d9c-dad88e6a5e11" + "BRAZILUS:20200907T025625Z:638b6e4a-f2fc-48bb-932e-f972eaf499bf" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1575,17 +1575,17 @@ "-1" ] }, - "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"GP_Gen5\",\r\n \"tier\": \"GeneralPurpose\",\r\n \"family\": \"Gen5\",\r\n \"capacity\": 2\r\n },\r\n \"kind\": \"v12.0,user,vcore\",\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": 34359738368,\r\n \"status\": \"Online\",\r\n \"databaseId\": \"db7590f9-8677-41ab-8667-87589338a140\",\r\n \"creationDate\": \"2020-09-03T19:49:38.82Z\",\r\n \"currentServiceObjectiveName\": \"GP_Gen5_2\",\r\n \"requestedServiceObjectiveName\": \"GP_Gen5_2\",\r\n \"defaultSecondaryLocation\": \"westus2\",\r\n \"catalogCollation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"zoneRedundant\": false,\r\n \"licenseType\": \"LicenseIncluded\",\r\n \"maxLogSizeBytes\": 10307502080,\r\n \"earliestRestoreDate\": \"2020-09-03T20:19:38.82Z\",\r\n \"readScale\": \"Disabled\",\r\n \"readReplicaCount\": 0,\r\n \"currentSku\": {\r\n \"name\": \"GP_Gen5\",\r\n \"tier\": \"GeneralPurpose\",\r\n \"family\": \"Gen5\",\r\n \"capacity\": 2\r\n },\r\n \"storageAccountType\": \"GRS\"\r\n },\r\n \"location\": \"westcentralus\",\r\n \"id\": \"/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Sql/servers/sqlcrudtest-8696/databases/sqlcrudtest-9440\",\r\n \"name\": \"sqlcrudtest-9440\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"GP_Gen5\",\r\n \"tier\": \"GeneralPurpose\",\r\n \"family\": \"Gen5\",\r\n \"capacity\": 2\r\n },\r\n \"kind\": \"v12.0,user,vcore\",\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": 34359738368,\r\n \"status\": \"Online\",\r\n \"databaseId\": \"eb8cefb5-ba37-4183-b8c3-9686babc7084\",\r\n \"creationDate\": \"2020-09-07T02:56:14.72Z\",\r\n \"currentServiceObjectiveName\": \"GP_Gen5_2\",\r\n \"requestedServiceObjectiveName\": \"GP_Gen5_2\",\r\n \"defaultSecondaryLocation\": \"westus2\",\r\n \"catalogCollation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"zoneRedundant\": false,\r\n \"licenseType\": \"LicenseIncluded\",\r\n \"maxLogSizeBytes\": 10307502080,\r\n \"earliestRestoreDate\": \"2020-09-07T03:26:14.72Z\",\r\n \"readScale\": \"Disabled\",\r\n \"readReplicaCount\": 0,\r\n \"currentSku\": {\r\n \"name\": \"GP_Gen5\",\r\n \"tier\": \"GeneralPurpose\",\r\n \"family\": \"Gen5\",\r\n \"capacity\": 2\r\n },\r\n \"storageAccountType\": \"GRS\"\r\n },\r\n \"location\": \"westcentralus\",\r\n \"id\": \"/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-9985/providers/Microsoft.Sql/servers/sqlcrudtest-6358/databases/sqlcrudtest-1088\",\r\n \"name\": \"sqlcrudtest-1088\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Sql/servers/sqlcrudtest-8696/databases/sqlcrudtest-6275/export?api-version=2020-02-02-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczMTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC04Njk2L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC02Mjc1L2V4cG9ydD9hcGktdmVyc2lvbj0yMDIwLTAyLTAyLXByZXZpZXc=", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-9985/providers/Microsoft.Sql/servers/sqlcrudtest-6358/databases/sqlcrudtest-2890/export?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTk5ODUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC02MzU4L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC0yODkwL2V4cG9ydD9hcGktdmVyc2lvbj0yMDIwLTAyLTAyLXByZXZpZXc=", "RequestMethod": "POST", - "RequestBody": "{\r\n \"storageKeyType\": \"StorageAccessKey\",\r\n \"storageKey\": \"ZPMelgVaCQ+kNB1JHAO/hRWbaXRfH9/zUy6IHjXanuKhY/EcPWiz1TVp2s/9kAB1hJUN8x2A5QWtEvvxeUv6Lg==\",\r\n \"storageUri\": \"https://sqlcrudtest8107.blob.core.windows.net/container/sqlcrudtest-6275.bacpac\",\r\n \"administratorLogin\": \"dummylogin\",\r\n \"administratorLoginPassword\": \"Un53cuRE!\",\r\n \"authenticationType\": \"SQL\"\r\n}", + "RequestBody": "{\r\n \"storageKeyType\": \"StorageAccessKey\",\r\n \"storageKey\": \"1NQiYLbzy++Zkx8qbX9UFibnpx6WvbR2e5z04j9dJFOwijIbks6tGYLweP2KKDapaXevi6OnJXk0DkKzvOKY1w==\",\r\n \"storageUri\": \"https://sqlcrudtest3703.blob.core.windows.net/container/sqlcrudtest-2890.bacpac\",\r\n \"administratorLogin\": \"dummylogin\",\r\n \"administratorLoginPassword\": \"Un53cuRE!\",\r\n \"authenticationType\": \"SQL\"\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "e8cd1ba5-3c5c-4ff2-8a03-5b21516dda0f" + "ac3011d4-22f0-423f-86eb-7d63489a7229" ], "accept-language": [ "en-US" @@ -1594,7 +1594,7 @@ "FxVersion/4.6.26614.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.2.0" ], "Content-Type": [ "application/json; charset=utf-8" @@ -1608,13 +1608,13 @@ "no-cache" ], "Date": [ - "Thu, 03 Sep 2020 19:49:52 GMT" + "Mon, 07 Sep 2020 02:56:26 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportOperationResults/04b001c4-b057-4625-a69f-fc97ef4d255b-sqlcrudtest-8696?api-version=2020-02-02-preview" + "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportOperationResults/28fc8a9e-2f0b-44db-83ce-be71354f94ed-sqlcrudtest-6358?api-version=2020-02-02-preview" ], "Retry-After": [ "15" @@ -1623,19 +1623,19 @@ "Microsoft-HTTPAPI/2.0" ], "Azure-AsyncOperation": [ - "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/04b001c4-b057-4625-a69f-fc97ef4d255b-sqlcrudtest-8696?api-version=2020-02-02-preview" + "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/28fc8a9e-2f0b-44db-83ce-be71354f94ed-sqlcrudtest-6358?api-version=2020-02-02-preview" ], "x-ms-request-id": [ - "c5a827c0-957d-4d06-bb80-c4562c3bb7ff" + "867c4a87-3eed-461b-a70c-d44e8b5f270c" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1197" + "1199" ], "x-ms-correlation-request-id": [ - "48cdd245-0b65-4aaf-aef9-26807a3edccc" + "fd1a39ad-0c16-4249-821e-c49acfc42350" ], "x-ms-routing-request-id": [ - "BRAZILUS:20200903T194953Z:48cdd245-0b65-4aaf-aef9-26807a3edccc" + "BRAZILUS:20200907T025627Z:fd1a39ad-0c16-4249-821e-c49acfc42350" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1653,12 +1653,12 @@ "-1" ] }, - "ResponseBody": "{\r\n \"operation\": \"Export\",\r\n \"startTime\": \"2020-09-03T19:49:53.3506604Z\"\r\n}", + "ResponseBody": "{\r\n \"operation\": \"Export\",\r\n \"startTime\": \"2020-09-07T02:56:27.0632692Z\"\r\n}", "StatusCode": 202 }, { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/04b001c4-b057-4625-a69f-fc97ef4d255b-sqlcrudtest-8696?api-version=2020-02-02-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vMDRiMDAxYzQtYjA1Ny00NjI1LWE2OWYtZmM5N2VmNGQyNTViLXNxbGNydWR0ZXN0LTg2OTY/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/28fc8a9e-2f0b-44db-83ce-be71354f94ed-sqlcrudtest-6358?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vMjhmYzhhOWUtMmYwYi00NGRiLTgzY2UtYmU3MTM1NGY5NGVkLXNxbGNydWR0ZXN0LTYzNTg/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -1666,7 +1666,7 @@ "FxVersion/4.6.26614.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.2.0" ] }, "ResponseHeaders": { @@ -1674,7 +1674,7 @@ "no-cache" ], "Date": [ - "Thu, 03 Sep 2020 19:50:10 GMT" + "Mon, 07 Sep 2020 02:56:42 GMT" ], "Pragma": [ "no-cache" @@ -1686,16 +1686,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "08943fd7-1e79-4dc6-a379-998398d77e51" + "f29dbd1c-598a-46e3-a907-1d3bccb770c1" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11963" + "11982" ], "x-ms-correlation-request-id": [ - "a571f6d8-c97e-4623-a621-cee7656b52f8" + "bbabacac-49a7-4e29-a974-1ece6f437951" ], "x-ms-routing-request-id": [ - "BRAZILUS:20200903T195010Z:a571f6d8-c97e-4623-a621-cee7656b52f8" + "BRAZILUS:20200907T025642Z:bbabacac-49a7-4e29-a974-1ece6f437951" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1713,12 +1713,12 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"04b001c4-b057-4625-a69f-fc97ef4d255b\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T19:49:52Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"28fc8a9e-2f0b-44db-83ce-be71354f94ed\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T02:56:26Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/04b001c4-b057-4625-a69f-fc97ef4d255b-sqlcrudtest-8696?api-version=2020-02-02-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vMDRiMDAxYzQtYjA1Ny00NjI1LWE2OWYtZmM5N2VmNGQyNTViLXNxbGNydWR0ZXN0LTg2OTY/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/28fc8a9e-2f0b-44db-83ce-be71354f94ed-sqlcrudtest-6358?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vMjhmYzhhOWUtMmYwYi00NGRiLTgzY2UtYmU3MTM1NGY5NGVkLXNxbGNydWR0ZXN0LTYzNTg/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -1726,7 +1726,7 @@ "FxVersion/4.6.26614.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.2.0" ] }, "ResponseHeaders": { @@ -1734,7 +1734,7 @@ "no-cache" ], "Date": [ - "Thu, 03 Sep 2020 19:50:24 GMT" + "Mon, 07 Sep 2020 02:56:57 GMT" ], "Pragma": [ "no-cache" @@ -1746,16 +1746,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "b3dd9abe-1bbd-4c6c-acc8-7128bc4c8c83" + "8107ec51-c6ce-4b17-b880-97a7cc77778f" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11962" + "11981" ], "x-ms-correlation-request-id": [ - "643d4e8f-b362-4b0c-90e9-78574d03f0a4" + "9fa1329b-0fcb-48fa-94f3-7627cc9617f3" ], "x-ms-routing-request-id": [ - "BRAZILUS:20200903T195025Z:643d4e8f-b362-4b0c-90e9-78574d03f0a4" + "BRAZILUS:20200907T025657Z:9fa1329b-0fcb-48fa-94f3-7627cc9617f3" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1773,12 +1773,12 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"04b001c4-b057-4625-a69f-fc97ef4d255b\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T19:49:52Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"28fc8a9e-2f0b-44db-83ce-be71354f94ed\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T02:56:26Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/04b001c4-b057-4625-a69f-fc97ef4d255b-sqlcrudtest-8696?api-version=2020-02-02-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vMDRiMDAxYzQtYjA1Ny00NjI1LWE2OWYtZmM5N2VmNGQyNTViLXNxbGNydWR0ZXN0LTg2OTY/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/28fc8a9e-2f0b-44db-83ce-be71354f94ed-sqlcrudtest-6358?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vMjhmYzhhOWUtMmYwYi00NGRiLTgzY2UtYmU3MTM1NGY5NGVkLXNxbGNydWR0ZXN0LTYzNTg/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -1786,7 +1786,7 @@ "FxVersion/4.6.26614.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.2.0" ] }, "ResponseHeaders": { @@ -1794,7 +1794,7 @@ "no-cache" ], "Date": [ - "Thu, 03 Sep 2020 19:50:40 GMT" + "Mon, 07 Sep 2020 02:57:12 GMT" ], "Pragma": [ "no-cache" @@ -1806,16 +1806,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "18e9cf39-5d5d-4f01-b66d-7b99a355bc96" + "ef1900ed-8d50-4ab5-aac0-5d47fce37f42" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11961" + "11980" ], "x-ms-correlation-request-id": [ - "a2a78021-d22e-457e-a901-64ce953f1f90" + "6e2744d6-fa4e-4311-a72b-0df18109cc7c" ], "x-ms-routing-request-id": [ - "BRAZILUS:20200903T195040Z:a2a78021-d22e-457e-a901-64ce953f1f90" + "BRAZILUS:20200907T025712Z:6e2744d6-fa4e-4311-a72b-0df18109cc7c" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1833,12 +1833,12 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"04b001c4-b057-4625-a69f-fc97ef4d255b\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T19:49:52Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"28fc8a9e-2f0b-44db-83ce-be71354f94ed\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T02:56:26Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/04b001c4-b057-4625-a69f-fc97ef4d255b-sqlcrudtest-8696?api-version=2020-02-02-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vMDRiMDAxYzQtYjA1Ny00NjI1LWE2OWYtZmM5N2VmNGQyNTViLXNxbGNydWR0ZXN0LTg2OTY/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/28fc8a9e-2f0b-44db-83ce-be71354f94ed-sqlcrudtest-6358?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vMjhmYzhhOWUtMmYwYi00NGRiLTgzY2UtYmU3MTM1NGY5NGVkLXNxbGNydWR0ZXN0LTYzNTg/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -1846,7 +1846,7 @@ "FxVersion/4.6.26614.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.2.0" ] }, "ResponseHeaders": { @@ -1854,7 +1854,7 @@ "no-cache" ], "Date": [ - "Thu, 03 Sep 2020 19:50:55 GMT" + "Mon, 07 Sep 2020 02:57:28 GMT" ], "Pragma": [ "no-cache" @@ -1866,16 +1866,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "3e928851-443c-4c10-90ab-e2c6dd92243a" + "7c29ac5d-0fa5-46c1-9a26-ae5730eac4ce" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11960" + "11979" ], "x-ms-correlation-request-id": [ - "3ee5d140-0639-4aa0-97ae-01fc09a60432" + "69600c8c-6ae3-4983-8284-6fe68505524f" ], "x-ms-routing-request-id": [ - "BRAZILUS:20200903T195056Z:3ee5d140-0639-4aa0-97ae-01fc09a60432" + "BRAZILUS:20200907T025728Z:69600c8c-6ae3-4983-8284-6fe68505524f" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1893,12 +1893,12 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"04b001c4-b057-4625-a69f-fc97ef4d255b\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T19:50:53Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"28fc8a9e-2f0b-44db-83ce-be71354f94ed\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T02:57:26Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/04b001c4-b057-4625-a69f-fc97ef4d255b-sqlcrudtest-8696?api-version=2020-02-02-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vMDRiMDAxYzQtYjA1Ny00NjI1LWE2OWYtZmM5N2VmNGQyNTViLXNxbGNydWR0ZXN0LTg2OTY/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/28fc8a9e-2f0b-44db-83ce-be71354f94ed-sqlcrudtest-6358?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vMjhmYzhhOWUtMmYwYi00NGRiLTgzY2UtYmU3MTM1NGY5NGVkLXNxbGNydWR0ZXN0LTYzNTg/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -1906,7 +1906,7 @@ "FxVersion/4.6.26614.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.2.0" ] }, "ResponseHeaders": { @@ -1914,7 +1914,7 @@ "no-cache" ], "Date": [ - "Thu, 03 Sep 2020 19:51:10 GMT" + "Mon, 07 Sep 2020 02:57:42 GMT" ], "Pragma": [ "no-cache" @@ -1926,16 +1926,76 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "839d10b0-1135-4d39-9036-17785e694ff2" + "61dc9dd9-68bc-4d3b-bd8a-ad373030dbd3" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11959" + "11978" ], "x-ms-correlation-request-id": [ - "8f2a8fd4-5305-4dd3-8566-3985c79a3050" + "70ac447a-230f-4d2e-b487-11a885951037" ], "x-ms-routing-request-id": [ - "BRAZILUS:20200903T195111Z:8f2a8fd4-5305-4dd3-8566-3985c79a3050" + "BRAZILUS:20200907T025743Z:70ac447a-230f-4d2e-b487-11a885951037" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "104" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"28fc8a9e-2f0b-44db-83ce-be71354f94ed\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T02:57:26Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/28fc8a9e-2f0b-44db-83ce-be71354f94ed-sqlcrudtest-6358?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vMjhmYzhhOWUtMmYwYi00NGRiLTgzY2UtYmU3MTM1NGY5NGVkLXNxbGNydWR0ZXN0LTYzNTg/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.2.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 02:57:58 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "fbdc64e7-0349-43f8-b62f-ea30a34dd48e" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11977" + ], + "x-ms-correlation-request-id": [ + "3aa16fec-0285-4c57-8b41-57979733c46b" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T025758Z:3aa16fec-0285-4c57-8b41-57979733c46b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1953,12 +2013,12 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"04b001c4-b057-4625-a69f-fc97ef4d255b\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2020-09-03T19:51:05Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"28fc8a9e-2f0b-44db-83ce-be71354f94ed\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2020-09-07T02:57:49Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportOperationResults/04b001c4-b057-4625-a69f-fc97ef4d255b-sqlcrudtest-8696?api-version=2020-02-02-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydE9wZXJhdGlvblJlc3VsdHMvMDRiMDAxYzQtYjA1Ny00NjI1LWE2OWYtZmM5N2VmNGQyNTViLXNxbGNydWR0ZXN0LTg2OTY/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportOperationResults/28fc8a9e-2f0b-44db-83ce-be71354f94ed-sqlcrudtest-6358?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydE9wZXJhdGlvblJlc3VsdHMvMjhmYzhhOWUtMmYwYi00NGRiLTgzY2UtYmU3MTM1NGY5NGVkLXNxbGNydWR0ZXN0LTYzNTg/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -1966,7 +2026,7 @@ "FxVersion/4.6.26614.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.2.0" ] }, "ResponseHeaders": { @@ -1974,7 +2034,7 @@ "no-cache" ], "Date": [ - "Thu, 03 Sep 2020 19:51:10 GMT" + "Mon, 07 Sep 2020 02:57:58 GMT" ], "Pragma": [ "no-cache" @@ -1983,16 +2043,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "0021a2d0-c723-493c-9067-a0a5f531bb37" + "3c0c5693-7f1e-415b-9f34-709ddd9fff6a" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11958" + "11976" ], "x-ms-correlation-request-id": [ - "85ddb0db-131a-479c-b9a2-8d102ce0da07" + "e7e54b10-03c4-40fe-acec-3846e5a6d001" ], "x-ms-routing-request-id": [ - "BRAZILUS:20200903T195111Z:85ddb0db-131a-479c-b9a2-8d102ce0da07" + "BRAZILUS:20200907T025758Z:e7e54b10-03c4-40fe-acec-3846e5a6d001" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -2010,17 +2070,17 @@ "-1" ] }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"requestId\": \"04b001c4-b057-4625-a69f-fc97ef4d255b\",\r\n \"requestType\": \"ExportDatabase\",\r\n \"queuedTime\": \"9/3/2020 7:49:52 PM\",\r\n \"lastModifiedTime\": \"9/3/2020 7:51:05 PM\",\r\n \"blobUri\": \"https://sqlcrudtest8107.blob.core.windows.net/container/sqlcrudtest-6275.bacpac\",\r\n \"serverName\": \"sqlcrudtest-8696\",\r\n \"databaseName\": \"sqlcrudtest-6275\",\r\n \"status\": \"Completed\",\r\n \"privateEndpointConnections\": []\r\n },\r\n \"id\": \"04b001c4-b057-4625-a69f-fc97ef4d255b\",\r\n \"name\": \"04b001c4-b057-4625-a69f-fc97ef4d255b\",\r\n \"type\": \"Microsoft.Sql/servers/databases/importExportOperationResults\"\r\n}", + "ResponseBody": "{\r\n \"properties\": {\r\n \"requestId\": \"28fc8a9e-2f0b-44db-83ce-be71354f94ed\",\r\n \"requestType\": \"ExportDatabase\",\r\n \"queuedTime\": \"9/7/2020 2:56:26 AM\",\r\n \"lastModifiedTime\": \"9/7/2020 2:57:49 AM\",\r\n \"blobUri\": \"https://sqlcrudtest3703.blob.core.windows.net/container/sqlcrudtest-2890.bacpac\",\r\n \"serverName\": \"sqlcrudtest-6358\",\r\n \"databaseName\": \"sqlcrudtest-2890\",\r\n \"status\": \"Completed\",\r\n \"privateEndpointConnections\": []\r\n },\r\n \"id\": \"28fc8a9e-2f0b-44db-83ce-be71354f94ed\",\r\n \"name\": \"28fc8a9e-2f0b-44db-83ce-be71354f94ed\",\r\n \"type\": \"Microsoft.Sql/servers/databases/importExportOperationResults\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-7317/providers/Microsoft.Sql/servers/sqlcrudtest-8696/databases/sqlcrudtest-9440/import?api-version=2020-02-02-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczMTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC04Njk2L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC05NDQwL2ltcG9ydD9hcGktdmVyc2lvbj0yMDIwLTAyLTAyLXByZXZpZXc=", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-9985/providers/Microsoft.Sql/servers/sqlcrudtest-6358/databases/sqlcrudtest-1088/import?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTk5ODUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC02MzU4L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC0xMDg4L2ltcG9ydD9hcGktdmVyc2lvbj0yMDIwLTAyLTAyLXByZXZpZXc=", "RequestMethod": "POST", - "RequestBody": "{\r\n \"storageKeyType\": \"StorageAccessKey\",\r\n \"storageKey\": \"ZPMelgVaCQ+kNB1JHAO/hRWbaXRfH9/zUy6IHjXanuKhY/EcPWiz1TVp2s/9kAB1hJUN8x2A5QWtEvvxeUv6Lg==\",\r\n \"storageUri\": \"https://sqlcrudtest8107.blob.core.windows.net/container/sqlcrudtest-6275.bacpac\",\r\n \"administratorLogin\": \"dummylogin\",\r\n \"administratorLoginPassword\": \"Un53cuRE!\",\r\n \"authenticationType\": \"SQL\"\r\n}", + "RequestBody": "{\r\n \"storageKeyType\": \"StorageAccessKey\",\r\n \"storageKey\": \"1NQiYLbzy++Zkx8qbX9UFibnpx6WvbR2e5z04j9dJFOwijIbks6tGYLweP2KKDapaXevi6OnJXk0DkKzvOKY1w==\",\r\n \"storageUri\": \"https://sqlcrudtest3703.blob.core.windows.net/container/sqlcrudtest-2890.bacpac\",\r\n \"administratorLogin\": \"dummylogin\",\r\n \"administratorLoginPassword\": \"Un53cuRE!\",\r\n \"authenticationType\": \"SQL\"\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "5cf743b5-b721-43f1-9cd0-a79439cde0a1" + "6e61e34d-9a37-4db4-8007-34cab9bd7206" ], "accept-language": [ "en-US" @@ -2029,7 +2089,7 @@ "FxVersion/4.6.26614.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.2.0" ], "Content-Type": [ "application/json; charset=utf-8" @@ -2043,13 +2103,13 @@ "no-cache" ], "Date": [ - "Thu, 03 Sep 2020 19:51:11 GMT" + "Mon, 07 Sep 2020 02:57:59 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportOperationResults/75746ddf-2544-4bba-9d43-78eb5ca5d6e2-sqlcrudtest-8696?api-version=2020-02-02-preview" + "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportOperationResults/12317b1d-697b-4a07-970b-ef4f2798c161-sqlcrudtest-6358?api-version=2020-02-02-preview" ], "Retry-After": [ "15" @@ -2058,19 +2118,19 @@ "Microsoft-HTTPAPI/2.0" ], "Azure-AsyncOperation": [ - "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/75746ddf-2544-4bba-9d43-78eb5ca5d6e2-sqlcrudtest-8696?api-version=2020-02-02-preview" + "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/12317b1d-697b-4a07-970b-ef4f2798c161-sqlcrudtest-6358?api-version=2020-02-02-preview" ], "x-ms-request-id": [ - "c8c6dba8-f959-41f3-bf55-a94c790f38a5" + "990b7047-8439-43db-a05d-fc12eed50a3d" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1196" + "1198" ], "x-ms-correlation-request-id": [ - "7513af2f-fd6b-49ae-9315-5b568be843d7" + "8e4d25be-5861-4ddc-85cc-290e1b8e05c9" ], "x-ms-routing-request-id": [ - "BRAZILUS:20200903T195112Z:7513af2f-fd6b-49ae-9315-5b568be843d7" + "BRAZILUS:20200907T025759Z:8e4d25be-5861-4ddc-85cc-290e1b8e05c9" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -2088,12 +2148,12 @@ "-1" ] }, - "ResponseBody": "{\r\n \"operation\": \"Import\",\r\n \"startTime\": \"2020-09-03T19:51:12.5385611Z\"\r\n}", + "ResponseBody": "{\r\n \"operation\": \"Import\",\r\n \"startTime\": \"2020-09-07T02:57:59.8129334Z\"\r\n}", "StatusCode": 202 }, { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/75746ddf-2544-4bba-9d43-78eb5ca5d6e2-sqlcrudtest-8696?api-version=2020-02-02-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vNzU3NDZkZGYtMjU0NC00YmJhLTlkNDMtNzhlYjVjYTVkNmUyLXNxbGNydWR0ZXN0LTg2OTY/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/12317b1d-697b-4a07-970b-ef4f2798c161-sqlcrudtest-6358?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vMTIzMTdiMWQtNjk3Yi00YTA3LTk3MGItZWY0ZjI3OThjMTYxLXNxbGNydWR0ZXN0LTYzNTg/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -2101,7 +2161,7 @@ "FxVersion/4.6.26614.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.2.0" ] }, "ResponseHeaders": { @@ -2109,7 +2169,7 @@ "no-cache" ], "Date": [ - "Thu, 03 Sep 2020 19:51:27 GMT" + "Mon, 07 Sep 2020 02:58:14 GMT" ], "Pragma": [ "no-cache" @@ -2121,16 +2181,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "51fb6293-94b6-4058-9b11-a9280e475a07" + "122f70c2-f380-4f83-b87f-f2d21173250e" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11957" + "11975" ], "x-ms-correlation-request-id": [ - "c9112a76-1b37-4e09-a0a4-a3e3356f9ee7" + "b9f05bbd-5da6-4ee3-917b-1d9eb44065de" ], "x-ms-routing-request-id": [ - "BRAZILUS:20200903T195127Z:c9112a76-1b37-4e09-a0a4-a3e3356f9ee7" + "BRAZILUS:20200907T025815Z:b9f05bbd-5da6-4ee3-917b-1d9eb44065de" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -2148,12 +2208,12 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"75746ddf-2544-4bba-9d43-78eb5ca5d6e2\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T19:51:11Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"12317b1d-697b-4a07-970b-ef4f2798c161\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T02:57:59Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/75746ddf-2544-4bba-9d43-78eb5ca5d6e2-sqlcrudtest-8696?api-version=2020-02-02-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vNzU3NDZkZGYtMjU0NC00YmJhLTlkNDMtNzhlYjVjYTVkNmUyLXNxbGNydWR0ZXN0LTg2OTY/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/12317b1d-697b-4a07-970b-ef4f2798c161-sqlcrudtest-6358?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vMTIzMTdiMWQtNjk3Yi00YTA3LTk3MGItZWY0ZjI3OThjMTYxLXNxbGNydWR0ZXN0LTYzNTg/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -2161,7 +2221,7 @@ "FxVersion/4.6.26614.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.2.0" ] }, "ResponseHeaders": { @@ -2169,7 +2229,7 @@ "no-cache" ], "Date": [ - "Thu, 03 Sep 2020 19:51:42 GMT" + "Mon, 07 Sep 2020 02:58:29 GMT" ], "Pragma": [ "no-cache" @@ -2181,16 +2241,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "7f6a9d2f-621f-4076-b503-60e66aa97d9f" + "8b206f90-99e2-44aa-b443-5e8275b259ca" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11956" + "11974" ], "x-ms-correlation-request-id": [ - "b58a5e59-0bca-4557-80fe-1ff9a8c0fbc0" + "7e14a86f-acf2-4393-ba79-f744336470ee" ], "x-ms-routing-request-id": [ - "BRAZILUS:20200903T195142Z:b58a5e59-0bca-4557-80fe-1ff9a8c0fbc0" + "BRAZILUS:20200907T025830Z:7e14a86f-acf2-4393-ba79-f744336470ee" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -2208,12 +2268,12 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"75746ddf-2544-4bba-9d43-78eb5ca5d6e2\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T19:51:11Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"12317b1d-697b-4a07-970b-ef4f2798c161\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T02:57:59Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/75746ddf-2544-4bba-9d43-78eb5ca5d6e2-sqlcrudtest-8696?api-version=2020-02-02-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vNzU3NDZkZGYtMjU0NC00YmJhLTlkNDMtNzhlYjVjYTVkNmUyLXNxbGNydWR0ZXN0LTg2OTY/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/12317b1d-697b-4a07-970b-ef4f2798c161-sqlcrudtest-6358?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vMTIzMTdiMWQtNjk3Yi00YTA3LTk3MGItZWY0ZjI3OThjMTYxLXNxbGNydWR0ZXN0LTYzNTg/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -2221,7 +2281,7 @@ "FxVersion/4.6.26614.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.2.0" ] }, "ResponseHeaders": { @@ -2229,7 +2289,7 @@ "no-cache" ], "Date": [ - "Thu, 03 Sep 2020 19:51:57 GMT" + "Mon, 07 Sep 2020 02:58:45 GMT" ], "Pragma": [ "no-cache" @@ -2241,16 +2301,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "f0424faf-5b03-45d4-9e92-e130d06e2607" + "a80e84eb-f142-4ea3-ba32-7814c86b99ca" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11955" + "11973" ], "x-ms-correlation-request-id": [ - "184b40dc-fd22-4d26-ba64-6f32ae700189" + "71fa73dd-6c67-4e2a-aaf3-a06b29843224" ], "x-ms-routing-request-id": [ - "BRAZILUS:20200903T195158Z:184b40dc-fd22-4d26-ba64-6f32ae700189" + "BRAZILUS:20200907T025845Z:71fa73dd-6c67-4e2a-aaf3-a06b29843224" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -2268,12 +2328,12 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"75746ddf-2544-4bba-9d43-78eb5ca5d6e2\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T19:51:11Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"12317b1d-697b-4a07-970b-ef4f2798c161\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T02:57:59Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/75746ddf-2544-4bba-9d43-78eb5ca5d6e2-sqlcrudtest-8696?api-version=2020-02-02-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vNzU3NDZkZGYtMjU0NC00YmJhLTlkNDMtNzhlYjVjYTVkNmUyLXNxbGNydWR0ZXN0LTg2OTY/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/12317b1d-697b-4a07-970b-ef4f2798c161-sqlcrudtest-6358?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vMTIzMTdiMWQtNjk3Yi00YTA3LTk3MGItZWY0ZjI3OThjMTYxLXNxbGNydWR0ZXN0LTYzNTg/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -2281,7 +2341,7 @@ "FxVersion/4.6.26614.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.2.0" ] }, "ResponseHeaders": { @@ -2289,7 +2349,7 @@ "no-cache" ], "Date": [ - "Thu, 03 Sep 2020 19:52:12 GMT" + "Mon, 07 Sep 2020 02:59:00 GMT" ], "Pragma": [ "no-cache" @@ -2301,16 +2361,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "e35cd2fe-3113-4476-8e79-1a82ad369e06" + "d73e937b-ba3b-4f23-87b0-19d1704d92be" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11954" + "11972" ], "x-ms-correlation-request-id": [ - "489aeb3e-c8f3-45fb-8f28-b4d37dedb5bf" + "ff925df7-9537-4686-8bef-bc7986517e21" ], "x-ms-routing-request-id": [ - "BRAZILUS:20200903T195213Z:489aeb3e-c8f3-45fb-8f28-b4d37dedb5bf" + "BRAZILUS:20200907T025900Z:ff925df7-9537-4686-8bef-bc7986517e21" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -2328,12 +2388,12 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"75746ddf-2544-4bba-9d43-78eb5ca5d6e2\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T19:52:11Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"12317b1d-697b-4a07-970b-ef4f2798c161\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T02:58:59Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/75746ddf-2544-4bba-9d43-78eb5ca5d6e2-sqlcrudtest-8696?api-version=2020-02-02-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vNzU3NDZkZGYtMjU0NC00YmJhLTlkNDMtNzhlYjVjYTVkNmUyLXNxbGNydWR0ZXN0LTg2OTY/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/12317b1d-697b-4a07-970b-ef4f2798c161-sqlcrudtest-6358?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vMTIzMTdiMWQtNjk3Yi00YTA3LTk3MGItZWY0ZjI3OThjMTYxLXNxbGNydWR0ZXN0LTYzNTg/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -2341,7 +2401,7 @@ "FxVersion/4.6.26614.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.2.0" ] }, "ResponseHeaders": { @@ -2349,7 +2409,7 @@ "no-cache" ], "Date": [ - "Thu, 03 Sep 2020 19:52:27 GMT" + "Mon, 07 Sep 2020 02:59:15 GMT" ], "Pragma": [ "no-cache" @@ -2361,16 +2421,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "747143f8-6772-48c2-8491-fff2a3d4ebb7" + "41597dae-ba98-4beb-a11a-c37886891ba8" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11953" + "11971" ], "x-ms-correlation-request-id": [ - "083c5497-9848-4698-9539-8df0541066d2" + "28f8b920-7339-429e-91a2-487ec46aac50" ], "x-ms-routing-request-id": [ - "BRAZILUS:20200903T195228Z:083c5497-9848-4698-9539-8df0541066d2" + "BRAZILUS:20200907T025915Z:28f8b920-7339-429e-91a2-487ec46aac50" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -2388,12 +2448,12 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"75746ddf-2544-4bba-9d43-78eb5ca5d6e2\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2020-09-03T19:52:24Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"12317b1d-697b-4a07-970b-ef4f2798c161\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2020-09-07T02:59:11Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportOperationResults/75746ddf-2544-4bba-9d43-78eb5ca5d6e2-sqlcrudtest-8696?api-version=2020-02-02-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydE9wZXJhdGlvblJlc3VsdHMvNzU3NDZkZGYtMjU0NC00YmJhLTlkNDMtNzhlYjVjYTVkNmUyLXNxbGNydWR0ZXN0LTg2OTY/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportOperationResults/12317b1d-697b-4a07-970b-ef4f2798c161-sqlcrudtest-6358?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydE9wZXJhdGlvblJlc3VsdHMvMTIzMTdiMWQtNjk3Yi00YTA3LTk3MGItZWY0ZjI3OThjMTYxLXNxbGNydWR0ZXN0LTYzNTg/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -2401,7 +2461,7 @@ "FxVersion/4.6.26614.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.2.0" ] }, "ResponseHeaders": { @@ -2409,7 +2469,7 @@ "no-cache" ], "Date": [ - "Thu, 03 Sep 2020 19:52:27 GMT" + "Mon, 07 Sep 2020 02:59:15 GMT" ], "Pragma": [ "no-cache" @@ -2418,16 +2478,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "a38aa245-bcc6-4909-b112-a11ce3d8856b" + "112f384d-a53f-447a-9503-fff3c6839d55" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11952" + "11970" ], "x-ms-correlation-request-id": [ - "37fac928-66b9-4e3d-a49d-b3e8e30e0acb" + "70c7627c-25de-4866-9617-efacff00feb8" ], "x-ms-routing-request-id": [ - "BRAZILUS:20200903T195228Z:37fac928-66b9-4e3d-a49d-b3e8e30e0acb" + "BRAZILUS:20200907T025915Z:70c7627c-25de-4866-9617-efacff00feb8" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -2445,17 +2505,17 @@ "-1" ] }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"requestId\": \"75746ddf-2544-4bba-9d43-78eb5ca5d6e2\",\r\n \"requestType\": \"ImportToExistingDatabase\",\r\n \"queuedTime\": \"9/3/2020 7:51:11 PM\",\r\n \"lastModifiedTime\": \"9/3/2020 7:52:24 PM\",\r\n \"blobUri\": \"https://sqlcrudtest8107.blob.core.windows.net/container/sqlcrudtest-6275.bacpac\",\r\n \"serverName\": \"sqlcrudtest-8696\",\r\n \"databaseName\": \"sqlcrudtest-9440\",\r\n \"status\": \"Completed\",\r\n \"privateEndpointConnections\": []\r\n },\r\n \"id\": \"75746ddf-2544-4bba-9d43-78eb5ca5d6e2\",\r\n \"name\": \"75746ddf-2544-4bba-9d43-78eb5ca5d6e2\",\r\n \"type\": \"Microsoft.Sql/servers/databases/importExportOperationResults\"\r\n}", + "ResponseBody": "{\r\n \"properties\": {\r\n \"requestId\": \"12317b1d-697b-4a07-970b-ef4f2798c161\",\r\n \"requestType\": \"ImportToExistingDatabase\",\r\n \"queuedTime\": \"9/7/2020 2:57:58 AM\",\r\n \"lastModifiedTime\": \"9/7/2020 2:59:11 AM\",\r\n \"blobUri\": \"https://sqlcrudtest3703.blob.core.windows.net/container/sqlcrudtest-2890.bacpac\",\r\n \"serverName\": \"sqlcrudtest-6358\",\r\n \"databaseName\": \"sqlcrudtest-1088\",\r\n \"status\": \"Completed\",\r\n \"privateEndpointConnections\": []\r\n },\r\n \"id\": \"12317b1d-697b-4a07-970b-ef4f2798c161\",\r\n \"name\": \"12317b1d-697b-4a07-970b-ef4f2798c161\",\r\n \"type\": \"Microsoft.Sql/servers/databases/importExportOperationResults\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourcegroups/sqlcrudtest-7317?api-version=2017-05-10", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTczMTc/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourcegroups/sqlcrudtest-9985?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTk5ODU/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "1a5cb181-3260-49fb-b230-e1720645a209" + "79162562-361c-4bb8-970c-62e4c20ae476" ], "accept-language": [ "en-US" @@ -2472,28 +2532,28 @@ "no-cache" ], "Date": [ - "Thu, 03 Sep 2020 19:52:28 GMT" + "Mon, 07 Sep 2020 02:59:16 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDczMTctV0VTVENFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoid2VzdGNlbnRyYWx1cyJ9?api-version=2017-05-10" + "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDk5ODUtV0VTVENFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoid2VzdGNlbnRyYWx1cyJ9?api-version=2017-05-10" ], "Retry-After": [ "15" ], "x-ms-ratelimit-remaining-subscription-deletes": [ - "14996" + "14999" ], "x-ms-request-id": [ - "06215777-378c-4b5d-aede-e13673fc161d" + "497117a1-6f6f-4c53-8298-a75b0c0075dc" ], "x-ms-correlation-request-id": [ - "06215777-378c-4b5d-aede-e13673fc161d" + "497117a1-6f6f-4c53-8298-a75b0c0075dc" ], "x-ms-routing-request-id": [ - "BRAZILUS:20200903T195229Z:06215777-378c-4b5d-aede-e13673fc161d" + "BRAZILUS:20200907T025917Z:497117a1-6f6f-4c53-8298-a75b0c0075dc" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -2514,19 +2574,16 @@ ], "Names": { "CreateResourceGroup": [ - "sqlcrudtest-7317" + "sqlcrudtest-9985" ], "CreateServer": [ - "sqlcrudtest-8696" - ], - "CreateStorageContainer": [ - "sqlcrudtest8107" + "sqlcrudtest-6358" ], "TestImportExport": [ - "sqlcrudtest-6275", - "sqlcrudtest-9440", - "sqlcrudstorage5937", - "sqlcrudtest-9835" + "sqlcrudtest3703", + "sqlcrudtest-2890", + "sqlcrudtest-1088", + "sqlcrudtest-5354" ] }, "Variables": { diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/tests/SessionRecords/ImportExportScenarioTests/TestImportNewDatabase.json b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/tests/SessionRecords/ImportExportScenarioTests/TestImportNewDatabase.json index a172de485e40..d010876c400e 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/tests/SessionRecords/ImportExportScenarioTests/TestImportNewDatabase.json +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/tests/SessionRecords/ImportExportScenarioTests/TestImportNewDatabase.json @@ -1,13 +1,13 @@ { "Entries": [ { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourcegroups/sqlcrudtest-9508?api-version=2017-05-10", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTk1MDg/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourcegroups/sqlcrudtest-8893?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTg4OTM/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"location\": \"West Central US\",\r\n \"tags\": {\r\n \"sqlcrudtest-9508\": \"2020-09-03 21:36:27Z\"\r\n }\r\n}", + "RequestBody": "{\r\n \"location\": \"West Central US\",\r\n \"tags\": {\r\n \"sqlcrudtest-8893\": \"2020-09-07 03:02:16Z\"\r\n }\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "b3ee1e31-64a0-48b0-8445-9bc9c4e5975f" + "9dcdcb46-0557-4a03-856f-1ab2d28cb3f7" ], "accept-language": [ "en-US" @@ -30,22 +30,22 @@ "no-cache" ], "Date": [ - "Thu, 03 Sep 2020 21:36:29 GMT" + "Mon, 07 Sep 2020 03:02:17 GMT" ], "Pragma": [ "no-cache" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1199" + "1195" ], "x-ms-request-id": [ - "ab55f953-3462-4154-a8d9-f0c1ea9704d4" + "0df73153-6e62-40b7-98a5-5a27803b045d" ], "x-ms-correlation-request-id": [ - "ab55f953-3462-4154-a8d9-f0c1ea9704d4" + "0df73153-6e62-40b7-98a5-5a27803b045d" ], "x-ms-routing-request-id": [ - "BRAZILUS:20200903T213629Z:ab55f953-3462-4154-a8d9-f0c1ea9704d4" + "BRAZILUS:20200907T030218Z:0df73153-6e62-40b7-98a5-5a27803b045d" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -63,17 +63,17 @@ "-1" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-9508\",\r\n \"name\": \"sqlcrudtest-9508\",\r\n \"location\": \"westcentralus\",\r\n \"tags\": {\r\n \"sqlcrudtest-9508\": \"2020-09-03 21:36:27Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-8893\",\r\n \"name\": \"sqlcrudtest-8893\",\r\n \"location\": \"westcentralus\",\r\n \"tags\": {\r\n \"sqlcrudtest-8893\": \"2020-09-07 03:02:16Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", "StatusCode": 201 }, { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-9508/providers/Microsoft.Sql/servers/sqlcrudtest-4858?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTk1MDgvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC00ODU4P2FwaS12ZXJzaW9uPTIwMTktMDYtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-8893/providers/Microsoft.Sql/servers/sqlcrudtest-6159?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg4OTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC02MTU5P2FwaS12ZXJzaW9uPTIwMTktMDYtMDEtcHJldmlldw==", "RequestMethod": "PUT", "RequestBody": "{\r\n \"properties\": {\r\n \"administratorLogin\": \"dummylogin\",\r\n \"administratorLoginPassword\": \"Un53cuRE!\",\r\n \"version\": \"12.0\"\r\n },\r\n \"location\": \"West Central US\",\r\n \"tags\": {}\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "beb50051-79a4-4913-a25a-cc0e0465b31a" + "43516757-25bb-47ef-9f72-d0252ab0ab78" ], "accept-language": [ "en-US" @@ -82,7 +82,7 @@ "FxVersion/4.6.26614.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.2.0" ], "Content-Type": [ "application/json; charset=utf-8" @@ -96,13 +96,13 @@ "no-cache" ], "Date": [ - "Thu, 03 Sep 2020 21:36:33 GMT" + "Mon, 07 Sep 2020 03:02:20 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-9508/providers/Microsoft.Sql/locations/westcentralus/serverOperationResults/025ca6cb-1066-4372-bc91-62427b99129c?api-version=2019-06-01-preview" + "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-8893/providers/Microsoft.Sql/locations/westcentralus/serverOperationResults/28089140-f289-43b7-b0cc-9512b5cb1a6e?api-version=2019-06-01-preview" ], "Retry-After": [ "1" @@ -111,19 +111,19 @@ "Microsoft-HTTPAPI/2.0" ], "Azure-AsyncOperation": [ - "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-9508/providers/Microsoft.Sql/locations/westcentralus/serverAzureAsyncOperation/025ca6cb-1066-4372-bc91-62427b99129c?api-version=2019-06-01-preview" + "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-8893/providers/Microsoft.Sql/locations/westcentralus/serverAzureAsyncOperation/28089140-f289-43b7-b0cc-9512b5cb1a6e?api-version=2019-06-01-preview" ], "x-ms-request-id": [ - "025ca6cb-1066-4372-bc91-62427b99129c" + "28089140-f289-43b7-b0cc-9512b5cb1a6e" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1199" ], "x-ms-correlation-request-id": [ - "e80a64cb-3a08-4df7-a739-6b6fc64938b5" + "9b2e0acb-2459-4e94-9256-406d4d650b23" ], "x-ms-routing-request-id": [ - "BRAZILUS:20200903T213634Z:e80a64cb-3a08-4df7-a739-6b6fc64938b5" + "BRAZILUS:20200907T030221Z:9b2e0acb-2459-4e94-9256-406d4d650b23" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -141,12 +141,12 @@ "-1" ] }, - "ResponseBody": "{\r\n \"operation\": \"UpsertLogicalServer\",\r\n \"startTime\": \"2020-09-03T21:36:33.18Z\"\r\n}", + "ResponseBody": "{\r\n \"operation\": \"UpsertLogicalServer\",\r\n \"startTime\": \"2020-09-07T03:02:21.47Z\"\r\n}", "StatusCode": 202 }, { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-9508/providers/Microsoft.Sql/locations/westcentralus/serverAzureAsyncOperation/025ca6cb-1066-4372-bc91-62427b99129c?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTk1MDgvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi8wMjVjYTZjYi0xMDY2LTQzNzItYmM5MS02MjQyN2I5OTEyOWM/YXBpLXZlcnNpb249MjAxOS0wNi0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-8893/providers/Microsoft.Sql/locations/westcentralus/serverAzureAsyncOperation/28089140-f289-43b7-b0cc-9512b5cb1a6e?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg4OTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi8yODA4OTE0MC1mMjg5LTQzYjctYjBjYy05NTEyYjVjYjFhNmU/YXBpLXZlcnNpb249MjAxOS0wNi0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -154,7 +154,7 @@ "FxVersion/4.6.26614.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.2.0" ] }, "ResponseHeaders": { @@ -162,7 +162,7 @@ "no-cache" ], "Date": [ - "Thu, 03 Sep 2020 21:36:34 GMT" + "Mon, 07 Sep 2020 03:02:22 GMT" ], "Pragma": [ "no-cache" @@ -174,16 +174,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "f49ca6b0-0af9-42b9-ade2-d43141987b25" + "fc007180-1472-4758-b0f7-973947cc038a" ], "x-ms-ratelimit-remaining-subscription-reads": [ "11999" ], "x-ms-correlation-request-id": [ - "f78beecf-3dea-4250-b8ab-dc69599f5585" + "4fb4c299-f612-41b3-9d9b-bcf8fd6fff4f" ], "x-ms-routing-request-id": [ - "BRAZILUS:20200903T213635Z:f78beecf-3dea-4250-b8ab-dc69599f5585" + "BRAZILUS:20200907T030222Z:4fb4c299-f612-41b3-9d9b-bcf8fd6fff4f" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -201,12 +201,12 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"025ca6cb-1066-4372-bc91-62427b99129c\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T21:36:33.18Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"28089140-f289-43b7-b0cc-9512b5cb1a6e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T03:02:21.47Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-9508/providers/Microsoft.Sql/locations/westcentralus/serverAzureAsyncOperation/025ca6cb-1066-4372-bc91-62427b99129c?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTk1MDgvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi8wMjVjYTZjYi0xMDY2LTQzNzItYmM5MS02MjQyN2I5OTEyOWM/YXBpLXZlcnNpb249MjAxOS0wNi0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-8893/providers/Microsoft.Sql/locations/westcentralus/serverAzureAsyncOperation/28089140-f289-43b7-b0cc-9512b5cb1a6e?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg4OTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi8yODA4OTE0MC1mMjg5LTQzYjctYjBjYy05NTEyYjVjYjFhNmU/YXBpLXZlcnNpb249MjAxOS0wNi0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -214,7 +214,7 @@ "FxVersion/4.6.26614.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.2.0" ] }, "ResponseHeaders": { @@ -222,7 +222,7 @@ "no-cache" ], "Date": [ - "Thu, 03 Sep 2020 21:36:35 GMT" + "Mon, 07 Sep 2020 03:02:23 GMT" ], "Pragma": [ "no-cache" @@ -234,16 +234,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "14cae04c-242b-443d-ab62-e7f56e552bb7" + "311cd087-088e-4eda-858f-c9ef25ff411f" ], "x-ms-ratelimit-remaining-subscription-reads": [ "11998" ], "x-ms-correlation-request-id": [ - "2d969ee3-1e5e-40c2-931c-8c0c2ab9de37" + "036e5f3a-ef8b-41d0-be8e-1ab5a510fbfb" ], "x-ms-routing-request-id": [ - "BRAZILUS:20200903T213636Z:2d969ee3-1e5e-40c2-931c-8c0c2ab9de37" + "BRAZILUS:20200907T030223Z:036e5f3a-ef8b-41d0-be8e-1ab5a510fbfb" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -261,12 +261,12 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"025ca6cb-1066-4372-bc91-62427b99129c\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T21:36:33.18Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"28089140-f289-43b7-b0cc-9512b5cb1a6e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T03:02:21.47Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-9508/providers/Microsoft.Sql/locations/westcentralus/serverAzureAsyncOperation/025ca6cb-1066-4372-bc91-62427b99129c?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTk1MDgvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi8wMjVjYTZjYi0xMDY2LTQzNzItYmM5MS02MjQyN2I5OTEyOWM/YXBpLXZlcnNpb249MjAxOS0wNi0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-8893/providers/Microsoft.Sql/locations/westcentralus/serverAzureAsyncOperation/28089140-f289-43b7-b0cc-9512b5cb1a6e?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg4OTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi8yODA4OTE0MC1mMjg5LTQzYjctYjBjYy05NTEyYjVjYjFhNmU/YXBpLXZlcnNpb249MjAxOS0wNi0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -274,7 +274,7 @@ "FxVersion/4.6.26614.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.2.0" ] }, "ResponseHeaders": { @@ -282,7 +282,7 @@ "no-cache" ], "Date": [ - "Thu, 03 Sep 2020 21:36:36 GMT" + "Mon, 07 Sep 2020 03:02:24 GMT" ], "Pragma": [ "no-cache" @@ -294,16 +294,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "f828d2bf-c6a2-478d-b9d4-39d636a208b3" + "c773da11-fcc1-4944-91ef-d93362325a65" ], "x-ms-ratelimit-remaining-subscription-reads": [ "11997" ], "x-ms-correlation-request-id": [ - "32df33ae-9eba-4bda-9cbf-5206a743cb45" + "f55d16c3-ffbb-4421-a844-fe4040040b93" ], "x-ms-routing-request-id": [ - "BRAZILUS:20200903T213637Z:32df33ae-9eba-4bda-9cbf-5206a743cb45" + "BRAZILUS:20200907T030225Z:f55d16c3-ffbb-4421-a844-fe4040040b93" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -321,12 +321,12 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"025ca6cb-1066-4372-bc91-62427b99129c\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T21:36:33.18Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"28089140-f289-43b7-b0cc-9512b5cb1a6e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T03:02:21.47Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-9508/providers/Microsoft.Sql/locations/westcentralus/serverAzureAsyncOperation/025ca6cb-1066-4372-bc91-62427b99129c?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTk1MDgvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi8wMjVjYTZjYi0xMDY2LTQzNzItYmM5MS02MjQyN2I5OTEyOWM/YXBpLXZlcnNpb249MjAxOS0wNi0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-8893/providers/Microsoft.Sql/locations/westcentralus/serverAzureAsyncOperation/28089140-f289-43b7-b0cc-9512b5cb1a6e?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg4OTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi8yODA4OTE0MC1mMjg5LTQzYjctYjBjYy05NTEyYjVjYjFhNmU/YXBpLXZlcnNpb249MjAxOS0wNi0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -334,7 +334,7 @@ "FxVersion/4.6.26614.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.2.0" ] }, "ResponseHeaders": { @@ -342,28 +342,28 @@ "no-cache" ], "Date": [ - "Thu, 03 Sep 2020 21:36:37 GMT" + "Mon, 07 Sep 2020 03:02:25 GMT" ], "Pragma": [ "no-cache" ], "Retry-After": [ - "20" + "1" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "0798ee9c-ae9b-405e-a49b-262c9b3f38c0" + "aebfc68d-7e90-49ba-ad9c-c1ab45d6b412" ], "x-ms-ratelimit-remaining-subscription-reads": [ "11996" ], "x-ms-correlation-request-id": [ - "8e74a5f5-ca5a-4253-a0ea-039e8cfd5760" + "36e1a338-737d-445f-84e1-7e777fbd913c" ], "x-ms-routing-request-id": [ - "BRAZILUS:20200903T213638Z:8e74a5f5-ca5a-4253-a0ea-039e8cfd5760" + "BRAZILUS:20200907T030226Z:36e1a338-737d-445f-84e1-7e777fbd913c" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -381,12 +381,12 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"025ca6cb-1066-4372-bc91-62427b99129c\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T21:36:33.18Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"28089140-f289-43b7-b0cc-9512b5cb1a6e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T03:02:21.47Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-9508/providers/Microsoft.Sql/locations/westcentralus/serverAzureAsyncOperation/025ca6cb-1066-4372-bc91-62427b99129c?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTk1MDgvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi8wMjVjYTZjYi0xMDY2LTQzNzItYmM5MS02MjQyN2I5OTEyOWM/YXBpLXZlcnNpb249MjAxOS0wNi0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-8893/providers/Microsoft.Sql/locations/westcentralus/serverAzureAsyncOperation/28089140-f289-43b7-b0cc-9512b5cb1a6e?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg4OTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi8yODA4OTE0MC1mMjg5LTQzYjctYjBjYy05NTEyYjVjYjFhNmU/YXBpLXZlcnNpb249MjAxOS0wNi0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -394,7 +394,7 @@ "FxVersion/4.6.26614.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.2.0" ] }, "ResponseHeaders": { @@ -402,7 +402,7 @@ "no-cache" ], "Date": [ - "Thu, 03 Sep 2020 21:36:58 GMT" + "Mon, 07 Sep 2020 03:02:27 GMT" ], "Pragma": [ "no-cache" @@ -414,16 +414,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "bba3e68e-2849-4f60-8d75-ff1fe3b22801" + "4cac752d-b87d-40f8-81b3-81e9d2651127" ], "x-ms-ratelimit-remaining-subscription-reads": [ "11995" ], "x-ms-correlation-request-id": [ - "cb0cd472-54ac-49cc-9836-ef32af5bfe1f" + "e3e6be18-4e8e-45ab-bcc2-6b1b0fb0c014" ], "x-ms-routing-request-id": [ - "BRAZILUS:20200903T213658Z:cb0cd472-54ac-49cc-9836-ef32af5bfe1f" + "BRAZILUS:20200907T030227Z:e3e6be18-4e8e-45ab-bcc2-6b1b0fb0c014" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -441,12 +441,12 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"025ca6cb-1066-4372-bc91-62427b99129c\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T21:36:33.18Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"28089140-f289-43b7-b0cc-9512b5cb1a6e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T03:02:21.47Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-9508/providers/Microsoft.Sql/locations/westcentralus/serverAzureAsyncOperation/025ca6cb-1066-4372-bc91-62427b99129c?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTk1MDgvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi8wMjVjYTZjYi0xMDY2LTQzNzItYmM5MS02MjQyN2I5OTEyOWM/YXBpLXZlcnNpb249MjAxOS0wNi0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-8893/providers/Microsoft.Sql/locations/westcentralus/serverAzureAsyncOperation/28089140-f289-43b7-b0cc-9512b5cb1a6e?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg4OTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi8yODA4OTE0MC1mMjg5LTQzYjctYjBjYy05NTEyYjVjYjFhNmU/YXBpLXZlcnNpb249MjAxOS0wNi0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -454,7 +454,7 @@ "FxVersion/4.6.26614.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.2.0" ] }, "ResponseHeaders": { @@ -462,28 +462,28 @@ "no-cache" ], "Date": [ - "Thu, 03 Sep 2020 21:37:18 GMT" + "Mon, 07 Sep 2020 03:02:47 GMT" ], "Pragma": [ "no-cache" ], "Retry-After": [ - "15" + "20" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "e81f35dc-6bed-403f-8a6f-32b0a5c30286" + "90d96e86-8798-4746-b2f3-fe752fac4c15" ], "x-ms-ratelimit-remaining-subscription-reads": [ "11994" ], "x-ms-correlation-request-id": [ - "920efd78-3fd3-4cc9-8ebe-b77953c6da75" + "d6c568d0-7d35-400c-a418-a26d780a034d" ], "x-ms-routing-request-id": [ - "BRAZILUS:20200903T213719Z:920efd78-3fd3-4cc9-8ebe-b77953c6da75" + "BRAZILUS:20200907T030247Z:d6c568d0-7d35-400c-a418-a26d780a034d" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -492,7 +492,7 @@ "nosniff" ], "Content-Length": [ - "106" + "107" ], "Content-Type": [ "application/json; charset=utf-8" @@ -501,12 +501,12 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"025ca6cb-1066-4372-bc91-62427b99129c\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2020-09-03T21:36:33.18Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"28089140-f289-43b7-b0cc-9512b5cb1a6e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T03:02:21.47Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-9508/providers/Microsoft.Sql/servers/sqlcrudtest-4858?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTk1MDgvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC00ODU4P2FwaS12ZXJzaW9uPTIwMTktMDYtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-8893/providers/Microsoft.Sql/locations/westcentralus/serverAzureAsyncOperation/28089140-f289-43b7-b0cc-9512b5cb1a6e?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg4OTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi8yODA4OTE0MC1mMjg5LTQzYjctYjBjYy05NTEyYjVjYjFhNmU/YXBpLXZlcnNpb249MjAxOS0wNi0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -514,7 +514,7 @@ "FxVersion/4.6.26614.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.2.0" ] }, "ResponseHeaders": { @@ -522,25 +522,85 @@ "no-cache" ], "Date": [ - "Thu, 03 Sep 2020 21:37:18 GMT" + "Mon, 07 Sep 2020 03:03:07 GMT" ], "Pragma": [ "no-cache" ], + "Retry-After": [ + "15" + ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "61d32618-ada3-4aa7-be86-405a60197698" + "25be2977-469f-4b86-96ef-17fbc7f6ef8f" ], "x-ms-ratelimit-remaining-subscription-reads": [ "11993" ], "x-ms-correlation-request-id": [ - "88304929-9014-4301-86b9-cc1c9987fa11" + "65a7229e-c5cc-45ab-8c43-3e992d7b15c1" ], "x-ms-routing-request-id": [ - "BRAZILUS:20200903T213719Z:88304929-9014-4301-86b9-cc1c9987fa11" + "BRAZILUS:20200907T030307Z:65a7229e-c5cc-45ab-8c43-3e992d7b15c1" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "106" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"28089140-f289-43b7-b0cc-9512b5cb1a6e\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2020-09-07T03:02:21.47Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-8893/providers/Microsoft.Sql/servers/sqlcrudtest-6159?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg4OTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC02MTU5P2FwaS12ZXJzaW9uPTIwMTktMDYtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26614.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.2.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 07 Sep 2020 03:03:07 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "02127c78-c2aa-459f-b83e-ef718a25e3c4" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11992" + ], + "x-ms-correlation-request-id": [ + "05bcaab4-2383-41f0-8b1a-7d9cca7203c0" + ], + "x-ms-routing-request-id": [ + "BRAZILUS:20200907T030307Z:05bcaab4-2383-41f0-8b1a-7d9cca7203c0" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -558,17 +618,17 @@ "-1" ] }, - "ResponseBody": "{\r\n \"kind\": \"v12.0\",\r\n \"properties\": {\r\n \"administratorLogin\": \"dummylogin\",\r\n \"version\": \"12.0\",\r\n \"state\": \"Ready\",\r\n \"fullyQualifiedDomainName\": \"sqlcrudtest-4858.database.windows.net\",\r\n \"privateEndpointConnections\": [],\r\n \"publicNetworkAccess\": \"Enabled\"\r\n },\r\n \"location\": \"westcentralus\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-9508/providers/Microsoft.Sql/servers/sqlcrudtest-4858\",\r\n \"name\": \"sqlcrudtest-4858\",\r\n \"type\": \"Microsoft.Sql/servers\"\r\n}", + "ResponseBody": "{\r\n \"kind\": \"v12.0\",\r\n \"properties\": {\r\n \"administratorLogin\": \"dummylogin\",\r\n \"version\": \"12.0\",\r\n \"state\": \"Ready\",\r\n \"fullyQualifiedDomainName\": \"sqlcrudtest-6159.database.windows.net\",\r\n \"privateEndpointConnections\": [],\r\n \"publicNetworkAccess\": \"Enabled\"\r\n },\r\n \"location\": \"westcentralus\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-8893/providers/Microsoft.Sql/servers/sqlcrudtest-6159\",\r\n \"name\": \"sqlcrudtest-6159\",\r\n \"type\": \"Microsoft.Sql/servers\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-9508/providers/Microsoft.Sql/servers/sqlcrudtest-4858/firewallRules/sqlcrudtest-303?api-version=2014-04-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTk1MDgvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC00ODU4L2ZpcmV3YWxsUnVsZXMvc3FsY3J1ZHRlc3QtMzAzP2FwaS12ZXJzaW9uPTIwMTQtMDQtMDE=", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-8893/providers/Microsoft.Sql/servers/sqlcrudtest-6159/firewallRules/sqlcrudtest-1321?api-version=2014-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg4OTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC02MTU5L2ZpcmV3YWxsUnVsZXMvc3FsY3J1ZHRlc3QtMTMyMT9hcGktdmVyc2lvbj0yMDE0LTA0LTAx", "RequestMethod": "PUT", "RequestBody": "{\r\n \"properties\": {\r\n \"startIpAddress\": \"0.0.0.0\",\r\n \"endIpAddress\": \"255.255.255.255\"\r\n }\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "fb1979a0-542a-44d7-9e0b-81d052d30f76" + "44673ade-bdec-494d-9b25-1801aa56d358" ], "accept-language": [ "en-US" @@ -577,7 +637,7 @@ "FxVersion/4.6.26614.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.2.0" ], "Content-Type": [ "application/json; charset=utf-8" @@ -591,13 +651,13 @@ "no-store, no-cache" ], "Date": [ - "Thu, 03 Sep 2020 21:37:20 GMT" + "Mon, 07 Sep 2020 03:03:08 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "ca50f7c8-2c7f-40cf-8d7c-b15a79406463" + "49a100e4-9790-4380-a283-d0da803cba0b" ], "X-Content-Type-Options": [ "nosniff" @@ -612,32 +672,32 @@ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1198" + "1197" ], "x-ms-correlation-request-id": [ - "ace330d6-f2f6-4627-80be-aeac211b7c3b" + "2807acf2-4696-4848-b7cc-83569d6adc5b" ], "x-ms-routing-request-id": [ - "BRAZILUS:20200903T213720Z:ace330d6-f2f6-4627-80be-aeac211b7c3b" + "BRAZILUS:20200907T030308Z:2807acf2-4696-4848-b7cc-83569d6adc5b" ], "Content-Length": [ - "360" + "362" ], "Content-Type": [ "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-9508/providers/Microsoft.Sql/servers/sqlcrudtest-4858/firewallRules/sqlcrudtest-303\",\r\n \"name\": \"sqlcrudtest-303\",\r\n \"type\": \"Microsoft.Sql/servers/firewallRules\",\r\n \"location\": \"West Central US\",\r\n \"kind\": \"v12.0\",\r\n \"properties\": {\r\n \"startIpAddress\": \"0.0.0.0\",\r\n \"endIpAddress\": \"255.255.255.255\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-8893/providers/Microsoft.Sql/servers/sqlcrudtest-6159/firewallRules/sqlcrudtest-1321\",\r\n \"name\": \"sqlcrudtest-1321\",\r\n \"type\": \"Microsoft.Sql/servers/firewallRules\",\r\n \"location\": \"West Central US\",\r\n \"kind\": \"v12.0\",\r\n \"properties\": {\r\n \"startIpAddress\": \"0.0.0.0\",\r\n \"endIpAddress\": \"255.255.255.255\"\r\n }\r\n}", "StatusCode": 201 }, { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-9508/providers/Microsoft.Sql/servers/sqlcrudtest-4858/databases/sqlcrudtest-2319?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTk1MDgvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC00ODU4L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC0yMzE5P2FwaS12ZXJzaW9uPTIwMTktMDYtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-8893/providers/Microsoft.Sql/servers/sqlcrudtest-6159/databases/sqlcrudtest-2439?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg4OTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC02MTU5L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC0yNDM5P2FwaS12ZXJzaW9uPTIwMTktMDYtMDEtcHJldmlldw==", "RequestMethod": "PUT", "RequestBody": "{\r\n \"location\": \"westcentralus\"\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "23fc8876-4d7e-4f7f-a442-50ef11a2c912" + "2e94fe25-2efa-4cbf-bafa-ecfa3fbdef33" ], "accept-language": [ "en-US" @@ -646,7 +706,7 @@ "FxVersion/4.6.26614.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.2.0" ], "Content-Type": [ "application/json; charset=utf-8" @@ -660,13 +720,13 @@ "no-cache" ], "Date": [ - "Thu, 03 Sep 2020 21:37:20 GMT" + "Mon, 07 Sep 2020 03:03:10 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-9508/providers/Microsoft.Sql/locations/westcentralus/databaseOperationResults/e444f9fc-71a9-4abf-9f59-ff0f86838750?api-version=2019-06-01-preview" + "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-8893/providers/Microsoft.Sql/locations/westcentralus/databaseOperationResults/871e114a-29e6-4aca-91aa-477abfc661f9?api-version=2019-06-01-preview" ], "Retry-After": [ "15" @@ -675,19 +735,19 @@ "Microsoft-HTTPAPI/2.0" ], "Azure-AsyncOperation": [ - "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-9508/providers/Microsoft.Sql/locations/westcentralus/databaseAzureAsyncOperation/e444f9fc-71a9-4abf-9f59-ff0f86838750?api-version=2019-06-01-preview" + "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-8893/providers/Microsoft.Sql/locations/westcentralus/databaseAzureAsyncOperation/871e114a-29e6-4aca-91aa-477abfc661f9?api-version=2019-06-01-preview" ], "x-ms-request-id": [ - "e444f9fc-71a9-4abf-9f59-ff0f86838750" + "871e114a-29e6-4aca-91aa-477abfc661f9" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1197" + "1196" ], "x-ms-correlation-request-id": [ - "3f1a4182-08c6-464b-914e-aa884a7fdc5a" + "d772ffca-3b45-49ae-8e0f-09c960e9477e" ], "x-ms-routing-request-id": [ - "BRAZILUS:20200903T213720Z:3f1a4182-08c6-464b-914e-aa884a7fdc5a" + "BRAZILUS:20200907T030311Z:d772ffca-3b45-49ae-8e0f-09c960e9477e" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -696,7 +756,7 @@ "nosniff" ], "Content-Length": [ - "75" + "76" ], "Content-Type": [ "application/json; charset=utf-8" @@ -705,17 +765,17 @@ "-1" ] }, - "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2020-09-03T21:37:20.82Z\"\r\n}", + "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2020-09-07T03:03:10.953Z\"\r\n}", "StatusCode": 202 }, { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-9508/providers/Microsoft.Storage/storageAccounts/sqlcrudtest4377?api-version=2017-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTk1MDgvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9zcWxjcnVkdGVzdDQzNzc/YXBpLXZlcnNpb249MjAxNy0wNi0wMQ==", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-8893/providers/Microsoft.Storage/storageAccounts/sqlcrudtest4885?api-version=2017-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg4OTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9zcWxjcnVkdGVzdDQ4ODU/YXBpLXZlcnNpb249MjAxNy0wNi0wMQ==", "RequestMethod": "PUT", "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\"\r\n },\r\n \"kind\": \"BlobStorage\",\r\n \"location\": \"westcentralus\",\r\n \"properties\": {\r\n \"accessTier\": \"Cool\"\r\n }\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "059667f8-0311-4d26-92dc-7059c918e937" + "f949f466-9cd0-42a0-baff-aa9a797bfc30" ], "accept-language": [ "en-US" @@ -738,13 +798,13 @@ "no-cache" ], "Date": [ - "Thu, 03 Sep 2020 21:37:22 GMT" + "Mon, 07 Sep 2020 03:03:10 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Storage/locations/westcentralus/asyncoperations/e9d18fc6-9566-40eb-b4d5-f6d325a22a01?monitor=true&api-version=2017-06-01" + "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Storage/locations/westcentralus/asyncoperations/8878f03d-650c-4af9-a8c5-4803fedd5a66?monitor=true&api-version=2017-06-01" ], "Retry-After": [ "17" @@ -753,19 +813,19 @@ "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "e9d18fc6-9566-40eb-b4d5-f6d325a22a01" + "8878f03d-650c-4af9-a8c5-4803fedd5a66" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1198" + "1196" ], "x-ms-correlation-request-id": [ - "dfeb233e-3c1f-4726-b06f-031ad27fc7a7" + "7599d6f2-c825-4cd6-8ff0-8a260a0a38b6" ], "x-ms-routing-request-id": [ - "BRAZILUS:20200903T213722Z:dfeb233e-3c1f-4726-b06f-031ad27fc7a7" + "BRAZILUS:20200907T030311Z:7599d6f2-c825-4cd6-8ff0-8a260a0a38b6" ], "X-Content-Type-Options": [ "nosniff" @@ -784,8 +844,8 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-9508/providers/Microsoft.Sql/locations/westcentralus/databaseAzureAsyncOperation/e444f9fc-71a9-4abf-9f59-ff0f86838750?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTk1MDgvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2U0NDRmOWZjLTcxYTktNGFiZi05ZjU5LWZmMGY4NjgzODc1MD9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-8893/providers/Microsoft.Sql/locations/westcentralus/databaseAzureAsyncOperation/871e114a-29e6-4aca-91aa-477abfc661f9?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg4OTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzg3MWUxMTRhLTI5ZTYtNGFjYS05MWFhLTQ3N2FiZmM2NjFmOT9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -793,7 +853,7 @@ "FxVersion/4.6.26614.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.2.0" ] }, "ResponseHeaders": { @@ -801,7 +861,7 @@ "no-cache" ], "Date": [ - "Thu, 03 Sep 2020 21:37:36 GMT" + "Mon, 07 Sep 2020 03:03:25 GMT" ], "Pragma": [ "no-cache" @@ -813,16 +873,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "0daf427f-f22e-4012-9f28-b0050286418f" + "802b0fb6-264d-4c93-bb42-a13e335c89a5" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11992" + "11991" ], "x-ms-correlation-request-id": [ - "922cb03c-ce5a-4a21-afab-7de7e6178abe" + "2ff8b41d-381f-42ac-92da-cade8aef713b" ], "x-ms-routing-request-id": [ - "BRAZILUS:20200903T213736Z:922cb03c-ce5a-4a21-afab-7de7e6178abe" + "BRAZILUS:20200907T030326Z:2ff8b41d-381f-42ac-92da-cade8aef713b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -831,7 +891,7 @@ "nosniff" ], "Content-Length": [ - "107" + "108" ], "Content-Type": [ "application/json; charset=utf-8" @@ -840,12 +900,12 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"e444f9fc-71a9-4abf-9f59-ff0f86838750\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T21:37:20.82Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"871e114a-29e6-4aca-91aa-477abfc661f9\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T03:03:10.953Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-9508/providers/Microsoft.Sql/locations/westcentralus/databaseAzureAsyncOperation/e444f9fc-71a9-4abf-9f59-ff0f86838750?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTk1MDgvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2U0NDRmOWZjLTcxYTktNGFiZi05ZjU5LWZmMGY4NjgzODc1MD9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-8893/providers/Microsoft.Sql/locations/westcentralus/databaseAzureAsyncOperation/871e114a-29e6-4aca-91aa-477abfc661f9?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg4OTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzg3MWUxMTRhLTI5ZTYtNGFjYS05MWFhLTQ3N2FiZmM2NjFmOT9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -853,7 +913,7 @@ "FxVersion/4.6.26614.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.2.0" ] }, "ResponseHeaders": { @@ -861,7 +921,7 @@ "no-cache" ], "Date": [ - "Thu, 03 Sep 2020 21:37:50 GMT" + "Mon, 07 Sep 2020 03:03:41 GMT" ], "Pragma": [ "no-cache" @@ -873,16 +933,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "d597c2dd-ee66-4602-bd10-ce2c7c9d6914" + "f17db49a-5728-41c8-97ff-c0eab0d9515c" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11991" + "11989" ], "x-ms-correlation-request-id": [ - "0d9ff311-338f-47c5-8119-943668b6ec05" + "86a9ec61-677b-4ac8-93fb-e00a8e6c3066" ], "x-ms-routing-request-id": [ - "BRAZILUS:20200903T213751Z:0d9ff311-338f-47c5-8119-943668b6ec05" + "BRAZILUS:20200907T030341Z:86a9ec61-677b-4ac8-93fb-e00a8e6c3066" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -891,7 +951,7 @@ "nosniff" ], "Content-Length": [ - "107" + "108" ], "Content-Type": [ "application/json; charset=utf-8" @@ -900,12 +960,12 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"e444f9fc-71a9-4abf-9f59-ff0f86838750\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T21:37:20.82Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"871e114a-29e6-4aca-91aa-477abfc661f9\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T03:03:10.953Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-9508/providers/Microsoft.Sql/locations/westcentralus/databaseAzureAsyncOperation/e444f9fc-71a9-4abf-9f59-ff0f86838750?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTk1MDgvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2U0NDRmOWZjLTcxYTktNGFiZi05ZjU5LWZmMGY4NjgzODc1MD9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-8893/providers/Microsoft.Sql/locations/westcentralus/databaseAzureAsyncOperation/871e114a-29e6-4aca-91aa-477abfc661f9?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg4OTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3RjZW50cmFsdXMvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzg3MWUxMTRhLTI5ZTYtNGFjYS05MWFhLTQ3N2FiZmM2NjFmOT9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -913,7 +973,7 @@ "FxVersion/4.6.26614.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.2.0" ] }, "ResponseHeaders": { @@ -921,7 +981,7 @@ "no-cache" ], "Date": [ - "Thu, 03 Sep 2020 21:38:06 GMT" + "Mon, 07 Sep 2020 03:03:55 GMT" ], "Pragma": [ "no-cache" @@ -933,16 +993,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "853dd823-886c-4064-a053-af7ee8ad4139" + "111eb5df-8378-49b6-90ed-1f95f5261403" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11990" + "11988" ], "x-ms-correlation-request-id": [ - "65d386ad-bf04-4322-b6d2-3445f054465f" + "1c2a68eb-3c15-41c7-81bb-a889394ab466" ], "x-ms-routing-request-id": [ - "BRAZILUS:20200903T213806Z:65d386ad-bf04-4322-b6d2-3445f054465f" + "BRAZILUS:20200907T030356Z:1c2a68eb-3c15-41c7-81bb-a889394ab466" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -951,7 +1011,7 @@ "nosniff" ], "Content-Length": [ - "106" + "107" ], "Content-Type": [ "application/json; charset=utf-8" @@ -960,12 +1020,12 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"e444f9fc-71a9-4abf-9f59-ff0f86838750\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2020-09-03T21:37:20.82Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"871e114a-29e6-4aca-91aa-477abfc661f9\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2020-09-07T03:03:10.953Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Storage/locations/westcentralus/asyncoperations/e9d18fc6-9566-40eb-b4d5-f6d325a22a01?monitor=true&api-version=2017-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZS9sb2NhdGlvbnMvd2VzdGNlbnRyYWx1cy9hc3luY29wZXJhdGlvbnMvZTlkMThmYzYtOTU2Ni00MGViLWI0ZDUtZjZkMzI1YTIyYTAxP21vbml0b3I9dHJ1ZSZhcGktdmVyc2lvbj0yMDE3LTA2LTAx", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Storage/locations/westcentralus/asyncoperations/8878f03d-650c-4af9-a8c5-4803fedd5a66?monitor=true&api-version=2017-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZS9sb2NhdGlvbnMvd2VzdGNlbnRyYWx1cy9hc3luY29wZXJhdGlvbnMvODg3OGYwM2QtNjUwYy00YWY5LWE4YzUtNDgwM2ZlZGQ1YTY2P21vbml0b3I9dHJ1ZSZhcGktdmVyc2lvbj0yMDE3LTA2LTAx", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -981,7 +1041,7 @@ "no-cache" ], "Date": [ - "Thu, 03 Sep 2020 21:37:39 GMT" + "Mon, 07 Sep 2020 03:03:28 GMT" ], "Pragma": [ "no-cache" @@ -990,19 +1050,19 @@ "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "fe09bcfe-9da8-409a-a338-33dfcf2545d0" + "93994221-73c0-4ee9-bebd-fafc013f081b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" + "11990" ], "x-ms-correlation-request-id": [ - "7ac50e23-b06d-4def-9b50-5eab03eeee5b" + "fac86c14-3f8f-44fd-a99f-3c227a7b61c4" ], "x-ms-routing-request-id": [ - "BRAZILUS:20200903T213739Z:7ac50e23-b06d-4def-9b50-5eab03eeee5b" + "BRAZILUS:20200907T030328Z:fac86c14-3f8f-44fd-a99f-3c227a7b61c4" ], "X-Content-Type-Options": [ "nosniff" @@ -1017,17 +1077,17 @@ "-1" ] }, - "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"kind\": \"BlobStorage\",\r\n \"id\": \"/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-9508/providers/Microsoft.Storage/storageAccounts/sqlcrudtest4377\",\r\n \"name\": \"sqlcrudtest4377\",\r\n \"type\": \"Microsoft.Storage/storageAccounts\",\r\n \"location\": \"westcentralus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"networkAcls\": {\r\n \"bypass\": \"AzureServices\",\r\n \"virtualNetworkRules\": [],\r\n \"ipRules\": [],\r\n \"defaultAction\": \"Allow\"\r\n },\r\n \"supportsHttpsTrafficOnly\": false,\r\n \"encryption\": {\r\n \"services\": {\r\n \"file\": {\r\n \"enabled\": true,\r\n \"lastEnabledTime\": \"2020-09-03T21:37:22.1808007Z\"\r\n },\r\n \"blob\": {\r\n \"enabled\": true,\r\n \"lastEnabledTime\": \"2020-09-03T21:37:22.1808007Z\"\r\n }\r\n },\r\n \"keySource\": \"Microsoft.Storage\"\r\n },\r\n \"accessTier\": \"Cool\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"creationTime\": \"2020-09-03T21:37:22.118282Z\",\r\n \"primaryEndpoints\": {\r\n \"blob\": \"https://sqlcrudtest4377.blob.core.windows.net/\",\r\n \"table\": \"https://sqlcrudtest4377.table.core.windows.net/\"\r\n },\r\n \"primaryLocation\": \"westcentralus\",\r\n \"statusOfPrimary\": \"available\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"kind\": \"BlobStorage\",\r\n \"id\": \"/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-8893/providers/Microsoft.Storage/storageAccounts/sqlcrudtest4885\",\r\n \"name\": \"sqlcrudtest4885\",\r\n \"type\": \"Microsoft.Storage/storageAccounts\",\r\n \"location\": \"westcentralus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"networkAcls\": {\r\n \"bypass\": \"AzureServices\",\r\n \"virtualNetworkRules\": [],\r\n \"ipRules\": [],\r\n \"defaultAction\": \"Allow\"\r\n },\r\n \"supportsHttpsTrafficOnly\": false,\r\n \"encryption\": {\r\n \"services\": {\r\n \"file\": {\r\n \"enabled\": true,\r\n \"lastEnabledTime\": \"2020-09-07T03:03:11.0287163Z\"\r\n },\r\n \"blob\": {\r\n \"enabled\": true,\r\n \"lastEnabledTime\": \"2020-09-07T03:03:11.0287163Z\"\r\n }\r\n },\r\n \"keySource\": \"Microsoft.Storage\"\r\n },\r\n \"accessTier\": \"Cool\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"creationTime\": \"2020-09-07T03:03:10.997461Z\",\r\n \"primaryEndpoints\": {\r\n \"blob\": \"https://sqlcrudtest4885.blob.core.windows.net/\",\r\n \"table\": \"https://sqlcrudtest4885.table.core.windows.net/\"\r\n },\r\n \"primaryLocation\": \"westcentralus\",\r\n \"statusOfPrimary\": \"available\"\r\n }\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-9508/providers/Microsoft.Storage/storageAccounts/sqlcrudtest4377/listKeys?api-version=2017-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTk1MDgvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9zcWxjcnVkdGVzdDQzNzcvbGlzdEtleXM/YXBpLXZlcnNpb249MjAxNy0wNi0wMQ==", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-8893/providers/Microsoft.Storage/storageAccounts/sqlcrudtest4885/listKeys?api-version=2017-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg4OTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9zcWxjcnVkdGVzdDQ4ODUvbGlzdEtleXM/YXBpLXZlcnNpb249MjAxNy0wNi0wMQ==", "RequestMethod": "POST", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "97dcb495-e046-4996-8bf6-e83a82212444" + "9ace3093-6e03-4266-b4fa-15265beaf134" ], "accept-language": [ "en-US" @@ -1044,7 +1104,7 @@ "no-cache" ], "Date": [ - "Thu, 03 Sep 2020 21:37:39 GMT" + "Mon, 07 Sep 2020 03:03:28 GMT" ], "Pragma": [ "no-cache" @@ -1053,7 +1113,7 @@ "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "9fdd9e64-cfa1-4884-99b6-69d10b9bf67a" + "f42d71fe-8b8a-437c-a3c2-1b69a3a72910" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1062,10 +1122,10 @@ "11999" ], "x-ms-correlation-request-id": [ - "0084f9ae-7d83-4da4-9184-61dc3c1519b8" + "3ed72273-1e31-4830-b527-f69477127c30" ], "x-ms-routing-request-id": [ - "BRAZILUS:20200903T213739Z:0084f9ae-7d83-4da4-9184-61dc3c1519b8" + "BRAZILUS:20200907T030328Z:3ed72273-1e31-4830-b527-f69477127c30" ], "X-Content-Type-Options": [ "nosniff" @@ -1080,12 +1140,12 @@ "-1" ] }, - "ResponseBody": "{\r\n \"keys\": [\r\n {\r\n \"keyName\": \"key1\",\r\n \"value\": \"GyT8d7TmvZwTBTSk0BZXlM5QsQxqlhwnTUGUAcliOmrviA9EG5rq58DKaq7465GQh9cflutV0+NmL9jOV9dYSQ==\",\r\n \"permissions\": \"FULL\"\r\n },\r\n {\r\n \"keyName\": \"key2\",\r\n \"value\": \"5x0E+iQp6EpcLoKKOIo6wqLFeWa3MPWn03obeJJ8c4K18cExu/wqEQkEu2SW0j+wzVQq1Wp414GIKVb4iV3NQQ==\",\r\n \"permissions\": \"FULL\"\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"keys\": [\r\n {\r\n \"keyName\": \"key1\",\r\n \"value\": \"MIoS2huFuDdw9f/1ZdnTRhfuDoG8ATd/YhcJacdCK1b1EAVykwg6uhwEN+epJqe7SkQMksUEz3vwCGdZy8QjoQ==\",\r\n \"permissions\": \"FULL\"\r\n },\r\n {\r\n \"keyName\": \"key2\",\r\n \"value\": \"+P7x5dQ9AaPZ8pW8HItmAy+fJrKmJTPVyQb+wiTyEzvGDvw0HAE44ieqCS2rgrSx4fxAcTxfjrv58OjVyuwbtw==\",\r\n \"permissions\": \"FULL\"\r\n }\r\n ]\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-9508/providers/Microsoft.Sql/servers/sqlcrudtest-4858/databases/sqlcrudtest-2319?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTk1MDgvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC00ODU4L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC0yMzE5P2FwaS12ZXJzaW9uPTIwMTktMDYtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-8893/providers/Microsoft.Sql/servers/sqlcrudtest-6159/databases/sqlcrudtest-2439?api-version=2019-06-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg4OTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC02MTU5L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC0yNDM5P2FwaS12ZXJzaW9uPTIwMTktMDYtMDEtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -1093,7 +1153,7 @@ "FxVersion/4.6.26614.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.2.0" ] }, "ResponseHeaders": { @@ -1101,7 +1161,7 @@ "no-cache" ], "Date": [ - "Thu, 03 Sep 2020 21:38:06 GMT" + "Mon, 07 Sep 2020 03:03:55 GMT" ], "Pragma": [ "no-cache" @@ -1110,16 +1170,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "7e9028a9-f006-4b96-b15b-cd04c9377909" + "b366caab-28c0-481b-b32a-4f6aaefd3a25" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11989" + "11987" ], "x-ms-correlation-request-id": [ - "0b1e8f88-387a-4b39-a7ab-9960bc92c12d" + "aa6121c8-eaa8-46f5-b783-be5416fe57e8" ], "x-ms-routing-request-id": [ - "BRAZILUS:20200903T213806Z:0b1e8f88-387a-4b39-a7ab-9960bc92c12d" + "BRAZILUS:20200907T030356Z:aa6121c8-eaa8-46f5-b783-be5416fe57e8" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1137,17 +1197,17 @@ "-1" ] }, - "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"GP_Gen5\",\r\n \"tier\": \"GeneralPurpose\",\r\n \"family\": \"Gen5\",\r\n \"capacity\": 2\r\n },\r\n \"kind\": \"v12.0,user,vcore\",\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": 34359738368,\r\n \"status\": \"Online\",\r\n \"databaseId\": \"bfee7e34-702d-49b7-9a1e-36983121e096\",\r\n \"creationDate\": \"2020-09-03T21:37:57.663Z\",\r\n \"currentServiceObjectiveName\": \"GP_Gen5_2\",\r\n \"requestedServiceObjectiveName\": \"GP_Gen5_2\",\r\n \"defaultSecondaryLocation\": \"westus2\",\r\n \"catalogCollation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"zoneRedundant\": false,\r\n \"licenseType\": \"LicenseIncluded\",\r\n \"maxLogSizeBytes\": 10307502080,\r\n \"earliestRestoreDate\": \"2020-09-03T22:07:57.663Z\",\r\n \"readScale\": \"Disabled\",\r\n \"readReplicaCount\": 0,\r\n \"currentSku\": {\r\n \"name\": \"GP_Gen5\",\r\n \"tier\": \"GeneralPurpose\",\r\n \"family\": \"Gen5\",\r\n \"capacity\": 2\r\n },\r\n \"storageAccountType\": \"GRS\"\r\n },\r\n \"location\": \"westcentralus\",\r\n \"id\": \"/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-9508/providers/Microsoft.Sql/servers/sqlcrudtest-4858/databases/sqlcrudtest-2319\",\r\n \"name\": \"sqlcrudtest-2319\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"GP_Gen5\",\r\n \"tier\": \"GeneralPurpose\",\r\n \"family\": \"Gen5\",\r\n \"capacity\": 2\r\n },\r\n \"kind\": \"v12.0,user,vcore\",\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": 34359738368,\r\n \"status\": \"Online\",\r\n \"databaseId\": \"4e334a6d-e601-4732-aafc-3cfd1dddf968\",\r\n \"creationDate\": \"2020-09-07T03:03:46.173Z\",\r\n \"currentServiceObjectiveName\": \"GP_Gen5_2\",\r\n \"requestedServiceObjectiveName\": \"GP_Gen5_2\",\r\n \"defaultSecondaryLocation\": \"westus2\",\r\n \"catalogCollation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"zoneRedundant\": false,\r\n \"licenseType\": \"LicenseIncluded\",\r\n \"maxLogSizeBytes\": 10307502080,\r\n \"earliestRestoreDate\": \"2020-09-07T03:33:46.173Z\",\r\n \"readScale\": \"Disabled\",\r\n \"readReplicaCount\": 0,\r\n \"currentSku\": {\r\n \"name\": \"GP_Gen5\",\r\n \"tier\": \"GeneralPurpose\",\r\n \"family\": \"Gen5\",\r\n \"capacity\": 2\r\n },\r\n \"storageAccountType\": \"GRS\"\r\n },\r\n \"location\": \"westcentralus\",\r\n \"id\": \"/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-8893/providers/Microsoft.Sql/servers/sqlcrudtest-6159/databases/sqlcrudtest-2439\",\r\n \"name\": \"sqlcrudtest-2439\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-9508/providers/Microsoft.Sql/servers/sqlcrudtest-4858/databases/sqlcrudtest-2319/export?api-version=2020-02-02-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTk1MDgvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC00ODU4L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC0yMzE5L2V4cG9ydD9hcGktdmVyc2lvbj0yMDIwLTAyLTAyLXByZXZpZXc=", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-8893/providers/Microsoft.Sql/servers/sqlcrudtest-6159/databases/sqlcrudtest-2439/export?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg4OTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC02MTU5L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC0yNDM5L2V4cG9ydD9hcGktdmVyc2lvbj0yMDIwLTAyLTAyLXByZXZpZXc=", "RequestMethod": "POST", - "RequestBody": "{\r\n \"storageKeyType\": \"StorageAccessKey\",\r\n \"storageKey\": \"GyT8d7TmvZwTBTSk0BZXlM5QsQxqlhwnTUGUAcliOmrviA9EG5rq58DKaq7465GQh9cflutV0+NmL9jOV9dYSQ==\",\r\n \"storageUri\": \"https://sqlcrudtest4377.blob.core.windows.net/container/sqlcrudtest-2319.bacpac\",\r\n \"administratorLogin\": \"dummylogin\",\r\n \"administratorLoginPassword\": \"Un53cuRE!\",\r\n \"authenticationType\": \"SQL\"\r\n}", + "RequestBody": "{\r\n \"storageKeyType\": \"StorageAccessKey\",\r\n \"storageKey\": \"MIoS2huFuDdw9f/1ZdnTRhfuDoG8ATd/YhcJacdCK1b1EAVykwg6uhwEN+epJqe7SkQMksUEz3vwCGdZy8QjoQ==\",\r\n \"storageUri\": \"https://sqlcrudtest4885.blob.core.windows.net/container/sqlcrudtest-2439.bacpac\",\r\n \"administratorLogin\": \"dummylogin\",\r\n \"administratorLoginPassword\": \"Un53cuRE!\",\r\n \"authenticationType\": \"SQL\"\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "02ae35c4-ac90-45e1-9910-1664797127d5" + "4ca480a2-e007-43e1-afc5-b7de64f261ed" ], "accept-language": [ "en-US" @@ -1156,7 +1216,7 @@ "FxVersion/4.6.26614.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.2.0" ], "Content-Type": [ "application/json; charset=utf-8" @@ -1170,13 +1230,13 @@ "no-cache" ], "Date": [ - "Thu, 03 Sep 2020 21:38:07 GMT" + "Mon, 07 Sep 2020 03:03:58 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportOperationResults/e5bef22a-fadf-46b8-ac1a-1c6051631f88-sqlcrudtest-4858?api-version=2020-02-02-preview" + "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportOperationResults/cf301225-31d1-4298-925b-f5d71b9fcacf-sqlcrudtest-6159?api-version=2020-02-02-preview" ], "Retry-After": [ "15" @@ -1185,19 +1245,19 @@ "Microsoft-HTTPAPI/2.0" ], "Azure-AsyncOperation": [ - "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/e5bef22a-fadf-46b8-ac1a-1c6051631f88-sqlcrudtest-4858?api-version=2020-02-02-preview" + "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/cf301225-31d1-4298-925b-f5d71b9fcacf-sqlcrudtest-6159?api-version=2020-02-02-preview" ], "x-ms-request-id": [ - "746b4392-ef43-49f0-b73a-ee3819d648ae" + "a2f88b18-7e45-464f-a637-63ced313af5d" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1199" ], "x-ms-correlation-request-id": [ - "30d93e76-d8d2-451b-9ffa-d8b005fd2021" + "8e0e75ff-24df-4045-a50c-38e73539c74c" ], "x-ms-routing-request-id": [ - "BRAZILUS:20200903T213808Z:30d93e76-d8d2-451b-9ffa-d8b005fd2021" + "BRAZILUS:20200907T030358Z:8e0e75ff-24df-4045-a50c-38e73539c74c" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1215,12 +1275,12 @@ "-1" ] }, - "ResponseBody": "{\r\n \"operation\": \"Export\",\r\n \"startTime\": \"2020-09-03T21:38:07.9603008Z\"\r\n}", + "ResponseBody": "{\r\n \"operation\": \"Export\",\r\n \"startTime\": \"2020-09-07T03:03:58.1565663Z\"\r\n}", "StatusCode": 202 }, { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/e5bef22a-fadf-46b8-ac1a-1c6051631f88-sqlcrudtest-4858?api-version=2020-02-02-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vZTViZWYyMmEtZmFkZi00NmI4LWFjMWEtMWM2MDUxNjMxZjg4LXNxbGNydWR0ZXN0LTQ4NTg/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/cf301225-31d1-4298-925b-f5d71b9fcacf-sqlcrudtest-6159?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vY2YzMDEyMjUtMzFkMS00Mjk4LTkyNWItZjVkNzFiOWZjYWNmLXNxbGNydWR0ZXN0LTYxNTk/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -1228,7 +1288,7 @@ "FxVersion/4.6.26614.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.2.0" ] }, "ResponseHeaders": { @@ -1236,7 +1296,7 @@ "no-cache" ], "Date": [ - "Thu, 03 Sep 2020 21:38:24 GMT" + "Mon, 07 Sep 2020 03:04:12 GMT" ], "Pragma": [ "no-cache" @@ -1248,76 +1308,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "b23c6703-9774-46bf-8a1d-ff5bcb7531f1" + "0c6230b5-8753-4929-9f67-1fb34efe65da" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11988" - ], - "x-ms-correlation-request-id": [ - "5f8c603a-9203-4825-9fc6-8d979f40ab76" - ], - "x-ms-routing-request-id": [ - "BRAZILUS:20200903T213825Z:5f8c603a-9203-4825-9fc6-8d979f40ab76" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Content-Length": [ - "104" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"name\": \"e5bef22a-fadf-46b8-ac1a-1c6051631f88\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T21:38:07Z\"\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/e5bef22a-fadf-46b8-ac1a-1c6051631f88-sqlcrudtest-4858?api-version=2020-02-02-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vZTViZWYyMmEtZmFkZi00NmI4LWFjMWEtMWM2MDUxNjMxZjg4LXNxbGNydWR0ZXN0LTQ4NTg/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.26614.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Thu, 03 Sep 2020 21:38:39 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Retry-After": [ - "15" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-request-id": [ - "fa5fc5ca-936b-4588-a0cb-1664f716dab3" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11987" + "11986" ], "x-ms-correlation-request-id": [ - "d012cce7-a204-4308-9bcc-8c1d1058e6e3" + "291af886-ca12-4e55-b3f1-6c96f5bef12f" ], "x-ms-routing-request-id": [ - "BRAZILUS:20200903T213840Z:d012cce7-a204-4308-9bcc-8c1d1058e6e3" + "BRAZILUS:20200907T030413Z:291af886-ca12-4e55-b3f1-6c96f5bef12f" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1335,12 +1335,12 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"e5bef22a-fadf-46b8-ac1a-1c6051631f88\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T21:38:07Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"cf301225-31d1-4298-925b-f5d71b9fcacf\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T03:03:57Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/e5bef22a-fadf-46b8-ac1a-1c6051631f88-sqlcrudtest-4858?api-version=2020-02-02-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vZTViZWYyMmEtZmFkZi00NmI4LWFjMWEtMWM2MDUxNjMxZjg4LXNxbGNydWR0ZXN0LTQ4NTg/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/cf301225-31d1-4298-925b-f5d71b9fcacf-sqlcrudtest-6159?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vY2YzMDEyMjUtMzFkMS00Mjk4LTkyNWItZjVkNzFiOWZjYWNmLXNxbGNydWR0ZXN0LTYxNTk/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -1348,7 +1348,7 @@ "FxVersion/4.6.26614.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.2.0" ] }, "ResponseHeaders": { @@ -1356,7 +1356,7 @@ "no-cache" ], "Date": [ - "Thu, 03 Sep 2020 21:38:55 GMT" + "Mon, 07 Sep 2020 03:04:28 GMT" ], "Pragma": [ "no-cache" @@ -1368,16 +1368,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "8670c95e-d01a-40f6-9ce6-5faddca1d984" + "be32b676-d82b-4b59-8fce-51c8aa557e27" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11986" + "11985" ], "x-ms-correlation-request-id": [ - "ea9085f5-1f34-45f5-86c6-5e6168e7de8c" + "8fdd35c5-6e15-4819-bfd9-eb146cbde7c7" ], "x-ms-routing-request-id": [ - "BRAZILUS:20200903T213856Z:ea9085f5-1f34-45f5-86c6-5e6168e7de8c" + "BRAZILUS:20200907T030428Z:8fdd35c5-6e15-4819-bfd9-eb146cbde7c7" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1395,12 +1395,12 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"e5bef22a-fadf-46b8-ac1a-1c6051631f88\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T21:38:07Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"cf301225-31d1-4298-925b-f5d71b9fcacf\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T03:03:57Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/e5bef22a-fadf-46b8-ac1a-1c6051631f88-sqlcrudtest-4858?api-version=2020-02-02-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vZTViZWYyMmEtZmFkZi00NmI4LWFjMWEtMWM2MDUxNjMxZjg4LXNxbGNydWR0ZXN0LTQ4NTg/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/cf301225-31d1-4298-925b-f5d71b9fcacf-sqlcrudtest-6159?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vY2YzMDEyMjUtMzFkMS00Mjk4LTkyNWItZjVkNzFiOWZjYWNmLXNxbGNydWR0ZXN0LTYxNTk/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -1408,7 +1408,7 @@ "FxVersion/4.6.26614.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.2.0" ] }, "ResponseHeaders": { @@ -1416,7 +1416,7 @@ "no-cache" ], "Date": [ - "Thu, 03 Sep 2020 21:39:10 GMT" + "Mon, 07 Sep 2020 03:04:43 GMT" ], "Pragma": [ "no-cache" @@ -1428,16 +1428,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "bea62593-258a-48ab-8192-28848deedd7f" + "68f92b0b-b38f-486e-a65d-62af1b91c7e3" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11985" + "11984" ], "x-ms-correlation-request-id": [ - "db18d9b5-95eb-4ebb-9cb9-f76a1b9910a1" + "0fdc9577-db40-49f2-80de-708f0a078ec9" ], "x-ms-routing-request-id": [ - "BRAZILUS:20200903T213911Z:db18d9b5-95eb-4ebb-9cb9-f76a1b9910a1" + "BRAZILUS:20200907T030443Z:0fdc9577-db40-49f2-80de-708f0a078ec9" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1455,12 +1455,12 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"e5bef22a-fadf-46b8-ac1a-1c6051631f88\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T21:39:07Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"cf301225-31d1-4298-925b-f5d71b9fcacf\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T03:03:57Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/e5bef22a-fadf-46b8-ac1a-1c6051631f88-sqlcrudtest-4858?api-version=2020-02-02-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vZTViZWYyMmEtZmFkZi00NmI4LWFjMWEtMWM2MDUxNjMxZjg4LXNxbGNydWR0ZXN0LTQ4NTg/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/cf301225-31d1-4298-925b-f5d71b9fcacf-sqlcrudtest-6159?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vY2YzMDEyMjUtMzFkMS00Mjk4LTkyNWItZjVkNzFiOWZjYWNmLXNxbGNydWR0ZXN0LTYxNTk/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -1468,7 +1468,7 @@ "FxVersion/4.6.26614.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.2.0" ] }, "ResponseHeaders": { @@ -1476,7 +1476,7 @@ "no-cache" ], "Date": [ - "Thu, 03 Sep 2020 21:39:26 GMT" + "Mon, 07 Sep 2020 03:04:58 GMT" ], "Pragma": [ "no-cache" @@ -1488,16 +1488,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "f2b9ca4f-4316-4347-afe7-94939efe4de6" + "6cf9dbfe-21e5-458c-a655-e4a1aec7af82" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11984" + "11983" ], "x-ms-correlation-request-id": [ - "fb72bb52-36c7-42d8-a83c-dfb8deb7fd40" + "284bb8c0-8734-4096-a761-2560c9eef3dd" ], "x-ms-routing-request-id": [ - "BRAZILUS:20200903T213926Z:fb72bb52-36c7-42d8-a83c-dfb8deb7fd40" + "BRAZILUS:20200907T030459Z:284bb8c0-8734-4096-a761-2560c9eef3dd" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1515,12 +1515,12 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"e5bef22a-fadf-46b8-ac1a-1c6051631f88\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T21:39:07Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"cf301225-31d1-4298-925b-f5d71b9fcacf\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T03:04:57Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/e5bef22a-fadf-46b8-ac1a-1c6051631f88-sqlcrudtest-4858?api-version=2020-02-02-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vZTViZWYyMmEtZmFkZi00NmI4LWFjMWEtMWM2MDUxNjMxZjg4LXNxbGNydWR0ZXN0LTQ4NTg/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/cf301225-31d1-4298-925b-f5d71b9fcacf-sqlcrudtest-6159?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vY2YzMDEyMjUtMzFkMS00Mjk4LTkyNWItZjVkNzFiOWZjYWNmLXNxbGNydWR0ZXN0LTYxNTk/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -1528,7 +1528,7 @@ "FxVersion/4.6.26614.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.2.0" ] }, "ResponseHeaders": { @@ -1536,7 +1536,7 @@ "no-cache" ], "Date": [ - "Thu, 03 Sep 2020 21:39:41 GMT" + "Mon, 07 Sep 2020 03:05:13 GMT" ], "Pragma": [ "no-cache" @@ -1548,16 +1548,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "148d936c-b1cb-4db7-8466-a72862d87ee7" + "1b977e85-2776-4879-b421-08a7895619cf" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11983" + "11982" ], "x-ms-correlation-request-id": [ - "5ed39353-d8f6-4066-9197-7be93ec4e541" + "c6b84eb7-3e3f-4667-afbf-d1ad7ac77552" ], "x-ms-routing-request-id": [ - "BRAZILUS:20200903T213941Z:5ed39353-d8f6-4066-9197-7be93ec4e541" + "BRAZILUS:20200907T030514Z:c6b84eb7-3e3f-4667-afbf-d1ad7ac77552" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1575,12 +1575,12 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"e5bef22a-fadf-46b8-ac1a-1c6051631f88\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2020-09-03T21:39:31Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"cf301225-31d1-4298-925b-f5d71b9fcacf\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2020-09-07T03:05:09Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportOperationResults/e5bef22a-fadf-46b8-ac1a-1c6051631f88-sqlcrudtest-4858?api-version=2020-02-02-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydE9wZXJhdGlvblJlc3VsdHMvZTViZWYyMmEtZmFkZi00NmI4LWFjMWEtMWM2MDUxNjMxZjg4LXNxbGNydWR0ZXN0LTQ4NTg/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportOperationResults/cf301225-31d1-4298-925b-f5d71b9fcacf-sqlcrudtest-6159?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydE9wZXJhdGlvblJlc3VsdHMvY2YzMDEyMjUtMzFkMS00Mjk4LTkyNWItZjVkNzFiOWZjYWNmLXNxbGNydWR0ZXN0LTYxNTk/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -1588,7 +1588,7 @@ "FxVersion/4.6.26614.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.2.0" ] }, "ResponseHeaders": { @@ -1596,7 +1596,7 @@ "no-cache" ], "Date": [ - "Thu, 03 Sep 2020 21:39:42 GMT" + "Mon, 07 Sep 2020 03:05:13 GMT" ], "Pragma": [ "no-cache" @@ -1605,16 +1605,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "96001b64-fade-443a-b55a-e75f9c978995" + "bb13ee73-51b7-4e37-a3bc-f74869bddeab" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11982" + "11981" ], "x-ms-correlation-request-id": [ - "a1be0308-d4de-45e9-b25e-692df827bc5b" + "7652febe-da81-4b16-b59b-b5351411dd02" ], "x-ms-routing-request-id": [ - "BRAZILUS:20200903T213942Z:a1be0308-d4de-45e9-b25e-692df827bc5b" + "BRAZILUS:20200907T030514Z:7652febe-da81-4b16-b59b-b5351411dd02" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1632,17 +1632,17 @@ "-1" ] }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"requestId\": \"e5bef22a-fadf-46b8-ac1a-1c6051631f88\",\r\n \"requestType\": \"ExportDatabase\",\r\n \"queuedTime\": \"9/3/2020 9:38:06 PM\",\r\n \"lastModifiedTime\": \"9/3/2020 9:39:31 PM\",\r\n \"blobUri\": \"https://sqlcrudtest4377.blob.core.windows.net/container/sqlcrudtest-2319.bacpac\",\r\n \"serverName\": \"sqlcrudtest-4858\",\r\n \"databaseName\": \"sqlcrudtest-2319\",\r\n \"status\": \"Completed\",\r\n \"privateEndpointConnections\": []\r\n },\r\n \"id\": \"e5bef22a-fadf-46b8-ac1a-1c6051631f88\",\r\n \"name\": \"e5bef22a-fadf-46b8-ac1a-1c6051631f88\",\r\n \"type\": \"Microsoft.Sql/servers/databases/importExportOperationResults\"\r\n}", + "ResponseBody": "{\r\n \"properties\": {\r\n \"requestId\": \"cf301225-31d1-4298-925b-f5d71b9fcacf\",\r\n \"requestType\": \"ExportDatabase\",\r\n \"queuedTime\": \"9/7/2020 3:03:57 AM\",\r\n \"lastModifiedTime\": \"9/7/2020 3:05:09 AM\",\r\n \"blobUri\": \"https://sqlcrudtest4885.blob.core.windows.net/container/sqlcrudtest-2439.bacpac\",\r\n \"serverName\": \"sqlcrudtest-6159\",\r\n \"databaseName\": \"sqlcrudtest-2439\",\r\n \"status\": \"Completed\",\r\n \"privateEndpointConnections\": []\r\n },\r\n \"id\": \"cf301225-31d1-4298-925b-f5d71b9fcacf\",\r\n \"name\": \"cf301225-31d1-4298-925b-f5d71b9fcacf\",\r\n \"type\": \"Microsoft.Sql/servers/databases/importExportOperationResults\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-9508/providers/Microsoft.Sql/servers/sqlcrudtest-4858/import?api-version=2020-02-02-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTk1MDgvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC00ODU4L2ltcG9ydD9hcGktdmVyc2lvbj0yMDIwLTAyLTAyLXByZXZpZXc=", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourceGroups/sqlcrudtest-8893/providers/Microsoft.Sql/servers/sqlcrudtest-6159/import?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg4OTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC02MTU5L2ltcG9ydD9hcGktdmVyc2lvbj0yMDIwLTAyLTAyLXByZXZpZXc=", "RequestMethod": "POST", - "RequestBody": "{\r\n \"databaseName\": \"sqlcrudtest-9526\",\r\n \"edition\": \"Basic\",\r\n \"serviceObjectiveName\": \"Basic\",\r\n \"maxSizeBytes\": \"2147483648\",\r\n \"storageKeyType\": \"StorageAccessKey\",\r\n \"storageKey\": \"GyT8d7TmvZwTBTSk0BZXlM5QsQxqlhwnTUGUAcliOmrviA9EG5rq58DKaq7465GQh9cflutV0+NmL9jOV9dYSQ==\",\r\n \"storageUri\": \"https://sqlcrudtest4377.blob.core.windows.net/container/sqlcrudtest-2319.bacpac\",\r\n \"administratorLogin\": \"dummylogin\",\r\n \"administratorLoginPassword\": \"Un53cuRE!\",\r\n \"authenticationType\": \"SQL\"\r\n}", + "RequestBody": "{\r\n \"databaseName\": \"sqlcrudtest-4034\",\r\n \"edition\": \"Basic\",\r\n \"serviceObjectiveName\": \"Basic\",\r\n \"maxSizeBytes\": \"2147483648\",\r\n \"storageKeyType\": \"StorageAccessKey\",\r\n \"storageKey\": \"MIoS2huFuDdw9f/1ZdnTRhfuDoG8ATd/YhcJacdCK1b1EAVykwg6uhwEN+epJqe7SkQMksUEz3vwCGdZy8QjoQ==\",\r\n \"storageUri\": \"https://sqlcrudtest4885.blob.core.windows.net/container/sqlcrudtest-2439.bacpac\",\r\n \"administratorLogin\": \"dummylogin\",\r\n \"administratorLoginPassword\": \"Un53cuRE!\",\r\n \"authenticationType\": \"SQL\"\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "8602c89d-823d-4944-9c4f-2378d5eeb130" + "64052a62-85c3-4bd0-97cf-e4bd4405732d" ], "accept-language": [ "en-US" @@ -1651,7 +1651,7 @@ "FxVersion/4.6.26614.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.2.0" ], "Content-Type": [ "application/json; charset=utf-8" @@ -1665,13 +1665,13 @@ "no-cache" ], "Date": [ - "Thu, 03 Sep 2020 21:39:43 GMT" + "Mon, 07 Sep 2020 03:05:14 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportOperationResults/4142cd42-8ecf-45d8-8951-727e0090770e-sqlcrudtest-4858?api-version=2020-02-02-preview" + "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportOperationResults/ca2915dc-bee1-4fe4-ac50-1f45845f4e77-sqlcrudtest-6159?api-version=2020-02-02-preview" ], "Retry-After": [ "15" @@ -1680,19 +1680,19 @@ "Microsoft-HTTPAPI/2.0" ], "Azure-AsyncOperation": [ - "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/4142cd42-8ecf-45d8-8951-727e0090770e-sqlcrudtest-4858?api-version=2020-02-02-preview" + "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/ca2915dc-bee1-4fe4-ac50-1f45845f4e77-sqlcrudtest-6159?api-version=2020-02-02-preview" ], "x-ms-request-id": [ - "f4149f66-e1b7-47dd-958c-d8704613384b" + "45e132b9-3565-4c79-9bf3-b6fb54fd1a09" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1198" ], "x-ms-correlation-request-id": [ - "11492f8c-5437-4f36-98b6-e3add896ee9c" + "d69086b0-9369-4826-ac79-bf448ee8fad1" ], "x-ms-routing-request-id": [ - "BRAZILUS:20200903T213944Z:11492f8c-5437-4f36-98b6-e3add896ee9c" + "BRAZILUS:20200907T030515Z:d69086b0-9369-4826-ac79-bf448ee8fad1" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1710,12 +1710,12 @@ "-1" ] }, - "ResponseBody": "{\r\n \"operation\": \"Import\",\r\n \"startTime\": \"2020-09-03T21:39:43.8351996Z\"\r\n}", + "ResponseBody": "{\r\n \"operation\": \"Import\",\r\n \"startTime\": \"2020-09-07T03:05:15.5950643Z\"\r\n}", "StatusCode": 202 }, { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/4142cd42-8ecf-45d8-8951-727e0090770e-sqlcrudtest-4858?api-version=2020-02-02-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vNDE0MmNkNDItOGVjZi00NWQ4LTg5NTEtNzI3ZTAwOTA3NzBlLXNxbGNydWR0ZXN0LTQ4NTg/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/ca2915dc-bee1-4fe4-ac50-1f45845f4e77-sqlcrudtest-6159?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vY2EyOTE1ZGMtYmVlMS00ZmU0LWFjNTAtMWY0NTg0NWY0ZTc3LXNxbGNydWR0ZXN0LTYxNTk/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -1723,7 +1723,7 @@ "FxVersion/4.6.26614.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.2.0" ] }, "ResponseHeaders": { @@ -1731,7 +1731,7 @@ "no-cache" ], "Date": [ - "Thu, 03 Sep 2020 21:39:58 GMT" + "Mon, 07 Sep 2020 03:05:30 GMT" ], "Pragma": [ "no-cache" @@ -1743,16 +1743,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "d7fd5976-a0f0-4e54-960f-26b3eaba52b2" + "079045d9-93a5-4c38-aa8b-d1d3099dfc7e" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11981" + "11980" ], "x-ms-correlation-request-id": [ - "c52cbda7-2788-4794-acee-611d1d9ccf10" + "643f21e6-2758-4d8b-8e93-dadb8111ca45" ], "x-ms-routing-request-id": [ - "BRAZILUS:20200903T213959Z:c52cbda7-2788-4794-acee-611d1d9ccf10" + "BRAZILUS:20200907T030530Z:643f21e6-2758-4d8b-8e93-dadb8111ca45" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1770,12 +1770,12 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"4142cd42-8ecf-45d8-8951-727e0090770e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T21:39:42Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"ca2915dc-bee1-4fe4-ac50-1f45845f4e77\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T03:05:14Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/4142cd42-8ecf-45d8-8951-727e0090770e-sqlcrudtest-4858?api-version=2020-02-02-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vNDE0MmNkNDItOGVjZi00NWQ4LTg5NTEtNzI3ZTAwOTA3NzBlLXNxbGNydWR0ZXN0LTQ4NTg/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/ca2915dc-bee1-4fe4-ac50-1f45845f4e77-sqlcrudtest-6159?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vY2EyOTE1ZGMtYmVlMS00ZmU0LWFjNTAtMWY0NTg0NWY0ZTc3LXNxbGNydWR0ZXN0LTYxNTk/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -1783,7 +1783,7 @@ "FxVersion/4.6.26614.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.2.0" ] }, "ResponseHeaders": { @@ -1791,7 +1791,7 @@ "no-cache" ], "Date": [ - "Thu, 03 Sep 2020 21:40:14 GMT" + "Mon, 07 Sep 2020 03:05:45 GMT" ], "Pragma": [ "no-cache" @@ -1803,16 +1803,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "43613ed4-f247-4a98-b3e8-1c4566bde1ac" + "09524490-442f-411c-8c11-5060d03f3f6c" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11980" + "11979" ], "x-ms-correlation-request-id": [ - "aed3dca2-dc8c-4526-a146-4b80289b7a6e" + "a22d4393-c73f-4027-bd97-33cd58d83299" ], "x-ms-routing-request-id": [ - "BRAZILUS:20200903T214014Z:aed3dca2-dc8c-4526-a146-4b80289b7a6e" + "BRAZILUS:20200907T030545Z:a22d4393-c73f-4027-bd97-33cd58d83299" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1830,12 +1830,12 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"4142cd42-8ecf-45d8-8951-727e0090770e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T21:39:42Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"ca2915dc-bee1-4fe4-ac50-1f45845f4e77\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T03:05:14Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/4142cd42-8ecf-45d8-8951-727e0090770e-sqlcrudtest-4858?api-version=2020-02-02-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vNDE0MmNkNDItOGVjZi00NWQ4LTg5NTEtNzI3ZTAwOTA3NzBlLXNxbGNydWR0ZXN0LTQ4NTg/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/ca2915dc-bee1-4fe4-ac50-1f45845f4e77-sqlcrudtest-6159?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vY2EyOTE1ZGMtYmVlMS00ZmU0LWFjNTAtMWY0NTg0NWY0ZTc3LXNxbGNydWR0ZXN0LTYxNTk/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -1843,7 +1843,7 @@ "FxVersion/4.6.26614.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.2.0" ] }, "ResponseHeaders": { @@ -1851,7 +1851,7 @@ "no-cache" ], "Date": [ - "Thu, 03 Sep 2020 21:40:29 GMT" + "Mon, 07 Sep 2020 03:06:01 GMT" ], "Pragma": [ "no-cache" @@ -1863,16 +1863,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "be72aefa-3095-416d-a290-038efd7c3a94" + "aed87098-19fa-41ed-a4a8-38e9957146bf" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11979" + "11978" ], "x-ms-correlation-request-id": [ - "78489adc-ff2a-4622-82a5-5bff09c4fb26" + "b6e9c9c4-6b68-4fad-906e-723144181b6f" ], "x-ms-routing-request-id": [ - "BRAZILUS:20200903T214029Z:78489adc-ff2a-4622-82a5-5bff09c4fb26" + "BRAZILUS:20200907T030601Z:b6e9c9c4-6b68-4fad-906e-723144181b6f" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1890,12 +1890,12 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"4142cd42-8ecf-45d8-8951-727e0090770e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T21:39:42Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"ca2915dc-bee1-4fe4-ac50-1f45845f4e77\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T03:05:14Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/4142cd42-8ecf-45d8-8951-727e0090770e-sqlcrudtest-4858?api-version=2020-02-02-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vNDE0MmNkNDItOGVjZi00NWQ4LTg5NTEtNzI3ZTAwOTA3NzBlLXNxbGNydWR0ZXN0LTQ4NTg/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/ca2915dc-bee1-4fe4-ac50-1f45845f4e77-sqlcrudtest-6159?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vY2EyOTE1ZGMtYmVlMS00ZmU0LWFjNTAtMWY0NTg0NWY0ZTc3LXNxbGNydWR0ZXN0LTYxNTk/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -1903,7 +1903,7 @@ "FxVersion/4.6.26614.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.2.0" ] }, "ResponseHeaders": { @@ -1911,7 +1911,7 @@ "no-cache" ], "Date": [ - "Thu, 03 Sep 2020 21:40:44 GMT" + "Mon, 07 Sep 2020 03:06:15 GMT" ], "Pragma": [ "no-cache" @@ -1923,16 +1923,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "8134a5a2-368a-47fd-8754-23e4fc1fdaff" + "09a35a0e-193a-4598-bbd0-b49f2d8e83b5" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11978" + "11977" ], "x-ms-correlation-request-id": [ - "9b54c9ce-085a-473f-8a82-73b1dd129aeb" + "cd504c86-df59-4969-b668-0a387ff1d928" ], "x-ms-routing-request-id": [ - "BRAZILUS:20200903T214044Z:9b54c9ce-085a-473f-8a82-73b1dd129aeb" + "BRAZILUS:20200907T030616Z:cd504c86-df59-4969-b668-0a387ff1d928" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1950,12 +1950,12 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"4142cd42-8ecf-45d8-8951-727e0090770e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T21:40:43Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"ca2915dc-bee1-4fe4-ac50-1f45845f4e77\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T03:06:14Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/4142cd42-8ecf-45d8-8951-727e0090770e-sqlcrudtest-4858?api-version=2020-02-02-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vNDE0MmNkNDItOGVjZi00NWQ4LTg5NTEtNzI3ZTAwOTA3NzBlLXNxbGNydWR0ZXN0LTQ4NTg/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/ca2915dc-bee1-4fe4-ac50-1f45845f4e77-sqlcrudtest-6159?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vY2EyOTE1ZGMtYmVlMS00ZmU0LWFjNTAtMWY0NTg0NWY0ZTc3LXNxbGNydWR0ZXN0LTYxNTk/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -1963,7 +1963,7 @@ "FxVersion/4.6.26614.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.2.0" ] }, "ResponseHeaders": { @@ -1971,7 +1971,7 @@ "no-cache" ], "Date": [ - "Thu, 03 Sep 2020 21:40:59 GMT" + "Mon, 07 Sep 2020 03:06:31 GMT" ], "Pragma": [ "no-cache" @@ -1983,16 +1983,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "565f7e7f-9e0e-4308-bb01-2c921d9c0bbd" + "aa1f906b-56d6-426f-9512-c89157b9bbb2" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11977" + "11976" ], "x-ms-correlation-request-id": [ - "62c4df48-43c2-4217-aa0e-ebaf9f258d7d" + "783fc918-b59d-441f-a1b4-b62c27ff8182" ], "x-ms-routing-request-id": [ - "BRAZILUS:20200903T214100Z:62c4df48-43c2-4217-aa0e-ebaf9f258d7d" + "BRAZILUS:20200907T030631Z:783fc918-b59d-441f-a1b4-b62c27ff8182" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -2010,12 +2010,12 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"4142cd42-8ecf-45d8-8951-727e0090770e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T21:40:43Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"ca2915dc-bee1-4fe4-ac50-1f45845f4e77\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T03:06:14Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/4142cd42-8ecf-45d8-8951-727e0090770e-sqlcrudtest-4858?api-version=2020-02-02-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vNDE0MmNkNDItOGVjZi00NWQ4LTg5NTEtNzI3ZTAwOTA3NzBlLXNxbGNydWR0ZXN0LTQ4NTg/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/ca2915dc-bee1-4fe4-ac50-1f45845f4e77-sqlcrudtest-6159?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vY2EyOTE1ZGMtYmVlMS00ZmU0LWFjNTAtMWY0NTg0NWY0ZTc3LXNxbGNydWR0ZXN0LTYxNTk/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -2023,7 +2023,7 @@ "FxVersion/4.6.26614.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.2.0" ] }, "ResponseHeaders": { @@ -2031,7 +2031,7 @@ "no-cache" ], "Date": [ - "Thu, 03 Sep 2020 21:41:14 GMT" + "Mon, 07 Sep 2020 03:06:46 GMT" ], "Pragma": [ "no-cache" @@ -2043,16 +2043,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "90c81d7e-acad-4818-86e6-43f83a38751e" + "5d7e701c-436a-4a91-9cf3-df7bef42c2cc" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11976" + "11975" ], "x-ms-correlation-request-id": [ - "dc884dc3-b730-42fa-8097-f0a65dcf36d6" + "83d70fd7-66a7-4848-abc4-ed3abb88ec79" ], "x-ms-routing-request-id": [ - "BRAZILUS:20200903T214115Z:dc884dc3-b730-42fa-8097-f0a65dcf36d6" + "BRAZILUS:20200907T030646Z:83d70fd7-66a7-4848-abc4-ed3abb88ec79" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -2070,12 +2070,12 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"4142cd42-8ecf-45d8-8951-727e0090770e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T21:40:43Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"ca2915dc-bee1-4fe4-ac50-1f45845f4e77\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T03:06:14Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/4142cd42-8ecf-45d8-8951-727e0090770e-sqlcrudtest-4858?api-version=2020-02-02-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vNDE0MmNkNDItOGVjZi00NWQ4LTg5NTEtNzI3ZTAwOTA3NzBlLXNxbGNydWR0ZXN0LTQ4NTg/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/ca2915dc-bee1-4fe4-ac50-1f45845f4e77-sqlcrudtest-6159?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vY2EyOTE1ZGMtYmVlMS00ZmU0LWFjNTAtMWY0NTg0NWY0ZTc3LXNxbGNydWR0ZXN0LTYxNTk/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -2083,7 +2083,7 @@ "FxVersion/4.6.26614.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.2.0" ] }, "ResponseHeaders": { @@ -2091,7 +2091,7 @@ "no-cache" ], "Date": [ - "Thu, 03 Sep 2020 21:41:30 GMT" + "Mon, 07 Sep 2020 03:07:01 GMT" ], "Pragma": [ "no-cache" @@ -2103,16 +2103,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "babe5bac-3acc-4847-8886-8409dca318d7" + "f457e3bf-8fdd-4704-8652-c4c8fd7cc5b9" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11975" + "11974" ], "x-ms-correlation-request-id": [ - "e187e19d-ac80-497d-8b26-33eca1471841" + "dba158bb-c6d2-43c4-b0f7-7c59050e92e7" ], "x-ms-routing-request-id": [ - "BRAZILUS:20200903T214130Z:e187e19d-ac80-497d-8b26-33eca1471841" + "BRAZILUS:20200907T030701Z:dba158bb-c6d2-43c4-b0f7-7c59050e92e7" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -2130,12 +2130,12 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"4142cd42-8ecf-45d8-8951-727e0090770e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T21:40:43Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"ca2915dc-bee1-4fe4-ac50-1f45845f4e77\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T03:06:14Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/4142cd42-8ecf-45d8-8951-727e0090770e-sqlcrudtest-4858?api-version=2020-02-02-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vNDE0MmNkNDItOGVjZi00NWQ4LTg5NTEtNzI3ZTAwOTA3NzBlLXNxbGNydWR0ZXN0LTQ4NTg/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/ca2915dc-bee1-4fe4-ac50-1f45845f4e77-sqlcrudtest-6159?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vY2EyOTE1ZGMtYmVlMS00ZmU0LWFjNTAtMWY0NTg0NWY0ZTc3LXNxbGNydWR0ZXN0LTYxNTk/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -2143,7 +2143,7 @@ "FxVersion/4.6.26614.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.2.0" ] }, "ResponseHeaders": { @@ -2151,7 +2151,7 @@ "no-cache" ], "Date": [ - "Thu, 03 Sep 2020 21:41:44 GMT" + "Mon, 07 Sep 2020 03:07:16 GMT" ], "Pragma": [ "no-cache" @@ -2163,16 +2163,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "0f0e8084-da20-48e5-903d-7849a8675598" + "3ce8cd42-11af-409c-9c9d-5c5dc2e7c819" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11974" + "11973" ], "x-ms-correlation-request-id": [ - "8061edc7-bfc3-4f08-a599-2429b9045ec2" + "73a221f3-5b91-4ce9-bc35-e4ac66b06cf4" ], "x-ms-routing-request-id": [ - "BRAZILUS:20200903T214145Z:8061edc7-bfc3-4f08-a599-2429b9045ec2" + "BRAZILUS:20200907T030717Z:73a221f3-5b91-4ce9-bc35-e4ac66b06cf4" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -2190,12 +2190,12 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"4142cd42-8ecf-45d8-8951-727e0090770e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T21:41:43Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"ca2915dc-bee1-4fe4-ac50-1f45845f4e77\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T03:07:14Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/4142cd42-8ecf-45d8-8951-727e0090770e-sqlcrudtest-4858?api-version=2020-02-02-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vNDE0MmNkNDItOGVjZi00NWQ4LTg5NTEtNzI3ZTAwOTA3NzBlLXNxbGNydWR0ZXN0LTQ4NTg/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/ca2915dc-bee1-4fe4-ac50-1f45845f4e77-sqlcrudtest-6159?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vY2EyOTE1ZGMtYmVlMS00ZmU0LWFjNTAtMWY0NTg0NWY0ZTc3LXNxbGNydWR0ZXN0LTYxNTk/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -2203,7 +2203,7 @@ "FxVersion/4.6.26614.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.2.0" ] }, "ResponseHeaders": { @@ -2211,7 +2211,7 @@ "no-cache" ], "Date": [ - "Thu, 03 Sep 2020 21:42:00 GMT" + "Mon, 07 Sep 2020 03:07:31 GMT" ], "Pragma": [ "no-cache" @@ -2223,16 +2223,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "20a6217b-58d3-4c6b-a4a4-c07fb41ead83" + "ebdd2052-5b39-4708-b272-0d579c32bc7a" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11973" + "11972" ], "x-ms-correlation-request-id": [ - "115ca721-ee43-4790-85ca-2e8a573064f9" + "c43d4c4f-2d9d-4b2a-8063-038cb973dd28" ], "x-ms-routing-request-id": [ - "BRAZILUS:20200903T214200Z:115ca721-ee43-4790-85ca-2e8a573064f9" + "BRAZILUS:20200907T030732Z:c43d4c4f-2d9d-4b2a-8063-038cb973dd28" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -2250,12 +2250,12 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"4142cd42-8ecf-45d8-8951-727e0090770e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T21:41:43Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"ca2915dc-bee1-4fe4-ac50-1f45845f4e77\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T03:07:14Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/4142cd42-8ecf-45d8-8951-727e0090770e-sqlcrudtest-4858?api-version=2020-02-02-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vNDE0MmNkNDItOGVjZi00NWQ4LTg5NTEtNzI3ZTAwOTA3NzBlLXNxbGNydWR0ZXN0LTQ4NTg/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/ca2915dc-bee1-4fe4-ac50-1f45845f4e77-sqlcrudtest-6159?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vY2EyOTE1ZGMtYmVlMS00ZmU0LWFjNTAtMWY0NTg0NWY0ZTc3LXNxbGNydWR0ZXN0LTYxNTk/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -2263,7 +2263,7 @@ "FxVersion/4.6.26614.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.2.0" ] }, "ResponseHeaders": { @@ -2271,7 +2271,7 @@ "no-cache" ], "Date": [ - "Thu, 03 Sep 2020 21:42:15 GMT" + "Mon, 07 Sep 2020 03:07:47 GMT" ], "Pragma": [ "no-cache" @@ -2283,16 +2283,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "0bf97d58-430b-4f9c-90b2-32a32823b31d" + "fe9341b2-a87b-4e8e-8778-b2666cd58cb5" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11972" + "11971" ], "x-ms-correlation-request-id": [ - "9bf69bfd-b409-48a3-ad3c-7ceadef64e98" + "3d8ed700-f38e-4a0c-b26e-38a6c52d1787" ], "x-ms-routing-request-id": [ - "BRAZILUS:20200903T214215Z:9bf69bfd-b409-48a3-ad3c-7ceadef64e98" + "BRAZILUS:20200907T030747Z:3d8ed700-f38e-4a0c-b26e-38a6c52d1787" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -2310,12 +2310,12 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"4142cd42-8ecf-45d8-8951-727e0090770e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T21:41:43Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"ca2915dc-bee1-4fe4-ac50-1f45845f4e77\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T03:07:14Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/4142cd42-8ecf-45d8-8951-727e0090770e-sqlcrudtest-4858?api-version=2020-02-02-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vNDE0MmNkNDItOGVjZi00NWQ4LTg5NTEtNzI3ZTAwOTA3NzBlLXNxbGNydWR0ZXN0LTQ4NTg/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/ca2915dc-bee1-4fe4-ac50-1f45845f4e77-sqlcrudtest-6159?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vY2EyOTE1ZGMtYmVlMS00ZmU0LWFjNTAtMWY0NTg0NWY0ZTc3LXNxbGNydWR0ZXN0LTYxNTk/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -2323,7 +2323,7 @@ "FxVersion/4.6.26614.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.2.0" ] }, "ResponseHeaders": { @@ -2331,7 +2331,7 @@ "no-cache" ], "Date": [ - "Thu, 03 Sep 2020 21:42:34 GMT" + "Mon, 07 Sep 2020 03:08:02 GMT" ], "Pragma": [ "no-cache" @@ -2343,16 +2343,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "4aea3003-c7c3-4027-a349-e5741b1fc99e" + "dae8d9d4-486d-49d7-9471-2aa1ca85460e" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11971" + "11970" ], "x-ms-correlation-request-id": [ - "29b89df7-0819-4acd-9333-16826d873e7d" + "e5819d63-05c5-49dc-b373-2dd226d58bcf" ], "x-ms-routing-request-id": [ - "BRAZILUS:20200903T214234Z:29b89df7-0819-4acd-9333-16826d873e7d" + "BRAZILUS:20200907T030802Z:e5819d63-05c5-49dc-b373-2dd226d58bcf" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -2370,12 +2370,12 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"4142cd42-8ecf-45d8-8951-727e0090770e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T21:41:43Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"ca2915dc-bee1-4fe4-ac50-1f45845f4e77\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T03:07:14Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/4142cd42-8ecf-45d8-8951-727e0090770e-sqlcrudtest-4858?api-version=2020-02-02-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vNDE0MmNkNDItOGVjZi00NWQ4LTg5NTEtNzI3ZTAwOTA3NzBlLXNxbGNydWR0ZXN0LTQ4NTg/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/ca2915dc-bee1-4fe4-ac50-1f45845f4e77-sqlcrudtest-6159?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vY2EyOTE1ZGMtYmVlMS00ZmU0LWFjNTAtMWY0NTg0NWY0ZTc3LXNxbGNydWR0ZXN0LTYxNTk/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -2383,7 +2383,7 @@ "FxVersion/4.6.26614.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.2.0" ] }, "ResponseHeaders": { @@ -2391,7 +2391,7 @@ "no-cache" ], "Date": [ - "Thu, 03 Sep 2020 21:42:49 GMT" + "Mon, 07 Sep 2020 03:08:17 GMT" ], "Pragma": [ "no-cache" @@ -2403,16 +2403,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "dc666fed-4816-45a9-bd6a-2ecaa0762efe" + "a67d37b8-1f2e-4561-a818-2f0c9ae73a3d" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11970" + "11969" ], "x-ms-correlation-request-id": [ - "323021dc-0a74-4556-abcd-24e5b86cecc9" + "e45bc135-28b1-43ab-9d41-fcc23fef291b" ], "x-ms-routing-request-id": [ - "BRAZILUS:20200903T214249Z:323021dc-0a74-4556-abcd-24e5b86cecc9" + "BRAZILUS:20200907T030817Z:e45bc135-28b1-43ab-9d41-fcc23fef291b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -2430,12 +2430,12 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"4142cd42-8ecf-45d8-8951-727e0090770e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-03T21:42:43Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"ca2915dc-bee1-4fe4-ac50-1f45845f4e77\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-07T03:08:14Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/4142cd42-8ecf-45d8-8951-727e0090770e-sqlcrudtest-4858?api-version=2020-02-02-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vNDE0MmNkNDItOGVjZi00NWQ4LTg5NTEtNzI3ZTAwOTA3NzBlLXNxbGNydWR0ZXN0LTQ4NTg/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportAzureAsyncOperation/ca2915dc-bee1-4fe4-ac50-1f45845f4e77-sqlcrudtest-6159?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydEF6dXJlQXN5bmNPcGVyYXRpb24vY2EyOTE1ZGMtYmVlMS00ZmU0LWFjNTAtMWY0NTg0NWY0ZTc3LXNxbGNydWR0ZXN0LTYxNTk/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -2443,7 +2443,7 @@ "FxVersion/4.6.26614.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.2.0" ] }, "ResponseHeaders": { @@ -2451,7 +2451,7 @@ "no-cache" ], "Date": [ - "Thu, 03 Sep 2020 21:43:04 GMT" + "Mon, 07 Sep 2020 03:08:33 GMT" ], "Pragma": [ "no-cache" @@ -2463,16 +2463,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "f6008dfe-f27c-4dc2-9fdd-67cd7eaa1af8" + "3a8fdab3-a147-483a-9459-788880a69d1b" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11969" + "11968" ], "x-ms-correlation-request-id": [ - "1c78abbf-cd23-4b88-9a9d-2654da6c9e06" + "608a7cfe-b1ee-47ef-abb6-739e63bb0fee" ], "x-ms-routing-request-id": [ - "BRAZILUS:20200903T214304Z:1c78abbf-cd23-4b88-9a9d-2654da6c9e06" + "BRAZILUS:20200907T030833Z:608a7cfe-b1ee-47ef-abb6-739e63bb0fee" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -2490,12 +2490,12 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"4142cd42-8ecf-45d8-8951-727e0090770e\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2020-09-03T21:42:55Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"ca2915dc-bee1-4fe4-ac50-1f45845f4e77\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2020-09-07T03:08:27Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportOperationResults/4142cd42-8ecf-45d8-8951-727e0090770e-sqlcrudtest-4858?api-version=2020-02-02-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydE9wZXJhdGlvblJlc3VsdHMvNDE0MmNkNDItOGVjZi00NWQ4LTg5NTEtNzI3ZTAwOTA3NzBlLXNxbGNydWR0ZXN0LTQ4NTg/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/providers/Microsoft.Sql/locations/westcentralus/importExportOperationResults/ca2915dc-bee1-4fe4-ac50-1f45845f4e77-sqlcrudtest-6159?api-version=2020-02-02-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy93ZXN0Y2VudHJhbHVzL2ltcG9ydEV4cG9ydE9wZXJhdGlvblJlc3VsdHMvY2EyOTE1ZGMtYmVlMS00ZmU0LWFjNTAtMWY0NTg0NWY0ZTc3LXNxbGNydWR0ZXN0LTYxNTk/YXBpLXZlcnNpb249MjAyMC0wMi0wMi1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -2503,7 +2503,7 @@ "FxVersion/4.6.26614.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19041.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.1.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.44.2.0" ] }, "ResponseHeaders": { @@ -2511,7 +2511,7 @@ "no-cache" ], "Date": [ - "Thu, 03 Sep 2020 21:43:04 GMT" + "Mon, 07 Sep 2020 03:08:33 GMT" ], "Pragma": [ "no-cache" @@ -2520,16 +2520,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "190ccad0-d294-4d16-ae85-078006c0c53f" + "4de4d617-b141-4f86-b876-cd385eca1ac7" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11968" + "11967" ], "x-ms-correlation-request-id": [ - "c3d21881-1a5c-40c3-9bd5-14bf1a3f3459" + "ca1e2edb-01cb-496c-a364-fde53dedfae4" ], "x-ms-routing-request-id": [ - "BRAZILUS:20200903T214305Z:c3d21881-1a5c-40c3-9bd5-14bf1a3f3459" + "BRAZILUS:20200907T030833Z:ca1e2edb-01cb-496c-a364-fde53dedfae4" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -2547,17 +2547,17 @@ "-1" ] }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"requestId\": \"4142cd42-8ecf-45d8-8951-727e0090770e\",\r\n \"requestType\": \"ImportToNewDatabase\",\r\n \"queuedTime\": \"9/3/2020 9:39:42 PM\",\r\n \"lastModifiedTime\": \"9/3/2020 9:42:55 PM\",\r\n \"blobUri\": \"https://sqlcrudtest4377.blob.core.windows.net/container/sqlcrudtest-2319.bacpac\",\r\n \"serverName\": \"sqlcrudtest-4858\",\r\n \"databaseName\": \"sqlcrudtest-9526\",\r\n \"status\": \"Completed\",\r\n \"privateEndpointConnections\": []\r\n },\r\n \"id\": \"4142cd42-8ecf-45d8-8951-727e0090770e\",\r\n \"name\": \"4142cd42-8ecf-45d8-8951-727e0090770e\",\r\n \"type\": \"Microsoft.Sql/servers/databases/importExportOperationResults\"\r\n}", + "ResponseBody": "{\r\n \"properties\": {\r\n \"requestId\": \"ca2915dc-bee1-4fe4-ac50-1f45845f4e77\",\r\n \"requestType\": \"ImportToNewDatabase\",\r\n \"queuedTime\": \"9/7/2020 3:05:14 AM\",\r\n \"lastModifiedTime\": \"9/7/2020 3:08:27 AM\",\r\n \"blobUri\": \"https://sqlcrudtest4885.blob.core.windows.net/container/sqlcrudtest-2439.bacpac\",\r\n \"serverName\": \"sqlcrudtest-6159\",\r\n \"databaseName\": \"sqlcrudtest-4034\",\r\n \"status\": \"Completed\",\r\n \"privateEndpointConnections\": []\r\n },\r\n \"id\": \"ca2915dc-bee1-4fe4-ac50-1f45845f4e77\",\r\n \"name\": \"ca2915dc-bee1-4fe4-ac50-1f45845f4e77\",\r\n \"type\": \"Microsoft.Sql/servers/databases/importExportOperationResults\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourcegroups/sqlcrudtest-9508?api-version=2017-05-10", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTk1MDg/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestUri": "/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/resourcegroups/sqlcrudtest-8893?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYjc1ODg5ZmEtNjY2MS00NGUwLWE4NDQtY2Q5NmVjOTM4OTkxL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTg4OTM/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "a105d935-8e71-4e0b-b25a-6d3686033bf8" + "7a1ed826-3b28-4a5b-bd21-36fc4954a864" ], "accept-language": [ "en-US" @@ -2574,28 +2574,28 @@ "no-cache" ], "Date": [ - "Thu, 03 Sep 2020 21:43:05 GMT" + "Mon, 07 Sep 2020 03:08:34 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDk1MDgtV0VTVENFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoid2VzdGNlbnRyYWx1cyJ9?api-version=2017-05-10" + "https://brazilus.management.azure.com/subscriptions/b75889fa-6661-44e0-a844-cd96ec938991/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDg4OTMtV0VTVENFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoid2VzdGNlbnRyYWx1cyJ9?api-version=2017-05-10" ], "Retry-After": [ "15" ], "x-ms-ratelimit-remaining-subscription-deletes": [ - "14999" + "14998" ], "x-ms-request-id": [ - "cde3c5fe-9af1-4d40-a23b-7844b8dd960f" + "77af39d9-7f44-491f-8e05-d745966bc12b" ], "x-ms-correlation-request-id": [ - "cde3c5fe-9af1-4d40-a23b-7844b8dd960f" + "77af39d9-7f44-491f-8e05-d745966bc12b" ], "x-ms-routing-request-id": [ - "BRAZILUS:20200903T214306Z:cde3c5fe-9af1-4d40-a23b-7844b8dd960f" + "BRAZILUS:20200907T030834Z:77af39d9-7f44-491f-8e05-d745966bc12b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -2616,19 +2616,16 @@ ], "Names": { "CreateResourceGroup": [ - "sqlcrudtest-9508" + "sqlcrudtest-8893" ], "CreateServer": [ - "sqlcrudtest-4858" - ], - "CreateStorageContainer": [ - "sqlcrudtest4377" + "sqlcrudtest-6159" ], "TestImportExport": [ - "sqlcrudtest-2319", - "sqlcrudtest-9526", - "sqlcrudstorage8756", - "sqlcrudtest-303" + "sqlcrudtest4885", + "sqlcrudtest-2439", + "sqlcrudtest-4034", + "sqlcrudtest-1321" ] }, "Variables": {